riscv-none-embed-g++.1 1.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552
  1. .\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35)
  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 "2019-02-22" "gcc-8.3.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. .SH "OPTIONS"
  197. .IX Header "OPTIONS"
  198. .SS "Option Summary"
  199. .IX Subsection "Option Summary"
  200. Here is a summary of all the options, grouped by type. Explanations are
  201. in the following sections.
  202. .IP "\fIOverall Options\fR" 4
  203. .IX Item "Overall Options"
  204. \&\fB\-c \-S \-E \-o\fR \fIfile\fR \fB\-x\fR \fIlanguage\fR
  205. \&\fB\-v \-### \-\-help\fR[\fB=\fR\fIclass\fR[\fB,...\fR]] \fB\-\-target\-help \-\-version
  206. \&\-pass\-exit\-codes \-pipe \-specs=\fR\fIfile\fR \fB\-wrapper
  207. @\fR\fIfile\fR \fB\-ffile\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR
  208. \&\fB\-fplugin=\fR\fIfile\fR \fB\-fplugin\-arg\-\fR\fIname\fR\fB=\fR\fIarg\fR
  209. \&\fB\-fdump\-ada\-spec\fR[\fB\-slim\fR] \fB\-fada\-spec\-parent=\fR\fIunit\fR \fB\-fdump\-go\-spec=\fR\fIfile\fR
  210. .IP "\fIC Language Options\fR" 4
  211. .IX Item "C Language Options"
  212. \&\fB\-ansi \-std=\fR\fIstandard\fR \fB\-fgnu89\-inline
  213. \&\-fpermitted\-flt\-eval\-methods=\fR\fIstandard\fR
  214. \&\fB\-aux\-info\fR \fIfilename\fR \fB\-fallow\-parameterless\-variadic\-functions
  215. \&\-fno\-asm \-fno\-builtin \-fno\-builtin\-\fR\fIfunction\fR \fB\-fgimple
  216. \&\-fhosted \-ffreestanding \-fopenacc \-fopenmp \-fopenmp\-simd
  217. \&\-fms\-extensions \-fplan9\-extensions \-fsso\-struct=\fR\fIendianness\fR
  218. \&\fB\-fallow\-single\-precision \-fcond\-mismatch \-flax\-vector\-conversions
  219. \&\-fsigned\-bitfields \-fsigned\-char
  220. \&\-funsigned\-bitfields \-funsigned\-char\fR
  221. .IP "\fI\*(C+ Language Options\fR" 4
  222. .IX Item " Language Options"
  223. \&\fB\-fabi\-version=\fR\fIn\fR \fB\-fno\-access\-control
  224. \&\-faligned\-new=\fR\fIn\fR \fB\-fargs\-in\-order=\fR\fIn\fR \fB\-fcheck\-new
  225. \&\-fconstexpr\-depth=\fR\fIn\fR \fB\-fconstexpr\-loop\-limit=\fR\fIn\fR
  226. \&\fB\-ffriend\-injection
  227. \&\-fno\-elide\-constructors
  228. \&\-fno\-enforce\-eh\-specs
  229. \&\-ffor\-scope \-fno\-for\-scope \-fno\-gnu\-keywords
  230. \&\-fno\-implicit\-templates
  231. \&\-fno\-implicit\-inline\-templates
  232. \&\-fno\-implement\-inlines \-fms\-extensions
  233. \&\-fnew\-inheriting\-ctors
  234. \&\-fnew\-ttp\-matching
  235. \&\-fno\-nonansi\-builtins \-fnothrow\-opt \-fno\-operator\-names
  236. \&\-fno\-optional\-diags \-fpermissive
  237. \&\-fno\-pretty\-templates
  238. \&\-frepo \-fno\-rtti \-fsized\-deallocation
  239. \&\-ftemplate\-backtrace\-limit=\fR\fIn\fR
  240. \&\fB\-ftemplate\-depth=\fR\fIn\fR
  241. \&\fB\-fno\-threadsafe\-statics \-fuse\-cxa\-atexit
  242. \&\-fno\-weak \-nostdinc++
  243. \&\-fvisibility\-inlines\-hidden
  244. \&\-fvisibility\-ms\-compat
  245. \&\-fext\-numeric\-literals
  246. \&\-Wabi=\fR\fIn\fR \fB\-Wabi\-tag \-Wconversion\-null \-Wctor\-dtor\-privacy
  247. \&\-Wdelete\-non\-virtual\-dtor \-Wliteral\-suffix \-Wmultiple\-inheritance
  248. \&\-Wnamespaces \-Wnarrowing
  249. \&\-Wnoexcept \-Wnoexcept\-type \-Wclass\-memaccess
  250. \&\-Wnon\-virtual\-dtor \-Wreorder \-Wregister
  251. \&\-Weffc++ \-Wstrict\-null\-sentinel \-Wtemplates
  252. \&\-Wno\-non\-template\-friend \-Wold\-style\-cast
  253. \&\-Woverloaded\-virtual \-Wno\-pmf\-conversions
  254. \&\-Wsign\-promo \-Wvirtual\-inheritance\fR
  255. .IP "\fIObjective-C and Objective\-\*(C+ Language Options\fR" 4
  256. .IX Item "Objective-C and Objective- Language Options"
  257. \&\fB\-fconstant\-string\-class=\fR\fIclass-name\fR
  258. \&\fB\-fgnu\-runtime \-fnext\-runtime
  259. \&\-fno\-nil\-receivers
  260. \&\-fobjc\-abi\-version=\fR\fIn\fR
  261. \&\fB\-fobjc\-call\-cxx\-cdtors
  262. \&\-fobjc\-direct\-dispatch
  263. \&\-fobjc\-exceptions
  264. \&\-fobjc\-gc
  265. \&\-fobjc\-nilcheck
  266. \&\-fobjc\-std=objc1
  267. \&\-fno\-local\-ivars
  268. \&\-fivar\-visibility=\fR[\fBpublic\fR|\fBprotected\fR|\fBprivate\fR|\fBpackage\fR]
  269. \&\fB\-freplace\-objc\-classes
  270. \&\-fzero\-link
  271. \&\-gen\-decls
  272. \&\-Wassign\-intercept
  273. \&\-Wno\-protocol \-Wselector
  274. \&\-Wstrict\-selector\-match
  275. \&\-Wundeclared\-selector\fR
  276. .IP "\fIDiagnostic Message Formatting Options\fR" 4
  277. .IX Item "Diagnostic Message Formatting Options"
  278. \&\fB\-fmessage\-length=\fR\fIn\fR
  279. \&\fB\-fdiagnostics\-show\-location=\fR[\fBonce\fR|\fBevery-line\fR]
  280. \&\fB\-fdiagnostics\-color=\fR[\fBauto\fR|\fBnever\fR|\fBalways\fR]
  281. \&\fB\-fno\-diagnostics\-show\-option \-fno\-diagnostics\-show\-caret
  282. \&\-fdiagnostics\-parseable\-fixits \-fdiagnostics\-generate\-patch
  283. \&\-fdiagnostics\-show\-template\-tree \-fno\-elide\-type
  284. \&\-fno\-show\-column\fR
  285. .IP "\fIWarning Options\fR" 4
  286. .IX Item "Warning Options"
  287. \&\fB\-fsyntax\-only \-fmax\-errors=\fR\fIn\fR \fB\-Wpedantic
  288. \&\-pedantic\-errors
  289. \&\-w \-Wextra \-Wall \-Waddress \-Waggregate\-return \-Waligned\-new
  290. \&\-Walloc\-zero \-Walloc\-size\-larger\-than=\fR\fIn\fR
  291. \&\fB\-Walloca \-Walloca\-larger\-than=\fR\fIn\fR
  292. \&\fB\-Wno\-aggressive\-loop\-optimizations \-Warray\-bounds \-Warray\-bounds=\fR\fIn\fR
  293. \&\fB\-Wno\-attributes \-Wbool\-compare \-Wbool\-operation
  294. \&\-Wno\-builtin\-declaration\-mismatch
  295. \&\-Wno\-builtin\-macro\-redefined \-Wc90\-c99\-compat \-Wc99\-c11\-compat
  296. \&\-Wc++\-compat \-Wc++11\-compat \-Wc++14\-compat
  297. \&\-Wcast\-align \-Wcast\-align=strict \-Wcast\-function\-type \-Wcast\-qual
  298. \&\-Wchar\-subscripts \-Wchkp \-Wcatch\-value \-Wcatch\-value=\fR\fIn\fR
  299. \&\fB\-Wclobbered \-Wcomment \-Wconditionally\-supported
  300. \&\-Wconversion \-Wcoverage\-mismatch \-Wno\-cpp \-Wdangling\-else \-Wdate\-time
  301. \&\-Wdelete\-incomplete
  302. \&\-Wno\-deprecated \-Wno\-deprecated\-declarations \-Wno\-designated\-init
  303. \&\-Wdisabled\-optimization
  304. \&\-Wno\-discarded\-qualifiers \-Wno\-discarded\-array\-qualifiers
  305. \&\-Wno\-div\-by\-zero \-Wdouble\-promotion
  306. \&\-Wduplicated\-branches \-Wduplicated\-cond
  307. \&\-Wempty\-body \-Wenum\-compare \-Wno\-endif\-labels \-Wexpansion\-to\-defined
  308. \&\-Werror \-Werror=* \-Wextra\-semi \-Wfatal\-errors
  309. \&\-Wfloat\-equal \-Wformat \-Wformat=2
  310. \&\-Wno\-format\-contains\-nul \-Wno\-format\-extra\-args
  311. \&\-Wformat\-nonliteral \-Wformat\-overflow=\fR\fIn\fR
  312. \&\fB\-Wformat\-security \-Wformat\-signedness \-Wformat\-truncation=\fR\fIn\fR
  313. \&\fB\-Wformat\-y2k \-Wframe\-address
  314. \&\-Wframe\-larger\-than=\fR\fIlen\fR \fB\-Wno\-free\-nonheap\-object \-Wjump\-misses\-init
  315. \&\-Wif\-not\-aligned
  316. \&\-Wignored\-qualifiers \-Wignored\-attributes \-Wincompatible\-pointer\-types
  317. \&\-Wimplicit \-Wimplicit\-fallthrough \-Wimplicit\-fallthrough=\fR\fIn\fR
  318. \&\fB\-Wimplicit\-function\-declaration \-Wimplicit\-int
  319. \&\-Winit\-self \-Winline \-Wno\-int\-conversion \-Wint\-in\-bool\-context
  320. \&\-Wno\-int\-to\-pointer\-cast \-Winvalid\-memory\-model \-Wno\-invalid\-offsetof
  321. \&\-Winvalid\-pch \-Wlarger\-than=\fR\fIlen\fR
  322. \&\fB\-Wlogical\-op \-Wlogical\-not\-parentheses \-Wlong\-long
  323. \&\-Wmain \-Wmaybe\-uninitialized \-Wmemset\-elt\-size \-Wmemset\-transposed\-args
  324. \&\-Wmisleading\-indentation \-Wmissing\-attributes \-Wmissing\-braces
  325. \&\-Wmissing\-field\-initializers \-Wmissing\-include\-dirs
  326. \&\-Wno\-multichar \-Wmultistatement\-macros \-Wnonnull \-Wnonnull\-compare
  327. \&\-Wnormalized=\fR[\fBnone\fR|\fBid\fR|\fBnfc\fR|\fBnfkc\fR]
  328. \&\fB\-Wnull\-dereference \-Wodr \-Wno\-overflow \-Wopenmp\-simd
  329. \&\-Woverride\-init\-side\-effects \-Woverlength\-strings
  330. \&\-Wpacked \-Wpacked\-bitfield\-compat \-Wpacked\-not\-aligned \-Wpadded
  331. \&\-Wparentheses \-Wno\-pedantic\-ms\-format
  332. \&\-Wplacement\-new \-Wplacement\-new=\fR\fIn\fR
  333. \&\fB\-Wpointer\-arith \-Wpointer\-compare \-Wno\-pointer\-to\-int\-cast
  334. \&\-Wno\-pragmas \-Wredundant\-decls \-Wrestrict \-Wno\-return\-local\-addr
  335. \&\-Wreturn\-type \-Wsequence\-point \-Wshadow \-Wno\-shadow\-ivar
  336. \&\-Wshadow=global, \-Wshadow=local, \-Wshadow=compatible\-local
  337. \&\-Wshift\-overflow \-Wshift\-overflow=\fR\fIn\fR
  338. \&\fB\-Wshift\-count\-negative \-Wshift\-count\-overflow \-Wshift\-negative\-value
  339. \&\-Wsign\-compare \-Wsign\-conversion \-Wfloat\-conversion
  340. \&\-Wno\-scalar\-storage\-order \-Wsizeof\-pointer\-div
  341. \&\-Wsizeof\-pointer\-memaccess \-Wsizeof\-array\-argument
  342. \&\-Wstack\-protector \-Wstack\-usage=\fR\fIlen\fR \fB\-Wstrict\-aliasing
  343. \&\-Wstrict\-aliasing=n \-Wstrict\-overflow \-Wstrict\-overflow=\fR\fIn\fR
  344. \&\fB\-Wstringop\-overflow=\fR\fIn\fR \fB\-Wstringop\-truncation
  345. \&\-Wsuggest\-attribute=\fR[\fBpure\fR|\fBconst\fR|\fBnoreturn\fR|\fBformat\fR|\fBmalloc\fR]
  346. \&\fB\-Wsuggest\-final\-types \-Wsuggest\-final\-methods \-Wsuggest\-override
  347. \&\-Wmissing\-format\-attribute \-Wsubobject\-linkage
  348. \&\-Wswitch \-Wswitch\-bool \-Wswitch\-default \-Wswitch\-enum
  349. \&\-Wswitch\-unreachable \-Wsync\-nand
  350. \&\-Wsystem\-headers \-Wtautological\-compare \-Wtrampolines \-Wtrigraphs
  351. \&\-Wtype\-limits \-Wundef
  352. \&\-Wuninitialized \-Wunknown\-pragmas
  353. \&\-Wunsuffixed\-float\-constants \-Wunused \-Wunused\-function
  354. \&\-Wunused\-label \-Wunused\-local\-typedefs \-Wunused\-macros
  355. \&\-Wunused\-parameter \-Wno\-unused\-result
  356. \&\-Wunused\-value \-Wunused\-variable
  357. \&\-Wunused\-const\-variable \-Wunused\-const\-variable=\fR\fIn\fR
  358. \&\fB\-Wunused\-but\-set\-parameter \-Wunused\-but\-set\-variable
  359. \&\-Wuseless\-cast \-Wvariadic\-macros \-Wvector\-operation\-performance
  360. \&\-Wvla \-Wvla\-larger\-than=\fR\fIn\fR \fB\-Wvolatile\-register\-var \-Wwrite\-strings
  361. \&\-Wzero\-as\-null\-pointer\-constant \-Whsa\fR
  362. .IP "\fIC and Objective-C-only Warning Options\fR" 4
  363. .IX Item "C and Objective-C-only Warning Options"
  364. \&\fB\-Wbad\-function\-cast \-Wmissing\-declarations
  365. \&\-Wmissing\-parameter\-type \-Wmissing\-prototypes \-Wnested\-externs
  366. \&\-Wold\-style\-declaration \-Wold\-style\-definition
  367. \&\-Wstrict\-prototypes \-Wtraditional \-Wtraditional\-conversion
  368. \&\-Wdeclaration\-after\-statement \-Wpointer\-sign\fR
  369. .IP "\fIDebugging Options\fR" 4
  370. .IX Item "Debugging Options"
  371. \&\fB\-g \-g\fR\fIlevel\fR \fB\-gdwarf \-gdwarf\-\fR\fIversion\fR
  372. \&\fB\-ggdb \-grecord\-gcc\-switches \-gno\-record\-gcc\-switches
  373. \&\-gstabs \-gstabs+ \-gstrict\-dwarf \-gno\-strict\-dwarf
  374. \&\-gas\-loc\-support \-gno\-as\-loc\-support
  375. \&\-gas\-locview\-support \-gno\-as\-locview\-support
  376. \&\-gcolumn\-info \-gno\-column\-info
  377. \&\-gstatement\-frontiers \-gno\-statement\-frontiers
  378. \&\-gvariable\-location\-views \-gno\-variable\-location\-views
  379. \&\-ginternal\-reset\-location\-views \-gno\-internal\-reset\-location\-views
  380. \&\-ginline\-points \-gno\-inline\-points
  381. \&\-gvms \-gxcoff \-gxcoff+ \-gz\fR[\fB=\fR\fItype\fR]
  382. \&\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR \fB\-fdebug\-types\-section
  383. \&\-fno\-eliminate\-unused\-debug\-types
  384. \&\-femit\-struct\-debug\-baseonly \-femit\-struct\-debug\-reduced
  385. \&\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]
  386. \&\fB\-feliminate\-unused\-debug\-symbols \-femit\-class\-debug\-always
  387. \&\-fno\-merge\-debug\-strings \-fno\-dwarf2\-cfi\-asm
  388. \&\-fvar\-tracking \-fvar\-tracking\-assignments\fR
  389. .IP "\fIOptimization Options\fR" 4
  390. .IX Item "Optimization Options"
  391. \&\fB\-faggressive\-loop\-optimizations \-falign\-functions[=\fR\fIn\fR\fB]
  392. \&\-falign\-jumps[=\fR\fIn\fR\fB]
  393. \&\-falign\-labels[=\fR\fIn\fR\fB] \-falign\-loops[=\fR\fIn\fR\fB]
  394. \&\-fassociative\-math \-fauto\-profile \-fauto\-profile[=\fR\fIpath\fR\fB]
  395. \&\-fauto\-inc\-dec \-fbranch\-probabilities
  396. \&\-fbranch\-target\-load\-optimize \-fbranch\-target\-load\-optimize2
  397. \&\-fbtr\-bb\-exclusive \-fcaller\-saves
  398. \&\-fcombine\-stack\-adjustments \-fconserve\-stack
  399. \&\-fcompare\-elim \-fcprop\-registers \-fcrossjumping
  400. \&\-fcse\-follow\-jumps \-fcse\-skip\-blocks \-fcx\-fortran\-rules
  401. \&\-fcx\-limited\-range
  402. \&\-fdata\-sections \-fdce \-fdelayed\-branch
  403. \&\-fdelete\-null\-pointer\-checks \-fdevirtualize \-fdevirtualize\-speculatively
  404. \&\-fdevirtualize\-at\-ltrans \-fdse
  405. \&\-fearly\-inlining \-fipa\-sra \-fexpensive\-optimizations \-ffat\-lto\-objects
  406. \&\-ffast\-math \-ffinite\-math\-only \-ffloat\-store \-fexcess\-precision=\fR\fIstyle\fR
  407. \&\fB\-fforward\-propagate \-ffp\-contract=\fR\fIstyle\fR \fB\-ffunction\-sections
  408. \&\-fgcse \-fgcse\-after\-reload \-fgcse\-las \-fgcse\-lm \-fgraphite\-identity
  409. \&\-fgcse\-sm \-fhoist\-adjacent\-loads \-fif\-conversion
  410. \&\-fif\-conversion2 \-findirect\-inlining
  411. \&\-finline\-functions \-finline\-functions\-called\-once \-finline\-limit=\fR\fIn\fR
  412. \&\fB\-finline\-small\-functions \-fipa\-cp \-fipa\-cp\-clone
  413. \&\-fipa\-bit\-cp \-fipa\-vrp
  414. \&\-fipa\-pta \-fipa\-profile \-fipa\-pure\-const \-fipa\-reference \-fipa\-icf
  415. \&\-fira\-algorithm=\fR\fIalgorithm\fR
  416. \&\fB\-fira\-region=\fR\fIregion\fR \fB\-fira\-hoist\-pressure
  417. \&\-fira\-loop\-pressure \-fno\-ira\-share\-save\-slots
  418. \&\-fno\-ira\-share\-spill\-slots
  419. \&\-fisolate\-erroneous\-paths\-dereference \-fisolate\-erroneous\-paths\-attribute
  420. \&\-fivopts \-fkeep\-inline\-functions \-fkeep\-static\-functions
  421. \&\-fkeep\-static\-consts \-flimit\-function\-alignment \-flive\-range\-shrinkage
  422. \&\-floop\-block \-floop\-interchange \-floop\-strip\-mine
  423. \&\-floop\-unroll\-and\-jam \-floop\-nest\-optimize
  424. \&\-floop\-parallelize\-all \-flra\-remat \-flto \-flto\-compression\-level
  425. \&\-flto\-partition=\fR\fIalg\fR \fB\-fmerge\-all\-constants
  426. \&\-fmerge\-constants \-fmodulo\-sched \-fmodulo\-sched\-allow\-regmoves
  427. \&\-fmove\-loop\-invariants \-fno\-branch\-count\-reg
  428. \&\-fno\-defer\-pop \-fno\-fp\-int\-builtin\-inexact \-fno\-function\-cse
  429. \&\-fno\-guess\-branch\-probability \-fno\-inline \-fno\-math\-errno \-fno\-peephole
  430. \&\-fno\-peephole2 \-fno\-printf\-return\-value \-fno\-sched\-interblock
  431. \&\-fno\-sched\-spec \-fno\-signed\-zeros
  432. \&\-fno\-toplevel\-reorder \-fno\-trapping\-math \-fno\-zero\-initialized\-in\-bss
  433. \&\-fomit\-frame\-pointer \-foptimize\-sibling\-calls
  434. \&\-fpartial\-inlining \-fpeel\-loops \-fpredictive\-commoning
  435. \&\-fprefetch\-loop\-arrays
  436. \&\-fprofile\-correction
  437. \&\-fprofile\-use \-fprofile\-use=\fR\fIpath\fR \fB\-fprofile\-values
  438. \&\-fprofile\-reorder\-functions
  439. \&\-freciprocal\-math \-free \-frename\-registers \-freorder\-blocks
  440. \&\-freorder\-blocks\-algorithm=\fR\fIalgorithm\fR
  441. \&\fB\-freorder\-blocks\-and\-partition \-freorder\-functions
  442. \&\-frerun\-cse\-after\-loop \-freschedule\-modulo\-scheduled\-loops
  443. \&\-frounding\-math \-fsched2\-use\-superblocks \-fsched\-pressure
  444. \&\-fsched\-spec\-load \-fsched\-spec\-load\-dangerous
  445. \&\-fsched\-stalled\-insns\-dep[=\fR\fIn\fR\fB] \-fsched\-stalled\-insns[=\fR\fIn\fR\fB]
  446. \&\-fsched\-group\-heuristic \-fsched\-critical\-path\-heuristic
  447. \&\-fsched\-spec\-insn\-heuristic \-fsched\-rank\-heuristic
  448. \&\-fsched\-last\-insn\-heuristic \-fsched\-dep\-count\-heuristic
  449. \&\-fschedule\-fusion
  450. \&\-fschedule\-insns \-fschedule\-insns2 \-fsection\-anchors
  451. \&\-fselective\-scheduling \-fselective\-scheduling2
  452. \&\-fsel\-sched\-pipelining \-fsel\-sched\-pipelining\-outer\-loops
  453. \&\-fsemantic\-interposition \-fshrink\-wrap \-fshrink\-wrap\-separate
  454. \&\-fsignaling\-nans
  455. \&\-fsingle\-precision\-constant \-fsplit\-ivs\-in\-unroller \-fsplit\-loops
  456. \&\-fsplit\-paths
  457. \&\-fsplit\-wide\-types \-fssa\-backprop \-fssa\-phiopt
  458. \&\-fstdarg\-opt \-fstore\-merging \-fstrict\-aliasing
  459. \&\-fthread\-jumps \-ftracer \-ftree\-bit\-ccp
  460. \&\-ftree\-builtin\-call\-dce \-ftree\-ccp \-ftree\-ch
  461. \&\-ftree\-coalesce\-vars \-ftree\-copy\-prop \-ftree\-dce \-ftree\-dominator\-opts
  462. \&\-ftree\-dse \-ftree\-forwprop \-ftree\-fre \-fcode\-hoisting
  463. \&\-ftree\-loop\-if\-convert \-ftree\-loop\-im
  464. \&\-ftree\-phiprop \-ftree\-loop\-distribution \-ftree\-loop\-distribute\-patterns
  465. \&\-ftree\-loop\-ivcanon \-ftree\-loop\-linear \-ftree\-loop\-optimize
  466. \&\-ftree\-loop\-vectorize
  467. \&\-ftree\-parallelize\-loops=\fR\fIn\fR \fB\-ftree\-pre \-ftree\-partial\-pre \-ftree\-pta
  468. \&\-ftree\-reassoc \-ftree\-sink \-ftree\-slsr \-ftree\-sra
  469. \&\-ftree\-switch\-conversion \-ftree\-tail\-merge
  470. \&\-ftree\-ter \-ftree\-vectorize \-ftree\-vrp \-funconstrained\-commons
  471. \&\-funit\-at\-a\-time \-funroll\-all\-loops \-funroll\-loops
  472. \&\-funsafe\-math\-optimizations \-funswitch\-loops
  473. \&\-fipa\-ra \-fvariable\-expansion\-in\-unroller \-fvect\-cost\-model \-fvpt
  474. \&\-fweb \-fwhole\-program \-fwpa \-fuse\-linker\-plugin
  475. \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
  476. \&\fB\-O \-O0 \-O1 \-O2 \-O3 \-Os \-Ofast \-Og\fR
  477. .IP "\fIProgram Instrumentation Options\fR" 4
  478. .IX Item "Program Instrumentation Options"
  479. \&\fB\-p \-pg \-fprofile\-arcs \-\-coverage \-ftest\-coverage
  480. \&\-fprofile\-abs\-path
  481. \&\-fprofile\-dir=\fR\fIpath\fR \fB\-fprofile\-generate \-fprofile\-generate=\fR\fIpath\fR
  482. \&\fB\-fsanitize=\fR\fIstyle\fR \fB\-fsanitize\-recover \-fsanitize\-recover=\fR\fIstyle\fR
  483. \&\fB\-fasan\-shadow\-offset=\fR\fInumber\fR \fB\-fsanitize\-sections=\fR\fIs1\fR\fB,\fR\fIs2\fR\fB,...
  484. \&\-fsanitize\-undefined\-trap\-on\-error \-fbounds\-check
  485. \&\-fcheck\-pointer\-bounds \-fchkp\-check\-incomplete\-type
  486. \&\-fchkp\-first\-field\-has\-own\-bounds \-fchkp\-narrow\-bounds
  487. \&\-fchkp\-narrow\-to\-innermost\-array \-fchkp\-optimize
  488. \&\-fchkp\-use\-fast\-string\-functions \-fchkp\-use\-nochk\-string\-functions
  489. \&\-fchkp\-use\-static\-bounds \-fchkp\-use\-static\-const\-bounds
  490. \&\-fchkp\-treat\-zero\-dynamic\-size\-as\-infinite \-fchkp\-check\-read
  491. \&\-fchkp\-check\-read \-fchkp\-check\-write \-fchkp\-store\-bounds
  492. \&\-fchkp\-instrument\-calls \-fchkp\-instrument\-marked\-only
  493. \&\-fchkp\-use\-wrappers \-fchkp\-flexible\-struct\-trailing\-arrays
  494. \&\-fcf\-protection=\fR[\fBfull\fR|\fBbranch\fR|\fBreturn\fR|\fBnone\fR]
  495. \&\fB\-fstack\-protector \-fstack\-protector\-all \-fstack\-protector\-strong
  496. \&\-fstack\-protector\-explicit \-fstack\-check
  497. \&\-fstack\-limit\-register=\fR\fIreg\fR \fB\-fstack\-limit\-symbol=\fR\fIsym\fR
  498. \&\fB\-fno\-stack\-limit \-fsplit\-stack
  499. \&\-fvtable\-verify=\fR[\fBstd\fR|\fBpreinit\fR|\fBnone\fR]
  500. \&\fB\-fvtv\-counts \-fvtv\-debug
  501. \&\-finstrument\-functions
  502. \&\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...
  503. \&\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR
  504. .IP "\fIPreprocessor Options\fR" 4
  505. .IX Item "Preprocessor Options"
  506. \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR
  507. \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR]
  508. \&\fB\-C \-CC \-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]
  509. \&\fB\-dD \-dI \-dM \-dN \-dU
  510. \&\-fdebug\-cpp \-fdirectives\-only \-fdollars\-in\-identifiers
  511. \&\-fexec\-charset=\fR\fIcharset\fR \fB\-fextended\-identifiers
  512. \&\-finput\-charset=\fR\fIcharset\fR \fB\-fmacro\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR
  513. \&\fB\-fno\-canonical\-system\-headers \-fpch\-deps \-fpch\-preprocess
  514. \&\-fpreprocessed \-ftabstop=\fR\fIwidth\fR \fB\-ftrack\-macro\-expansion
  515. \&\-fwide\-exec\-charset=\fR\fIcharset\fR \fB\-fworking\-directory
  516. \&\-H \-imacros\fR \fIfile\fR \fB\-include\fR \fIfile\fR
  517. \&\fB\-M \-MD \-MF \-MG \-MM \-MMD \-MP \-MQ \-MT
  518. \&\-no\-integrated\-cpp \-P \-pthread \-remap
  519. \&\-traditional \-traditional\-cpp \-trigraphs
  520. \&\-U\fR\fImacro\fR \fB\-undef
  521. \&\-Wp,\fR\fIoption\fR \fB\-Xpreprocessor\fR \fIoption\fR
  522. .IP "\fIAssembler Options\fR" 4
  523. .IX Item "Assembler Options"
  524. \&\fB\-Wa,\fR\fIoption\fR \fB\-Xassembler\fR \fIoption\fR
  525. .IP "\fILinker Options\fR" 4
  526. .IX Item "Linker Options"
  527. \&\fIobject-file-name\fR \fB\-fuse\-ld=\fR\fIlinker\fR \fB\-l\fR\fIlibrary\fR
  528. \&\fB\-nostartfiles \-nodefaultlibs \-nostdlib \-pie \-pthread \-rdynamic
  529. \&\-s \-static \-static\-pie \-static\-libgcc \-static\-libstdc++
  530. \&\-static\-libasan \-static\-libtsan \-static\-liblsan \-static\-libubsan
  531. \&\-static\-libmpx \-static\-libmpxwrappers
  532. \&\-shared \-shared\-libgcc \-symbolic
  533. \&\-T\fR \fIscript\fR \fB\-Wl,\fR\fIoption\fR \fB\-Xlinker\fR \fIoption\fR
  534. \&\fB\-u\fR \fIsymbol\fR \fB\-z\fR \fIkeyword\fR
  535. .IP "\fIDirectory Options\fR" 4
  536. .IX Item "Directory Options"
  537. \&\fB\-B\fR\fIprefix\fR \fB\-I\fR\fIdir\fR \fB\-I\-
  538. \&\-idirafter\fR \fIdir\fR
  539. \&\fB\-imacros\fR \fIfile\fR \fB\-imultilib\fR \fIdir\fR
  540. \&\fB\-iplugindir=\fR\fIdir\fR \fB\-iprefix\fR \fIfile\fR
  541. \&\fB\-iquote\fR \fIdir\fR \fB\-isysroot\fR \fIdir\fR \fB\-isystem\fR \fIdir\fR
  542. \&\fB\-iwithprefix\fR \fIdir\fR \fB\-iwithprefixbefore\fR \fIdir\fR
  543. \&\fB\-L\fR\fIdir\fR \fB\-no\-canonical\-prefixes \-\-no\-sysroot\-suffix
  544. \&\-nostdinc \-nostdinc++ \-\-sysroot=\fR\fIdir\fR
  545. .IP "\fICode Generation Options\fR" 4
  546. .IX Item "Code Generation Options"
  547. \&\fB\-fcall\-saved\-\fR\fIreg\fR \fB\-fcall\-used\-\fR\fIreg\fR
  548. \&\fB\-ffixed\-\fR\fIreg\fR \fB\-fexceptions
  549. \&\-fnon\-call\-exceptions \-fdelete\-dead\-exceptions \-funwind\-tables
  550. \&\-fasynchronous\-unwind\-tables
  551. \&\-fno\-gnu\-unique
  552. \&\-finhibit\-size\-directive \-fno\-common \-fno\-ident
  553. \&\-fpcc\-struct\-return \-fpic \-fPIC \-fpie \-fPIE \-fno\-plt
  554. \&\-fno\-jump\-tables
  555. \&\-frecord\-gcc\-switches
  556. \&\-freg\-struct\-return \-fshort\-enums \-fshort\-wchar
  557. \&\-fverbose\-asm \-fpack\-struct[=\fR\fIn\fR\fB]
  558. \&\-fleading\-underscore \-ftls\-model=\fR\fImodel\fR
  559. \&\fB\-fstack\-reuse=\fR\fIreuse_level\fR
  560. \&\fB\-ftrampolines \-ftrapv \-fwrapv
  561. \&\-fvisibility=\fR[\fBdefault\fR|\fBinternal\fR|\fBhidden\fR|\fBprotected\fR]
  562. \&\fB\-fstrict\-volatile\-bitfields \-fsync\-libcalls\fR
  563. .IP "\fIDeveloper Options\fR" 4
  564. .IX Item "Developer Options"
  565. \&\fB\-d\fR\fIletters\fR \fB\-dumpspecs \-dumpmachine \-dumpversion
  566. \&\-dumpfullversion \-fchecking \-fchecking=\fR\fIn\fR \fB\-fdbg\-cnt\-list
  567. \&\-fdbg\-cnt=\fR\fIcounter-value-list\fR
  568. \&\fB\-fdisable\-ipa\-\fR\fIpass_name\fR
  569. \&\fB\-fdisable\-rtl\-\fR\fIpass_name\fR
  570. \&\fB\-fdisable\-rtl\-\fR\fIpass-name\fR\fB=\fR\fIrange-list\fR
  571. \&\fB\-fdisable\-tree\-\fR\fIpass_name\fR
  572. \&\fB\-fdisable\-tree\-\fR\fIpass-name\fR\fB=\fR\fIrange-list\fR
  573. \&\fB\-fdump\-noaddr \-fdump\-unnumbered \-fdump\-unnumbered\-links
  574. \&\-fdump\-class\-hierarchy\fR[\fB\-\fR\fIn\fR]
  575. \&\fB\-fdump\-final\-insns\fR[\fB=\fR\fIfile\fR]
  576. \&\fB\-fdump\-ipa\-all \-fdump\-ipa\-cgraph \-fdump\-ipa\-inline
  577. \&\-fdump\-lang\-all
  578. \&\-fdump\-lang\-\fR\fIswitch\fR
  579. \&\fB\-fdump\-lang\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR
  580. \&\fB\-fdump\-lang\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR
  581. \&\fB\-fdump\-passes
  582. \&\-fdump\-rtl\-\fR\fIpass\fR \fB\-fdump\-rtl\-\fR\fIpass\fR\fB=\fR\fIfilename\fR
  583. \&\fB\-fdump\-statistics
  584. \&\-fdump\-tree\-all
  585. \&\-fdump\-tree\-\fR\fIswitch\fR
  586. \&\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR
  587. \&\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR
  588. \&\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR] \fB\-fcompare\-debug\-second
  589. \&\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR
  590. \&\fB\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR
  591. \&\fB\-fira\-verbose=\fR\fIn\fR
  592. \&\fB\-flto\-report \-flto\-report\-wpa \-fmem\-report\-wpa
  593. \&\-fmem\-report \-fpre\-ipa\-mem\-report \-fpost\-ipa\-mem\-report
  594. \&\-fopt\-info \-fopt\-info\-\fR\fIoptions\fR[\fB=\fR\fIfile\fR]
  595. \&\fB\-fprofile\-report
  596. \&\-frandom\-seed=\fR\fIstring\fR \fB\-fsched\-verbose=\fR\fIn\fR
  597. \&\fB\-fsel\-sched\-verbose \-fsel\-sched\-dump\-cfg \-fsel\-sched\-pipelining\-verbose
  598. \&\-fstats \-fstack\-usage \-ftime\-report \-ftime\-report\-details
  599. \&\-fvar\-tracking\-assignments\-toggle \-gtoggle
  600. \&\-print\-file\-name=\fR\fIlibrary\fR \fB\-print\-libgcc\-file\-name
  601. \&\-print\-multi\-directory \-print\-multi\-lib \-print\-multi\-os\-directory
  602. \&\-print\-prog\-name=\fR\fIprogram\fR \fB\-print\-search\-dirs \-Q
  603. \&\-print\-sysroot \-print\-sysroot\-headers\-suffix
  604. \&\-save\-temps \-save\-temps=cwd \-save\-temps=obj \-time\fR[\fB=\fR\fIfile\fR]
  605. .IP "\fIMachine-Dependent Options\fR" 4
  606. .IX Item "Machine-Dependent Options"
  607. \&\fIAArch64 Options\fR
  608. \&\fB\-mabi=\fR\fIname\fR \fB\-mbig\-endian \-mlittle\-endian
  609. \&\-mgeneral\-regs\-only
  610. \&\-mcmodel=tiny \-mcmodel=small \-mcmodel=large
  611. \&\-mstrict\-align
  612. \&\-momit\-leaf\-frame\-pointer
  613. \&\-mtls\-dialect=desc \-mtls\-dialect=traditional
  614. \&\-mtls\-size=\fR\fIsize\fR
  615. \&\fB\-mfix\-cortex\-a53\-835769 \-mfix\-cortex\-a53\-843419
  616. \&\-mlow\-precision\-recip\-sqrt \-mlow\-precision\-sqrt \-mlow\-precision\-div
  617. \&\-mpc\-relative\-literal\-loads
  618. \&\-msign\-return\-address=\fR\fIscope\fR
  619. \&\fB\-march=\fR\fIname\fR \fB\-mcpu=\fR\fIname\fR \fB\-mtune=\fR\fIname\fR
  620. \&\fB\-moverride=\fR\fIstring\fR \fB\-mverbose\-cost\-dump\fR
  621. .Sp
  622. \&\fIAdapteva Epiphany Options\fR
  623. \&\fB\-mhalf\-reg\-file \-mprefer\-short\-insn\-regs
  624. \&\-mbranch\-cost=\fR\fInum\fR \fB\-mcmove \-mnops=\fR\fInum\fR \fB\-msoft\-cmpsf
  625. \&\-msplit\-lohi \-mpost\-inc \-mpost\-modify \-mstack\-offset=\fR\fInum\fR
  626. \&\fB\-mround\-nearest \-mlong\-calls \-mshort\-calls \-msmall16
  627. \&\-mfp\-mode=\fR\fImode\fR \fB\-mvect\-double \-max\-vect\-align=\fR\fInum\fR
  628. \&\fB\-msplit\-vecmove\-early \-m1reg\-\fR\fIreg\fR
  629. .Sp
  630. \&\fI\s-1ARC\s0 Options\fR
  631. \&\fB\-mbarrel\-shifter \-mjli\-always
  632. \&\-mcpu=\fR\fIcpu\fR \fB\-mA6 \-mARC600 \-mA7 \-mARC700
  633. \&\-mdpfp \-mdpfp\-compact \-mdpfp\-fast \-mno\-dpfp\-lrsr
  634. \&\-mea \-mno\-mpy \-mmul32x16 \-mmul64 \-matomic
  635. \&\-mnorm \-mspfp \-mspfp\-compact \-mspfp\-fast \-msimd \-msoft\-float \-mswap
  636. \&\-mcrc \-mdsp\-packa \-mdvbf \-mlock \-mmac\-d16 \-mmac\-24 \-mrtsc \-mswape
  637. \&\-mtelephony \-mxy \-misize \-mannotate\-align \-marclinux \-marclinux_prof
  638. \&\-mlong\-calls \-mmedium\-calls \-msdata \-mirq\-ctrl\-saved
  639. \&\-mrgf\-banked\-regs \-mlpc\-width=\fR\fIwidth\fR \fB\-G\fR \fInum\fR
  640. \&\fB\-mvolatile\-cache \-mtp\-regno=\fR\fIregno\fR
  641. \&\fB\-malign\-call \-mauto\-modify\-reg \-mbbit\-peephole \-mno\-brcc
  642. \&\-mcase\-vector\-pcrel \-mcompact\-casesi \-mno\-cond\-exec \-mearly\-cbranchsi
  643. \&\-mexpand\-adddi \-mindexed\-loads \-mlra \-mlra\-priority\-none
  644. \&\-mlra\-priority\-compact mlra-priority-noncompact \-mno\-millicode
  645. \&\-mmixed\-code \-mq\-class \-mRcq \-mRcw \-msize\-level=\fR\fIlevel\fR
  646. \&\fB\-mtune=\fR\fIcpu\fR \fB\-mmultcost=\fR\fInum\fR
  647. \&\fB\-munalign\-prob\-threshold=\fR\fIprobability\fR \fB\-mmpy\-option=\fR\fImulto\fR
  648. \&\fB\-mdiv\-rem \-mcode\-density \-mll64 \-mfpu=\fR\fIfpu\fR \fB\-mrf16\fR
  649. .Sp
  650. \&\fI\s-1ARM\s0 Options\fR
  651. \&\fB\-mapcs\-frame \-mno\-apcs\-frame
  652. \&\-mabi=\fR\fIname\fR
  653. \&\fB\-mapcs\-stack\-check \-mno\-apcs\-stack\-check
  654. \&\-mapcs\-reentrant \-mno\-apcs\-reentrant
  655. \&\-msched\-prolog \-mno\-sched\-prolog
  656. \&\-mlittle\-endian \-mbig\-endian
  657. \&\-mbe8 \-mbe32
  658. \&\-mfloat\-abi=\fR\fIname\fR
  659. \&\fB\-mfp16\-format=\fR\fIname\fR
  660. \&\fB\-mthumb\-interwork \-mno\-thumb\-interwork
  661. \&\-mcpu=\fR\fIname\fR \fB\-march=\fR\fIname\fR \fB\-mfpu=\fR\fIname\fR
  662. \&\fB\-mtune=\fR\fIname\fR \fB\-mprint\-tune\-info
  663. \&\-mstructure\-size\-boundary=\fR\fIn\fR
  664. \&\fB\-mabort\-on\-noreturn
  665. \&\-mlong\-calls \-mno\-long\-calls
  666. \&\-msingle\-pic\-base \-mno\-single\-pic\-base
  667. \&\-mpic\-register=\fR\fIreg\fR
  668. \&\fB\-mnop\-fun\-dllimport
  669. \&\-mpoke\-function\-name
  670. \&\-mthumb \-marm \-mflip\-thumb
  671. \&\-mtpcs\-frame \-mtpcs\-leaf\-frame
  672. \&\-mcaller\-super\-interworking \-mcallee\-super\-interworking
  673. \&\-mtp=\fR\fIname\fR \fB\-mtls\-dialect=\fR\fIdialect\fR
  674. \&\fB\-mword\-relocations
  675. \&\-mfix\-cortex\-m3\-ldrd
  676. \&\-munaligned\-access
  677. \&\-mneon\-for\-64bits
  678. \&\-mslow\-flash\-data
  679. \&\-masm\-syntax\-unified
  680. \&\-mrestrict\-it
  681. \&\-mverbose\-cost\-dump
  682. \&\-mpure\-code
  683. \&\-mcmse\fR
  684. .Sp
  685. \&\fI\s-1AVR\s0 Options\fR
  686. \&\fB\-mmcu=\fR\fImcu\fR \fB\-mabsdata \-maccumulate\-args
  687. \&\-mbranch\-cost=\fR\fIcost\fR
  688. \&\fB\-mcall\-prologues \-mgas\-isr\-prologues \-mint8
  689. \&\-mn_flash=\fR\fIsize\fR \fB\-mno\-interrupts
  690. \&\-mmain\-is\-OS_task \-mrelax \-mrmw \-mstrict\-X \-mtiny\-stack
  691. \&\-mfract\-convert\-truncate
  692. \&\-mshort\-calls \-nodevicelib
  693. \&\-Waddr\-space\-convert \-Wmisspelled\-isr\fR
  694. .Sp
  695. \&\fIBlackfin Options\fR
  696. \&\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]
  697. \&\fB\-msim \-momit\-leaf\-frame\-pointer \-mno\-omit\-leaf\-frame\-pointer
  698. \&\-mspecld\-anomaly \-mno\-specld\-anomaly \-mcsync\-anomaly \-mno\-csync\-anomaly
  699. \&\-mlow\-64k \-mno\-low64k \-mstack\-check\-l1 \-mid\-shared\-library
  700. \&\-mno\-id\-shared\-library \-mshared\-library\-id=\fR\fIn\fR
  701. \&\fB\-mleaf\-id\-shared\-library \-mno\-leaf\-id\-shared\-library
  702. \&\-msep\-data \-mno\-sep\-data \-mlong\-calls \-mno\-long\-calls
  703. \&\-mfast\-fp \-minline\-plt \-mmulticore \-mcorea \-mcoreb \-msdram
  704. \&\-micplb\fR
  705. .Sp
  706. \&\fIC6X Options\fR
  707. \&\fB\-mbig\-endian \-mlittle\-endian \-march=\fR\fIcpu\fR
  708. \&\fB\-msim \-msdata=\fR\fIsdata-type\fR
  709. .Sp
  710. \&\fI\s-1CRIS\s0 Options\fR
  711. \&\fB\-mcpu=\fR\fIcpu\fR \fB\-march=\fR\fIcpu\fR \fB\-mtune=\fR\fIcpu\fR
  712. \&\fB\-mmax\-stack\-frame=\fR\fIn\fR \fB\-melinux\-stacksize=\fR\fIn\fR
  713. \&\fB\-metrax4 \-metrax100 \-mpdebug \-mcc\-init \-mno\-side\-effects
  714. \&\-mstack\-align \-mdata\-align \-mconst\-align
  715. \&\-m32\-bit \-m16\-bit \-m8\-bit \-mno\-prologue\-epilogue \-mno\-gotplt
  716. \&\-melf \-maout \-melinux \-mlinux \-sim \-sim2
  717. \&\-mmul\-bug\-workaround \-mno\-mul\-bug\-workaround\fR
  718. .Sp
  719. \&\fI\s-1CR16\s0 Options\fR
  720. \&\fB\-mmac
  721. \&\-mcr16cplus \-mcr16c
  722. \&\-msim \-mint32 \-mbit\-ops
  723. \&\-mdata\-model=\fR\fImodel\fR
  724. .Sp
  725. \&\fIDarwin Options\fR
  726. \&\fB\-all_load \-allowable_client \-arch \-arch_errors_fatal
  727. \&\-arch_only \-bind_at_load \-bundle \-bundle_loader
  728. \&\-client_name \-compatibility_version \-current_version
  729. \&\-dead_strip
  730. \&\-dependency\-file \-dylib_file \-dylinker_install_name
  731. \&\-dynamic \-dynamiclib \-exported_symbols_list
  732. \&\-filelist \-flat_namespace \-force_cpusubtype_ALL
  733. \&\-force_flat_namespace \-headerpad_max_install_names
  734. \&\-iframework
  735. \&\-image_base \-init \-install_name \-keep_private_externs
  736. \&\-multi_module \-multiply_defined \-multiply_defined_unused
  737. \&\-noall_load \-no_dead_strip_inits_and_terms
  738. \&\-nofixprebinding \-nomultidefs \-noprebind \-noseglinkedit
  739. \&\-pagezero_size \-prebind \-prebind_all_twolevel_modules
  740. \&\-private_bundle \-read_only_relocs \-sectalign
  741. \&\-sectobjectsymbols \-whyload \-seg1addr
  742. \&\-sectcreate \-sectobjectsymbols \-sectorder
  743. \&\-segaddr \-segs_read_only_addr \-segs_read_write_addr
  744. \&\-seg_addr_table \-seg_addr_table_filename \-seglinkedit
  745. \&\-segprot \-segs_read_only_addr \-segs_read_write_addr
  746. \&\-single_module \-static \-sub_library \-sub_umbrella
  747. \&\-twolevel_namespace \-umbrella \-undefined
  748. \&\-unexported_symbols_list \-weak_reference_mismatches
  749. \&\-whatsloaded \-F \-gused \-gfull \-mmacosx\-version\-min=\fR\fIversion\fR
  750. \&\fB\-mkernel \-mone\-byte\-bool\fR
  751. .Sp
  752. \&\fI\s-1DEC\s0 Alpha Options\fR
  753. \&\fB\-mno\-fp\-regs \-msoft\-float
  754. \&\-mieee \-mieee\-with\-inexact \-mieee\-conformant
  755. \&\-mfp\-trap\-mode=\fR\fImode\fR \fB\-mfp\-rounding\-mode=\fR\fImode\fR
  756. \&\fB\-mtrap\-precision=\fR\fImode\fR \fB\-mbuild\-constants
  757. \&\-mcpu=\fR\fIcpu-type\fR \fB\-mtune=\fR\fIcpu-type\fR
  758. \&\fB\-mbwx \-mmax \-mfix \-mcix
  759. \&\-mfloat\-vax \-mfloat\-ieee
  760. \&\-mexplicit\-relocs \-msmall\-data \-mlarge\-data
  761. \&\-msmall\-text \-mlarge\-text
  762. \&\-mmemory\-latency=\fR\fItime\fR
  763. .Sp
  764. \&\fI\s-1FR30\s0 Options\fR
  765. \&\fB\-msmall\-model \-mno\-lsim\fR
  766. .Sp
  767. \&\fI\s-1FT32\s0 Options\fR
  768. \&\fB\-msim \-mlra \-mnodiv \-mft32b \-mcompress \-mnopm\fR
  769. .Sp
  770. \&\fI\s-1FRV\s0 Options\fR
  771. \&\fB\-mgpr\-32 \-mgpr\-64 \-mfpr\-32 \-mfpr\-64
  772. \&\-mhard\-float \-msoft\-float
  773. \&\-malloc\-cc \-mfixed\-cc \-mdword \-mno\-dword
  774. \&\-mdouble \-mno\-double
  775. \&\-mmedia \-mno\-media \-mmuladd \-mno\-muladd
  776. \&\-mfdpic \-minline\-plt \-mgprel\-ro \-multilib\-library\-pic
  777. \&\-mlinked\-fp \-mlong\-calls \-malign\-labels
  778. \&\-mlibrary\-pic \-macc\-4 \-macc\-8
  779. \&\-mpack \-mno\-pack \-mno\-eflags \-mcond\-move \-mno\-cond\-move
  780. \&\-moptimize\-membar \-mno\-optimize\-membar
  781. \&\-mscc \-mno\-scc \-mcond\-exec \-mno\-cond\-exec
  782. \&\-mvliw\-branch \-mno\-vliw\-branch
  783. \&\-mmulti\-cond\-exec \-mno\-multi\-cond\-exec \-mnested\-cond\-exec
  784. \&\-mno\-nested\-cond\-exec \-mtomcat\-stats
  785. \&\-mTLS \-mtls
  786. \&\-mcpu=\fR\fIcpu\fR
  787. .Sp
  788. \&\fIGNU/Linux Options\fR
  789. \&\fB\-mglibc \-muclibc \-mmusl \-mbionic \-mandroid
  790. \&\-tno\-android\-cc \-tno\-android\-ld\fR
  791. .Sp
  792. \&\fIH8/300 Options\fR
  793. \&\fB\-mrelax \-mh \-ms \-mn \-mexr \-mno\-exr \-mint32 \-malign\-300\fR
  794. .Sp
  795. \&\fI\s-1HPPA\s0 Options\fR
  796. \&\fB\-march=\fR\fIarchitecture-type\fR
  797. \&\fB\-mcaller\-copies \-mdisable\-fpregs \-mdisable\-indexing
  798. \&\-mfast\-indirect\-calls \-mgas \-mgnu\-ld \-mhp\-ld
  799. \&\-mfixed\-range=\fR\fIregister-range\fR
  800. \&\fB\-mjump\-in\-delay \-mlinker\-opt \-mlong\-calls
  801. \&\-mlong\-load\-store \-mno\-disable\-fpregs
  802. \&\-mno\-disable\-indexing \-mno\-fast\-indirect\-calls \-mno\-gas
  803. \&\-mno\-jump\-in\-delay \-mno\-long\-load\-store
  804. \&\-mno\-portable\-runtime \-mno\-soft\-float
  805. \&\-mno\-space\-regs \-msoft\-float \-mpa\-risc\-1\-0
  806. \&\-mpa\-risc\-1\-1 \-mpa\-risc\-2\-0 \-mportable\-runtime
  807. \&\-mschedule=\fR\fIcpu-type\fR \fB\-mspace\-regs \-msio \-mwsio
  808. \&\-munix=\fR\fIunix-std\fR \fB\-nolibdld \-static \-threads\fR
  809. .Sp
  810. \&\fI\s-1IA\-64\s0 Options\fR
  811. \&\fB\-mbig\-endian \-mlittle\-endian \-mgnu\-as \-mgnu\-ld \-mno\-pic
  812. \&\-mvolatile\-asm\-stop \-mregister\-names \-msdata \-mno\-sdata
  813. \&\-mconstant\-gp \-mauto\-pic \-mfused\-madd
  814. \&\-minline\-float\-divide\-min\-latency
  815. \&\-minline\-float\-divide\-max\-throughput
  816. \&\-mno\-inline\-float\-divide
  817. \&\-minline\-int\-divide\-min\-latency
  818. \&\-minline\-int\-divide\-max\-throughput
  819. \&\-mno\-inline\-int\-divide
  820. \&\-minline\-sqrt\-min\-latency \-minline\-sqrt\-max\-throughput
  821. \&\-mno\-inline\-sqrt
  822. \&\-mdwarf2\-asm \-mearly\-stop\-bits
  823. \&\-mfixed\-range=\fR\fIregister-range\fR \fB\-mtls\-size=\fR\fItls-size\fR
  824. \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-milp32 \-mlp64
  825. \&\-msched\-br\-data\-spec \-msched\-ar\-data\-spec \-msched\-control\-spec
  826. \&\-msched\-br\-in\-data\-spec \-msched\-ar\-in\-data\-spec \-msched\-in\-control\-spec
  827. \&\-msched\-spec\-ldc \-msched\-spec\-control\-ldc
  828. \&\-msched\-prefer\-non\-data\-spec\-insns \-msched\-prefer\-non\-control\-spec\-insns
  829. \&\-msched\-stop\-bits\-after\-every\-cycle \-msched\-count\-spec\-in\-critical\-path
  830. \&\-msel\-sched\-dont\-check\-control\-spec \-msched\-fp\-mem\-deps\-zero\-cost
  831. \&\-msched\-max\-memory\-insns\-hard\-limit \-msched\-max\-memory\-insns=\fR\fImax-insns\fR
  832. .Sp
  833. \&\fI\s-1LM32\s0 Options\fR
  834. \&\fB\-mbarrel\-shift\-enabled \-mdivide\-enabled \-mmultiply\-enabled
  835. \&\-msign\-extend\-enabled \-muser\-enabled\fR
  836. .Sp
  837. \&\fIM32R/D Options\fR
  838. \&\fB\-m32r2 \-m32rx \-m32r
  839. \&\-mdebug
  840. \&\-malign\-loops \-mno\-align\-loops
  841. \&\-missue\-rate=\fR\fInumber\fR
  842. \&\fB\-mbranch\-cost=\fR\fInumber\fR
  843. \&\fB\-mmodel=\fR\fIcode-size-model-type\fR
  844. \&\fB\-msdata=\fR\fIsdata-type\fR
  845. \&\fB\-mno\-flush\-func \-mflush\-func=\fR\fIname\fR
  846. \&\fB\-mno\-flush\-trap \-mflush\-trap=\fR\fInumber\fR
  847. \&\fB\-G\fR \fInum\fR
  848. .Sp
  849. \&\fIM32C Options\fR
  850. \&\fB\-mcpu=\fR\fIcpu\fR \fB\-msim \-memregs=\fR\fInumber\fR
  851. .Sp
  852. \&\fIM680x0 Options\fR
  853. \&\fB\-march=\fR\fIarch\fR \fB\-mcpu=\fR\fIcpu\fR \fB\-mtune=\fR\fItune\fR
  854. \&\fB\-m68000 \-m68020 \-m68020\-40 \-m68020\-60 \-m68030 \-m68040
  855. \&\-m68060 \-mcpu32 \-m5200 \-m5206e \-m528x \-m5307 \-m5407
  856. \&\-mcfv4e \-mbitfield \-mno\-bitfield \-mc68000 \-mc68020
  857. \&\-mnobitfield \-mrtd \-mno\-rtd \-mdiv \-mno\-div \-mshort
  858. \&\-mno\-short \-mhard\-float \-m68881 \-msoft\-float \-mpcrel
  859. \&\-malign\-int \-mstrict\-align \-msep\-data \-mno\-sep\-data
  860. \&\-mshared\-library\-id=n \-mid\-shared\-library \-mno\-id\-shared\-library
  861. \&\-mxgot \-mno\-xgot \-mlong\-jump\-table\-offsets\fR
  862. .Sp
  863. \&\fIMCore Options\fR
  864. \&\fB\-mhardlit \-mno\-hardlit \-mdiv \-mno\-div \-mrelax\-immediates
  865. \&\-mno\-relax\-immediates \-mwide\-bitfields \-mno\-wide\-bitfields
  866. \&\-m4byte\-functions \-mno\-4byte\-functions \-mcallgraph\-data
  867. \&\-mno\-callgraph\-data \-mslow\-bytes \-mno\-slow\-bytes \-mno\-lsim
  868. \&\-mlittle\-endian \-mbig\-endian \-m210 \-m340 \-mstack\-increment\fR
  869. .Sp
  870. \&\fIMeP Options\fR
  871. \&\fB\-mabsdiff \-mall\-opts \-maverage \-mbased=\fR\fIn\fR \fB\-mbitops
  872. \&\-mc=\fR\fIn\fR \fB\-mclip \-mconfig=\fR\fIname\fR \fB\-mcop \-mcop32 \-mcop64 \-mivc2
  873. \&\-mdc \-mdiv \-meb \-mel \-mio\-volatile \-ml \-mleadz \-mm \-mminmax
  874. \&\-mmult \-mno\-opts \-mrepeat \-ms \-msatur \-msdram \-msim \-msimnovec \-mtf
  875. \&\-mtiny=\fR\fIn\fR
  876. .Sp
  877. \&\fIMicroBlaze Options\fR
  878. \&\fB\-msoft\-float \-mhard\-float \-msmall\-divides \-mcpu=\fR\fIcpu\fR
  879. \&\fB\-mmemcpy \-mxl\-soft\-mul \-mxl\-soft\-div \-mxl\-barrel\-shift
  880. \&\-mxl\-pattern\-compare \-mxl\-stack\-check \-mxl\-gp\-opt \-mno\-clearbss
  881. \&\-mxl\-multiply\-high \-mxl\-float\-convert \-mxl\-float\-sqrt
  882. \&\-mbig\-endian \-mlittle\-endian \-mxl\-reorder \-mxl\-mode\-\fR\fIapp-model\fR
  883. .Sp
  884. \&\fI\s-1MIPS\s0 Options\fR
  885. \&\fB\-EL \-EB \-march=\fR\fIarch\fR \fB\-mtune=\fR\fIarch\fR
  886. \&\fB\-mips1 \-mips2 \-mips3 \-mips4 \-mips32 \-mips32r2 \-mips32r3 \-mips32r5
  887. \&\-mips32r6 \-mips64 \-mips64r2 \-mips64r3 \-mips64r5 \-mips64r6
  888. \&\-mips16 \-mno\-mips16 \-mflip\-mips16
  889. \&\-minterlink\-compressed \-mno\-interlink\-compressed
  890. \&\-minterlink\-mips16 \-mno\-interlink\-mips16
  891. \&\-mabi=\fR\fIabi\fR \fB\-mabicalls \-mno\-abicalls
  892. \&\-mshared \-mno\-shared \-mplt \-mno\-plt \-mxgot \-mno\-xgot
  893. \&\-mgp32 \-mgp64 \-mfp32 \-mfpxx \-mfp64 \-mhard\-float \-msoft\-float
  894. \&\-mno\-float \-msingle\-float \-mdouble\-float
  895. \&\-modd\-spreg \-mno\-odd\-spreg
  896. \&\-mabs=\fR\fImode\fR \fB\-mnan=\fR\fIencoding\fR
  897. \&\fB\-mdsp \-mno\-dsp \-mdspr2 \-mno\-dspr2
  898. \&\-mmcu \-mmno\-mcu
  899. \&\-meva \-mno\-eva
  900. \&\-mvirt \-mno\-virt
  901. \&\-mxpa \-mno\-xpa
  902. \&\-mmicromips \-mno\-micromips
  903. \&\-mmsa \-mno\-msa
  904. \&\-mfpu=\fR\fIfpu-type\fR
  905. \&\fB\-msmartmips \-mno\-smartmips
  906. \&\-mpaired\-single \-mno\-paired\-single \-mdmx \-mno\-mdmx
  907. \&\-mips3d \-mno\-mips3d \-mmt \-mno\-mt \-mllsc \-mno\-llsc
  908. \&\-mlong64 \-mlong32 \-msym32 \-mno\-sym32
  909. \&\-G\fR\fInum\fR \fB\-mlocal\-sdata \-mno\-local\-sdata
  910. \&\-mextern\-sdata \-mno\-extern\-sdata \-mgpopt \-mno\-gopt
  911. \&\-membedded\-data \-mno\-embedded\-data
  912. \&\-muninit\-const\-in\-rodata \-mno\-uninit\-const\-in\-rodata
  913. \&\-mcode\-readable=\fR\fIsetting\fR
  914. \&\fB\-msplit\-addresses \-mno\-split\-addresses
  915. \&\-mexplicit\-relocs \-mno\-explicit\-relocs
  916. \&\-mcheck\-zero\-division \-mno\-check\-zero\-division
  917. \&\-mdivide\-traps \-mdivide\-breaks
  918. \&\-mload\-store\-pairs \-mno\-load\-store\-pairs
  919. \&\-mmemcpy \-mno\-memcpy \-mlong\-calls \-mno\-long\-calls
  920. \&\-mmad \-mno\-mad \-mimadd \-mno\-imadd \-mfused\-madd \-mno\-fused\-madd \-nocpp
  921. \&\-mfix\-24k \-mno\-fix\-24k
  922. \&\-mfix\-r4000 \-mno\-fix\-r4000 \-mfix\-r4400 \-mno\-fix\-r4400
  923. \&\-mfix\-r10000 \-mno\-fix\-r10000 \-mfix\-rm7000 \-mno\-fix\-rm7000
  924. \&\-mfix\-vr4120 \-mno\-fix\-vr4120
  925. \&\-mfix\-vr4130 \-mno\-fix\-vr4130 \-mfix\-sb1 \-mno\-fix\-sb1
  926. \&\-mflush\-func=\fR\fIfunc\fR \fB\-mno\-flush\-func
  927. \&\-mbranch\-cost=\fR\fInum\fR \fB\-mbranch\-likely \-mno\-branch\-likely
  928. \&\-mcompact\-branches=\fR\fIpolicy\fR
  929. \&\fB\-mfp\-exceptions \-mno\-fp\-exceptions
  930. \&\-mvr4130\-align \-mno\-vr4130\-align \-msynci \-mno\-synci
  931. \&\-mlxc1\-sxc1 \-mno\-lxc1\-sxc1 \-mmadd4 \-mno\-madd4
  932. \&\-mrelax\-pic\-calls \-mno\-relax\-pic\-calls \-mmcount\-ra\-address
  933. \&\-mframe\-header\-opt \-mno\-frame\-header\-opt\fR
  934. .Sp
  935. \&\fI\s-1MMIX\s0 Options\fR
  936. \&\fB\-mlibfuncs \-mno\-libfuncs \-mepsilon \-mno\-epsilon \-mabi=gnu
  937. \&\-mabi=mmixware \-mzero\-extend \-mknuthdiv \-mtoplevel\-symbols
  938. \&\-melf \-mbranch\-predict \-mno\-branch\-predict \-mbase\-addresses
  939. \&\-mno\-base\-addresses \-msingle\-exit \-mno\-single\-exit\fR
  940. .Sp
  941. \&\fI\s-1MN10300\s0 Options\fR
  942. \&\fB\-mmult\-bug \-mno\-mult\-bug
  943. \&\-mno\-am33 \-mam33 \-mam33\-2 \-mam34
  944. \&\-mtune=\fR\fIcpu-type\fR
  945. \&\fB\-mreturn\-pointer\-on\-d0
  946. \&\-mno\-crt0 \-mrelax \-mliw \-msetlb\fR
  947. .Sp
  948. \&\fIMoxie Options\fR
  949. \&\fB\-meb \-mel \-mmul.x \-mno\-crt0\fR
  950. .Sp
  951. \&\fI\s-1MSP430\s0 Options\fR
  952. \&\fB\-msim \-masm\-hex \-mmcu= \-mcpu= \-mlarge \-msmall \-mrelax
  953. \&\-mwarn\-mcu
  954. \&\-mcode\-region= \-mdata\-region=
  955. \&\-msilicon\-errata= \-msilicon\-errata\-warn=
  956. \&\-mhwmult= \-minrt\fR
  957. .Sp
  958. \&\fI\s-1NDS32\s0 Options\fR
  959. \&\fB\-mbig\-endian \-mlittle\-endian
  960. \&\-mreduced\-regs \-mfull\-regs
  961. \&\-mcmov \-mno\-cmov
  962. \&\-mext\-perf \-mno\-ext\-perf
  963. \&\-mext\-perf2 \-mno\-ext\-perf2
  964. \&\-mext\-string \-mno\-ext\-string
  965. \&\-mv3push \-mno\-v3push
  966. \&\-m16bit \-mno\-16bit
  967. \&\-misr\-vector\-size=\fR\fInum\fR
  968. \&\fB\-mcache\-block\-size=\fR\fInum\fR
  969. \&\fB\-march=\fR\fIarch\fR
  970. \&\fB\-mcmodel=\fR\fIcode-model\fR
  971. \&\fB\-mctor\-dtor \-mrelax\fR
  972. .Sp
  973. \&\fINios \s-1II\s0 Options\fR
  974. \&\fB\-G\fR \fInum\fR \fB\-mgpopt=\fR\fIoption\fR \fB\-mgpopt \-mno\-gpopt
  975. \&\-mgprel\-sec=\fR\fIregexp\fR \fB\-mr0rel\-sec=\fR\fIregexp\fR
  976. \&\fB\-mel \-meb
  977. \&\-mno\-bypass\-cache \-mbypass\-cache
  978. \&\-mno\-cache\-volatile \-mcache\-volatile
  979. \&\-mno\-fast\-sw\-div \-mfast\-sw\-div
  980. \&\-mhw\-mul \-mno\-hw\-mul \-mhw\-mulx \-mno\-hw\-mulx \-mno\-hw\-div \-mhw\-div
  981. \&\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR \fB\-mno\-custom\-\fR\fIinsn\fR
  982. \&\fB\-mcustom\-fpu\-cfg=\fR\fIname\fR
  983. \&\fB\-mhal \-msmallc \-msys\-crt0=\fR\fIname\fR \fB\-msys\-lib=\fR\fIname\fR
  984. \&\fB\-march=\fR\fIarch\fR \fB\-mbmx \-mno\-bmx \-mcdx \-mno\-cdx\fR
  985. .Sp
  986. \&\fINvidia \s-1PTX\s0 Options\fR
  987. \&\fB\-m32 \-m64 \-mmainkernel \-moptimize\fR
  988. .Sp
  989. \&\fI\s-1PDP\-11\s0 Options\fR
  990. \&\fB\-mfpu \-msoft\-float \-mac0 \-mno\-ac0 \-m40 \-m45 \-m10
  991. \&\-mbcopy \-mbcopy\-builtin \-mint32 \-mno\-int16
  992. \&\-mint16 \-mno\-int32 \-mfloat32 \-mno\-float64
  993. \&\-mfloat64 \-mno\-float32 \-mabshi \-mno\-abshi
  994. \&\-mbranch\-expensive \-mbranch\-cheap
  995. \&\-munix\-asm \-mdec\-asm\fR
  996. .Sp
  997. \&\fIpicoChip Options\fR
  998. \&\fB\-mae=\fR\fIae_type\fR \fB\-mvliw\-lookahead=\fR\fIN\fR
  999. \&\fB\-msymbol\-as\-address \-mno\-inefficient\-warnings\fR
  1000. .Sp
  1001. \&\fIPowerPC Options\fR
  1002. See \s-1RS/6000\s0 and PowerPC Options.
  1003. .Sp
  1004. \&\fIPowerPC \s-1SPE\s0 Options\fR
  1005. \&\fB\-mcpu=\fR\fIcpu-type\fR
  1006. \&\fB\-mtune=\fR\fIcpu-type\fR
  1007. \&\fB\-mmfcrf \-mno\-mfcrf \-mpopcntb \-mno\-popcntb
  1008. \&\-mfull\-toc \-mminimal\-toc \-mno\-fp\-in\-toc \-mno\-sum\-in\-toc
  1009. \&\-m32 \-mxl\-compat \-mno\-xl\-compat
  1010. \&\-malign\-power \-malign\-natural
  1011. \&\-msoft\-float \-mhard\-float \-mmultiple \-mno\-multiple
  1012. \&\-msingle\-float \-mdouble\-float
  1013. \&\-mupdate \-mno\-update
  1014. \&\-mavoid\-indexed\-addresses \-mno\-avoid\-indexed\-addresses
  1015. \&\-mstrict\-align \-mno\-strict\-align \-mrelocatable
  1016. \&\-mno\-relocatable \-mrelocatable\-lib \-mno\-relocatable\-lib
  1017. \&\-mtoc \-mno\-toc \-mlittle \-mlittle\-endian \-mbig \-mbig\-endian
  1018. \&\-msingle\-pic\-base
  1019. \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR
  1020. \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR
  1021. \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR
  1022. \&\fB\-mcall\-sysv \-mcall\-netbsd
  1023. \&\-maix\-struct\-return \-msvr4\-struct\-return
  1024. \&\-mabi=\fR\fIabi-type\fR \fB\-msecure\-plt \-mbss\-plt
  1025. \&\-mblock\-move\-inline\-limit=\fR\fInum\fR
  1026. \&\fB\-misel \-mno\-isel
  1027. \&\-misel=yes \-misel=no
  1028. \&\-mspe \-mno\-spe
  1029. \&\-mspe=yes \-mspe=no
  1030. \&\-mfloat\-gprs=yes \-mfloat\-gprs=no \-mfloat\-gprs=single \-mfloat\-gprs=double
  1031. \&\-mprototype \-mno\-prototype
  1032. \&\-msim \-mmvme \-mads \-myellowknife \-memb \-msdata
  1033. \&\-msdata=\fR\fIopt\fR \fB\-mvxworks \-G\fR \fInum\fR
  1034. \&\fB\-mrecip \-mrecip=\fR\fIopt\fR \fB\-mno\-recip \-mrecip\-precision
  1035. \&\-mno\-recip\-precision
  1036. \&\-mpointers\-to\-nested\-functions \-mno\-pointers\-to\-nested\-functions
  1037. \&\-msave\-toc\-indirect \-mno\-save\-toc\-indirect
  1038. \&\-mcompat\-align\-parm \-mno\-compat\-align\-parm
  1039. \&\-mfloat128 \-mno\-float128
  1040. \&\-mgnu\-attribute \-mno\-gnu\-attribute
  1041. \&\-mstack\-protector\-guard=\fR\fIguard\fR \fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR
  1042. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR
  1043. .Sp
  1044. \&\fIRISC-V Options\fR
  1045. \&\fB\-mbranch\-cost=\fR\fIN\-instruction\fR
  1046. \&\fB\-mplt \-mno\-plt
  1047. \&\-mabi=\fR\fIABI-string\fR
  1048. \&\fB\-mfdiv \-mno\-fdiv
  1049. \&\-mdiv \-mno\-div
  1050. \&\-march=\fR\fIISA-string\fR
  1051. \&\fB\-mtune=\fR\fIprocessor-string\fR
  1052. \&\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR
  1053. \&\fB\-msmall\-data\-limit=\fR\fIN\-bytes\fR
  1054. \&\fB\-msave\-restore \-mno\-save\-restore
  1055. \&\-mstrict\-align \-mno\-strict\-align
  1056. \&\-mcmodel=medlow \-mcmodel=medany
  1057. \&\-mexplicit\-relocs \-mno\-explicit\-relocs
  1058. \&\-mrelax \-mno\-relax
  1059. \&\-mriscv\-attribute \-mmo\-riscv\-attribute
  1060. \&\-malign\-data=\fR\fItype\fR
  1061. .Sp
  1062. \&\fI\s-1RL78\s0 Options\fR
  1063. \&\fB\-msim \-mmul=none \-mmul=g13 \-mmul=g14 \-mallregs
  1064. \&\-mcpu=g10 \-mcpu=g13 \-mcpu=g14 \-mg10 \-mg13 \-mg14
  1065. \&\-m64bit\-doubles \-m32bit\-doubles \-msave\-mduc\-in\-interrupts\fR
  1066. .Sp
  1067. \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
  1068. \&\fB\-mcpu=\fR\fIcpu-type\fR
  1069. \&\fB\-mtune=\fR\fIcpu-type\fR
  1070. \&\fB\-mcmodel=\fR\fIcode-model\fR
  1071. \&\fB\-mpowerpc64
  1072. \&\-maltivec \-mno\-altivec
  1073. \&\-mpowerpc\-gpopt \-mno\-powerpc\-gpopt
  1074. \&\-mpowerpc\-gfxopt \-mno\-powerpc\-gfxopt
  1075. \&\-mmfcrf \-mno\-mfcrf \-mpopcntb \-mno\-popcntb \-mpopcntd \-mno\-popcntd
  1076. \&\-mfprnd \-mno\-fprnd
  1077. \&\-mcmpb \-mno\-cmpb \-mmfpgpr \-mno\-mfpgpr \-mhard\-dfp \-mno\-hard\-dfp
  1078. \&\-mfull\-toc \-mminimal\-toc \-mno\-fp\-in\-toc \-mno\-sum\-in\-toc
  1079. \&\-m64 \-m32 \-mxl\-compat \-mno\-xl\-compat \-mpe
  1080. \&\-malign\-power \-malign\-natural
  1081. \&\-msoft\-float \-mhard\-float \-mmultiple \-mno\-multiple
  1082. \&\-msingle\-float \-mdouble\-float \-msimple\-fpu
  1083. \&\-mupdate \-mno\-update
  1084. \&\-mavoid\-indexed\-addresses \-mno\-avoid\-indexed\-addresses
  1085. \&\-mfused\-madd \-mno\-fused\-madd \-mbit\-align \-mno\-bit\-align
  1086. \&\-mstrict\-align \-mno\-strict\-align \-mrelocatable
  1087. \&\-mno\-relocatable \-mrelocatable\-lib \-mno\-relocatable\-lib
  1088. \&\-mtoc \-mno\-toc \-mlittle \-mlittle\-endian \-mbig \-mbig\-endian
  1089. \&\-mdynamic\-no\-pic \-maltivec \-mswdiv \-msingle\-pic\-base
  1090. \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR
  1091. \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR
  1092. \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR
  1093. \&\fB\-mcall\-aixdesc \-mcall\-eabi \-mcall\-freebsd
  1094. \&\-mcall\-linux \-mcall\-netbsd \-mcall\-openbsd
  1095. \&\-mcall\-sysv \-mcall\-sysv\-eabi \-mcall\-sysv\-noeabi
  1096. \&\-mtraceback=\fR\fItraceback_type\fR
  1097. \&\fB\-maix\-struct\-return \-msvr4\-struct\-return
  1098. \&\-mabi=\fR\fIabi-type\fR \fB\-msecure\-plt \-mbss\-plt
  1099. \&\-mblock\-move\-inline\-limit=\fR\fInum\fR
  1100. \&\fB\-mblock\-compare\-inline\-limit=\fR\fInum\fR
  1101. \&\fB\-mblock\-compare\-inline\-loop\-limit=\fR\fInum\fR
  1102. \&\fB\-mstring\-compare\-inline\-limit=\fR\fInum\fR
  1103. \&\fB\-misel \-mno\-isel
  1104. \&\-misel=yes \-misel=no
  1105. \&\-mpaired
  1106. \&\-mvrsave \-mno\-vrsave
  1107. \&\-mmulhw \-mno\-mulhw
  1108. \&\-mdlmzb \-mno\-dlmzb
  1109. \&\-mprototype \-mno\-prototype
  1110. \&\-msim \-mmvme \-mads \-myellowknife \-memb \-msdata
  1111. \&\-msdata=\fR\fIopt\fR \fB\-mreadonly\-in\-sdata \-mvxworks \-G\fR \fInum\fR
  1112. \&\fB\-mrecip \-mrecip=\fR\fIopt\fR \fB\-mno\-recip \-mrecip\-precision
  1113. \&\-mno\-recip\-precision
  1114. \&\-mveclibabi=\fR\fItype\fR \fB\-mfriz \-mno\-friz
  1115. \&\-mpointers\-to\-nested\-functions \-mno\-pointers\-to\-nested\-functions
  1116. \&\-msave\-toc\-indirect \-mno\-save\-toc\-indirect
  1117. \&\-mpower8\-fusion \-mno\-mpower8\-fusion \-mpower8\-vector \-mno\-power8\-vector
  1118. \&\-mcrypto \-mno\-crypto \-mhtm \-mno\-htm
  1119. \&\-mquad\-memory \-mno\-quad\-memory
  1120. \&\-mquad\-memory\-atomic \-mno\-quad\-memory\-atomic
  1121. \&\-mcompat\-align\-parm \-mno\-compat\-align\-parm
  1122. \&\-mfloat128 \-mno\-float128 \-mfloat128\-hardware \-mno\-float128\-hardware
  1123. \&\-mgnu\-attribute \-mno\-gnu\-attribute
  1124. \&\-mstack\-protector\-guard=\fR\fIguard\fR \fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR
  1125. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR
  1126. .Sp
  1127. \&\fI\s-1RX\s0 Options\fR
  1128. \&\fB\-m64bit\-doubles \-m32bit\-doubles \-fpu \-nofpu
  1129. \&\-mcpu=
  1130. \&\-mbig\-endian\-data \-mlittle\-endian\-data
  1131. \&\-msmall\-data
  1132. \&\-msim \-mno\-sim
  1133. \&\-mas100\-syntax \-mno\-as100\-syntax
  1134. \&\-mrelax
  1135. \&\-mmax\-constant\-size=
  1136. \&\-mint\-register=
  1137. \&\-mpid
  1138. \&\-mallow\-string\-insns \-mno\-allow\-string\-insns
  1139. \&\-mjsr
  1140. \&\-mno\-warn\-multiple\-fast\-interrupts
  1141. \&\-msave\-acc\-in\-interrupts\fR
  1142. .Sp
  1143. \&\fIS/390 and zSeries Options\fR
  1144. \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-march=\fR\fIcpu-type\fR
  1145. \&\fB\-mhard\-float \-msoft\-float \-mhard\-dfp \-mno\-hard\-dfp
  1146. \&\-mlong\-double\-64 \-mlong\-double\-128
  1147. \&\-mbackchain \-mno\-backchain \-mpacked\-stack \-mno\-packed\-stack
  1148. \&\-msmall\-exec \-mno\-small\-exec \-mmvcle \-mno\-mvcle
  1149. \&\-m64 \-m31 \-mdebug \-mno\-debug \-mesa \-mzarch
  1150. \&\-mhtm \-mvx \-mzvector
  1151. \&\-mtpf\-trace \-mno\-tpf\-trace \-mfused\-madd \-mno\-fused\-madd
  1152. \&\-mwarn\-framesize \-mwarn\-dynamicstack \-mstack\-size \-mstack\-guard
  1153. \&\-mhotpatch=\fR\fIhalfwords\fR\fB,\fR\fIhalfwords\fR
  1154. .Sp
  1155. \&\fIScore Options\fR
  1156. \&\fB\-meb \-mel
  1157. \&\-mnhwloop
  1158. \&\-muls
  1159. \&\-mmac
  1160. \&\-mscore5 \-mscore5u \-mscore7 \-mscore7d\fR
  1161. .Sp
  1162. \&\fI\s-1SH\s0 Options\fR
  1163. \&\fB\-m1 \-m2 \-m2e
  1164. \&\-m2a\-nofpu \-m2a\-single\-only \-m2a\-single \-m2a
  1165. \&\-m3 \-m3e
  1166. \&\-m4\-nofpu \-m4\-single\-only \-m4\-single \-m4
  1167. \&\-m4a\-nofpu \-m4a\-single\-only \-m4a\-single \-m4a \-m4al
  1168. \&\-mb \-ml \-mdalign \-mrelax
  1169. \&\-mbigtable \-mfmovd \-mrenesas \-mno\-renesas \-mnomacsave
  1170. \&\-mieee \-mno\-ieee \-mbitops \-misize \-minline\-ic_invalidate \-mpadstruct
  1171. \&\-mprefergot \-musermode \-multcost=\fR\fInumber\fR \fB\-mdiv=\fR\fIstrategy\fR
  1172. \&\fB\-mdivsi3_libfunc=\fR\fIname\fR \fB\-mfixed\-range=\fR\fIregister-range\fR
  1173. \&\fB\-maccumulate\-outgoing\-args
  1174. \&\-matomic\-model=\fR\fIatomic-model\fR
  1175. \&\fB\-mbranch\-cost=\fR\fInum\fR \fB\-mzdcbranch \-mno\-zdcbranch
  1176. \&\-mcbranch\-force\-delay\-slot
  1177. \&\-mfused\-madd \-mno\-fused\-madd \-mfsca \-mno\-fsca \-mfsrra \-mno\-fsrra
  1178. \&\-mpretend\-cmove \-mtas\fR
  1179. .Sp
  1180. \&\fISolaris 2 Options\fR
  1181. \&\fB\-mclear\-hwcap \-mno\-clear\-hwcap \-mimpure\-text \-mno\-impure\-text
  1182. \&\-pthreads\fR
  1183. .Sp
  1184. \&\fI\s-1SPARC\s0 Options\fR
  1185. \&\fB\-mcpu=\fR\fIcpu-type\fR
  1186. \&\fB\-mtune=\fR\fIcpu-type\fR
  1187. \&\fB\-mcmodel=\fR\fIcode-model\fR
  1188. \&\fB\-mmemory\-model=\fR\fImem-model\fR
  1189. \&\fB\-m32 \-m64 \-mapp\-regs \-mno\-app\-regs
  1190. \&\-mfaster\-structs \-mno\-faster\-structs \-mflat \-mno\-flat
  1191. \&\-mfpu \-mno\-fpu \-mhard\-float \-msoft\-float
  1192. \&\-mhard\-quad\-float \-msoft\-quad\-float
  1193. \&\-mstack\-bias \-mno\-stack\-bias
  1194. \&\-mstd\-struct\-return \-mno\-std\-struct\-return
  1195. \&\-munaligned\-doubles \-mno\-unaligned\-doubles
  1196. \&\-muser\-mode \-mno\-user\-mode
  1197. \&\-mv8plus \-mno\-v8plus \-mvis \-mno\-vis
  1198. \&\-mvis2 \-mno\-vis2 \-mvis3 \-mno\-vis3
  1199. \&\-mvis4 \-mno\-vis4 \-mvis4b \-mno\-vis4b
  1200. \&\-mcbcond \-mno\-cbcond \-mfmaf \-mno\-fmaf \-mfsmuld \-mno\-fsmuld
  1201. \&\-mpopc \-mno\-popc \-msubxc \-mno\-subxc
  1202. \&\-mfix\-at697f \-mfix\-ut699 \-mfix\-ut700 \-mfix\-gr712rc
  1203. \&\-mlra \-mno\-lra\fR
  1204. .Sp
  1205. \&\fI\s-1SPU\s0 Options\fR
  1206. \&\fB\-mwarn\-reloc \-merror\-reloc
  1207. \&\-msafe\-dma \-munsafe\-dma
  1208. \&\-mbranch\-hints
  1209. \&\-msmall\-mem \-mlarge\-mem \-mstdmain
  1210. \&\-mfixed\-range=\fR\fIregister-range\fR
  1211. \&\fB\-mea32 \-mea64
  1212. \&\-maddress\-space\-conversion \-mno\-address\-space\-conversion
  1213. \&\-mcache\-size=\fR\fIcache-size\fR
  1214. \&\fB\-matomic\-updates \-mno\-atomic\-updates\fR
  1215. .Sp
  1216. \&\fISystem V Options\fR
  1217. \&\fB\-Qy \-Qn \-YP,\fR\fIpaths\fR \fB\-Ym,\fR\fIdir\fR
  1218. .Sp
  1219. \&\fITILE-Gx Options\fR
  1220. \&\fB\-mcpu=CPU \-m32 \-m64 \-mbig\-endian \-mlittle\-endian
  1221. \&\-mcmodel=\fR\fIcode-model\fR
  1222. .Sp
  1223. \&\fITILEPro Options\fR
  1224. \&\fB\-mcpu=\fR\fIcpu\fR \fB\-m32\fR
  1225. .Sp
  1226. \&\fIV850 Options\fR
  1227. \&\fB\-mlong\-calls \-mno\-long\-calls \-mep \-mno\-ep
  1228. \&\-mprolog\-function \-mno\-prolog\-function \-mspace
  1229. \&\-mtda=\fR\fIn\fR \fB\-msda=\fR\fIn\fR \fB\-mzda=\fR\fIn\fR
  1230. \&\fB\-mapp\-regs \-mno\-app\-regs
  1231. \&\-mdisable\-callt \-mno\-disable\-callt
  1232. \&\-mv850e2v3 \-mv850e2 \-mv850e1 \-mv850es
  1233. \&\-mv850e \-mv850 \-mv850e3v5
  1234. \&\-mloop
  1235. \&\-mrelax
  1236. \&\-mlong\-jumps
  1237. \&\-msoft\-float
  1238. \&\-mhard\-float
  1239. \&\-mgcc\-abi
  1240. \&\-mrh850\-abi
  1241. \&\-mbig\-switch\fR
  1242. .Sp
  1243. \&\fI\s-1VAX\s0 Options\fR
  1244. \&\fB\-mg \-mgnu \-munix\fR
  1245. .Sp
  1246. \&\fIVisium Options\fR
  1247. \&\fB\-mdebug \-msim \-mfpu \-mno\-fpu \-mhard\-float \-msoft\-float
  1248. \&\-mcpu=\fR\fIcpu-type\fR \fB\-mtune=\fR\fIcpu-type\fR \fB\-msv\-mode \-muser\-mode\fR
  1249. .Sp
  1250. \&\fI\s-1VMS\s0 Options\fR
  1251. \&\fB\-mvms\-return\-codes \-mdebug\-main=\fR\fIprefix\fR \fB\-mmalloc64
  1252. \&\-mpointer\-size=\fR\fIsize\fR
  1253. .Sp
  1254. \&\fIVxWorks Options\fR
  1255. \&\fB\-mrtp \-non\-static \-Bstatic \-Bdynamic
  1256. \&\-Xbind\-lazy \-Xbind\-now\fR
  1257. .Sp
  1258. \&\fIx86 Options\fR
  1259. \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-march=\fR\fIcpu-type\fR
  1260. \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR \fB\-mdump\-tune\-features \-mno\-default
  1261. \&\-mfpmath=\fR\fIunit\fR
  1262. \&\fB\-masm=\fR\fIdialect\fR \fB\-mno\-fancy\-math\-387
  1263. \&\-mno\-fp\-ret\-in\-387 \-m80387 \-mhard\-float \-msoft\-float
  1264. \&\-mno\-wide\-multiply \-mrtd \-malign\-double
  1265. \&\-mpreferred\-stack\-boundary=\fR\fInum\fR
  1266. \&\fB\-mincoming\-stack\-boundary=\fR\fInum\fR
  1267. \&\fB\-mcld \-mcx16 \-msahf \-mmovbe \-mcrc32
  1268. \&\-mrecip \-mrecip=\fR\fIopt\fR
  1269. \&\fB\-mvzeroupper \-mprefer\-avx128 \-mprefer\-vector\-width=\fR\fIopt\fR
  1270. \&\fB\-mmmx \-msse \-msse2 \-msse3 \-mssse3 \-msse4.1 \-msse4.2 \-msse4 \-mavx
  1271. \&\-mavx2 \-mavx512f \-mavx512pf \-mavx512er \-mavx512cd \-mavx512vl
  1272. \&\-mavx512bw \-mavx512dq \-mavx512ifma \-mavx512vbmi \-msha \-maes
  1273. \&\-mpclmul \-mfsgsbase \-mrdrnd \-mf16c \-mfma \-mpconfig \-mwbnoinvd
  1274. \&\-mprefetchwt1 \-mclflushopt \-mclwb \-mxsavec \-mxsaves
  1275. \&\-msse4a \-m3dnow \-m3dnowa \-mpopcnt \-mabm \-mbmi \-mtbm \-mfma4 \-mxop
  1276. \&\-madx \-mlzcnt \-mbmi2 \-mfxsr \-mxsave \-mxsaveopt \-mrtm \-mlwp \-mmpx
  1277. \&\-mmwaitx \-mclzero \-mpku \-mthreads \-mgfni \-mvaes
  1278. \&\-mshstk \-mforce\-indirect\-call \-mavx512vbmi2
  1279. \&\-mvpclmulqdq \-mavx512bitalg \-mmovdiri \-mmovdir64b \-mavx512vpopcntdq
  1280. \&\-mavx5124fmaps \-mavx512vnni \-mavx5124vnniw \-mprfchw \-mrdpid
  1281. \&\-mrdseed \-msgx
  1282. \&\-mms\-bitfields \-mno\-align\-stringops \-minline\-all\-stringops
  1283. \&\-minline\-stringops\-dynamically \-mstringop\-strategy=\fR\fIalg\fR
  1284. \&\fB\-mmemcpy\-strategy=\fR\fIstrategy\fR \fB\-mmemset\-strategy=\fR\fIstrategy\fR
  1285. \&\fB\-mpush\-args \-maccumulate\-outgoing\-args \-m128bit\-long\-double
  1286. \&\-m96bit\-long\-double \-mlong\-double\-64 \-mlong\-double\-80 \-mlong\-double\-128
  1287. \&\-mregparm=\fR\fInum\fR \fB\-msseregparm
  1288. \&\-mveclibabi=\fR\fItype\fR \fB\-mvect8\-ret\-in\-mem
  1289. \&\-mpc32 \-mpc64 \-mpc80 \-mstackrealign
  1290. \&\-momit\-leaf\-frame\-pointer \-mno\-red\-zone \-mno\-tls\-direct\-seg\-refs
  1291. \&\-mcmodel=\fR\fIcode-model\fR \fB\-mabi=\fR\fIname\fR \fB\-maddress\-mode=\fR\fImode\fR
  1292. \&\fB\-m32 \-m64 \-mx32 \-m16 \-miamcu \-mlarge\-data\-threshold=\fR\fInum\fR
  1293. \&\fB\-msse2avx \-mfentry \-mrecord\-mcount \-mnop\-mcount \-m8bit\-idiv
  1294. \&\-mavx256\-split\-unaligned\-load \-mavx256\-split\-unaligned\-store
  1295. \&\-malign\-data=\fR\fItype\fR \fB\-mstack\-protector\-guard=\fR\fIguard\fR
  1296. \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR
  1297. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR
  1298. \&\fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR \fB\-mmitigate\-rop
  1299. \&\-mgeneral\-regs\-only \-mcall\-ms2sysv\-xlogues
  1300. \&\-mindirect\-branch=\fR\fIchoice\fR \fB\-mfunction\-return=\fR\fIchoice\fR
  1301. \&\fB\-mindirect\-branch\-register\fR
  1302. .Sp
  1303. \&\fIx86 Windows Options\fR
  1304. \&\fB\-mconsole \-mcygwin \-mno\-cygwin \-mdll
  1305. \&\-mnop\-fun\-dllimport \-mthread
  1306. \&\-municode \-mwin32 \-mwindows \-fno\-set\-stack\-executable\fR
  1307. .Sp
  1308. \&\fIXstormy16 Options\fR
  1309. \&\fB\-msim\fR
  1310. .Sp
  1311. \&\fIXtensa Options\fR
  1312. \&\fB\-mconst16 \-mno\-const16
  1313. \&\-mfused\-madd \-mno\-fused\-madd
  1314. \&\-mforce\-no\-pic
  1315. \&\-mserialize\-volatile \-mno\-serialize\-volatile
  1316. \&\-mtext\-section\-literals \-mno\-text\-section\-literals
  1317. \&\-mauto\-litpools \-mno\-auto\-litpools
  1318. \&\-mtarget\-align \-mno\-target\-align
  1319. \&\-mlongcalls \-mno\-longcalls\fR
  1320. .Sp
  1321. \&\fIzSeries Options\fR
  1322. See S/390 and zSeries Options.
  1323. .SS "Options Controlling the Kind of Output"
  1324. .IX Subsection "Options Controlling the Kind of Output"
  1325. Compilation can involve up to four stages: preprocessing, compilation
  1326. proper, assembly and linking, always in that order. \s-1GCC\s0 is capable of
  1327. preprocessing and compiling several files either into several
  1328. assembler input files, or into one assembler input file; then each
  1329. assembler input file produces an object file, and linking combines all
  1330. the object files (those newly compiled, and those specified as input)
  1331. into an executable file.
  1332. .PP
  1333. For any given input file, the file name suffix determines what kind of
  1334. compilation is done:
  1335. .IP "\fIfile\fR\fB.c\fR" 4
  1336. .IX Item "file.c"
  1337. C source code that must be preprocessed.
  1338. .IP "\fIfile\fR\fB.i\fR" 4
  1339. .IX Item "file.i"
  1340. C source code that should not be preprocessed.
  1341. .IP "\fIfile\fR\fB.ii\fR" 4
  1342. .IX Item "file.ii"
  1343. \&\*(C+ source code that should not be preprocessed.
  1344. .IP "\fIfile\fR\fB.m\fR" 4
  1345. .IX Item "file.m"
  1346. Objective-C source code. Note that you must link with the \fIlibobjc\fR
  1347. library to make an Objective-C program work.
  1348. .IP "\fIfile\fR\fB.mi\fR" 4
  1349. .IX Item "file.mi"
  1350. Objective-C source code that should not be preprocessed.
  1351. .IP "\fIfile\fR\fB.mm\fR" 4
  1352. .IX Item "file.mm"
  1353. .PD 0
  1354. .IP "\fIfile\fR\fB.M\fR" 4
  1355. .IX Item "file.M"
  1356. .PD
  1357. Objective\-\*(C+ source code. Note that you must link with the \fIlibobjc\fR
  1358. library to make an Objective\-\*(C+ program work. Note that \fB.M\fR refers
  1359. to a literal capital M.
  1360. .IP "\fIfile\fR\fB.mii\fR" 4
  1361. .IX Item "file.mii"
  1362. Objective\-\*(C+ source code that should not be preprocessed.
  1363. .IP "\fIfile\fR\fB.h\fR" 4
  1364. .IX Item "file.h"
  1365. C, \*(C+, Objective-C or Objective\-\*(C+ header file to be turned into a
  1366. precompiled header (default), or C, \*(C+ header file to be turned into an
  1367. Ada spec (via the \fB\-fdump\-ada\-spec\fR switch).
  1368. .IP "\fIfile\fR\fB.cc\fR" 4
  1369. .IX Item "file.cc"
  1370. .PD 0
  1371. .IP "\fIfile\fR\fB.cp\fR" 4
  1372. .IX Item "file.cp"
  1373. .IP "\fIfile\fR\fB.cxx\fR" 4
  1374. .IX Item "file.cxx"
  1375. .IP "\fIfile\fR\fB.cpp\fR" 4
  1376. .IX Item "file.cpp"
  1377. .IP "\fIfile\fR\fB.CPP\fR" 4
  1378. .IX Item "file.CPP"
  1379. .IP "\fIfile\fR\fB.c++\fR" 4
  1380. .IX Item "file.c++"
  1381. .IP "\fIfile\fR\fB.C\fR" 4
  1382. .IX Item "file.C"
  1383. .PD
  1384. \&\*(C+ source code that must be preprocessed. Note that in \fB.cxx\fR,
  1385. the last two letters must both be literally \fBx\fR. Likewise,
  1386. \&\fB.C\fR refers to a literal capital C.
  1387. .IP "\fIfile\fR\fB.mm\fR" 4
  1388. .IX Item "file.mm"
  1389. .PD 0
  1390. .IP "\fIfile\fR\fB.M\fR" 4
  1391. .IX Item "file.M"
  1392. .PD
  1393. Objective\-\*(C+ source code that must be preprocessed.
  1394. .IP "\fIfile\fR\fB.mii\fR" 4
  1395. .IX Item "file.mii"
  1396. Objective\-\*(C+ source code that should not be preprocessed.
  1397. .IP "\fIfile\fR\fB.hh\fR" 4
  1398. .IX Item "file.hh"
  1399. .PD 0
  1400. .IP "\fIfile\fR\fB.H\fR" 4
  1401. .IX Item "file.H"
  1402. .IP "\fIfile\fR\fB.hp\fR" 4
  1403. .IX Item "file.hp"
  1404. .IP "\fIfile\fR\fB.hxx\fR" 4
  1405. .IX Item "file.hxx"
  1406. .IP "\fIfile\fR\fB.hpp\fR" 4
  1407. .IX Item "file.hpp"
  1408. .IP "\fIfile\fR\fB.HPP\fR" 4
  1409. .IX Item "file.HPP"
  1410. .IP "\fIfile\fR\fB.h++\fR" 4
  1411. .IX Item "file.h++"
  1412. .IP "\fIfile\fR\fB.tcc\fR" 4
  1413. .IX Item "file.tcc"
  1414. .PD
  1415. \&\*(C+ header file to be turned into a precompiled header or Ada spec.
  1416. .IP "\fIfile\fR\fB.f\fR" 4
  1417. .IX Item "file.f"
  1418. .PD 0
  1419. .IP "\fIfile\fR\fB.for\fR" 4
  1420. .IX Item "file.for"
  1421. .IP "\fIfile\fR\fB.ftn\fR" 4
  1422. .IX Item "file.ftn"
  1423. .PD
  1424. Fixed form Fortran source code that should not be preprocessed.
  1425. .IP "\fIfile\fR\fB.F\fR" 4
  1426. .IX Item "file.F"
  1427. .PD 0
  1428. .IP "\fIfile\fR\fB.FOR\fR" 4
  1429. .IX Item "file.FOR"
  1430. .IP "\fIfile\fR\fB.fpp\fR" 4
  1431. .IX Item "file.fpp"
  1432. .IP "\fIfile\fR\fB.FPP\fR" 4
  1433. .IX Item "file.FPP"
  1434. .IP "\fIfile\fR\fB.FTN\fR" 4
  1435. .IX Item "file.FTN"
  1436. .PD
  1437. Fixed form Fortran source code that must be preprocessed (with the traditional
  1438. preprocessor).
  1439. .IP "\fIfile\fR\fB.f90\fR" 4
  1440. .IX Item "file.f90"
  1441. .PD 0
  1442. .IP "\fIfile\fR\fB.f95\fR" 4
  1443. .IX Item "file.f95"
  1444. .IP "\fIfile\fR\fB.f03\fR" 4
  1445. .IX Item "file.f03"
  1446. .IP "\fIfile\fR\fB.f08\fR" 4
  1447. .IX Item "file.f08"
  1448. .PD
  1449. Free form Fortran source code that should not be preprocessed.
  1450. .IP "\fIfile\fR\fB.F90\fR" 4
  1451. .IX Item "file.F90"
  1452. .PD 0
  1453. .IP "\fIfile\fR\fB.F95\fR" 4
  1454. .IX Item "file.F95"
  1455. .IP "\fIfile\fR\fB.F03\fR" 4
  1456. .IX Item "file.F03"
  1457. .IP "\fIfile\fR\fB.F08\fR" 4
  1458. .IX Item "file.F08"
  1459. .PD
  1460. Free form Fortran source code that must be preprocessed (with the
  1461. traditional preprocessor).
  1462. .IP "\fIfile\fR\fB.go\fR" 4
  1463. .IX Item "file.go"
  1464. Go source code.
  1465. .IP "\fIfile\fR\fB.brig\fR" 4
  1466. .IX Item "file.brig"
  1467. \&\s-1BRIG\s0 files (binary representation of \s-1HSAIL\s0).
  1468. .IP "\fIfile\fR\fB.ads\fR" 4
  1469. .IX Item "file.ads"
  1470. Ada source code file that contains a library unit declaration (a
  1471. declaration of a package, subprogram, or generic, or a generic
  1472. instantiation), or a library unit renaming declaration (a package,
  1473. generic, or subprogram renaming declaration). Such files are also
  1474. called \fIspecs\fR.
  1475. .IP "\fIfile\fR\fB.adb\fR" 4
  1476. .IX Item "file.adb"
  1477. Ada source code file containing a library unit body (a subprogram or
  1478. package body). Such files are also called \fIbodies\fR.
  1479. .IP "\fIfile\fR\fB.s\fR" 4
  1480. .IX Item "file.s"
  1481. Assembler code.
  1482. .IP "\fIfile\fR\fB.S\fR" 4
  1483. .IX Item "file.S"
  1484. .PD 0
  1485. .IP "\fIfile\fR\fB.sx\fR" 4
  1486. .IX Item "file.sx"
  1487. .PD
  1488. Assembler code that must be preprocessed.
  1489. .IP "\fIother\fR" 4
  1490. .IX Item "other"
  1491. An object file to be fed straight into linking.
  1492. Any file name with no recognized suffix is treated this way.
  1493. .PP
  1494. You can specify the input language explicitly with the \fB\-x\fR option:
  1495. .IP "\fB\-x\fR \fIlanguage\fR" 4
  1496. .IX Item "-x language"
  1497. Specify explicitly the \fIlanguage\fR for the following input files
  1498. (rather than letting the compiler choose a default based on the file
  1499. name suffix). This option applies to all following input files until
  1500. the next \fB\-x\fR option. Possible values for \fIlanguage\fR are:
  1501. .Sp
  1502. .Vb 9
  1503. \& c c\-header cpp\-output
  1504. \& c++ c++\-header c++\-cpp\-output
  1505. \& objective\-c objective\-c\-header objective\-c\-cpp\-output
  1506. \& objective\-c++ objective\-c++\-header objective\-c++\-cpp\-output
  1507. \& assembler assembler\-with\-cpp
  1508. \& ada
  1509. \& f77 f77\-cpp\-input f95 f95\-cpp\-input
  1510. \& go
  1511. \& brig
  1512. .Ve
  1513. .IP "\fB\-x none\fR" 4
  1514. .IX Item "-x none"
  1515. Turn off any specification of a language, so that subsequent files are
  1516. handled according to their file name suffixes (as they are if \fB\-x\fR
  1517. has not been used at all).
  1518. .PP
  1519. If you only want some of the stages of compilation, you can use
  1520. \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
  1521. one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
  1522. \&\fBgcc\fR is to stop. Note that some combinations (for example,
  1523. \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
  1524. .IP "\fB\-c\fR" 4
  1525. .IX Item "-c"
  1526. Compile or assemble the source files, but do not link. The linking
  1527. stage simply is not done. The ultimate output is in the form of an
  1528. object file for each source file.
  1529. .Sp
  1530. By default, the object file name for a source file is made by replacing
  1531. the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
  1532. .Sp
  1533. Unrecognized input files, not requiring compilation or assembly, are
  1534. ignored.
  1535. .IP "\fB\-S\fR" 4
  1536. .IX Item "-S"
  1537. Stop after the stage of compilation proper; do not assemble. The output
  1538. is in the form of an assembler code file for each non-assembler input
  1539. file specified.
  1540. .Sp
  1541. By default, the assembler file name for a source file is made by
  1542. replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
  1543. .Sp
  1544. Input files that don't require compilation are ignored.
  1545. .IP "\fB\-E\fR" 4
  1546. .IX Item "-E"
  1547. Stop after the preprocessing stage; do not run the compiler proper. The
  1548. output is in the form of preprocessed source code, which is sent to the
  1549. standard output.
  1550. .Sp
  1551. Input files that don't require preprocessing are ignored.
  1552. .IP "\fB\-o\fR \fIfile\fR" 4
  1553. .IX Item "-o file"
  1554. Place output in file \fIfile\fR. This applies to whatever
  1555. sort of output is being produced, whether it be an executable file,
  1556. an object file, an assembler file or preprocessed C code.
  1557. .Sp
  1558. If \fB\-o\fR is not specified, the default is to put an executable
  1559. file in \fIa.out\fR, the object file for
  1560. \&\fI\fIsource\fI.\fIsuffix\fI\fR in \fI\fIsource\fI.o\fR, its
  1561. assembler file in \fI\fIsource\fI.s\fR, a precompiled header file in
  1562. \&\fI\fIsource\fI.\fIsuffix\fI.gch\fR, and all preprocessed C source on
  1563. standard output.
  1564. .IP "\fB\-v\fR" 4
  1565. .IX Item "-v"
  1566. Print (on standard error output) the commands executed to run the stages
  1567. of compilation. Also print the version number of the compiler driver
  1568. program and of the preprocessor and the compiler proper.
  1569. .IP "\fB\-###\fR" 4
  1570. .IX Item "-###"
  1571. Like \fB\-v\fR except the commands are not executed and arguments
  1572. are quoted unless they contain only alphanumeric characters or \f(CW\*(C`./\-_\*(C'\fR.
  1573. This is useful for shell scripts to capture the driver-generated command lines.
  1574. .IP "\fB\-\-help\fR" 4
  1575. .IX Item "--help"
  1576. Print (on the standard output) a description of the command-line options
  1577. understood by \fBgcc\fR. If the \fB\-v\fR option is also specified
  1578. then \fB\-\-help\fR is also passed on to the various processes
  1579. invoked by \fBgcc\fR, so that they can display the command-line options
  1580. they accept. If the \fB\-Wextra\fR option has also been specified
  1581. (prior to the \fB\-\-help\fR option), then command-line options that
  1582. have no documentation associated with them are also displayed.
  1583. .IP "\fB\-\-target\-help\fR" 4
  1584. .IX Item "--target-help"
  1585. Print (on the standard output) a description of target-specific command-line
  1586. options for each tool. For some targets extra target-specific
  1587. information may also be printed.
  1588. .IP "\fB\-\-help={\fR\fIclass\fR|[\fB^\fR]\fIqualifier\fR\fB}\fR[\fB,...\fR]" 4
  1589. .IX Item "--help={class|[^]qualifier}[,...]"
  1590. Print (on the standard output) a description of the command-line
  1591. options understood by the compiler that fit into all specified classes
  1592. and qualifiers. These are the supported classes:
  1593. .RS 4
  1594. .IP "\fBoptimizers\fR" 4
  1595. .IX Item "optimizers"
  1596. Display all of the optimization options supported by the
  1597. compiler.
  1598. .IP "\fBwarnings\fR" 4
  1599. .IX Item "warnings"
  1600. Display all of the options controlling warning messages
  1601. produced by the compiler.
  1602. .IP "\fBtarget\fR" 4
  1603. .IX Item "target"
  1604. Display target-specific options. Unlike the
  1605. \&\fB\-\-target\-help\fR option however, target-specific options of the
  1606. linker and assembler are not displayed. This is because those
  1607. tools do not currently support the extended \fB\-\-help=\fR syntax.
  1608. .IP "\fBparams\fR" 4
  1609. .IX Item "params"
  1610. Display the values recognized by the \fB\-\-param\fR
  1611. option.
  1612. .IP "\fIlanguage\fR" 4
  1613. .IX Item "language"
  1614. Display the options supported for \fIlanguage\fR, where
  1615. \&\fIlanguage\fR is the name of one of the languages supported in this
  1616. version of \s-1GCC.\s0
  1617. .IP "\fBcommon\fR" 4
  1618. .IX Item "common"
  1619. Display the options that are common to all languages.
  1620. .RE
  1621. .RS 4
  1622. .Sp
  1623. These are the supported qualifiers:
  1624. .IP "\fBundocumented\fR" 4
  1625. .IX Item "undocumented"
  1626. Display only those options that are undocumented.
  1627. .IP "\fBjoined\fR" 4
  1628. .IX Item "joined"
  1629. Display options taking an argument that appears after an equal
  1630. sign in the same continuous piece of text, such as:
  1631. \&\fB\-\-help=target\fR.
  1632. .IP "\fBseparate\fR" 4
  1633. .IX Item "separate"
  1634. Display options taking an argument that appears as a separate word
  1635. following the original option, such as: \fB\-o output-file\fR.
  1636. .RE
  1637. .RS 4
  1638. .Sp
  1639. Thus for example to display all the undocumented target-specific
  1640. switches supported by the compiler, use:
  1641. .Sp
  1642. .Vb 1
  1643. \& \-\-help=target,undocumented
  1644. .Ve
  1645. .Sp
  1646. The sense of a qualifier can be inverted by prefixing it with the
  1647. \&\fB^\fR character, so for example to display all binary warning
  1648. options (i.e., ones that are either on or off and that do not take an
  1649. argument) that have a description, use:
  1650. .Sp
  1651. .Vb 1
  1652. \& \-\-help=warnings,^joined,^undocumented
  1653. .Ve
  1654. .Sp
  1655. The argument to \fB\-\-help=\fR should not consist solely of inverted
  1656. qualifiers.
  1657. .Sp
  1658. Combining several classes is possible, although this usually
  1659. restricts the output so much that there is nothing to display. One
  1660. case where it does work, however, is when one of the classes is
  1661. \&\fItarget\fR. For example, to display all the target-specific
  1662. optimization options, use:
  1663. .Sp
  1664. .Vb 1
  1665. \& \-\-help=target,optimizers
  1666. .Ve
  1667. .Sp
  1668. The \fB\-\-help=\fR option can be repeated on the command line. Each
  1669. successive use displays its requested class of options, skipping
  1670. those that have already been displayed.
  1671. .Sp
  1672. If the \fB\-Q\fR option appears on the command line before the
  1673. \&\fB\-\-help=\fR option, then the descriptive text displayed by
  1674. \&\fB\-\-help=\fR is changed. Instead of describing the displayed
  1675. options, an indication is given as to whether the option is enabled,
  1676. disabled or set to a specific value (assuming that the compiler
  1677. knows this at the point where the \fB\-\-help=\fR option is used).
  1678. .Sp
  1679. Here is a truncated example from the \s-1ARM\s0 port of \fBgcc\fR:
  1680. .Sp
  1681. .Vb 5
  1682. \& % gcc \-Q \-mabi=2 \-\-help=target \-c
  1683. \& The following options are target specific:
  1684. \& \-mabi= 2
  1685. \& \-mabort\-on\-noreturn [disabled]
  1686. \& \-mapcs [disabled]
  1687. .Ve
  1688. .Sp
  1689. The output is sensitive to the effects of previous command-line
  1690. options, so for example it is possible to find out which optimizations
  1691. are enabled at \fB\-O2\fR by using:
  1692. .Sp
  1693. .Vb 1
  1694. \& \-Q \-O2 \-\-help=optimizers
  1695. .Ve
  1696. .Sp
  1697. Alternatively you can discover which binary optimizations are enabled
  1698. by \fB\-O3\fR by using:
  1699. .Sp
  1700. .Vb 3
  1701. \& gcc \-c \-Q \-O3 \-\-help=optimizers > /tmp/O3\-opts
  1702. \& gcc \-c \-Q \-O2 \-\-help=optimizers > /tmp/O2\-opts
  1703. \& diff /tmp/O2\-opts /tmp/O3\-opts | grep enabled
  1704. .Ve
  1705. .RE
  1706. .IP "\fB\-\-version\fR" 4
  1707. .IX Item "--version"
  1708. Display the version number and copyrights of the invoked \s-1GCC.\s0
  1709. .IP "\fB\-pass\-exit\-codes\fR" 4
  1710. .IX Item "-pass-exit-codes"
  1711. Normally the \fBgcc\fR program exits with the code of 1 if any
  1712. phase of the compiler returns a non-success return code. If you specify
  1713. \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program instead returns with
  1714. the numerically highest error produced by any phase returning an error
  1715. indication. The C, \*(C+, and Fortran front ends return 4 if an internal
  1716. compiler error is encountered.
  1717. .IP "\fB\-pipe\fR" 4
  1718. .IX Item "-pipe"
  1719. Use pipes rather than temporary files for communication between the
  1720. various stages of compilation. This fails to work on some systems where
  1721. the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
  1722. no trouble.
  1723. .IP "\fB\-specs=\fR\fIfile\fR" 4
  1724. .IX Item "-specs=file"
  1725. Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
  1726. file, in order to override the defaults which the \fBgcc\fR driver
  1727. program uses when determining what switches to pass to \fBcc1\fR,
  1728. \&\fBcc1plus\fR, \fBas\fR, \fBld\fR, etc. More than one
  1729. \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
  1730. are processed in order, from left to right.
  1731. .IP "\fB\-wrapper\fR" 4
  1732. .IX Item "-wrapper"
  1733. Invoke all subcommands under a wrapper program. The name of the
  1734. wrapper program and its parameters are passed as a comma separated
  1735. list.
  1736. .Sp
  1737. .Vb 1
  1738. \& gcc \-c t.c \-wrapper gdb,\-\-args
  1739. .Ve
  1740. .Sp
  1741. This invokes all subprograms of \fBgcc\fR under
  1742. \&\fBgdb \-\-args\fR, thus the invocation of \fBcc1\fR is
  1743. \&\fBgdb \-\-args cc1 ...\fR.
  1744. .IP "\fB\-ffile\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
  1745. .IX Item "-ffile-prefix-map=old=new"
  1746. When compiling files residing in directory \fI\fIold\fI\fR, record
  1747. any references to them in the result of the compilation as if the
  1748. files resided in directory \fI\fInew\fI\fR instead. Specifying this
  1749. option is equivalent to specifying all the individual
  1750. \&\fB\-f*\-prefix\-map\fR options. This can be used to make reproducible
  1751. builds that are location independent. See also
  1752. \&\fB\-fmacro\-prefix\-map\fR and \fB\-fdebug\-prefix\-map\fR.
  1753. .IP "\fB\-fplugin=\fR\fIname\fR\fB.so\fR" 4
  1754. .IX Item "-fplugin=name.so"
  1755. Load the plugin code in file \fIname\fR.so, assumed to be a
  1756. shared object to be dlopen'd by the compiler. The base name of
  1757. the shared object file is used to identify the plugin for the
  1758. purposes of argument parsing (See
  1759. \&\fB\-fplugin\-arg\-\fR\fIname\fR\fB\-\fR\fIkey\fR\fB=\fR\fIvalue\fR below).
  1760. Each plugin should define the callback functions specified in the
  1761. Plugins \s-1API.\s0
  1762. .IP "\fB\-fplugin\-arg\-\fR\fIname\fR\fB\-\fR\fIkey\fR\fB=\fR\fIvalue\fR" 4
  1763. .IX Item "-fplugin-arg-name-key=value"
  1764. Define an argument called \fIkey\fR with a value of \fIvalue\fR
  1765. for the plugin called \fIname\fR.
  1766. .IP "\fB\-fdump\-ada\-spec\fR[\fB\-slim\fR]" 4
  1767. .IX Item "-fdump-ada-spec[-slim]"
  1768. For C and \*(C+ source and include files, generate corresponding Ada specs.
  1769. .IP "\fB\-fada\-spec\-parent=\fR\fIunit\fR" 4
  1770. .IX Item "-fada-spec-parent=unit"
  1771. In conjunction with \fB\-fdump\-ada\-spec\fR[\fB\-slim\fR] above, generate
  1772. Ada specs as child units of parent \fIunit\fR.
  1773. .IP "\fB\-fdump\-go\-spec=\fR\fIfile\fR" 4
  1774. .IX Item "-fdump-go-spec=file"
  1775. For input files in any language, generate corresponding Go
  1776. declarations in \fIfile\fR. This generates Go \f(CW\*(C`const\*(C'\fR,
  1777. \&\f(CW\*(C`type\*(C'\fR, \f(CW\*(C`var\*(C'\fR, and \f(CW\*(C`func\*(C'\fR declarations which may be a
  1778. useful way to start writing a Go interface to code written in some
  1779. other language.
  1780. .IP "\fB@\fR\fIfile\fR" 4
  1781. .IX Item "@file"
  1782. Read command-line options from \fIfile\fR. The options read are
  1783. inserted in place of the original @\fIfile\fR option. If \fIfile\fR
  1784. does not exist, or cannot be read, then the option will be treated
  1785. literally, and not removed.
  1786. .Sp
  1787. Options in \fIfile\fR are separated by whitespace. A whitespace
  1788. character may be included in an option by surrounding the entire
  1789. option in either single or double quotes. Any character (including a
  1790. backslash) may be included by prefixing the character to be included
  1791. with a backslash. The \fIfile\fR may itself contain additional
  1792. @\fIfile\fR options; any such options will be processed recursively.
  1793. .SS "Compiling \*(C+ Programs"
  1794. .IX Subsection "Compiling Programs"
  1795. \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
  1796. \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
  1797. \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR, \fB.hpp\fR,
  1798. \&\fB.H\fR, or (for shared template code) \fB.tcc\fR; and
  1799. preprocessed \*(C+ files use the suffix \fB.ii\fR. \s-1GCC\s0 recognizes
  1800. files with these names and compiles them as \*(C+ programs even if you
  1801. call the compiler the same way as for compiling C programs (usually
  1802. with the name \fBgcc\fR).
  1803. .PP
  1804. However, the use of \fBgcc\fR does not add the \*(C+ library.
  1805. \&\fBg++\fR is a program that calls \s-1GCC\s0 and automatically specifies linking
  1806. against the \*(C+ library. It treats \fB.c\fR,
  1807. \&\fB.h\fR and \fB.i\fR files as \*(C+ source files instead of C source
  1808. files unless \fB\-x\fR is used. This program is also useful when
  1809. precompiling a C header file with a \fB.h\fR extension for use in \*(C+
  1810. compilations. On many systems, \fBg++\fR is also installed with
  1811. the name \fBc++\fR.
  1812. .PP
  1813. When you compile \*(C+ programs, you may specify many of the same
  1814. command-line options that you use for compiling programs in any
  1815. language; or command-line options meaningful for C and related
  1816. languages; or options that are meaningful only for \*(C+ programs.
  1817. .SS "Options Controlling C Dialect"
  1818. .IX Subsection "Options Controlling C Dialect"
  1819. The following options control the dialect of C (or languages derived
  1820. from C, such as \*(C+, Objective-C and Objective\-\*(C+) that the compiler
  1821. accepts:
  1822. .IP "\fB\-ansi\fR" 4
  1823. .IX Item "-ansi"
  1824. In C mode, this is equivalent to \fB\-std=c90\fR. In \*(C+ mode, it is
  1825. equivalent to \fB\-std=c++98\fR.
  1826. .Sp
  1827. This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO
  1828. C90\s0 (when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
  1829. such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
  1830. predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
  1831. type of system you are using. It also enables the undesirable and
  1832. rarely used \s-1ISO\s0 trigraph feature. For the C compiler,
  1833. it disables recognition of \*(C+ style \fB//\fR comments as well as
  1834. the \f(CW\*(C`inline\*(C'\fR keyword.
  1835. .Sp
  1836. The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
  1837. \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
  1838. \&\fB\-ansi\fR. You would not want to use them in an \s-1ISO C\s0 program, of
  1839. course, but it is useful to put them in header files that might be included
  1840. in compilations done with \fB\-ansi\fR. Alternate predefined macros
  1841. such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
  1842. without \fB\-ansi\fR.
  1843. .Sp
  1844. The \fB\-ansi\fR option does not cause non-ISO programs to be
  1845. rejected gratuitously. For that, \fB\-Wpedantic\fR is required in
  1846. addition to \fB\-ansi\fR.
  1847. .Sp
  1848. The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
  1849. option is used. Some header files may notice this macro and refrain
  1850. from declaring certain functions or defining certain macros that the
  1851. \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
  1852. programs that might use these names for other things.
  1853. .Sp
  1854. Functions that are normally built in but do not have semantics
  1855. 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
  1856. functions when \fB\-ansi\fR is used.
  1857. .IP "\fB\-std=\fR" 4
  1858. .IX Item "-std="
  1859. Determine the language standard. This option
  1860. is currently only supported when compiling C or \*(C+.
  1861. .Sp
  1862. The compiler can accept several base standards, such as \fBc90\fR or
  1863. \&\fBc++98\fR, and \s-1GNU\s0 dialects of those standards, such as
  1864. \&\fBgnu90\fR or \fBgnu++98\fR. When a base standard is specified, the
  1865. compiler accepts all programs following that standard plus those
  1866. using \s-1GNU\s0 extensions that do not contradict it. For example,
  1867. \&\fB\-std=c90\fR turns off certain features of \s-1GCC\s0 that are
  1868. incompatible with \s-1ISO C90,\s0 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR
  1869. keywords, but not other \s-1GNU\s0 extensions that do not have a meaning in
  1870. \&\s-1ISO C90,\s0 such as omitting the middle term of a \f(CW\*(C`?:\*(C'\fR
  1871. expression. On the other hand, when a \s-1GNU\s0 dialect of a standard is
  1872. specified, all features supported by the compiler are enabled, even when
  1873. those features change the meaning of the base standard. As a result, some
  1874. strict-conforming programs may be rejected. The particular standard
  1875. is used by \fB\-Wpedantic\fR to identify which features are \s-1GNU\s0
  1876. extensions given that version of the standard. For example
  1877. \&\fB\-std=gnu90 \-Wpedantic\fR warns about \*(C+ style \fB//\fR
  1878. comments, while \fB\-std=gnu99 \-Wpedantic\fR does not.
  1879. .Sp
  1880. A value for this option must be provided; possible values are
  1881. .RS 4
  1882. .IP "\fBc90\fR" 4
  1883. .IX Item "c90"
  1884. .PD 0
  1885. .IP "\fBc89\fR" 4
  1886. .IX Item "c89"
  1887. .IP "\fBiso9899:1990\fR" 4
  1888. .IX Item "iso9899:1990"
  1889. .PD
  1890. Support all \s-1ISO C90\s0 programs (certain \s-1GNU\s0 extensions that conflict
  1891. with \s-1ISO C90\s0 are disabled). Same as \fB\-ansi\fR for C code.
  1892. .IP "\fBiso9899:199409\fR" 4
  1893. .IX Item "iso9899:199409"
  1894. \&\s-1ISO C90\s0 as modified in amendment 1.
  1895. .IP "\fBc99\fR" 4
  1896. .IX Item "c99"
  1897. .PD 0
  1898. .IP "\fBc9x\fR" 4
  1899. .IX Item "c9x"
  1900. .IP "\fBiso9899:1999\fR" 4
  1901. .IX Item "iso9899:1999"
  1902. .IP "\fBiso9899:199x\fR" 4
  1903. .IX Item "iso9899:199x"
  1904. .PD
  1905. \&\s-1ISO C99.\s0 This standard is substantially completely supported, modulo
  1906. bugs and floating-point issues
  1907. (mainly but not entirely relating to optional C99 features from
  1908. Annexes F and G). See
  1909. <\fBhttp://gcc.gnu.org/c99status.html\fR> for more information. The
  1910. names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
  1911. .IP "\fBc11\fR" 4
  1912. .IX Item "c11"
  1913. .PD 0
  1914. .IP "\fBc1x\fR" 4
  1915. .IX Item "c1x"
  1916. .IP "\fBiso9899:2011\fR" 4
  1917. .IX Item "iso9899:2011"
  1918. .PD
  1919. \&\s-1ISO C11,\s0 the 2011 revision of the \s-1ISO C\s0 standard. This standard is
  1920. substantially completely supported, modulo bugs, floating-point issues
  1921. (mainly but not entirely relating to optional C11 features from
  1922. Annexes F and G) and the optional Annexes K (Bounds-checking
  1923. interfaces) and L (Analyzability). The name \fBc1x\fR is deprecated.
  1924. .IP "\fBc17\fR" 4
  1925. .IX Item "c17"
  1926. .PD 0
  1927. .IP "\fBc18\fR" 4
  1928. .IX Item "c18"
  1929. .IP "\fBiso9899:2017\fR" 4
  1930. .IX Item "iso9899:2017"
  1931. .IP "\fBiso9899:2018\fR" 4
  1932. .IX Item "iso9899:2018"
  1933. .PD
  1934. \&\s-1ISO C17,\s0 the 2017 revision of the \s-1ISO C\s0 standard (expected to be
  1935. published in 2018). This standard is
  1936. same as C11 except for corrections of defects (all of which are also
  1937. applied with \fB\-std=c11\fR) and a new value of
  1938. \&\f(CW\*(C`_\|_STDC_VERSION_\|_\*(C'\fR, and so is supported to the same extent as C11.
  1939. .IP "\fBgnu90\fR" 4
  1940. .IX Item "gnu90"
  1941. .PD 0
  1942. .IP "\fBgnu89\fR" 4
  1943. .IX Item "gnu89"
  1944. .PD
  1945. \&\s-1GNU\s0 dialect of \s-1ISO C90\s0 (including some C99 features).
  1946. .IP "\fBgnu99\fR" 4
  1947. .IX Item "gnu99"
  1948. .PD 0
  1949. .IP "\fBgnu9x\fR" 4
  1950. .IX Item "gnu9x"
  1951. .PD
  1952. \&\s-1GNU\s0 dialect of \s-1ISO C99.\s0 The name \fBgnu9x\fR is deprecated.
  1953. .IP "\fBgnu11\fR" 4
  1954. .IX Item "gnu11"
  1955. .PD 0
  1956. .IP "\fBgnu1x\fR" 4
  1957. .IX Item "gnu1x"
  1958. .PD
  1959. \&\s-1GNU\s0 dialect of \s-1ISO C11.\s0
  1960. The name \fBgnu1x\fR is deprecated.
  1961. .IP "\fBgnu17\fR" 4
  1962. .IX Item "gnu17"
  1963. .PD 0
  1964. .IP "\fBgnu18\fR" 4
  1965. .IX Item "gnu18"
  1966. .PD
  1967. \&\s-1GNU\s0 dialect of \s-1ISO C17.\s0 This is the default for C code.
  1968. .IP "\fBc++98\fR" 4
  1969. .IX Item "c++98"
  1970. .PD 0
  1971. .IP "\fBc++03\fR" 4
  1972. .IX Item "c++03"
  1973. .PD
  1974. The 1998 \s-1ISO \*(C+\s0 standard plus the 2003 technical corrigendum and some
  1975. additional defect reports. Same as \fB\-ansi\fR for \*(C+ code.
  1976. .IP "\fBgnu++98\fR" 4
  1977. .IX Item "gnu++98"
  1978. .PD 0
  1979. .IP "\fBgnu++03\fR" 4
  1980. .IX Item "gnu++03"
  1981. .PD
  1982. \&\s-1GNU\s0 dialect of \fB\-std=c++98\fR.
  1983. .IP "\fBc++11\fR" 4
  1984. .IX Item "c++11"
  1985. .PD 0
  1986. .IP "\fBc++0x\fR" 4
  1987. .IX Item "c++0x"
  1988. .PD
  1989. The 2011 \s-1ISO \*(C+\s0 standard plus amendments.
  1990. The name \fBc++0x\fR is deprecated.
  1991. .IP "\fBgnu++11\fR" 4
  1992. .IX Item "gnu++11"
  1993. .PD 0
  1994. .IP "\fBgnu++0x\fR" 4
  1995. .IX Item "gnu++0x"
  1996. .PD
  1997. \&\s-1GNU\s0 dialect of \fB\-std=c++11\fR.
  1998. The name \fBgnu++0x\fR is deprecated.
  1999. .IP "\fBc++14\fR" 4
  2000. .IX Item "c++14"
  2001. .PD 0
  2002. .IP "\fBc++1y\fR" 4
  2003. .IX Item "c++1y"
  2004. .PD
  2005. The 2014 \s-1ISO \*(C+\s0 standard plus amendments.
  2006. The name \fBc++1y\fR is deprecated.
  2007. .IP "\fBgnu++14\fR" 4
  2008. .IX Item "gnu++14"
  2009. .PD 0
  2010. .IP "\fBgnu++1y\fR" 4
  2011. .IX Item "gnu++1y"
  2012. .PD
  2013. \&\s-1GNU\s0 dialect of \fB\-std=c++14\fR.
  2014. This is the default for \*(C+ code.
  2015. The name \fBgnu++1y\fR is deprecated.
  2016. .IP "\fBc++17\fR" 4
  2017. .IX Item "c++17"
  2018. .PD 0
  2019. .IP "\fBc++1z\fR" 4
  2020. .IX Item "c++1z"
  2021. .PD
  2022. The 2017 \s-1ISO \*(C+\s0 standard plus amendments.
  2023. The name \fBc++1z\fR is deprecated.
  2024. .IP "\fBgnu++17\fR" 4
  2025. .IX Item "gnu++17"
  2026. .PD 0
  2027. .IP "\fBgnu++1z\fR" 4
  2028. .IX Item "gnu++1z"
  2029. .PD
  2030. \&\s-1GNU\s0 dialect of \fB\-std=c++17\fR.
  2031. The name \fBgnu++1z\fR is deprecated.
  2032. .IP "\fBc++2a\fR" 4
  2033. .IX Item "c++2a"
  2034. The next revision of the \s-1ISO \*(C+\s0 standard, tentatively planned for
  2035. 2020. Support is highly experimental, and will almost certainly
  2036. change in incompatible ways in future releases.
  2037. .IP "\fBgnu++2a\fR" 4
  2038. .IX Item "gnu++2a"
  2039. \&\s-1GNU\s0 dialect of \fB\-std=c++2a\fR. Support is highly experimental,
  2040. and will almost certainly change in incompatible ways in future
  2041. releases.
  2042. .RE
  2043. .RS 4
  2044. .RE
  2045. .IP "\fB\-fgnu89\-inline\fR" 4
  2046. .IX Item "-fgnu89-inline"
  2047. The option \fB\-fgnu89\-inline\fR tells \s-1GCC\s0 to use the traditional
  2048. \&\s-1GNU\s0 semantics for \f(CW\*(C`inline\*(C'\fR functions when in C99 mode.
  2049. .Sp
  2050. Using this option is roughly equivalent to adding the
  2051. \&\f(CW\*(C`gnu_inline\*(C'\fR function attribute to all inline functions.
  2052. .Sp
  2053. The option \fB\-fno\-gnu89\-inline\fR explicitly tells \s-1GCC\s0 to use the
  2054. C99 semantics for \f(CW\*(C`inline\*(C'\fR when in C99 or gnu99 mode (i.e., it
  2055. specifies the default behavior).
  2056. This option is not supported in \fB\-std=c90\fR or
  2057. \&\fB\-std=gnu90\fR mode.
  2058. .Sp
  2059. The preprocessor macros \f(CW\*(C`_\|_GNUC_GNU_INLINE_\|_\*(C'\fR and
  2060. \&\f(CW\*(C`_\|_GNUC_STDC_INLINE_\|_\*(C'\fR may be used to check which semantics are
  2061. in effect for \f(CW\*(C`inline\*(C'\fR functions.
  2062. .IP "\fB\-fpermitted\-flt\-eval\-methods=\fR\fIstyle\fR" 4
  2063. .IX Item "-fpermitted-flt-eval-methods=style"
  2064. \&\s-1ISO/IEC TS 18661\-3\s0 defines new permissible values for
  2065. \&\f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR that indicate that operations and constants with
  2066. a semantic type that is an interchange or extended format should be
  2067. evaluated to the precision and range of that type. These new values are
  2068. a superset of those permitted under C99/C11, which does not specify the
  2069. meaning of other positive values of \f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR. As such, code
  2070. conforming to C11 may not have been written expecting the possibility of
  2071. the new values.
  2072. .Sp
  2073. \&\fB\-fpermitted\-flt\-eval\-methods\fR specifies whether the compiler
  2074. should allow only the values of \f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR specified in C99/C11,
  2075. or the extended set of values specified in \s-1ISO/IEC TS 18661\-3.\s0
  2076. .Sp
  2077. \&\fIstyle\fR is either \f(CW\*(C`c11\*(C'\fR or \f(CW\*(C`ts\-18661\-3\*(C'\fR as appropriate.
  2078. .Sp
  2079. The default when in a standards compliant mode (\fB\-std=c11\fR or similar)
  2080. is \fB\-fpermitted\-flt\-eval\-methods=c11\fR. The default when in a \s-1GNU\s0
  2081. dialect (\fB\-std=gnu11\fR or similar) is
  2082. \&\fB\-fpermitted\-flt\-eval\-methods=ts\-18661\-3\fR.
  2083. .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
  2084. .IX Item "-aux-info filename"
  2085. Output to the given filename prototyped declarations for all functions
  2086. declared and/or defined in a translation unit, including those in header
  2087. files. This option is silently ignored in any language other than C.
  2088. .Sp
  2089. Besides declarations, the file indicates, in comments, the origin of
  2090. each declaration (source file and line), whether the declaration was
  2091. implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
  2092. \&\fBO\fR for old, respectively, in the first character after the line
  2093. number and the colon), and whether it came from a declaration or a
  2094. definition (\fBC\fR or \fBF\fR, respectively, in the following
  2095. character). In the case of function definitions, a K&R\-style list of
  2096. arguments followed by their declarations is also provided, inside
  2097. comments, after the declaration.
  2098. .IP "\fB\-fallow\-parameterless\-variadic\-functions\fR" 4
  2099. .IX Item "-fallow-parameterless-variadic-functions"
  2100. Accept variadic functions without named parameters.
  2101. .Sp
  2102. Although it is possible to define such a function, this is not very
  2103. useful as it is not possible to read the arguments. This is only
  2104. supported for C as this construct is allowed by \*(C+.
  2105. .IP "\fB\-fno\-asm\fR" 4
  2106. .IX Item "-fno-asm"
  2107. Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
  2108. keyword, so that code can use these words as identifiers. You can use
  2109. the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
  2110. instead. \fB\-ansi\fR implies \fB\-fno\-asm\fR.
  2111. .Sp
  2112. In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
  2113. \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords. You may want to
  2114. use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
  2115. effect. In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
  2116. switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
  2117. \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO C99.\s0
  2118. .IP "\fB\-fno\-builtin\fR" 4
  2119. .IX Item "-fno-builtin"
  2120. .PD 0
  2121. .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
  2122. .IX Item "-fno-builtin-function"
  2123. .PD
  2124. Don't recognize built-in functions that do not begin with
  2125. \&\fB_\|_builtin_\fR as prefix.
  2126. .Sp
  2127. \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
  2128. more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
  2129. instructions which adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
  2130. may become inline copy loops. The resulting code is often both smaller
  2131. and faster, but since the function calls no longer appear as such, you
  2132. cannot set a breakpoint on those calls, nor can you change the behavior
  2133. of the functions by linking with a different library. In addition,
  2134. when a function is recognized as a built-in function, \s-1GCC\s0 may use
  2135. information about that function to warn about problems with calls to
  2136. that function, or to generate more efficient code, even if the
  2137. resulting code still contains calls to that function. For example,
  2138. warnings are given with \fB\-Wformat\fR for bad calls to
  2139. \&\f(CW\*(C`printf\*(C'\fR when \f(CW\*(C`printf\*(C'\fR is built in and \f(CW\*(C`strlen\*(C'\fR is
  2140. known not to modify global memory.
  2141. .Sp
  2142. With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
  2143. only the built-in function \fIfunction\fR is
  2144. disabled. \fIfunction\fR must not begin with \fB_\|_builtin_\fR. If a
  2145. function is named that is not built-in in this version of \s-1GCC,\s0 this
  2146. option is ignored. There is no corresponding
  2147. \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
  2148. built-in functions selectively when using \fB\-fno\-builtin\fR or
  2149. \&\fB\-ffreestanding\fR, you may define macros such as:
  2150. .Sp
  2151. .Vb 2
  2152. \& #define abs(n) _\|_builtin_abs ((n))
  2153. \& #define strcpy(d, s) _\|_builtin_strcpy ((d), (s))
  2154. .Ve
  2155. .IP "\fB\-fgimple\fR" 4
  2156. .IX Item "-fgimple"
  2157. Enable parsing of function definitions marked with \f(CW\*(C`_\|_GIMPLE\*(C'\fR.
  2158. This is an experimental feature that allows unit testing of \s-1GIMPLE\s0
  2159. passes.
  2160. .IP "\fB\-fhosted\fR" 4
  2161. .IX Item "-fhosted"
  2162. Assert that compilation targets a hosted environment. This implies
  2163. \&\fB\-fbuiltin\fR. A hosted environment is one in which the
  2164. entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
  2165. type of \f(CW\*(C`int\*(C'\fR. Examples are nearly everything except a kernel.
  2166. This is equivalent to \fB\-fno\-freestanding\fR.
  2167. .IP "\fB\-ffreestanding\fR" 4
  2168. .IX Item "-ffreestanding"
  2169. Assert that compilation targets a freestanding environment. This
  2170. implies \fB\-fno\-builtin\fR. A freestanding environment
  2171. is one in which the standard library may not exist, and program startup may
  2172. not necessarily be at \f(CW\*(C`main\*(C'\fR. The most obvious example is an \s-1OS\s0 kernel.
  2173. This is equivalent to \fB\-fno\-hosted\fR.
  2174. .IP "\fB\-fopenacc\fR" 4
  2175. .IX Item "-fopenacc"
  2176. Enable handling of OpenACC directives \f(CW\*(C`#pragma acc\*(C'\fR in C/\*(C+ and
  2177. \&\f(CW\*(C`!$acc\*(C'\fR in Fortran. When \fB\-fopenacc\fR is specified, the
  2178. compiler generates accelerated code according to the OpenACC Application
  2179. Programming Interface v2.0 <\fBhttps://www.openacc.org\fR>. This option
  2180. implies \fB\-pthread\fR, and thus is only supported on targets that
  2181. have support for \fB\-pthread\fR.
  2182. .IP "\fB\-fopenacc\-dim=\fR\fIgeom\fR" 4
  2183. .IX Item "-fopenacc-dim=geom"
  2184. Specify default compute dimensions for parallel offload regions that do
  2185. not explicitly specify. The \fIgeom\fR value is a triple of
  2186. \&':'\-separated sizes, in order 'gang', 'worker' and, 'vector'. A size
  2187. can be omitted, to use a target-specific default value.
  2188. .IP "\fB\-fopenmp\fR" 4
  2189. .IX Item "-fopenmp"
  2190. Enable handling of OpenMP directives \f(CW\*(C`#pragma omp\*(C'\fR in C/\*(C+ and
  2191. \&\f(CW\*(C`!$omp\*(C'\fR in Fortran. When \fB\-fopenmp\fR is specified, the
  2192. compiler generates parallel code according to the OpenMP Application
  2193. Program Interface v4.5 <\fBhttp://www.openmp.org/\fR>. This option
  2194. implies \fB\-pthread\fR, and thus is only supported on targets that
  2195. have support for \fB\-pthread\fR. \fB\-fopenmp\fR implies
  2196. \&\fB\-fopenmp\-simd\fR.
  2197. .IP "\fB\-fopenmp\-simd\fR" 4
  2198. .IX Item "-fopenmp-simd"
  2199. Enable handling of OpenMP's \s-1SIMD\s0 directives with \f(CW\*(C`#pragma omp\*(C'\fR
  2200. in C/\*(C+ and \f(CW\*(C`!$omp\*(C'\fR in Fortran. Other OpenMP directives
  2201. are ignored.
  2202. .IP "\fB\-fgnu\-tm\fR" 4
  2203. .IX Item "-fgnu-tm"
  2204. When the option \fB\-fgnu\-tm\fR is specified, the compiler
  2205. generates code for the Linux variant of Intel's current Transactional
  2206. Memory \s-1ABI\s0 specification document (Revision 1.1, May 6 2009). This is
  2207. an experimental feature whose interface may change in future versions
  2208. of \s-1GCC,\s0 as the official specification changes. Please note that not
  2209. all architectures are supported for this feature.
  2210. .Sp
  2211. For more information on \s-1GCC\s0's support for transactional memory,
  2212. .Sp
  2213. Note that the transactional memory feature is not supported with
  2214. non-call exceptions (\fB\-fnon\-call\-exceptions\fR).
  2215. .IP "\fB\-fms\-extensions\fR" 4
  2216. .IX Item "-fms-extensions"
  2217. Accept some non-standard constructs used in Microsoft header files.
  2218. .Sp
  2219. In \*(C+ code, this allows member names in structures to be similar
  2220. to previous types declarations.
  2221. .Sp
  2222. .Vb 4
  2223. \& typedef int UOW;
  2224. \& struct ABC {
  2225. \& UOW UOW;
  2226. \& };
  2227. .Ve
  2228. .Sp
  2229. Some cases of unnamed fields in structures and unions are only
  2230. accepted with this option.
  2231. .Sp
  2232. Note that this option is off for all targets but x86
  2233. targets using ms-abi.
  2234. .IP "\fB\-fplan9\-extensions\fR" 4
  2235. .IX Item "-fplan9-extensions"
  2236. Accept some non-standard constructs used in Plan 9 code.
  2237. .Sp
  2238. This enables \fB\-fms\-extensions\fR, permits passing pointers to
  2239. structures with anonymous fields to functions that expect pointers to
  2240. elements of the type of the field, and permits referring to anonymous
  2241. fields declared using a typedef. This is only
  2242. supported for C, not \*(C+.
  2243. .IP "\fB\-fcond\-mismatch\fR" 4
  2244. .IX Item "-fcond-mismatch"
  2245. Allow conditional expressions with mismatched types in the second and
  2246. third arguments. The value of such an expression is void. This option
  2247. is not supported for \*(C+.
  2248. .IP "\fB\-flax\-vector\-conversions\fR" 4
  2249. .IX Item "-flax-vector-conversions"
  2250. Allow implicit conversions between vectors with differing numbers of
  2251. elements and/or incompatible element types. This option should not be
  2252. used for new code.
  2253. .IP "\fB\-funsigned\-char\fR" 4
  2254. .IX Item "-funsigned-char"
  2255. Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
  2256. .Sp
  2257. Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
  2258. be. It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
  2259. \&\f(CW\*(C`signed char\*(C'\fR by default.
  2260. .Sp
  2261. Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
  2262. \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
  2263. But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
  2264. expect it to be signed, or expect it to be unsigned, depending on the
  2265. machines they were written for. This option, and its inverse, let you
  2266. make such a program work with the opposite default.
  2267. .Sp
  2268. The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
  2269. \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
  2270. is always just like one of those two.
  2271. .IP "\fB\-fsigned\-char\fR" 4
  2272. .IX Item "-fsigned-char"
  2273. Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
  2274. .Sp
  2275. Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
  2276. the negative form of \fB\-funsigned\-char\fR. Likewise, the option
  2277. \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
  2278. .IP "\fB\-fsigned\-bitfields\fR" 4
  2279. .IX Item "-fsigned-bitfields"
  2280. .PD 0
  2281. .IP "\fB\-funsigned\-bitfields\fR" 4
  2282. .IX Item "-funsigned-bitfields"
  2283. .IP "\fB\-fno\-signed\-bitfields\fR" 4
  2284. .IX Item "-fno-signed-bitfields"
  2285. .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
  2286. .IX Item "-fno-unsigned-bitfields"
  2287. .PD
  2288. These options control whether a bit-field is signed or unsigned, when the
  2289. declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR. By
  2290. default, such a bit-field is signed, because this is consistent: the
  2291. basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
  2292. .IP "\fB\-fsso\-struct=\fR\fIendianness\fR" 4
  2293. .IX Item "-fsso-struct=endianness"
  2294. Set the default scalar storage order of structures and unions to the
  2295. specified endianness. The accepted values are \fBbig-endian\fR,
  2296. \&\fBlittle-endian\fR and \fBnative\fR for the native endianness of
  2297. the target (the default). This option is not supported for \*(C+.
  2298. .Sp
  2299. \&\fBWarning:\fR the \fB\-fsso\-struct\fR switch causes \s-1GCC\s0 to generate
  2300. code that is not binary compatible with code generated without it if the
  2301. specified endianness is not the native endianness of the target.
  2302. .SS "Options Controlling \*(C+ Dialect"
  2303. .IX Subsection "Options Controlling Dialect"
  2304. This section describes the command-line options that are only meaningful
  2305. for \*(C+ programs. You can also use most of the \s-1GNU\s0 compiler options
  2306. regardless of what language your program is in. For example, you
  2307. might compile a file \fIfirstClass.C\fR like this:
  2308. .PP
  2309. .Vb 1
  2310. \& g++ \-g \-fstrict\-enums \-O \-c firstClass.C
  2311. .Ve
  2312. .PP
  2313. In this example, only \fB\-fstrict\-enums\fR is an option meant
  2314. only for \*(C+ programs; you can use the other options with any
  2315. language supported by \s-1GCC.\s0
  2316. .PP
  2317. Some options for compiling C programs, such as \fB\-std\fR, are also
  2318. relevant for \*(C+ programs.
  2319. .PP
  2320. Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
  2321. .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
  2322. .IX Item "-fabi-version=n"
  2323. Use version \fIn\fR of the \*(C+ \s-1ABI.\s0 The default is version 0.
  2324. .Sp
  2325. Version 0 refers to the version conforming most closely to
  2326. the \*(C+ \s-1ABI\s0 specification. Therefore, the \s-1ABI\s0 obtained using version 0
  2327. will change in different versions of G++ as \s-1ABI\s0 bugs are fixed.
  2328. .Sp
  2329. Version 1 is the version of the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.
  2330. .Sp
  2331. Version 2 is the version of the \*(C+ \s-1ABI\s0 that first appeared in G++
  2332. 3.4, and was the default through G++ 4.9.
  2333. .Sp
  2334. Version 3 corrects an error in mangling a constant address as a
  2335. template argument.
  2336. .Sp
  2337. Version 4, which first appeared in G++ 4.5, implements a standard
  2338. mangling for vector types.
  2339. .Sp
  2340. Version 5, which first appeared in G++ 4.6, corrects the mangling of
  2341. attribute const/volatile on function pointer types, decltype of a
  2342. plain decl, and use of a function parameter in the declaration of
  2343. another parameter.
  2344. .Sp
  2345. Version 6, which first appeared in G++ 4.7, corrects the promotion
  2346. behavior of \*(C+11 scoped enums and the mangling of template argument
  2347. packs, const/static_cast, prefix ++ and \-\-, and a class scope function
  2348. used as a template argument.
  2349. .Sp
  2350. Version 7, which first appeared in G++ 4.8, that treats nullptr_t as a
  2351. builtin type and corrects the mangling of lambdas in default argument
  2352. scope.
  2353. .Sp
  2354. Version 8, which first appeared in G++ 4.9, corrects the substitution
  2355. behavior of function types with function-cv-qualifiers.
  2356. .Sp
  2357. Version 9, which first appeared in G++ 5.2, corrects the alignment of
  2358. \&\f(CW\*(C`nullptr_t\*(C'\fR.
  2359. .Sp
  2360. Version 10, which first appeared in G++ 6.1, adds mangling of
  2361. attributes that affect type identity, such as ia32 calling convention
  2362. attributes (e.g. \fBstdcall\fR).
  2363. .Sp
  2364. Version 11, which first appeared in G++ 7, corrects the mangling of
  2365. sizeof... expressions and operator names. For multiple entities with
  2366. the same name within a function, that are declared in different scopes,
  2367. the mangling now changes starting with the twelfth occurrence. It also
  2368. implies \fB\-fnew\-inheriting\-ctors\fR.
  2369. .Sp
  2370. Version 12, which first appeared in G++ 8, corrects the calling
  2371. conventions for empty classes on the x86_64 target and for classes
  2372. with only deleted copy/move constructors. It accidentally changes the
  2373. calling convention for classes with a deleted copy constructor and a
  2374. trivial move constructor.
  2375. .Sp
  2376. Version 13, which first appeared in G++ 8.2, fixes the accidental
  2377. change in version 12.
  2378. .Sp
  2379. See also \fB\-Wabi\fR.
  2380. .IP "\fB\-fabi\-compat\-version=\fR\fIn\fR" 4
  2381. .IX Item "-fabi-compat-version=n"
  2382. On targets that support strong aliases, G++
  2383. works around mangling changes by creating an alias with the correct
  2384. mangled name when defining a symbol with an incorrect mangled name.
  2385. This switch specifies which \s-1ABI\s0 version to use for the alias.
  2386. .Sp
  2387. With \fB\-fabi\-version=0\fR (the default), this defaults to 11 (\s-1GCC 7\s0
  2388. compatibility). If another \s-1ABI\s0 version is explicitly selected, this
  2389. defaults to 0. For compatibility with \s-1GCC\s0 versions 3.2 through 4.9,
  2390. use \fB\-fabi\-compat\-version=2\fR.
  2391. .Sp
  2392. If this option is not provided but \fB\-Wabi=\fR\fIn\fR is, that
  2393. version is used for compatibility aliases. If this option is provided
  2394. along with \fB\-Wabi\fR (without the version), the version from this
  2395. option is used for the warning.
  2396. .IP "\fB\-fno\-access\-control\fR" 4
  2397. .IX Item "-fno-access-control"
  2398. Turn off all access checking. This switch is mainly useful for working
  2399. around bugs in the access control code.
  2400. .IP "\fB\-faligned\-new\fR" 4
  2401. .IX Item "-faligned-new"
  2402. Enable support for \*(C+17 \f(CW\*(C`new\*(C'\fR of types that require more
  2403. alignment than \f(CW\*(C`void* ::operator new(std::size_t)\*(C'\fR provides. A
  2404. numeric argument such as \f(CW\*(C`\-faligned\-new=32\*(C'\fR can be used to
  2405. specify how much alignment (in bytes) is provided by that function,
  2406. but few users will need to override the default of
  2407. \&\f(CW\*(C`alignof(std::max_align_t)\*(C'\fR.
  2408. .Sp
  2409. This flag is enabled by default for \fB\-std=c++17\fR.
  2410. .IP "\fB\-fcheck\-new\fR" 4
  2411. .IX Item "-fcheck-new"
  2412. Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
  2413. before attempting to modify the storage allocated. This check is
  2414. normally unnecessary because the \*(C+ standard specifies that
  2415. \&\f(CW\*(C`operator new\*(C'\fR only returns \f(CW0\fR if it is declared
  2416. \&\f(CW\*(C`throw()\*(C'\fR, in which case the compiler always checks the
  2417. return value even without this option. In all other cases, when
  2418. \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
  2419. exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR. See also
  2420. \&\fBnew (nothrow)\fR.
  2421. .IP "\fB\-fconcepts\fR" 4
  2422. .IX Item "-fconcepts"
  2423. Enable support for the \*(C+ Extensions for Concepts Technical
  2424. Specification, \s-1ISO 19217\s0 (2015), which allows code like
  2425. .Sp
  2426. .Vb 2
  2427. \& template <class T> concept bool Addable = requires (T t) { t + t; };
  2428. \& template <Addable T> T add (T a, T b) { return a + b; }
  2429. .Ve
  2430. .IP "\fB\-fconstexpr\-depth=\fR\fIn\fR" 4
  2431. .IX Item "-fconstexpr-depth=n"
  2432. Set the maximum nested evaluation depth for \*(C+11 constexpr functions
  2433. to \fIn\fR. A limit is needed to detect endless recursion during
  2434. constant expression evaluation. The minimum specified by the standard
  2435. is 512.
  2436. .IP "\fB\-fconstexpr\-loop\-limit=\fR\fIn\fR" 4
  2437. .IX Item "-fconstexpr-loop-limit=n"
  2438. Set the maximum number of iterations for a loop in \*(C+14 constexpr functions
  2439. to \fIn\fR. A limit is needed to detect infinite loops during
  2440. constant expression evaluation. The default is 262144 (1<<18).
  2441. .IP "\fB\-fdeduce\-init\-list\fR" 4
  2442. .IX Item "-fdeduce-init-list"
  2443. Enable deduction of a template type parameter as
  2444. \&\f(CW\*(C`std::initializer_list\*(C'\fR from a brace-enclosed initializer list, i.e.
  2445. .Sp
  2446. .Vb 4
  2447. \& template <class T> auto forward(T t) \-> decltype (realfn (t))
  2448. \& {
  2449. \& return realfn (t);
  2450. \& }
  2451. \&
  2452. \& void f()
  2453. \& {
  2454. \& forward({1,2}); // call forward<std::initializer_list<int>>
  2455. \& }
  2456. .Ve
  2457. .Sp
  2458. This deduction was implemented as a possible extension to the
  2459. originally proposed semantics for the \*(C+11 standard, but was not part
  2460. of the final standard, so it is disabled by default. This option is
  2461. deprecated, and may be removed in a future version of G++.
  2462. .IP "\fB\-ffriend\-injection\fR" 4
  2463. .IX Item "-ffriend-injection"
  2464. Inject friend functions into the enclosing namespace, so that they are
  2465. visible outside the scope of the class in which they are declared.
  2466. Friend functions were documented to work this way in the old Annotated
  2467. \&\*(C+ Reference Manual.
  2468. However, in \s-1ISO \*(C+\s0 a friend function that is not declared
  2469. in an enclosing scope can only be found using argument dependent
  2470. lookup. \s-1GCC\s0 defaults to the standard behavior.
  2471. .Sp
  2472. This option is deprecated and will be removed.
  2473. .IP "\fB\-fno\-elide\-constructors\fR" 4
  2474. .IX Item "-fno-elide-constructors"
  2475. The \*(C+ standard allows an implementation to omit creating a temporary
  2476. that is only used to initialize another object of the same type.
  2477. Specifying this option disables that optimization, and forces G++ to
  2478. call the copy constructor in all cases. This option also causes G++
  2479. to call trivial member functions which otherwise would be expanded inline.
  2480. .Sp
  2481. In \*(C+17, the compiler is required to omit these temporaries, but this
  2482. option still affects trivial member functions.
  2483. .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
  2484. .IX Item "-fno-enforce-eh-specs"
  2485. Don't generate code to check for violation of exception specifications
  2486. at run time. This option violates the \*(C+ standard, but may be useful
  2487. for reducing code size in production builds, much like defining
  2488. \&\f(CW\*(C`NDEBUG\*(C'\fR. This does not give user code permission to throw
  2489. exceptions in violation of the exception specifications; the compiler
  2490. still optimizes based on the specifications, so throwing an
  2491. unexpected exception results in undefined behavior at run time.
  2492. .IP "\fB\-fextern\-tls\-init\fR" 4
  2493. .IX Item "-fextern-tls-init"
  2494. .PD 0
  2495. .IP "\fB\-fno\-extern\-tls\-init\fR" 4
  2496. .IX Item "-fno-extern-tls-init"
  2497. .PD
  2498. The \*(C+11 and OpenMP standards allow \f(CW\*(C`thread_local\*(C'\fR and
  2499. \&\f(CW\*(C`threadprivate\*(C'\fR variables to have dynamic (runtime)
  2500. initialization. To support this, any use of such a variable goes
  2501. through a wrapper function that performs any necessary initialization.
  2502. When the use and definition of the variable are in the same
  2503. translation unit, this overhead can be optimized away, but when the
  2504. use is in a different translation unit there is significant overhead
  2505. even if the variable doesn't actually need dynamic initialization. If
  2506. the programmer can be sure that no use of the variable in a
  2507. non-defining \s-1TU\s0 needs to trigger dynamic initialization (either
  2508. because the variable is statically initialized, or a use of the
  2509. variable in the defining \s-1TU\s0 will be executed before any uses in
  2510. another \s-1TU\s0), they can avoid this overhead with the
  2511. \&\fB\-fno\-extern\-tls\-init\fR option.
  2512. .Sp
  2513. On targets that support symbol aliases, the default is
  2514. \&\fB\-fextern\-tls\-init\fR. On targets that do not support symbol
  2515. aliases, the default is \fB\-fno\-extern\-tls\-init\fR.
  2516. .IP "\fB\-ffor\-scope\fR" 4
  2517. .IX Item "-ffor-scope"
  2518. .PD 0
  2519. .IP "\fB\-fno\-for\-scope\fR" 4
  2520. .IX Item "-fno-for-scope"
  2521. .PD
  2522. If \fB\-ffor\-scope\fR is specified, the scope of variables declared in
  2523. a \fIfor-init-statement\fR is limited to the \f(CW\*(C`for\*(C'\fR loop itself,
  2524. as specified by the \*(C+ standard.
  2525. If \fB\-fno\-for\-scope\fR is specified, the scope of variables declared in
  2526. a \fIfor-init-statement\fR extends to the end of the enclosing scope,
  2527. as was the case in old versions of G++, and other (traditional)
  2528. implementations of \*(C+.
  2529. .Sp
  2530. This option is deprecated and the associated non-standard
  2531. functionality will be removed.
  2532. .IP "\fB\-fno\-gnu\-keywords\fR" 4
  2533. .IX Item "-fno-gnu-keywords"
  2534. Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
  2535. word as an identifier. You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
  2536. This option is implied by the strict \s-1ISO \*(C+\s0 dialects: \fB\-ansi\fR,
  2537. \&\fB\-std=c++98\fR, \fB\-std=c++11\fR, etc.
  2538. .IP "\fB\-fno\-implicit\-templates\fR" 4
  2539. .IX Item "-fno-implicit-templates"
  2540. Never emit code for non-inline templates that are instantiated
  2541. implicitly (i.e. by use); only emit code for explicit instantiations.
  2542. .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
  2543. .IX Item "-fno-implicit-inline-templates"
  2544. Don't emit code for implicit instantiations of inline templates, either.
  2545. The default is to handle inlines differently so that compiles with and
  2546. without optimization need the same set of explicit instantiations.
  2547. .IP "\fB\-fno\-implement\-inlines\fR" 4
  2548. .IX Item "-fno-implement-inlines"
  2549. To save space, do not emit out-of-line copies of inline functions
  2550. controlled by \f(CW\*(C`#pragma implementation\*(C'\fR. This causes linker
  2551. errors if these functions are not inlined everywhere they are called.
  2552. .IP "\fB\-fms\-extensions\fR" 4
  2553. .IX Item "-fms-extensions"
  2554. Disable Wpedantic warnings about constructs used in \s-1MFC,\s0 such as implicit
  2555. int and getting a pointer to member function via non-standard syntax.
  2556. .IP "\fB\-fnew\-inheriting\-ctors\fR" 4
  2557. .IX Item "-fnew-inheriting-ctors"
  2558. Enable the P0136 adjustment to the semantics of \*(C+11 constructor
  2559. inheritance. This is part of \*(C+17 but also considered to be a Defect
  2560. Report against \*(C+11 and \*(C+14. This flag is enabled by default
  2561. unless \fB\-fabi\-version=10\fR or lower is specified.
  2562. .IP "\fB\-fnew\-ttp\-matching\fR" 4
  2563. .IX Item "-fnew-ttp-matching"
  2564. Enable the P0522 resolution to Core issue 150, template template
  2565. parameters and default arguments: this allows a template with default
  2566. template arguments as an argument for a template template parameter
  2567. with fewer template parameters. This flag is enabled by default for
  2568. \&\fB\-std=c++17\fR.
  2569. .IP "\fB\-fno\-nonansi\-builtins\fR" 4
  2570. .IX Item "-fno-nonansi-builtins"
  2571. Disable built-in declarations of functions that are not mandated by
  2572. \&\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,
  2573. \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
  2574. .IP "\fB\-fnothrow\-opt\fR" 4
  2575. .IX Item "-fnothrow-opt"
  2576. Treat a \f(CW\*(C`throw()\*(C'\fR exception specification as if it were a
  2577. \&\f(CW\*(C`noexcept\*(C'\fR specification to reduce or eliminate the text size
  2578. overhead relative to a function with no exception specification. If
  2579. the function has local variables of types with non-trivial
  2580. destructors, the exception specification actually makes the
  2581. function smaller because the \s-1EH\s0 cleanups for those variables can be
  2582. optimized away. The semantic effect is that an exception thrown out of
  2583. a function with such an exception specification results in a call
  2584. to \f(CW\*(C`terminate\*(C'\fR rather than \f(CW\*(C`unexpected\*(C'\fR.
  2585. .IP "\fB\-fno\-operator\-names\fR" 4
  2586. .IX Item "-fno-operator-names"
  2587. Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
  2588. \&\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
  2589. synonyms as keywords.
  2590. .IP "\fB\-fno\-optional\-diags\fR" 4
  2591. .IX Item "-fno-optional-diags"
  2592. Disable diagnostics that the standard says a compiler does not need to
  2593. issue. Currently, the only such diagnostic issued by G++ is the one for
  2594. a name having multiple meanings within a class.
  2595. .IP "\fB\-fpermissive\fR" 4
  2596. .IX Item "-fpermissive"
  2597. Downgrade some diagnostics about nonconformant code from errors to
  2598. warnings. Thus, using \fB\-fpermissive\fR allows some
  2599. nonconforming code to compile.
  2600. .IP "\fB\-fno\-pretty\-templates\fR" 4
  2601. .IX Item "-fno-pretty-templates"
  2602. When an error message refers to a specialization of a function
  2603. template, the compiler normally prints the signature of the
  2604. template followed by the template arguments and any typedefs or
  2605. typenames in the signature (e.g. \f(CW\*(C`void f(T) [with T = int]\*(C'\fR
  2606. rather than \f(CW\*(C`void f(int)\*(C'\fR) so that it's clear which template is
  2607. involved. When an error message refers to a specialization of a class
  2608. template, the compiler omits any template arguments that match
  2609. the default template arguments for that template. If either of these
  2610. behaviors make it harder to understand the error message rather than
  2611. easier, you can use \fB\-fno\-pretty\-templates\fR to disable them.
  2612. .IP "\fB\-frepo\fR" 4
  2613. .IX Item "-frepo"
  2614. Enable automatic template instantiation at link time. This option also
  2615. implies \fB\-fno\-implicit\-templates\fR.
  2616. .IP "\fB\-fno\-rtti\fR" 4
  2617. .IX Item "-fno-rtti"
  2618. Disable generation of information about every class with virtual
  2619. functions for use by the \*(C+ run-time type identification features
  2620. (\f(CW\*(C`dynamic_cast\*(C'\fR and \f(CW\*(C`typeid\*(C'\fR). If you don't use those parts
  2621. of the language, you can save some space by using this flag. Note that
  2622. exception handling uses the same information, but G++ generates it as
  2623. needed. The \f(CW\*(C`dynamic_cast\*(C'\fR operator can still be used for casts that
  2624. do not require run-time type information, i.e. casts to \f(CW\*(C`void *\*(C'\fR or to
  2625. unambiguous base classes.
  2626. .IP "\fB\-fsized\-deallocation\fR" 4
  2627. .IX Item "-fsized-deallocation"
  2628. Enable the built-in global declarations
  2629. .Sp
  2630. .Vb 2
  2631. \& void operator delete (void *, std::size_t) noexcept;
  2632. \& void operator delete[] (void *, std::size_t) noexcept;
  2633. .Ve
  2634. .Sp
  2635. as introduced in \*(C+14. This is useful for user-defined replacement
  2636. deallocation functions that, for example, use the size of the object
  2637. to make deallocation faster. Enabled by default under
  2638. \&\fB\-std=c++14\fR and above. The flag \fB\-Wsized\-deallocation\fR
  2639. warns about places that might want to add a definition.
  2640. .IP "\fB\-fstrict\-enums\fR" 4
  2641. .IX Item "-fstrict-enums"
  2642. Allow the compiler to optimize using the assumption that a value of
  2643. enumerated type can only be one of the values of the enumeration (as
  2644. defined in the \*(C+ standard; basically, a value that can be
  2645. represented in the minimum number of bits needed to represent all the
  2646. enumerators). This assumption may not be valid if the program uses a
  2647. cast to convert an arbitrary integer value to the enumerated type.
  2648. .IP "\fB\-fstrong\-eval\-order\fR" 4
  2649. .IX Item "-fstrong-eval-order"
  2650. Evaluate member access, array subscripting, and shift expressions in
  2651. left-to-right order, and evaluate assignment in right-to-left order,
  2652. as adopted for \*(C+17. Enabled by default with \fB\-std=c++17\fR.
  2653. \&\fB\-fstrong\-eval\-order=some\fR enables just the ordering of member
  2654. access and shift expressions, and is the default without
  2655. \&\fB\-std=c++17\fR.
  2656. .IP "\fB\-ftemplate\-backtrace\-limit=\fR\fIn\fR" 4
  2657. .IX Item "-ftemplate-backtrace-limit=n"
  2658. Set the maximum number of template instantiation notes for a single
  2659. warning or error to \fIn\fR. The default value is 10.
  2660. .IP "\fB\-ftemplate\-depth=\fR\fIn\fR" 4
  2661. .IX Item "-ftemplate-depth=n"
  2662. Set the maximum instantiation depth for template classes to \fIn\fR.
  2663. A limit on the template instantiation depth is needed to detect
  2664. endless recursions during template class instantiation. \s-1ANSI/ISO \*(C+\s0
  2665. conforming programs must not rely on a maximum depth greater than 17
  2666. (changed to 1024 in \*(C+11). The default value is 900, as the compiler
  2667. can run out of stack space before hitting 1024 in some situations.
  2668. .IP "\fB\-fno\-threadsafe\-statics\fR" 4
  2669. .IX Item "-fno-threadsafe-statics"
  2670. Do not emit the extra code to use the routines specified in the \*(C+
  2671. \&\s-1ABI\s0 for thread-safe initialization of local statics. You can use this
  2672. option to reduce code size slightly in code that doesn't need to be
  2673. thread-safe.
  2674. .IP "\fB\-fuse\-cxa\-atexit\fR" 4
  2675. .IX Item "-fuse-cxa-atexit"
  2676. Register destructors for objects with static storage duration with the
  2677. \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
  2678. This option is required for fully standards-compliant handling of static
  2679. destructors, but only works if your C library supports
  2680. \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
  2681. .IP "\fB\-fno\-use\-cxa\-get\-exception\-ptr\fR" 4
  2682. .IX Item "-fno-use-cxa-get-exception-ptr"
  2683. Don't use the \f(CW\*(C`_\|_cxa_get_exception_ptr\*(C'\fR runtime routine. This
  2684. causes \f(CW\*(C`std::uncaught_exception\*(C'\fR to be incorrect, but is necessary
  2685. if the runtime routine is not available.
  2686. .IP "\fB\-fvisibility\-inlines\-hidden\fR" 4
  2687. .IX Item "-fvisibility-inlines-hidden"
  2688. This switch declares that the user does not attempt to compare
  2689. pointers to inline functions or methods where the addresses of the two functions
  2690. are taken in different shared objects.
  2691. .Sp
  2692. The effect of this is that \s-1GCC\s0 may, effectively, mark inline methods with
  2693. \&\f(CW\*(C`_\|_attribute_\|_ ((visibility ("hidden")))\*(C'\fR so that they do not
  2694. appear in the export table of a \s-1DSO\s0 and do not require a \s-1PLT\s0 indirection
  2695. when used within the \s-1DSO.\s0 Enabling this option can have a dramatic effect
  2696. on load and link times of a \s-1DSO\s0 as it massively reduces the size of the
  2697. dynamic export table when the library makes heavy use of templates.
  2698. .Sp
  2699. The behavior of this switch is not quite the same as marking the
  2700. methods as hidden directly, because it does not affect static variables
  2701. local to the function or cause the compiler to deduce that
  2702. the function is defined in only one shared object.
  2703. .Sp
  2704. You may mark a method as having a visibility explicitly to negate the
  2705. effect of the switch for that method. For example, if you do want to
  2706. compare pointers to a particular inline method, you might mark it as
  2707. having default visibility. Marking the enclosing class with explicit
  2708. visibility has no effect.
  2709. .Sp
  2710. Explicitly instantiated inline methods are unaffected by this option
  2711. as their linkage might otherwise cross a shared library boundary.
  2712. .IP "\fB\-fvisibility\-ms\-compat\fR" 4
  2713. .IX Item "-fvisibility-ms-compat"
  2714. This flag attempts to use visibility settings to make \s-1GCC\s0's \*(C+
  2715. linkage model compatible with that of Microsoft Visual Studio.
  2716. .Sp
  2717. The flag makes these changes to \s-1GCC\s0's linkage model:
  2718. .RS 4
  2719. .IP "1." 4
  2720. .IX Item "1."
  2721. It sets the default visibility to \f(CW\*(C`hidden\*(C'\fR, like
  2722. \&\fB\-fvisibility=hidden\fR.
  2723. .IP "2." 4
  2724. .IX Item "2."
  2725. Types, but not their members, are not hidden by default.
  2726. .IP "3." 4
  2727. .IX Item "3."
  2728. The One Definition Rule is relaxed for types without explicit
  2729. visibility specifications that are defined in more than one
  2730. shared object: those declarations are permitted if they are
  2731. permitted when this option is not used.
  2732. .RE
  2733. .RS 4
  2734. .Sp
  2735. In new code it is better to use \fB\-fvisibility=hidden\fR and
  2736. export those classes that are intended to be externally visible.
  2737. Unfortunately it is possible for code to rely, perhaps accidentally,
  2738. on the Visual Studio behavior.
  2739. .Sp
  2740. Among the consequences of these changes are that static data members
  2741. of the same type with the same name but defined in different shared
  2742. objects are different, so changing one does not change the other;
  2743. and that pointers to function members defined in different shared
  2744. objects may not compare equal. When this flag is given, it is a
  2745. violation of the \s-1ODR\s0 to define types with the same name differently.
  2746. .RE
  2747. .IP "\fB\-fno\-weak\fR" 4
  2748. .IX Item "-fno-weak"
  2749. Do not use weak symbol support, even if it is provided by the linker.
  2750. By default, G++ uses weak symbols if they are available. This
  2751. option exists only for testing, and should not be used by end-users;
  2752. it results in inferior code and has no benefits. This option may
  2753. be removed in a future release of G++.
  2754. .IP "\fB\-nostdinc++\fR" 4
  2755. .IX Item "-nostdinc++"
  2756. Do not search for header files in the standard directories specific to
  2757. \&\*(C+, but do still search the other standard directories. (This option
  2758. is used when building the \*(C+ library.)
  2759. .PP
  2760. In addition, these optimization, warning, and code generation options
  2761. have meanings only for \*(C+ programs:
  2762. .IP "\fB\-Wabi\fR (C, Objective-C, \*(C+ and Objective\-\*(C+ only)" 4
  2763. .IX Item "-Wabi (C, Objective-C, and Objective- only)"
  2764. Warn when G++ it generates code that is probably not compatible with
  2765. the vendor-neutral \*(C+ \s-1ABI.\s0 Since G++ now defaults to updating the
  2766. \&\s-1ABI\s0 with each major release, normally \fB\-Wabi\fR will warn only if
  2767. there is a check added later in a release series for an \s-1ABI\s0 issue
  2768. discovered since the initial release. \fB\-Wabi\fR will warn about
  2769. more things if an older \s-1ABI\s0 version is selected (with
  2770. \&\fB\-fabi\-version=\fR\fIn\fR).
  2771. .Sp
  2772. \&\fB\-Wabi\fR can also be used with an explicit version number to
  2773. warn about compatibility with a particular \fB\-fabi\-version\fR
  2774. level, e.g. \fB\-Wabi=2\fR to warn about changes relative to
  2775. \&\fB\-fabi\-version=2\fR.
  2776. .Sp
  2777. If an explicit version number is provided and
  2778. \&\fB\-fabi\-compat\-version\fR is not specified, the version number
  2779. from this option is used for compatibility aliases. If no explicit
  2780. version number is provided with this option, but
  2781. \&\fB\-fabi\-compat\-version\fR is specified, that version number is
  2782. used for \s-1ABI\s0 warnings.
  2783. .Sp
  2784. Although an effort has been made to warn about
  2785. all such cases, there are probably some cases that are not warned about,
  2786. even though G++ is generating incompatible code. There may also be
  2787. cases where warnings are emitted even though the code that is generated
  2788. is compatible.
  2789. .Sp
  2790. You should rewrite your code to avoid these warnings if you are
  2791. concerned about the fact that code generated by G++ may not be binary
  2792. compatible with code generated by other compilers.
  2793. .Sp
  2794. Known incompatibilities in \fB\-fabi\-version=2\fR (which was the
  2795. default from \s-1GCC 3.4\s0 to 4.9) include:
  2796. .RS 4
  2797. .IP "*" 4
  2798. A template with a non-type template parameter of reference type was
  2799. mangled incorrectly:
  2800. .Sp
  2801. .Vb 3
  2802. \& extern int N;
  2803. \& template <int &> struct S {};
  2804. \& void n (S<N>) {2}
  2805. .Ve
  2806. .Sp
  2807. This was fixed in \fB\-fabi\-version=3\fR.
  2808. .IP "*" 4
  2809. \&\s-1SIMD\s0 vector types declared using \f(CW\*(C`_\|_attribute ((vector_size))\*(C'\fR were
  2810. mangled in a non-standard way that does not allow for overloading of
  2811. functions taking vectors of different sizes.
  2812. .Sp
  2813. The mangling was changed in \fB\-fabi\-version=4\fR.
  2814. .IP "*" 4
  2815. \&\f(CW\*(C`_\|_attribute ((const))\*(C'\fR and \f(CW\*(C`noreturn\*(C'\fR were mangled as type
  2816. qualifiers, and \f(CW\*(C`decltype\*(C'\fR of a plain declaration was folded away.
  2817. .Sp
  2818. These mangling issues were fixed in \fB\-fabi\-version=5\fR.
  2819. .IP "*" 4
  2820. Scoped enumerators passed as arguments to a variadic function are
  2821. promoted like unscoped enumerators, causing \f(CW\*(C`va_arg\*(C'\fR to complain.
  2822. On most targets this does not actually affect the parameter passing
  2823. \&\s-1ABI,\s0 as there is no way to pass an argument smaller than \f(CW\*(C`int\*(C'\fR.
  2824. .Sp
  2825. Also, the \s-1ABI\s0 changed the mangling of template argument packs,
  2826. \&\f(CW\*(C`const_cast\*(C'\fR, \f(CW\*(C`static_cast\*(C'\fR, prefix increment/decrement, and
  2827. a class scope function used as a template argument.
  2828. .Sp
  2829. These issues were corrected in \fB\-fabi\-version=6\fR.
  2830. .IP "*" 4
  2831. Lambdas in default argument scope were mangled incorrectly, and the
  2832. \&\s-1ABI\s0 changed the mangling of \f(CW\*(C`nullptr_t\*(C'\fR.
  2833. .Sp
  2834. These issues were corrected in \fB\-fabi\-version=7\fR.
  2835. .IP "*" 4
  2836. When mangling a function type with function-cv-qualifiers, the
  2837. un-qualified function type was incorrectly treated as a substitution
  2838. candidate.
  2839. .Sp
  2840. This was fixed in \fB\-fabi\-version=8\fR, the default for \s-1GCC 5.1.\s0
  2841. .IP "*" 4
  2842. \&\f(CW\*(C`decltype(nullptr)\*(C'\fR incorrectly had an alignment of 1, leading to
  2843. unaligned accesses. Note that this did not affect the \s-1ABI\s0 of a
  2844. function with a \f(CW\*(C`nullptr_t\*(C'\fR parameter, as parameters have a
  2845. minimum alignment.
  2846. .Sp
  2847. This was fixed in \fB\-fabi\-version=9\fR, the default for \s-1GCC 5.2.\s0
  2848. .IP "*" 4
  2849. Target-specific attributes that affect the identity of a type, such as
  2850. ia32 calling conventions on a function type (stdcall, regparm, etc.),
  2851. did not affect the mangled name, leading to name collisions when
  2852. function pointers were used as template arguments.
  2853. .Sp
  2854. This was fixed in \fB\-fabi\-version=10\fR, the default for \s-1GCC 6.1.\s0
  2855. .RE
  2856. .RS 4
  2857. .Sp
  2858. It also warns about psABI-related changes. The known psABI changes at this
  2859. point include:
  2860. .IP "*" 4
  2861. For SysV/x86\-64, unions with \f(CW\*(C`long double\*(C'\fR members are
  2862. passed in memory as specified in psABI. For example:
  2863. .Sp
  2864. .Vb 4
  2865. \& union U {
  2866. \& long double ld;
  2867. \& int i;
  2868. \& };
  2869. .Ve
  2870. .Sp
  2871. \&\f(CW\*(C`union U\*(C'\fR is always passed in memory.
  2872. .RE
  2873. .RS 4
  2874. .RE
  2875. .IP "\fB\-Wabi\-tag\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2876. .IX Item "-Wabi-tag ( and Objective- only)"
  2877. Warn when a type with an \s-1ABI\s0 tag is used in a context that does not
  2878. have that \s-1ABI\s0 tag. See \fB\*(C+ Attributes\fR for more information
  2879. about \s-1ABI\s0 tags.
  2880. .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2881. .IX Item "-Wctor-dtor-privacy ( and Objective- only)"
  2882. Warn when a class seems unusable because all the constructors or
  2883. destructors in that class are private, and it has neither friends nor
  2884. public static member functions. Also warn if there are no non-private
  2885. methods, and there's at least one private member function that isn't
  2886. a constructor or destructor.
  2887. .IP "\fB\-Wdelete\-non\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2888. .IX Item "-Wdelete-non-virtual-dtor ( and Objective- only)"
  2889. Warn when \f(CW\*(C`delete\*(C'\fR is used to destroy an instance of a class that
  2890. has virtual functions and non-virtual destructor. It is unsafe to delete
  2891. an instance of a derived class through a pointer to a base class if the
  2892. base class does not have a virtual destructor. This warning is enabled
  2893. by \fB\-Wall\fR.
  2894. .IP "\fB\-Wliteral\-suffix\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2895. .IX Item "-Wliteral-suffix ( and Objective- only)"
  2896. Warn when a string or character literal is followed by a ud-suffix which does
  2897. not begin with an underscore. As a conforming extension, \s-1GCC\s0 treats such
  2898. suffixes as separate preprocessing tokens in order to maintain backwards
  2899. compatibility with code that uses formatting macros from \f(CW\*(C`<inttypes.h>\*(C'\fR.
  2900. For example:
  2901. .Sp
  2902. .Vb 3
  2903. \& #define _\|_STDC_FORMAT_MACROS
  2904. \& #include <inttypes.h>
  2905. \& #include <stdio.h>
  2906. \&
  2907. \& int main() {
  2908. \& int64_t i64 = 123;
  2909. \& printf("My int64: %" PRId64"\en", i64);
  2910. \& }
  2911. .Ve
  2912. .Sp
  2913. In this case, \f(CW\*(C`PRId64\*(C'\fR is treated as a separate preprocessing token.
  2914. .Sp
  2915. Additionally, warn when a user-defined literal operator is declared with
  2916. a literal suffix identifier that doesn't begin with an underscore. Literal
  2917. suffix identifiers that don't begin with an underscore are reserved for
  2918. future standardization.
  2919. .Sp
  2920. This warning is enabled by default.
  2921. .IP "\fB\-Wlto\-type\-mismatch\fR" 4
  2922. .IX Item "-Wlto-type-mismatch"
  2923. During the link-time optimization warn about type mismatches in
  2924. global declarations from different compilation units.
  2925. Requires \fB\-flto\fR to be enabled. Enabled by default.
  2926. .IP "\fB\-Wno\-narrowing\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2927. .IX Item "-Wno-narrowing ( and Objective- only)"
  2928. For \*(C+11 and later standards, narrowing conversions are diagnosed by default,
  2929. as required by the standard. A narrowing conversion from a constant produces
  2930. an error, and a narrowing conversion from a non-constant produces a warning,
  2931. but \fB\-Wno\-narrowing\fR suppresses the diagnostic.
  2932. Note that this does not affect the meaning of well-formed code;
  2933. narrowing conversions are still considered ill-formed in \s-1SFINAE\s0 contexts.
  2934. .Sp
  2935. With \fB\-Wnarrowing\fR in \*(C+98, warn when a narrowing
  2936. conversion prohibited by \*(C+11 occurs within
  2937. \&\fB{ }\fR, e.g.
  2938. .Sp
  2939. .Vb 1
  2940. \& int i = { 2.2 }; // error: narrowing from double to int
  2941. .Ve
  2942. .Sp
  2943. This flag is included in \fB\-Wall\fR and \fB\-Wc++11\-compat\fR.
  2944. .IP "\fB\-Wnoexcept\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2945. .IX Item "-Wnoexcept ( and Objective- only)"
  2946. Warn when a noexcept-expression evaluates to false because of a call
  2947. to a function that does not have a non-throwing exception
  2948. specification (i.e. \f(CW\*(C`throw()\*(C'\fR or \f(CW\*(C`noexcept\*(C'\fR) but is known by
  2949. the compiler to never throw an exception.
  2950. .IP "\fB\-Wnoexcept\-type\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2951. .IX Item "-Wnoexcept-type ( and Objective- only)"
  2952. Warn if the \*(C+17 feature making \f(CW\*(C`noexcept\*(C'\fR part of a function
  2953. type changes the mangled name of a symbol relative to \*(C+14. Enabled
  2954. by \fB\-Wabi\fR and \fB\-Wc++17\-compat\fR.
  2955. .Sp
  2956. As an example:
  2957. .Sp
  2958. .Vb 3
  2959. \& template <class T> void f(T t) { t(); };
  2960. \& void g() noexcept;
  2961. \& void h() { f(g); }
  2962. .Ve
  2963. .Sp
  2964. In \*(C+14, \f(CW\*(C`f\*(C'\fR calls \f(CW\*(C`f<void(*)()>\*(C'\fR, but in
  2965. \&\*(C+17 it calls \f(CW\*(C`f<void(*)()noexcept>\*(C'\fR.
  2966. .IP "\fB\-Wclass\-memaccess\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2967. .IX Item "-Wclass-memaccess ( and Objective- only)"
  2968. Warn when the destination of a call to a raw memory function such as
  2969. \&\f(CW\*(C`memset\*(C'\fR or \f(CW\*(C`memcpy\*(C'\fR is an object of class type, and when writing
  2970. into such an object might bypass the class non-trivial or deleted constructor
  2971. or copy assignment, violate const-correctness or encapsulation, or corrupt
  2972. virtual table pointers. Modifying the representation of such objects may
  2973. violate invariants maintained by member functions of the class. For example,
  2974. the call to \f(CW\*(C`memset\*(C'\fR below is undefined because it modifies a non-trivial
  2975. class object and is, therefore, diagnosed. The safe way to either initialize
  2976. or clear the storage of objects of such types is by using the appropriate
  2977. constructor or assignment operator, if one is available.
  2978. .Sp
  2979. .Vb 2
  2980. \& std::string str = "abc";
  2981. \& memset (&str, 0, sizeof str);
  2982. .Ve
  2983. .Sp
  2984. The \fB\-Wclass\-memaccess\fR option is enabled by \fB\-Wall\fR.
  2985. Explicitly casting the pointer to the class object to \f(CW\*(C`void *\*(C'\fR or
  2986. to a type that can be safely accessed by the raw memory function suppresses
  2987. the warning.
  2988. .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2989. .IX Item "-Wnon-virtual-dtor ( and Objective- only)"
  2990. Warn when a class has virtual functions and an accessible non-virtual
  2991. destructor itself or in an accessible polymorphic base class, in which
  2992. case it is possible but unsafe to delete an instance of a derived
  2993. class through a pointer to the class itself or base class. This
  2994. warning is automatically enabled if \fB\-Weffc++\fR is specified.
  2995. .IP "\fB\-Wregister\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2996. .IX Item "-Wregister ( and Objective- only)"
  2997. Warn on uses of the \f(CW\*(C`register\*(C'\fR storage class specifier, except
  2998. when it is part of the \s-1GNU\s0 \fBExplicit Register Variables\fR extension.
  2999. The use of the \f(CW\*(C`register\*(C'\fR keyword as storage class specifier has
  3000. been deprecated in \*(C+11 and removed in \*(C+17.
  3001. Enabled by default with \fB\-std=c++17\fR.
  3002. .IP "\fB\-Wreorder\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3003. .IX Item "-Wreorder ( and Objective- only)"
  3004. Warn when the order of member initializers given in the code does not
  3005. match the order in which they must be executed. For instance:
  3006. .Sp
  3007. .Vb 5
  3008. \& struct A {
  3009. \& int i;
  3010. \& int j;
  3011. \& A(): j (0), i (1) { }
  3012. \& };
  3013. .Ve
  3014. .Sp
  3015. The compiler rearranges the member initializers for \f(CW\*(C`i\*(C'\fR
  3016. and \f(CW\*(C`j\*(C'\fR to match the declaration order of the members, emitting
  3017. a warning to that effect. This warning is enabled by \fB\-Wall\fR.
  3018. .IP "\fB\-fext\-numeric\-literals\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3019. .IX Item "-fext-numeric-literals ( and Objective- only)"
  3020. Accept imaginary, fixed-point, or machine-defined
  3021. literal number suffixes as \s-1GNU\s0 extensions.
  3022. When this option is turned off these suffixes are treated
  3023. as \*(C+11 user-defined literal numeric suffixes.
  3024. This is on by default for all pre\-\*(C+11 dialects and all \s-1GNU\s0 dialects:
  3025. \&\fB\-std=c++98\fR, \fB\-std=gnu++98\fR, \fB\-std=gnu++11\fR,
  3026. \&\fB\-std=gnu++14\fR.
  3027. This option is off by default
  3028. for \s-1ISO \*(C+11\s0 onwards (\fB\-std=c++11\fR, ...).
  3029. .PP
  3030. The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
  3031. .IP "\fB\-Weffc++\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3032. .IX Item "-Weffc++ ( and Objective- only)"
  3033. Warn about violations of the following style guidelines from Scott Meyers'
  3034. \&\fIEffective \*(C+\fR series of books:
  3035. .RS 4
  3036. .IP "*" 4
  3037. Define a copy constructor and an assignment operator for classes
  3038. with dynamically-allocated memory.
  3039. .IP "*" 4
  3040. Prefer initialization to assignment in constructors.
  3041. .IP "*" 4
  3042. Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
  3043. .IP "*" 4
  3044. Don't try to return a reference when you must return an object.
  3045. .IP "*" 4
  3046. Distinguish between prefix and postfix forms of increment and
  3047. decrement operators.
  3048. .IP "*" 4
  3049. Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
  3050. .RE
  3051. .RS 4
  3052. .Sp
  3053. This option also enables \fB\-Wnon\-virtual\-dtor\fR, which is also
  3054. one of the effective \*(C+ recommendations. However, the check is
  3055. extended to warn about the lack of virtual destructor in accessible
  3056. non-polymorphic bases classes too.
  3057. .Sp
  3058. When selecting this option, be aware that the standard library
  3059. headers do not obey all of these guidelines; use \fBgrep \-v\fR
  3060. to filter out those warnings.
  3061. .RE
  3062. .IP "\fB\-Wstrict\-null\-sentinel\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3063. .IX Item "-Wstrict-null-sentinel ( and Objective- only)"
  3064. Warn about the use of an uncasted \f(CW\*(C`NULL\*(C'\fR as sentinel. When
  3065. compiling only with \s-1GCC\s0 this is a valid sentinel, as \f(CW\*(C`NULL\*(C'\fR is defined
  3066. to \f(CW\*(C`_\|_null\*(C'\fR. Although it is a null pointer constant rather than a
  3067. null pointer, it is guaranteed to be of the same size as a pointer.
  3068. But this use is not portable across different compilers.
  3069. .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3070. .IX Item "-Wno-non-template-friend ( and Objective- only)"
  3071. Disable warnings when non-template friend functions are declared
  3072. within a template. In very old versions of \s-1GCC\s0 that predate implementation
  3073. of the \s-1ISO\s0 standard, declarations such as
  3074. \&\fBfriend int foo(int)\fR, where the name of the friend is an unqualified-id,
  3075. could be interpreted as a particular specialization of a template
  3076. function; the warning exists to diagnose compatibility problems,
  3077. and is enabled by default.
  3078. .IP "\fB\-Wold\-style\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3079. .IX Item "-Wold-style-cast ( and Objective- only)"
  3080. Warn if an old-style (C\-style) cast to a non-void type is used within
  3081. a \*(C+ program. The new-style casts (\f(CW\*(C`dynamic_cast\*(C'\fR,
  3082. \&\f(CW\*(C`static_cast\*(C'\fR, \f(CW\*(C`reinterpret_cast\*(C'\fR, and \f(CW\*(C`const_cast\*(C'\fR) are
  3083. less vulnerable to unintended effects and much easier to search for.
  3084. .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3085. .IX Item "-Woverloaded-virtual ( and Objective- only)"
  3086. Warn when a function declaration hides virtual functions from a
  3087. base class. For example, in:
  3088. .Sp
  3089. .Vb 3
  3090. \& struct A {
  3091. \& virtual void f();
  3092. \& };
  3093. \&
  3094. \& struct B: public A {
  3095. \& void f(int);
  3096. \& };
  3097. .Ve
  3098. .Sp
  3099. 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
  3100. like:
  3101. .Sp
  3102. .Vb 2
  3103. \& B* b;
  3104. \& b\->f();
  3105. .Ve
  3106. .Sp
  3107. fails to compile.
  3108. .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3109. .IX Item "-Wno-pmf-conversions ( and Objective- only)"
  3110. Disable the diagnostic for converting a bound pointer to member function
  3111. to a plain pointer.
  3112. .IP "\fB\-Wsign\-promo\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3113. .IX Item "-Wsign-promo ( and Objective- only)"
  3114. Warn when overload resolution chooses a promotion from unsigned or
  3115. enumerated type to a signed type, over a conversion to an unsigned type of
  3116. the same size. Previous versions of G++ tried to preserve
  3117. unsignedness, but the standard mandates the current behavior.
  3118. .IP "\fB\-Wtemplates\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3119. .IX Item "-Wtemplates ( and Objective- only)"
  3120. Warn when a primary template declaration is encountered. Some coding
  3121. rules disallow templates, and this may be used to enforce that rule.
  3122. The warning is inactive inside a system header file, such as the \s-1STL,\s0 so
  3123. one can still use the \s-1STL.\s0 One may also instantiate or specialize
  3124. templates.
  3125. .IP "\fB\-Wmultiple\-inheritance\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3126. .IX Item "-Wmultiple-inheritance ( and Objective- only)"
  3127. Warn when a class is defined with multiple direct base classes. Some
  3128. coding rules disallow multiple inheritance, and this may be used to
  3129. enforce that rule. The warning is inactive inside a system header file,
  3130. such as the \s-1STL,\s0 so one can still use the \s-1STL.\s0 One may also define
  3131. classes that indirectly use multiple inheritance.
  3132. .IP "\fB\-Wvirtual\-inheritance\fR" 4
  3133. .IX Item "-Wvirtual-inheritance"
  3134. Warn when a class is defined with a virtual direct base class. Some
  3135. coding rules disallow multiple inheritance, and this may be used to
  3136. enforce that rule. The warning is inactive inside a system header file,
  3137. such as the \s-1STL,\s0 so one can still use the \s-1STL.\s0 One may also define
  3138. classes that indirectly use virtual inheritance.
  3139. .IP "\fB\-Wnamespaces\fR" 4
  3140. .IX Item "-Wnamespaces"
  3141. Warn when a namespace definition is opened. Some coding rules disallow
  3142. namespaces, and this may be used to enforce that rule. The warning is
  3143. inactive inside a system header file, such as the \s-1STL,\s0 so one can still
  3144. use the \s-1STL.\s0 One may also use using directives and qualified names.
  3145. .IP "\fB\-Wno\-terminate\fR (\*(C+ and Objective\-\*(C+ only)" 4
  3146. .IX Item "-Wno-terminate ( and Objective- only)"
  3147. Disable the warning about a throw-expression that will immediately
  3148. result in a call to \f(CW\*(C`terminate\*(C'\fR.
  3149. .SS "Options Controlling Objective-C and Objective\-\*(C+ Dialects"
  3150. .IX Subsection "Options Controlling Objective-C and Objective- Dialects"
  3151. (\s-1NOTE:\s0 This manual does not describe the Objective-C and Objective\-\*(C+
  3152. languages themselves.
  3153. .PP
  3154. This section describes the command-line options that are only meaningful
  3155. for Objective-C and Objective\-\*(C+ programs. You can also use most of
  3156. the language-independent \s-1GNU\s0 compiler options.
  3157. For example, you might compile a file \fIsome_class.m\fR like this:
  3158. .PP
  3159. .Vb 1
  3160. \& gcc \-g \-fgnu\-runtime \-O \-c some_class.m
  3161. .Ve
  3162. .PP
  3163. In this example, \fB\-fgnu\-runtime\fR is an option meant only for
  3164. Objective-C and Objective\-\*(C+ programs; you can use the other options with
  3165. any language supported by \s-1GCC.\s0
  3166. .PP
  3167. Note that since Objective-C is an extension of the C language, Objective-C
  3168. compilations may also use options specific to the C front-end (e.g.,
  3169. \&\fB\-Wtraditional\fR). Similarly, Objective\-\*(C+ compilations may use
  3170. \&\*(C+\-specific options (e.g., \fB\-Wabi\fR).
  3171. .PP
  3172. Here is a list of options that are \fIonly\fR for compiling Objective-C
  3173. and Objective\-\*(C+ programs:
  3174. .IP "\fB\-fconstant\-string\-class=\fR\fIclass-name\fR" 4
  3175. .IX Item "-fconstant-string-class=class-name"
  3176. Use \fIclass-name\fR as the name of the class to instantiate for each
  3177. literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR. The default
  3178. class name is \f(CW\*(C`NXConstantString\*(C'\fR if the \s-1GNU\s0 runtime is being used, and
  3179. \&\f(CW\*(C`NSConstantString\*(C'\fR if the NeXT runtime is being used (see below). The
  3180. \&\fB\-fconstant\-cfstrings\fR option, if also present, overrides the
  3181. \&\fB\-fconstant\-string\-class\fR setting and cause \f(CW\*(C`@"..."\*(C'\fR literals
  3182. to be laid out as constant CoreFoundation strings.
  3183. .IP "\fB\-fgnu\-runtime\fR" 4
  3184. .IX Item "-fgnu-runtime"
  3185. Generate object code compatible with the standard \s-1GNU\s0 Objective-C
  3186. runtime. This is the default for most types of systems.
  3187. .IP "\fB\-fnext\-runtime\fR" 4
  3188. .IX Item "-fnext-runtime"
  3189. Generate output compatible with the NeXT runtime. This is the default
  3190. for NeXT-based systems, including Darwin and Mac \s-1OS X.\s0 The macro
  3191. \&\f(CW\*(C`_\|_NEXT_RUNTIME_\|_\*(C'\fR is predefined if (and only if) this option is
  3192. used.
  3193. .IP "\fB\-fno\-nil\-receivers\fR" 4
  3194. .IX Item "-fno-nil-receivers"
  3195. Assume that all Objective-C message dispatches (\f(CW\*(C`[receiver
  3196. message:arg]\*(C'\fR) in this translation unit ensure that the receiver is
  3197. not \f(CW\*(C`nil\*(C'\fR. This allows for more efficient entry points in the
  3198. runtime to be used. This option is only available in conjunction with
  3199. the NeXT runtime and \s-1ABI\s0 version 0 or 1.
  3200. .IP "\fB\-fobjc\-abi\-version=\fR\fIn\fR" 4
  3201. .IX Item "-fobjc-abi-version=n"
  3202. Use version \fIn\fR of the Objective-C \s-1ABI\s0 for the selected runtime.
  3203. This option is currently supported only for the NeXT runtime. In that
  3204. case, Version 0 is the traditional (32\-bit) \s-1ABI\s0 without support for
  3205. properties and other Objective-C 2.0 additions. Version 1 is the
  3206. traditional (32\-bit) \s-1ABI\s0 with support for properties and other
  3207. Objective-C 2.0 additions. Version 2 is the modern (64\-bit) \s-1ABI.\s0 If
  3208. nothing is specified, the default is Version 0 on 32\-bit target
  3209. machines, and Version 2 on 64\-bit target machines.
  3210. .IP "\fB\-fobjc\-call\-cxx\-cdtors\fR" 4
  3211. .IX Item "-fobjc-call-cxx-cdtors"
  3212. For each Objective-C class, check if any of its instance variables is a
  3213. \&\*(C+ object with a non-trivial default constructor. If so, synthesize a
  3214. special \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR instance method which runs
  3215. non-trivial default constructors on any such instance variables, in order,
  3216. and then return \f(CW\*(C`self\*(C'\fR. Similarly, check if any instance variable
  3217. is a \*(C+ object with a non-trivial destructor, and if so, synthesize a
  3218. special \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR method which runs
  3219. all such default destructors, in reverse order.
  3220. .Sp
  3221. The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR
  3222. methods thusly generated only operate on instance variables
  3223. declared in the current Objective-C class, and not those inherited
  3224. from superclasses. It is the responsibility of the Objective-C
  3225. runtime to invoke all such methods in an object's inheritance
  3226. hierarchy. The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR methods are invoked
  3227. by the runtime immediately after a new object instance is allocated;
  3228. the \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods are invoked immediately
  3229. before the runtime deallocates an object instance.
  3230. .Sp
  3231. As of this writing, only the NeXT runtime on Mac \s-1OS X 10.4\s0 and later has
  3232. support for invoking the \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and
  3233. \&\f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods.
  3234. .IP "\fB\-fobjc\-direct\-dispatch\fR" 4
  3235. .IX Item "-fobjc-direct-dispatch"
  3236. Allow fast jumps to the message dispatcher. On Darwin this is
  3237. accomplished via the comm page.
  3238. .IP "\fB\-fobjc\-exceptions\fR" 4
  3239. .IX Item "-fobjc-exceptions"
  3240. Enable syntactic support for structured exception handling in
  3241. Objective-C, similar to what is offered by \*(C+. This option
  3242. is required to use the Objective-C keywords \f(CW@try\fR,
  3243. \&\f(CW@throw\fR, \f(CW@catch\fR, \f(CW@finally\fR and
  3244. \&\f(CW@synchronized\fR. This option is available with both the \s-1GNU\s0
  3245. runtime and the NeXT runtime (but not available in conjunction with
  3246. the NeXT runtime on Mac \s-1OS X 10.2\s0 and earlier).
  3247. .IP "\fB\-fobjc\-gc\fR" 4
  3248. .IX Item "-fobjc-gc"
  3249. Enable garbage collection (\s-1GC\s0) in Objective-C and Objective\-\*(C+
  3250. programs. This option is only available with the NeXT runtime; the
  3251. \&\s-1GNU\s0 runtime has a different garbage collection implementation that
  3252. does not require special compiler flags.
  3253. .IP "\fB\-fobjc\-nilcheck\fR" 4
  3254. .IX Item "-fobjc-nilcheck"
  3255. For the NeXT runtime with version 2 of the \s-1ABI,\s0 check for a nil
  3256. receiver in method invocations before doing the actual method call.
  3257. This is the default and can be disabled using
  3258. \&\fB\-fno\-objc\-nilcheck\fR. Class methods and super calls are never
  3259. checked for nil in this way no matter what this flag is set to.
  3260. Currently this flag does nothing when the \s-1GNU\s0 runtime, or an older
  3261. version of the NeXT runtime \s-1ABI,\s0 is used.
  3262. .IP "\fB\-fobjc\-std=objc1\fR" 4
  3263. .IX Item "-fobjc-std=objc1"
  3264. Conform to the language syntax of Objective-C 1.0, the language
  3265. recognized by \s-1GCC 4.0.\s0 This only affects the Objective-C additions to
  3266. the C/\*(C+ language; it does not affect conformance to C/\*(C+ standards,
  3267. which is controlled by the separate C/\*(C+ dialect option flags. When
  3268. this option is used with the Objective-C or Objective\-\*(C+ compiler,
  3269. any Objective-C syntax that is not recognized by \s-1GCC 4.0\s0 is rejected.
  3270. This is useful if you need to make sure that your Objective-C code can
  3271. be compiled with older versions of \s-1GCC.\s0
  3272. .IP "\fB\-freplace\-objc\-classes\fR" 4
  3273. .IX Item "-freplace-objc-classes"
  3274. Emit a special marker instructing \fB\fBld\fB\|(1)\fR not to statically link in
  3275. the resulting object file, and allow \fB\fBdyld\fB\|(1)\fR to load it in at
  3276. run time instead. This is used in conjunction with the Fix-and-Continue
  3277. debugging mode, where the object file in question may be recompiled and
  3278. dynamically reloaded in the course of program execution, without the need
  3279. to restart the program itself. Currently, Fix-and-Continue functionality
  3280. is only available in conjunction with the NeXT runtime on Mac \s-1OS X 10.3\s0
  3281. and later.
  3282. .IP "\fB\-fzero\-link\fR" 4
  3283. .IX Item "-fzero-link"
  3284. When compiling for the NeXT runtime, the compiler ordinarily replaces calls
  3285. to \f(CW\*(C`objc_getClass("...")\*(C'\fR (when the name of the class is known at
  3286. compile time) with static class references that get initialized at load time,
  3287. which improves run-time performance. Specifying the \fB\-fzero\-link\fR flag
  3288. suppresses this behavior and causes calls to \f(CW\*(C`objc_getClass("...")\*(C'\fR
  3289. to be retained. This is useful in Zero-Link debugging mode, since it allows
  3290. for individual class implementations to be modified during program execution.
  3291. The \s-1GNU\s0 runtime currently always retains calls to \f(CW\*(C`objc_get_class("...")\*(C'\fR
  3292. regardless of command-line options.
  3293. .IP "\fB\-fno\-local\-ivars\fR" 4
  3294. .IX Item "-fno-local-ivars"
  3295. By default instance variables in Objective-C can be accessed as if
  3296. they were local variables from within the methods of the class they're
  3297. declared in. This can lead to shadowing between instance variables
  3298. and other variables declared either locally inside a class method or
  3299. globally with the same name. Specifying the \fB\-fno\-local\-ivars\fR
  3300. flag disables this behavior thus avoiding variable shadowing issues.
  3301. .IP "\fB\-fivar\-visibility=\fR[\fBpublic\fR|\fBprotected\fR|\fBprivate\fR|\fBpackage\fR]" 4
  3302. .IX Item "-fivar-visibility=[public|protected|private|package]"
  3303. Set the default instance variable visibility to the specified option
  3304. so that instance variables declared outside the scope of any access
  3305. modifier directives default to the specified visibility.
  3306. .IP "\fB\-gen\-decls\fR" 4
  3307. .IX Item "-gen-decls"
  3308. Dump interface declarations for all classes seen in the source file to a
  3309. file named \fI\fIsourcename\fI.decl\fR.
  3310. .IP "\fB\-Wassign\-intercept\fR (Objective-C and Objective\-\*(C+ only)" 4
  3311. .IX Item "-Wassign-intercept (Objective-C and Objective- only)"
  3312. Warn whenever an Objective-C assignment is being intercepted by the
  3313. garbage collector.
  3314. .IP "\fB\-Wno\-protocol\fR (Objective-C and Objective\-\*(C+ only)" 4
  3315. .IX Item "-Wno-protocol (Objective-C and Objective- only)"
  3316. If a class is declared to implement a protocol, a warning is issued for
  3317. every method in the protocol that is not implemented by the class. The
  3318. default behavior is to issue a warning for every method not explicitly
  3319. implemented in the class, even if a method implementation is inherited
  3320. from the superclass. If you use the \fB\-Wno\-protocol\fR option, then
  3321. methods inherited from the superclass are considered to be implemented,
  3322. and no warning is issued for them.
  3323. .IP "\fB\-Wselector\fR (Objective-C and Objective\-\*(C+ only)" 4
  3324. .IX Item "-Wselector (Objective-C and Objective- only)"
  3325. Warn if multiple methods of different types for the same selector are
  3326. found during compilation. The check is performed on the list of methods
  3327. in the final stage of compilation. Additionally, a check is performed
  3328. for each selector appearing in a \f(CW\*(C`@selector(...)\*(C'\fR
  3329. expression, and a corresponding method for that selector has been found
  3330. during compilation. Because these checks scan the method table only at
  3331. the end of compilation, these warnings are not produced if the final
  3332. stage of compilation is not reached, for example because an error is
  3333. found during compilation, or because the \fB\-fsyntax\-only\fR option is
  3334. being used.
  3335. .IP "\fB\-Wstrict\-selector\-match\fR (Objective-C and Objective\-\*(C+ only)" 4
  3336. .IX Item "-Wstrict-selector-match (Objective-C and Objective- only)"
  3337. Warn if multiple methods with differing argument and/or return types are
  3338. found for a given selector when attempting to send a message using this
  3339. selector to a receiver of type \f(CW\*(C`id\*(C'\fR or \f(CW\*(C`Class\*(C'\fR. When this flag
  3340. is off (which is the default behavior), the compiler omits such warnings
  3341. if any differences found are confined to types that share the same size
  3342. and alignment.
  3343. .IP "\fB\-Wundeclared\-selector\fR (Objective-C and Objective\-\*(C+ only)" 4
  3344. .IX Item "-Wundeclared-selector (Objective-C and Objective- only)"
  3345. Warn if a \f(CW\*(C`@selector(...)\*(C'\fR expression referring to an
  3346. undeclared selector is found. A selector is considered undeclared if no
  3347. method with that name has been declared before the
  3348. \&\f(CW\*(C`@selector(...)\*(C'\fR expression, either explicitly in an
  3349. \&\f(CW@interface\fR or \f(CW@protocol\fR declaration, or implicitly in
  3350. an \f(CW@implementation\fR section. This option always performs its
  3351. checks as soon as a \f(CW\*(C`@selector(...)\*(C'\fR expression is found,
  3352. while \fB\-Wselector\fR only performs its checks in the final stage of
  3353. compilation. This also enforces the coding style convention
  3354. that methods and selectors must be declared before being used.
  3355. .IP "\fB\-print\-objc\-runtime\-info\fR" 4
  3356. .IX Item "-print-objc-runtime-info"
  3357. Generate C header describing the largest structure that is passed by
  3358. value, if any.
  3359. .SS "Options to Control Diagnostic Messages Formatting"
  3360. .IX Subsection "Options to Control Diagnostic Messages Formatting"
  3361. Traditionally, diagnostic messages have been formatted irrespective of
  3362. the output device's aspect (e.g. its width, ...). You can use the
  3363. options described below
  3364. to control the formatting algorithm for diagnostic messages,
  3365. e.g. how many characters per line, how often source location
  3366. information should be reported. Note that some language front ends may not
  3367. honor these options.
  3368. .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
  3369. .IX Item "-fmessage-length=n"
  3370. Try to format error messages so that they fit on lines of about
  3371. \&\fIn\fR characters. If \fIn\fR is zero, then no line-wrapping is
  3372. done; each error message appears on a single line. This is the
  3373. default for all front ends.
  3374. .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
  3375. .IX Item "-fdiagnostics-show-location=once"
  3376. Only meaningful in line-wrapping mode. Instructs the diagnostic messages
  3377. reporter to emit source location information \fIonce\fR; that is, in
  3378. case the message is too long to fit on a single physical line and has to
  3379. be wrapped, the source location won't be emitted (as prefix) again,
  3380. over and over, in subsequent continuation lines. This is the default
  3381. behavior.
  3382. .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
  3383. .IX Item "-fdiagnostics-show-location=every-line"
  3384. Only meaningful in line-wrapping mode. Instructs the diagnostic
  3385. messages reporter to emit the same source location information (as
  3386. prefix) for physical lines that result from the process of breaking
  3387. a message which is too long to fit on a single line.
  3388. .IP "\fB\-fdiagnostics\-color[=\fR\fI\s-1WHEN\s0\fR\fB]\fR" 4
  3389. .IX Item "-fdiagnostics-color[=WHEN]"
  3390. .PD 0
  3391. .IP "\fB\-fno\-diagnostics\-color\fR" 4
  3392. .IX Item "-fno-diagnostics-color"
  3393. .PD
  3394. Use color in diagnostics. \fI\s-1WHEN\s0\fR is \fBnever\fR, \fBalways\fR,
  3395. or \fBauto\fR. The default depends on how the compiler has been configured,
  3396. it can be any of the above \fI\s-1WHEN\s0\fR options or also \fBnever\fR
  3397. if \fB\s-1GCC_COLORS\s0\fR environment variable isn't present in the environment,
  3398. and \fBauto\fR otherwise.
  3399. \&\fBauto\fR means to use color only when the standard error is a terminal.
  3400. The forms \fB\-fdiagnostics\-color\fR and \fB\-fno\-diagnostics\-color\fR are
  3401. aliases for \fB\-fdiagnostics\-color=always\fR and
  3402. \&\fB\-fdiagnostics\-color=never\fR, respectively.
  3403. .Sp
  3404. The colors are defined by the environment variable \fB\s-1GCC_COLORS\s0\fR.
  3405. Its value is a colon-separated list of capabilities and Select Graphic
  3406. Rendition (\s-1SGR\s0) substrings. \s-1SGR\s0 commands are interpreted by the
  3407. terminal or terminal emulator. (See the section in the documentation
  3408. of your text terminal for permitted values and their meanings as
  3409. character attributes.) These substring values are integers in decimal
  3410. representation and can be concatenated with semicolons.
  3411. Common values to concatenate include
  3412. \&\fB1\fR for bold,
  3413. \&\fB4\fR for underline,
  3414. \&\fB5\fR for blink,
  3415. \&\fB7\fR for inverse,
  3416. \&\fB39\fR for default foreground color,
  3417. \&\fB30\fR to \fB37\fR for foreground colors,
  3418. \&\fB90\fR to \fB97\fR for 16\-color mode foreground colors,
  3419. \&\fB38;5;0\fR to \fB38;5;255\fR
  3420. for 88\-color and 256\-color modes foreground colors,
  3421. \&\fB49\fR for default background color,
  3422. \&\fB40\fR to \fB47\fR for background colors,
  3423. \&\fB100\fR to \fB107\fR for 16\-color mode background colors,
  3424. and \fB48;5;0\fR to \fB48;5;255\fR
  3425. for 88\-color and 256\-color modes background colors.
  3426. .Sp
  3427. The default \fB\s-1GCC_COLORS\s0\fR is
  3428. .Sp
  3429. .Vb 4
  3430. \& error=01;31:warning=01;35:note=01;36:range1=32:range2=34:locus=01:\e
  3431. \& quote=01:fixit\-insert=32:fixit\-delete=31:\e
  3432. \& diff\-filename=01:diff\-hunk=32:diff\-delete=31:diff\-insert=32:\e
  3433. \& type\-diff=01;32
  3434. .Ve
  3435. .Sp
  3436. where \fB01;31\fR is bold red, \fB01;35\fR is bold magenta,
  3437. \&\fB01;36\fR is bold cyan, \fB32\fR is green, \fB34\fR is blue,
  3438. \&\fB01\fR is bold, and \fB31\fR is red.
  3439. Setting \fB\s-1GCC_COLORS\s0\fR to the empty string disables colors.
  3440. Supported capabilities are as follows.
  3441. .RS 4
  3442. .ie n .IP """error=""" 4
  3443. .el .IP "\f(CWerror=\fR" 4
  3444. .IX Item "error="
  3445. \&\s-1SGR\s0 substring for error: markers.
  3446. .ie n .IP """warning=""" 4
  3447. .el .IP "\f(CWwarning=\fR" 4
  3448. .IX Item "warning="
  3449. \&\s-1SGR\s0 substring for warning: markers.
  3450. .ie n .IP """note=""" 4
  3451. .el .IP "\f(CWnote=\fR" 4
  3452. .IX Item "note="
  3453. \&\s-1SGR\s0 substring for note: markers.
  3454. .ie n .IP """range1=""" 4
  3455. .el .IP "\f(CWrange1=\fR" 4
  3456. .IX Item "range1="
  3457. \&\s-1SGR\s0 substring for first additional range.
  3458. .ie n .IP """range2=""" 4
  3459. .el .IP "\f(CWrange2=\fR" 4
  3460. .IX Item "range2="
  3461. \&\s-1SGR\s0 substring for second additional range.
  3462. .ie n .IP """locus=""" 4
  3463. .el .IP "\f(CWlocus=\fR" 4
  3464. .IX Item "locus="
  3465. \&\s-1SGR\s0 substring for location information, \fBfile:line\fR or
  3466. \&\fBfile:line:column\fR etc.
  3467. .ie n .IP """quote=""" 4
  3468. .el .IP "\f(CWquote=\fR" 4
  3469. .IX Item "quote="
  3470. \&\s-1SGR\s0 substring for information printed within quotes.
  3471. .ie n .IP """fixit\-insert=""" 4
  3472. .el .IP "\f(CWfixit\-insert=\fR" 4
  3473. .IX Item "fixit-insert="
  3474. \&\s-1SGR\s0 substring for fix-it hints suggesting text to
  3475. be inserted or replaced.
  3476. .ie n .IP """fixit\-delete=""" 4
  3477. .el .IP "\f(CWfixit\-delete=\fR" 4
  3478. .IX Item "fixit-delete="
  3479. \&\s-1SGR\s0 substring for fix-it hints suggesting text to
  3480. be deleted.
  3481. .ie n .IP """diff\-filename=""" 4
  3482. .el .IP "\f(CWdiff\-filename=\fR" 4
  3483. .IX Item "diff-filename="
  3484. \&\s-1SGR\s0 substring for filename headers within generated patches.
  3485. .ie n .IP """diff\-hunk=""" 4
  3486. .el .IP "\f(CWdiff\-hunk=\fR" 4
  3487. .IX Item "diff-hunk="
  3488. \&\s-1SGR\s0 substring for the starts of hunks within generated patches.
  3489. .ie n .IP """diff\-delete=""" 4
  3490. .el .IP "\f(CWdiff\-delete=\fR" 4
  3491. .IX Item "diff-delete="
  3492. \&\s-1SGR\s0 substring for deleted lines within generated patches.
  3493. .ie n .IP """diff\-insert=""" 4
  3494. .el .IP "\f(CWdiff\-insert=\fR" 4
  3495. .IX Item "diff-insert="
  3496. \&\s-1SGR\s0 substring for inserted lines within generated patches.
  3497. .ie n .IP """type\-diff=""" 4
  3498. .el .IP "\f(CWtype\-diff=\fR" 4
  3499. .IX Item "type-diff="
  3500. \&\s-1SGR\s0 substring for highlighting mismatching types within template
  3501. arguments in the \*(C+ frontend.
  3502. .RE
  3503. .RS 4
  3504. .RE
  3505. .IP "\fB\-fno\-diagnostics\-show\-option\fR" 4
  3506. .IX Item "-fno-diagnostics-show-option"
  3507. By default, each diagnostic emitted includes text indicating the
  3508. command-line option that directly controls the diagnostic (if such an
  3509. option is known to the diagnostic machinery). Specifying the
  3510. \&\fB\-fno\-diagnostics\-show\-option\fR flag suppresses that behavior.
  3511. .IP "\fB\-fno\-diagnostics\-show\-caret\fR" 4
  3512. .IX Item "-fno-diagnostics-show-caret"
  3513. By default, each diagnostic emitted includes the original source line
  3514. and a caret \fB^\fR indicating the column. This option suppresses this
  3515. information. The source line is truncated to \fIn\fR characters, if
  3516. the \fB\-fmessage\-length=n\fR option is given. When the output is done
  3517. to the terminal, the width is limited to the width given by the
  3518. \&\fB\s-1COLUMNS\s0\fR environment variable or, if not set, to the terminal width.
  3519. .IP "\fB\-fdiagnostics\-parseable\-fixits\fR" 4
  3520. .IX Item "-fdiagnostics-parseable-fixits"
  3521. Emit fix-it hints in a machine-parseable format, suitable for consumption
  3522. by IDEs. For each fix-it, a line will be printed after the relevant
  3523. diagnostic, starting with the string \*(L"fix-it:\*(R". For example:
  3524. .Sp
  3525. .Vb 1
  3526. \& fix\-it:"test.c":{45:3\-45:21}:"gtk_widget_show_all"
  3527. .Ve
  3528. .Sp
  3529. The location is expressed as a half-open range, expressed as a count of
  3530. bytes, starting at byte 1 for the initial column. In the above example,
  3531. bytes 3 through 20 of line 45 of \*(L"test.c\*(R" are to be replaced with the
  3532. given string:
  3533. .Sp
  3534. .Vb 5
  3535. \& 00000000011111111112222222222
  3536. \& 12345678901234567890123456789
  3537. \& gtk_widget_showall (dlg);
  3538. \& ^^^^^^^^^^^^^^^^^^
  3539. \& gtk_widget_show_all
  3540. .Ve
  3541. .Sp
  3542. The filename and replacement string escape backslash as \*(L"\e\e\*(R", tab as \*(L"\et\*(R",
  3543. newline as \*(L"\en\*(R", double quotes as \*(L"\e\*(R"\*(L", non-printable characters as octal
  3544. (e.g. vertical tab as \*(R"\e013").
  3545. .Sp
  3546. An empty replacement string indicates that the given range is to be removed.
  3547. An empty range (e.g. \*(L"45:3\-45:3\*(R") indicates that the string is to
  3548. be inserted at the given position.
  3549. .IP "\fB\-fdiagnostics\-generate\-patch\fR" 4
  3550. .IX Item "-fdiagnostics-generate-patch"
  3551. Print fix-it hints to stderr in unified diff format, after any diagnostics
  3552. are printed. For example:
  3553. .Sp
  3554. .Vb 3
  3555. \& \-\-\- test.c
  3556. \& +++ test.c
  3557. \& @ \-42,5 +42,5 @
  3558. \&
  3559. \& void show_cb(GtkDialog *dlg)
  3560. \& {
  3561. \& \- gtk_widget_showall(dlg);
  3562. \& + gtk_widget_show_all(dlg);
  3563. \& }
  3564. .Ve
  3565. .Sp
  3566. The diff may or may not be colorized, following the same rules
  3567. as for diagnostics (see \fB\-fdiagnostics\-color\fR).
  3568. .IP "\fB\-fdiagnostics\-show\-template\-tree\fR" 4
  3569. .IX Item "-fdiagnostics-show-template-tree"
  3570. In the \*(C+ frontend, when printing diagnostics showing mismatching
  3571. template types, such as:
  3572. .Sp
  3573. .Vb 2
  3574. \& could not convert \*(Aqstd::map<int, std::vector<double> >()\*(Aq
  3575. \& from \*(Aqmap<[...],vector<double>>\*(Aq to \*(Aqmap<[...],vector<float>>
  3576. .Ve
  3577. .Sp
  3578. the \fB\-fdiagnostics\-show\-template\-tree\fR flag enables printing a
  3579. tree-like structure showing the common and differing parts of the types,
  3580. such as:
  3581. .Sp
  3582. .Vb 4
  3583. \& map<
  3584. \& [...],
  3585. \& vector<
  3586. \& [double != float]>>
  3587. .Ve
  3588. .Sp
  3589. The parts that differ are highlighted with color (\*(L"double\*(R" and
  3590. \&\*(L"float\*(R" in this case).
  3591. .IP "\fB\-fno\-elide\-type\fR" 4
  3592. .IX Item "-fno-elide-type"
  3593. By default when the \*(C+ frontend prints diagnostics showing mismatching
  3594. template types, common parts of the types are printed as \*(L"[...]\*(R" to
  3595. simplify the error message. For example:
  3596. .Sp
  3597. .Vb 2
  3598. \& could not convert \*(Aqstd::map<int, std::vector<double> >()\*(Aq
  3599. \& from \*(Aqmap<[...],vector<double>>\*(Aq to \*(Aqmap<[...],vector<float>>
  3600. .Ve
  3601. .Sp
  3602. Specifying the \fB\-fno\-elide\-type\fR flag suppresses that behavior.
  3603. This flag also affects the output of the
  3604. \&\fB\-fdiagnostics\-show\-template\-tree\fR flag.
  3605. .IP "\fB\-fno\-show\-column\fR" 4
  3606. .IX Item "-fno-show-column"
  3607. Do not print column numbers in diagnostics. This may be necessary if
  3608. diagnostics are being scanned by a program that does not understand the
  3609. column numbers, such as \fBdejagnu\fR.
  3610. .SS "Options to Request or Suppress Warnings"
  3611. .IX Subsection "Options to Request or Suppress Warnings"
  3612. Warnings are diagnostic messages that report constructions that
  3613. are not inherently erroneous but that are risky or suggest there
  3614. may have been an error.
  3615. .PP
  3616. The following language-independent options do not enable specific
  3617. warnings but control the kinds of diagnostics produced by \s-1GCC.\s0
  3618. .IP "\fB\-fsyntax\-only\fR" 4
  3619. .IX Item "-fsyntax-only"
  3620. Check the code for syntax errors, but don't do anything beyond that.
  3621. .IP "\fB\-fmax\-errors=\fR\fIn\fR" 4
  3622. .IX Item "-fmax-errors=n"
  3623. Limits the maximum number of error messages to \fIn\fR, at which point
  3624. \&\s-1GCC\s0 bails out rather than attempting to continue processing the source
  3625. code. If \fIn\fR is 0 (the default), there is no limit on the number
  3626. of error messages produced. If \fB\-Wfatal\-errors\fR is also
  3627. specified, then \fB\-Wfatal\-errors\fR takes precedence over this
  3628. option.
  3629. .IP "\fB\-w\fR" 4
  3630. .IX Item "-w"
  3631. Inhibit all warning messages.
  3632. .IP "\fB\-Werror\fR" 4
  3633. .IX Item "-Werror"
  3634. Make all warnings into errors.
  3635. .IP "\fB\-Werror=\fR" 4
  3636. .IX Item "-Werror="
  3637. Make the specified warning into an error. The specifier for a warning
  3638. is appended; for example \fB\-Werror=switch\fR turns the warnings
  3639. controlled by \fB\-Wswitch\fR into errors. This switch takes a
  3640. negative form, to be used to negate \fB\-Werror\fR for specific
  3641. warnings; for example \fB\-Wno\-error=switch\fR makes
  3642. \&\fB\-Wswitch\fR warnings not be errors, even when \fB\-Werror\fR
  3643. is in effect.
  3644. .Sp
  3645. The warning message for each controllable warning includes the
  3646. option that controls the warning. That option can then be used with
  3647. \&\fB\-Werror=\fR and \fB\-Wno\-error=\fR as described above.
  3648. (Printing of the option in the warning message can be disabled using the
  3649. \&\fB\-fno\-diagnostics\-show\-option\fR flag.)
  3650. .Sp
  3651. Note that specifying \fB\-Werror=\fR\fIfoo\fR automatically implies
  3652. \&\fB\-W\fR\fIfoo\fR. However, \fB\-Wno\-error=\fR\fIfoo\fR does not
  3653. imply anything.
  3654. .IP "\fB\-Wfatal\-errors\fR" 4
  3655. .IX Item "-Wfatal-errors"
  3656. This option causes the compiler to abort compilation on the first error
  3657. occurred rather than trying to keep going and printing further error
  3658. messages.
  3659. .PP
  3660. You can request many specific warnings with options beginning with
  3661. \&\fB\-W\fR, for example \fB\-Wimplicit\fR to request warnings on
  3662. implicit declarations. Each of these specific warning options also
  3663. has a negative form beginning \fB\-Wno\-\fR to turn off warnings; for
  3664. example, \fB\-Wno\-implicit\fR. This manual lists only one of the
  3665. two forms, whichever is not the default. For further
  3666. language-specific options also refer to \fB\*(C+ Dialect Options\fR and
  3667. \&\fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
  3668. .PP
  3669. Some options, such as \fB\-Wall\fR and \fB\-Wextra\fR, turn on other
  3670. options, such as \fB\-Wunused\fR, which may turn on further options,
  3671. such as \fB\-Wunused\-value\fR. The combined effect of positive and
  3672. negative forms is that more specific options have priority over less
  3673. specific ones, independently of their position in the command-line. For
  3674. options of the same specificity, the last one takes effect. Options
  3675. enabled or disabled via pragmas take effect
  3676. as if they appeared at the end of the command-line.
  3677. .PP
  3678. When an unrecognized warning option is requested (e.g.,
  3679. \&\fB\-Wunknown\-warning\fR), \s-1GCC\s0 emits a diagnostic stating
  3680. that the option is not recognized. However, if the \fB\-Wno\-\fR form
  3681. is used, the behavior is slightly different: no diagnostic is
  3682. produced for \fB\-Wno\-unknown\-warning\fR unless other diagnostics
  3683. are being produced. This allows the use of new \fB\-Wno\-\fR options
  3684. with old compilers, but if something goes wrong, the compiler
  3685. warns that an unrecognized option is present.
  3686. .IP "\fB\-Wpedantic\fR" 4
  3687. .IX Item "-Wpedantic"
  3688. .PD 0
  3689. .IP "\fB\-pedantic\fR" 4
  3690. .IX Item "-pedantic"
  3691. .PD
  3692. Issue all the warnings demanded by strict \s-1ISO C\s0 and \s-1ISO \*(C+\s0;
  3693. reject all programs that use forbidden extensions, and some other
  3694. programs that do not follow \s-1ISO C\s0 and \s-1ISO \*(C+.\s0 For \s-1ISO C,\s0 follows the
  3695. version of the \s-1ISO C\s0 standard specified by any \fB\-std\fR option used.
  3696. .Sp
  3697. Valid \s-1ISO C\s0 and \s-1ISO \*(C+\s0 programs should compile properly with or without
  3698. this option (though a rare few require \fB\-ansi\fR or a
  3699. \&\fB\-std\fR option specifying the required version of \s-1ISO C\s0). However,
  3700. without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
  3701. features are supported as well. With this option, they are rejected.
  3702. .Sp
  3703. \&\fB\-Wpedantic\fR does not cause warning messages for use of the
  3704. alternate keywords whose names begin and end with \fB_\|_\fR. Pedantic
  3705. warnings are also disabled in the expression that follows
  3706. \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR. However, only system header files should use
  3707. these escape routes; application programs should avoid them.
  3708. .Sp
  3709. Some users try to use \fB\-Wpedantic\fR to check programs for strict \s-1ISO
  3710. C\s0 conformance. They soon find that it does not do quite what they want:
  3711. it finds some non-ISO practices, but not all\-\-\-only those for which
  3712. \&\s-1ISO C\s0 \fIrequires\fR a diagnostic, and some others for which
  3713. diagnostics have been added.
  3714. .Sp
  3715. A feature to report any failure to conform to \s-1ISO C\s0 might be useful in
  3716. some instances, but would require considerable additional work and would
  3717. be quite different from \fB\-Wpedantic\fR. We don't have plans to
  3718. support such a feature in the near future.
  3719. .Sp
  3720. Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
  3721. extended dialect of C, such as \fBgnu90\fR or \fBgnu99\fR, there is a
  3722. corresponding \fIbase standard\fR, the version of \s-1ISO C\s0 on which the \s-1GNU\s0
  3723. extended dialect is based. Warnings from \fB\-Wpedantic\fR are given
  3724. where they are required by the base standard. (It does not make sense
  3725. for such warnings to be given only for features not in the specified \s-1GNU
  3726. C\s0 dialect, since by definition the \s-1GNU\s0 dialects of C include all
  3727. features the compiler supports with the given option, and there would be
  3728. nothing to warn about.)
  3729. .IP "\fB\-pedantic\-errors\fR" 4
  3730. .IX Item "-pedantic-errors"
  3731. Give an error whenever the \fIbase standard\fR (see \fB\-Wpedantic\fR)
  3732. requires a diagnostic, in some cases where there is undefined behavior
  3733. at compile-time and in some other cases that do not prevent compilation
  3734. of programs that are valid according to the standard. This is not
  3735. equivalent to \fB\-Werror=pedantic\fR, since there are errors enabled
  3736. by this option and not enabled by the latter and vice versa.
  3737. .IP "\fB\-Wall\fR" 4
  3738. .IX Item "-Wall"
  3739. This enables all the warnings about constructions that some users
  3740. consider questionable, and that are easy to avoid (or modify to
  3741. prevent the warning), even in conjunction with macros. This also
  3742. enables some language-specific warnings described in \fB\*(C+ Dialect
  3743. Options\fR and \fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
  3744. .Sp
  3745. \&\fB\-Wall\fR turns on the following warning flags:
  3746. .Sp
  3747. \&\fB\-Waddress
  3748. \&\-Warray\-bounds=1\fR (only with\fB \fR\fB\-O2\fR)
  3749. \&\fB\-Wbool\-compare
  3750. \&\-Wbool\-operation
  3751. \&\-Wc++11\-compat \-Wc++14\-compat
  3752. \&\-Wcatch\-value\fR (\*(C+ and Objective\-\*(C+ only)
  3753. \&\fB\-Wchar\-subscripts
  3754. \&\-Wcomment
  3755. \&\-Wduplicate\-decl\-specifier\fR (C and Objective-C only)
  3756. \&\fB\-Wenum\-compare\fR (in C/ObjC; this is on by default in \*(C+)
  3757. \&\fB\-Wformat
  3758. \&\-Wint\-in\-bool\-context
  3759. \&\-Wimplicit\fR (C and Objective-C only)
  3760. \&\fB\-Wimplicit\-int\fR (C and Objective-C only)
  3761. \&\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only)
  3762. \&\fB\-Winit\-self\fR (only for \*(C+)
  3763. \&\fB\-Wlogical\-not\-parentheses
  3764. \&\-Wmain\fR (only for C/ObjC and unless\fB \fR\fB\-ffreestanding\fR)
  3765. \&\fB\-Wmaybe\-uninitialized
  3766. \&\-Wmemset\-elt\-size
  3767. \&\-Wmemset\-transposed\-args
  3768. \&\-Wmisleading\-indentation\fR (only for C/\*(C+)
  3769. \&\fB\-Wmissing\-attributes
  3770. \&\-Wmissing\-braces\fR (only for C/ObjC)
  3771. \&\fB\-Wmultistatement\-macros
  3772. \&\-Wnarrowing\fR (only for \*(C+)
  3773. \&\fB\-Wnonnull
  3774. \&\-Wnonnull\-compare
  3775. \&\-Wopenmp\-simd
  3776. \&\-Wparentheses
  3777. \&\-Wpointer\-sign
  3778. \&\-Wreorder
  3779. \&\-Wrestrict
  3780. \&\-Wreturn\-type
  3781. \&\-Wsequence\-point
  3782. \&\-Wsign\-compare\fR (only in \*(C+)
  3783. \&\fB\-Wsizeof\-pointer\-div
  3784. \&\-Wsizeof\-pointer\-memaccess
  3785. \&\-Wstrict\-aliasing
  3786. \&\-Wstrict\-overflow=1
  3787. \&\-Wstringop\-truncation
  3788. \&\-Wswitch
  3789. \&\-Wtautological\-compare
  3790. \&\-Wtrigraphs
  3791. \&\-Wuninitialized
  3792. \&\-Wunknown\-pragmas
  3793. \&\-Wunused\-function
  3794. \&\-Wunused\-label
  3795. \&\-Wunused\-value
  3796. \&\-Wunused\-variable
  3797. \&\-Wvolatile\-register\-var\fR
  3798. .Sp
  3799. Note that some warning flags are not implied by \fB\-Wall\fR. Some of
  3800. them warn about constructions that users generally do not consider
  3801. questionable, but which occasionally you might wish to check for;
  3802. others warn about constructions that are necessary or hard to avoid in
  3803. some cases, and there is no simple way to modify the code to suppress
  3804. the warning. Some of them are enabled by \fB\-Wextra\fR but many of
  3805. them must be enabled individually.
  3806. .IP "\fB\-Wextra\fR" 4
  3807. .IX Item "-Wextra"
  3808. This enables some extra warning flags that are not enabled by
  3809. \&\fB\-Wall\fR. (This option used to be called \fB\-W\fR. The older
  3810. name is still supported, but the newer name is more descriptive.)
  3811. .Sp
  3812. \&\fB\-Wclobbered
  3813. \&\-Wcast\-function\-type
  3814. \&\-Wempty\-body
  3815. \&\-Wignored\-qualifiers
  3816. \&\-Wimplicit\-fallthrough=3
  3817. \&\-Wmissing\-field\-initializers
  3818. \&\-Wmissing\-parameter\-type\fR (C only)
  3819. \&\fB\-Wold\-style\-declaration\fR (C only)
  3820. \&\fB\-Woverride\-init
  3821. \&\-Wsign\-compare\fR (C only)
  3822. \&\fB\-Wtype\-limits
  3823. \&\-Wuninitialized
  3824. \&\-Wshift\-negative\-value\fR (in \*(C+03 and in C99 and newer)
  3825. \&\fB\-Wunused\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR)
  3826. \&\fB\-Wunused\-but\-set\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR) \fB \fR
  3827. .Sp
  3828. The option \fB\-Wextra\fR also prints warning messages for the
  3829. following cases:
  3830. .RS 4
  3831. .IP "*" 4
  3832. A pointer is compared against integer zero with \f(CW\*(C`<\*(C'\fR, \f(CW\*(C`<=\*(C'\fR,
  3833. \&\f(CW\*(C`>\*(C'\fR, or \f(CW\*(C`>=\*(C'\fR.
  3834. .IP "*" 4
  3835. (\*(C+ only) An enumerator and a non-enumerator both appear in a
  3836. conditional expression.
  3837. .IP "*" 4
  3838. (\*(C+ only) Ambiguous virtual bases.
  3839. .IP "*" 4
  3840. (\*(C+ only) Subscripting an array that has been declared \f(CW\*(C`register\*(C'\fR.
  3841. .IP "*" 4
  3842. (\*(C+ only) Taking the address of a variable that has been declared
  3843. \&\f(CW\*(C`register\*(C'\fR.
  3844. .IP "*" 4
  3845. (\*(C+ only) A base class is not initialized in the copy constructor
  3846. of a derived class.
  3847. .RE
  3848. .RS 4
  3849. .RE
  3850. .IP "\fB\-Wchar\-subscripts\fR" 4
  3851. .IX Item "-Wchar-subscripts"
  3852. Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR. This is a common cause
  3853. of error, as programmers often forget that this type is signed on some
  3854. machines.
  3855. This warning is enabled by \fB\-Wall\fR.
  3856. .IP "\fB\-Wchkp\fR" 4
  3857. .IX Item "-Wchkp"
  3858. Warn about an invalid memory access that is found by Pointer Bounds Checker
  3859. (\fB\-fcheck\-pointer\-bounds\fR).
  3860. .IP "\fB\-Wno\-coverage\-mismatch\fR" 4
  3861. .IX Item "-Wno-coverage-mismatch"
  3862. Warn if feedback profiles do not match when using the
  3863. \&\fB\-fprofile\-use\fR option.
  3864. If a source file is changed between compiling with \fB\-fprofile\-gen\fR and
  3865. with \fB\-fprofile\-use\fR, the files with the profile feedback can fail
  3866. to match the source file and \s-1GCC\s0 cannot use the profile feedback
  3867. information. By default, this warning is enabled and is treated as an
  3868. error. \fB\-Wno\-coverage\-mismatch\fR can be used to disable the
  3869. warning or \fB\-Wno\-error=coverage\-mismatch\fR can be used to
  3870. disable the error. Disabling the error for this warning can result in
  3871. poorly optimized code and is useful only in the
  3872. case of very minor changes such as bug fixes to an existing code-base.
  3873. Completely disabling the warning is not recommended.
  3874. .IP "\fB\-Wno\-cpp\fR" 4
  3875. .IX Item "-Wno-cpp"
  3876. (C, Objective-C, \*(C+, Objective\-\*(C+ and Fortran only)
  3877. .Sp
  3878. Suppress warning messages emitted by \f(CW\*(C`#warning\*(C'\fR directives.
  3879. .IP "\fB\-Wdouble\-promotion\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
  3880. .IX Item "-Wdouble-promotion (C, , Objective-C and Objective- only)"
  3881. Give a warning when a value of type \f(CW\*(C`float\*(C'\fR is implicitly
  3882. promoted to \f(CW\*(C`double\*(C'\fR. CPUs with a 32\-bit \*(L"single-precision\*(R"
  3883. floating-point unit implement \f(CW\*(C`float\*(C'\fR in hardware, but emulate
  3884. \&\f(CW\*(C`double\*(C'\fR in software. On such a machine, doing computations
  3885. using \f(CW\*(C`double\*(C'\fR values is much more expensive because of the
  3886. overhead required for software emulation.
  3887. .Sp
  3888. It is easy to accidentally do computations with \f(CW\*(C`double\*(C'\fR because
  3889. floating-point literals are implicitly of type \f(CW\*(C`double\*(C'\fR. For
  3890. example, in:
  3891. .Sp
  3892. .Vb 4
  3893. \& float area(float radius)
  3894. \& {
  3895. \& return 3.14159 * radius * radius;
  3896. \& }
  3897. .Ve
  3898. .Sp
  3899. the compiler performs the entire computation with \f(CW\*(C`double\*(C'\fR
  3900. because the floating-point literal is a \f(CW\*(C`double\*(C'\fR.
  3901. .IP "\fB\-Wduplicate\-decl\-specifier\fR (C and Objective-C only)" 4
  3902. .IX Item "-Wduplicate-decl-specifier (C and Objective-C only)"
  3903. Warn if a declaration has duplicate \f(CW\*(C`const\*(C'\fR, \f(CW\*(C`volatile\*(C'\fR,
  3904. \&\f(CW\*(C`restrict\*(C'\fR or \f(CW\*(C`_Atomic\*(C'\fR specifier. This warning is enabled by
  3905. \&\fB\-Wall\fR.
  3906. .IP "\fB\-Wformat\fR" 4
  3907. .IX Item "-Wformat"
  3908. .PD 0
  3909. .IP "\fB\-Wformat=\fR\fIn\fR" 4
  3910. .IX Item "-Wformat=n"
  3911. .PD
  3912. Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
  3913. the arguments supplied have types appropriate to the format string
  3914. specified, and that the conversions specified in the format string make
  3915. sense. This includes standard functions, and others specified by format
  3916. attributes, in the \f(CW\*(C`printf\*(C'\fR,
  3917. \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
  3918. not in the C standard) families (or other target-specific families).
  3919. Which functions are checked without format attributes having been
  3920. specified depends on the standard version selected, and such checks of
  3921. functions without the attribute specified are disabled by
  3922. \&\fB\-ffreestanding\fR or \fB\-fno\-builtin\fR.
  3923. .Sp
  3924. The formats are checked against the format features supported by \s-1GNU\s0
  3925. libc version 2.2. These include all \s-1ISO C90\s0 and C99 features, as well
  3926. as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
  3927. extensions. Other library implementations may not support all these
  3928. features; \s-1GCC\s0 does not support warning about features that go beyond a
  3929. particular library's limitations. However, if \fB\-Wpedantic\fR is used
  3930. with \fB\-Wformat\fR, warnings are given about format features not
  3931. in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
  3932. since those are not in any version of the C standard).
  3933. .RS 4
  3934. .IP "\fB\-Wformat=1\fR" 4
  3935. .IX Item "-Wformat=1"
  3936. .PD 0
  3937. .IP "\fB\-Wformat\fR" 4
  3938. .IX Item "-Wformat"
  3939. .PD
  3940. Option \fB\-Wformat\fR is equivalent to \fB\-Wformat=1\fR, and
  3941. \&\fB\-Wno\-format\fR is equivalent to \fB\-Wformat=0\fR. Since
  3942. \&\fB\-Wformat\fR also checks for null format arguments for several
  3943. functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR. Some
  3944. aspects of this level of format checking can be disabled by the
  3945. options: \fB\-Wno\-format\-contains\-nul\fR,
  3946. \&\fB\-Wno\-format\-extra\-args\fR, and \fB\-Wno\-format\-zero\-length\fR.
  3947. \&\fB\-Wformat\fR is enabled by \fB\-Wall\fR.
  3948. .IP "\fB\-Wno\-format\-contains\-nul\fR" 4
  3949. .IX Item "-Wno-format-contains-nul"
  3950. If \fB\-Wformat\fR is specified, do not warn about format strings that
  3951. contain \s-1NUL\s0 bytes.
  3952. .IP "\fB\-Wno\-format\-extra\-args\fR" 4
  3953. .IX Item "-Wno-format-extra-args"
  3954. If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
  3955. \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function. The C standard specifies
  3956. that such arguments are ignored.
  3957. .Sp
  3958. Where the unused arguments lie between used arguments that are
  3959. specified with \fB$\fR operand number specifications, normally
  3960. warnings are still given, since the implementation could not know what
  3961. type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments. However,
  3962. in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option suppresses the
  3963. warning if the unused arguments are all pointers, since the Single
  3964. Unix Specification says that such unused arguments are allowed.
  3965. .IP "\fB\-Wformat\-overflow\fR" 4
  3966. .IX Item "-Wformat-overflow"
  3967. .PD 0
  3968. .IP "\fB\-Wformat\-overflow=\fR\fIlevel\fR" 4
  3969. .IX Item "-Wformat-overflow=level"
  3970. .PD
  3971. Warn about calls to formatted input/output functions such as \f(CW\*(C`sprintf\*(C'\fR
  3972. and \f(CW\*(C`vsprintf\*(C'\fR that might overflow the destination buffer. When the
  3973. exact number of bytes written by a format directive cannot be determined
  3974. at compile-time it is estimated based on heuristics that depend on the
  3975. \&\fIlevel\fR argument and on optimization. While enabling optimization
  3976. will in most cases improve the accuracy of the warning, it may also
  3977. result in false positives.
  3978. .RS 4
  3979. .IP "\fB\-Wformat\-overflow\fR" 4
  3980. .IX Item "-Wformat-overflow"
  3981. .PD 0
  3982. .IP "\fB\-Wformat\-overflow=1\fR" 4
  3983. .IX Item "-Wformat-overflow=1"
  3984. .PD
  3985. Level \fI1\fR of \fB\-Wformat\-overflow\fR enabled by \fB\-Wformat\fR
  3986. employs a conservative approach that warns only about calls that most
  3987. likely overflow the buffer. At this level, numeric arguments to format
  3988. directives with unknown values are assumed to have the value of one, and
  3989. strings of unknown length to be empty. Numeric arguments that are known
  3990. to be bounded to a subrange of their type, or string arguments whose output
  3991. is bounded either by their directive's precision or by a finite set of
  3992. string literals, are assumed to take on the value within the range that
  3993. results in the most bytes on output. For example, the call to \f(CW\*(C`sprintf\*(C'\fR
  3994. below is diagnosed because even with both \fIa\fR and \fIb\fR equal to zero,
  3995. the terminating \s-1NUL\s0 character (\f(CW\*(Aq\e0\*(Aq\fR) appended by the function
  3996. to the destination buffer will be written past its end. Increasing
  3997. the size of the buffer by a single byte is sufficient to avoid the
  3998. warning, though it may not be sufficient to avoid the overflow.
  3999. .Sp
  4000. .Vb 5
  4001. \& void f (int a, int b)
  4002. \& {
  4003. \& char buf [13];
  4004. \& sprintf (buf, "a = %i, b = %i\en", a, b);
  4005. \& }
  4006. .Ve
  4007. .IP "\fB\-Wformat\-overflow=2\fR" 4
  4008. .IX Item "-Wformat-overflow=2"
  4009. Level \fI2\fR warns also about calls that might overflow the destination
  4010. buffer given an argument of sufficient length or magnitude. At level
  4011. \&\fI2\fR, unknown numeric arguments are assumed to have the minimum
  4012. representable value for signed types with a precision greater than 1, and
  4013. the maximum representable value otherwise. Unknown string arguments whose
  4014. length cannot be assumed to be bounded either by the directive's precision,
  4015. or by a finite set of string literals they may evaluate to, or the character
  4016. array they may point to, are assumed to be 1 character long.
  4017. .Sp
  4018. At level \fI2\fR, the call in the example above is again diagnosed, but
  4019. this time because with \fIa\fR equal to a 32\-bit \f(CW\*(C`INT_MIN\*(C'\fR the first
  4020. \&\f(CW%i\fR directive will write some of its digits beyond the end of
  4021. the destination buffer. To make the call safe regardless of the values
  4022. of the two variables, the size of the destination buffer must be increased
  4023. to at least 34 bytes. \s-1GCC\s0 includes the minimum size of the buffer in
  4024. an informational note following the warning.
  4025. .Sp
  4026. An alternative to increasing the size of the destination buffer is to
  4027. constrain the range of formatted values. The maximum length of string
  4028. arguments can be bounded by specifying the precision in the format
  4029. directive. When numeric arguments of format directives can be assumed
  4030. to be bounded by less than the precision of their type, choosing
  4031. an appropriate length modifier to the format specifier will reduce
  4032. the required buffer size. For example, if \fIa\fR and \fIb\fR in the
  4033. example above can be assumed to be within the precision of
  4034. the \f(CW\*(C`short int\*(C'\fR type then using either the \f(CW%hi\fR format
  4035. directive or casting the argument to \f(CW\*(C`short\*(C'\fR reduces the maximum
  4036. required size of the buffer to 24 bytes.
  4037. .Sp
  4038. .Vb 5
  4039. \& void f (int a, int b)
  4040. \& {
  4041. \& char buf [23];
  4042. \& sprintf (buf, "a = %hi, b = %i\en", a, (short)b);
  4043. \& }
  4044. .Ve
  4045. .RE
  4046. .RS 4
  4047. .RE
  4048. .IP "\fB\-Wno\-format\-zero\-length\fR" 4
  4049. .IX Item "-Wno-format-zero-length"
  4050. If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
  4051. The C standard specifies that zero-length formats are allowed.
  4052. .IP "\fB\-Wformat=2\fR" 4
  4053. .IX Item "-Wformat=2"
  4054. Enable \fB\-Wformat\fR plus additional format checks. Currently
  4055. equivalent to \fB\-Wformat \-Wformat\-nonliteral \-Wformat\-security
  4056. \&\-Wformat\-y2k\fR.
  4057. .IP "\fB\-Wformat\-nonliteral\fR" 4
  4058. .IX Item "-Wformat-nonliteral"
  4059. If \fB\-Wformat\fR is specified, also warn if the format string is not a
  4060. string literal and so cannot be checked, unless the format function
  4061. takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
  4062. .IP "\fB\-Wformat\-security\fR" 4
  4063. .IX Item "-Wformat-security"
  4064. If \fB\-Wformat\fR is specified, also warn about uses of format
  4065. functions that represent possible security problems. At present, this
  4066. warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
  4067. format string is not a string literal and there are no format arguments,
  4068. as in \f(CW\*(C`printf (foo);\*(C'\fR. This may be a security hole if the format
  4069. string came from untrusted input and contains \fB\f(CB%n\fB\fR. (This is
  4070. currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
  4071. in future warnings may be added to \fB\-Wformat\-security\fR that are not
  4072. included in \fB\-Wformat\-nonliteral\fR.)
  4073. .IP "\fB\-Wformat\-signedness\fR" 4
  4074. .IX Item "-Wformat-signedness"
  4075. If \fB\-Wformat\fR is specified, also warn if the format string
  4076. requires an unsigned argument and the argument is signed and vice versa.
  4077. .IP "\fB\-Wformat\-truncation\fR" 4
  4078. .IX Item "-Wformat-truncation"
  4079. .PD 0
  4080. .IP "\fB\-Wformat\-truncation=\fR\fIlevel\fR" 4
  4081. .IX Item "-Wformat-truncation=level"
  4082. .PD
  4083. Warn about calls to formatted input/output functions such as \f(CW\*(C`snprintf\*(C'\fR
  4084. and \f(CW\*(C`vsnprintf\*(C'\fR that might result in output truncation. When the exact
  4085. number of bytes written by a format directive cannot be determined at
  4086. compile-time it is estimated based on heuristics that depend on
  4087. the \fIlevel\fR argument and on optimization. While enabling optimization
  4088. will in most cases improve the accuracy of the warning, it may also result
  4089. in false positives. Except as noted otherwise, the option uses the same
  4090. logic \fB\-Wformat\-overflow\fR.
  4091. .RS 4
  4092. .IP "\fB\-Wformat\-truncation\fR" 4
  4093. .IX Item "-Wformat-truncation"
  4094. .PD 0
  4095. .IP "\fB\-Wformat\-truncation=1\fR" 4
  4096. .IX Item "-Wformat-truncation=1"
  4097. .PD
  4098. Level \fI1\fR of \fB\-Wformat\-truncation\fR enabled by \fB\-Wformat\fR
  4099. employs a conservative approach that warns only about calls to bounded
  4100. functions whose return value is unused and that will most likely result
  4101. in output truncation.
  4102. .IP "\fB\-Wformat\-truncation=2\fR" 4
  4103. .IX Item "-Wformat-truncation=2"
  4104. Level \fI2\fR warns also about calls to bounded functions whose return
  4105. value is used and that might result in truncation given an argument of
  4106. sufficient length or magnitude.
  4107. .RE
  4108. .RS 4
  4109. .RE
  4110. .IP "\fB\-Wformat\-y2k\fR" 4
  4111. .IX Item "-Wformat-y2k"
  4112. If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
  4113. formats that may yield only a two-digit year.
  4114. .RE
  4115. .RS 4
  4116. .RE
  4117. .IP "\fB\-Wnonnull\fR" 4
  4118. .IX Item "-Wnonnull"
  4119. Warn about passing a null pointer for arguments marked as
  4120. requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
  4121. .Sp
  4122. \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR. It
  4123. can be disabled with the \fB\-Wno\-nonnull\fR option.
  4124. .IP "\fB\-Wnonnull\-compare\fR" 4
  4125. .IX Item "-Wnonnull-compare"
  4126. Warn when comparing an argument marked with the \f(CW\*(C`nonnull\*(C'\fR
  4127. function attribute against null inside the function.
  4128. .Sp
  4129. \&\fB\-Wnonnull\-compare\fR is included in \fB\-Wall\fR. It
  4130. can be disabled with the \fB\-Wno\-nonnull\-compare\fR option.
  4131. .IP "\fB\-Wnull\-dereference\fR" 4
  4132. .IX Item "-Wnull-dereference"
  4133. Warn if the compiler detects paths that trigger erroneous or
  4134. undefined behavior due to dereferencing a null pointer. This option
  4135. is only active when \fB\-fdelete\-null\-pointer\-checks\fR is active,
  4136. which is enabled by optimizations in most targets. The precision of
  4137. the warnings depends on the optimization options used.
  4138. .IP "\fB\-Winit\-self\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
  4139. .IX Item "-Winit-self (C, , Objective-C and Objective- only)"
  4140. Warn about uninitialized variables that are initialized with themselves.
  4141. Note this option can only be used with the \fB\-Wuninitialized\fR option.
  4142. .Sp
  4143. For example, \s-1GCC\s0 warns about \f(CW\*(C`i\*(C'\fR being uninitialized in the
  4144. following snippet only when \fB\-Winit\-self\fR has been specified:
  4145. .Sp
  4146. .Vb 5
  4147. \& int f()
  4148. \& {
  4149. \& int i = i;
  4150. \& return i;
  4151. \& }
  4152. .Ve
  4153. .Sp
  4154. This warning is enabled by \fB\-Wall\fR in \*(C+.
  4155. .IP "\fB\-Wimplicit\-int\fR (C and Objective-C only)" 4
  4156. .IX Item "-Wimplicit-int (C and Objective-C only)"
  4157. Warn when a declaration does not specify a type.
  4158. This warning is enabled by \fB\-Wall\fR.
  4159. .IP "\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only)" 4
  4160. .IX Item "-Wimplicit-function-declaration (C and Objective-C only)"
  4161. Give a warning whenever a function is used before being declared. In
  4162. C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this warning is
  4163. enabled by default and it is made into an error by
  4164. \&\fB\-pedantic\-errors\fR. This warning is also enabled by
  4165. \&\fB\-Wall\fR.
  4166. .IP "\fB\-Wimplicit\fR (C and Objective-C only)" 4
  4167. .IX Item "-Wimplicit (C and Objective-C only)"
  4168. Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
  4169. This warning is enabled by \fB\-Wall\fR.
  4170. .IP "\fB\-Wimplicit\-fallthrough\fR" 4
  4171. .IX Item "-Wimplicit-fallthrough"
  4172. \&\fB\-Wimplicit\-fallthrough\fR is the same as \fB\-Wimplicit\-fallthrough=3\fR
  4173. and \fB\-Wno\-implicit\-fallthrough\fR is the same as
  4174. \&\fB\-Wimplicit\-fallthrough=0\fR.
  4175. .IP "\fB\-Wimplicit\-fallthrough=\fR\fIn\fR" 4
  4176. .IX Item "-Wimplicit-fallthrough=n"
  4177. Warn when a switch case falls through. For example:
  4178. .Sp
  4179. .Vb 11
  4180. \& switch (cond)
  4181. \& {
  4182. \& case 1:
  4183. \& a = 1;
  4184. \& break;
  4185. \& case 2:
  4186. \& a = 2;
  4187. \& case 3:
  4188. \& a = 3;
  4189. \& break;
  4190. \& }
  4191. .Ve
  4192. .Sp
  4193. This warning does not warn when the last statement of a case cannot
  4194. fall through, e.g. when there is a return statement or a call to function
  4195. declared with the noreturn attribute. \fB\-Wimplicit\-fallthrough=\fR
  4196. also takes into account control flow statements, such as ifs, and only
  4197. warns when appropriate. E.g.
  4198. .Sp
  4199. .Vb 10
  4200. \& switch (cond)
  4201. \& {
  4202. \& case 1:
  4203. \& if (i > 3) {
  4204. \& bar (5);
  4205. \& break;
  4206. \& } else if (i < 1) {
  4207. \& bar (0);
  4208. \& } else
  4209. \& return;
  4210. \& default:
  4211. \& ...
  4212. \& }
  4213. .Ve
  4214. .Sp
  4215. Since there are occasions where a switch case fall through is desirable,
  4216. \&\s-1GCC\s0 provides an attribute, \f(CW\*(C`_\|_attribute_\|_ ((fallthrough))\*(C'\fR, that is
  4217. to be used along with a null statement to suppress this warning that
  4218. would normally occur:
  4219. .Sp
  4220. .Vb 8
  4221. \& switch (cond)
  4222. \& {
  4223. \& case 1:
  4224. \& bar (0);
  4225. \& _\|_attribute_\|_ ((fallthrough));
  4226. \& default:
  4227. \& ...
  4228. \& }
  4229. .Ve
  4230. .Sp
  4231. \&\*(C+17 provides a standard way to suppress the \fB\-Wimplicit\-fallthrough\fR
  4232. warning using \f(CW\*(C`[[fallthrough]];\*(C'\fR instead of the \s-1GNU\s0 attribute. In \*(C+11
  4233. or \*(C+14 users can use \f(CW\*(C`[[gnu::fallthrough]];\*(C'\fR, which is a \s-1GNU\s0 extension.
  4234. Instead of these attributes, it is also possible to add a fallthrough comment
  4235. to silence the warning. The whole body of the C or \*(C+ style comment should
  4236. match the given regular expressions listed below. The option argument \fIn\fR
  4237. specifies what kind of comments are accepted:
  4238. .RS 4
  4239. .IP "*<\fB\-Wimplicit\-fallthrough=0\fR disables the warning altogether.>" 4
  4240. .IX Item "*<-Wimplicit-fallthrough=0 disables the warning altogether.>"
  4241. .PD 0
  4242. .ie n .IP "*<\fB\-Wimplicit\-fallthrough=1\fR matches "".*"" regular>" 4
  4243. .el .IP "*<\fB\-Wimplicit\-fallthrough=1\fR matches \f(CW.*\fR regular>" 4
  4244. .IX Item "*<-Wimplicit-fallthrough=1 matches .* regular>"
  4245. .PD
  4246. expression, any comment is used as fallthrough comment.
  4247. .IP "*<\fB\-Wimplicit\-fallthrough=2\fR case insensitively matches>" 4
  4248. .IX Item "*<-Wimplicit-fallthrough=2 case insensitively matches>"
  4249. \&\f(CW\*(C`.*falls?[ \et\-]*thr(ough|u).*\*(C'\fR regular expression.
  4250. .IP "*<\fB\-Wimplicit\-fallthrough=3\fR case sensitively matches one of the>" 4
  4251. .IX Item "*<-Wimplicit-fallthrough=3 case sensitively matches one of the>"
  4252. following regular expressions:
  4253. .RS 4
  4254. .ie n .IP "*<""\-fallthrough"">" 4
  4255. .el .IP "*<\f(CW\-fallthrough\fR>" 4
  4256. .IX Item "*<-fallthrough>"
  4257. .PD 0
  4258. .ie n .IP "*<""@fallthrough@"">" 4
  4259. .el .IP "*<\f(CW@fallthrough@\fR>" 4
  4260. .IX Item "*<@fallthrough@>"
  4261. .ie n .IP "*<""lint \-fallthrough[ \et]*"">" 4
  4262. .el .IP "*<\f(CWlint \-fallthrough[ \et]*\fR>" 4
  4263. .IX Item "*<lint -fallthrough[ t]*>"
  4264. .ie n .IP "*<""[ \et.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |\-)?THR(OUGH|U)[ \et.!]*(\-[^\en\er]*)?"">" 4
  4265. .el .IP "*<\f(CW[ \et.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |\-)?THR(OUGH|U)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
  4266. .IX Item "*<[ t.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |-)?THR(OUGH|U)[ t.!]*(-[^nr]*)?>"
  4267. .ie n .IP "*<""[ \et.!]*(Else,? |Intentional(ly)? )?Fall((s | |\-)[Tt]|t)hr(ough|u)[ \et.!]*(\-[^\en\er]*)?"">" 4
  4268. .el .IP "*<\f(CW[ \et.!]*(Else,? |Intentional(ly)? )?Fall((s | |\-)[Tt]|t)hr(ough|u)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
  4269. .IX Item "*<[ t.!]*(Else,? |Intentional(ly)? )?Fall((s | |-)[Tt]|t)hr(ough|u)[ t.!]*(-[^nr]*)?>"
  4270. .ie n .IP "*<""[ \et.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |\-)?thr(ough|u)[ \et.!]*(\-[^\en\er]*)?"">" 4
  4271. .el .IP "*<\f(CW[ \et.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |\-)?thr(ough|u)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
  4272. .IX Item "*<[ t.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |-)?thr(ough|u)[ t.!]*(-[^nr]*)?>"
  4273. .RE
  4274. .RS 4
  4275. .RE
  4276. .IP "*<\fB\-Wimplicit\-fallthrough=4\fR case sensitively matches one of the>" 4
  4277. .IX Item "*<-Wimplicit-fallthrough=4 case sensitively matches one of the>"
  4278. .PD
  4279. following regular expressions:
  4280. .RS 4
  4281. .ie n .IP "*<""\-fallthrough"">" 4
  4282. .el .IP "*<\f(CW\-fallthrough\fR>" 4
  4283. .IX Item "*<-fallthrough>"
  4284. .PD 0
  4285. .ie n .IP "*<""@fallthrough@"">" 4
  4286. .el .IP "*<\f(CW@fallthrough@\fR>" 4
  4287. .IX Item "*<@fallthrough@>"
  4288. .ie n .IP "*<""lint \-fallthrough[ \et]*"">" 4
  4289. .el .IP "*<\f(CWlint \-fallthrough[ \et]*\fR>" 4
  4290. .IX Item "*<lint -fallthrough[ t]*>"
  4291. .ie n .IP "*<""[ \et]*FALLTHR(OUGH|U)[ \et]*"">" 4
  4292. .el .IP "*<\f(CW[ \et]*FALLTHR(OUGH|U)[ \et]*\fR>" 4
  4293. .IX Item "*<[ t]*FALLTHR(OUGH|U)[ t]*>"
  4294. .RE
  4295. .RS 4
  4296. .RE
  4297. .IP "*<\fB\-Wimplicit\-fallthrough=5\fR doesn't recognize any comments as>" 4
  4298. .IX Item "*<-Wimplicit-fallthrough=5 doesn't recognize any comments as>"
  4299. .PD
  4300. fallthrough comments, only attributes disable the warning.
  4301. .RE
  4302. .RS 4
  4303. .Sp
  4304. The comment needs to be followed after optional whitespace and other comments
  4305. by \f(CW\*(C`case\*(C'\fR or \f(CW\*(C`default\*(C'\fR keywords or by a user label that precedes some
  4306. \&\f(CW\*(C`case\*(C'\fR or \f(CW\*(C`default\*(C'\fR label.
  4307. .Sp
  4308. .Vb 8
  4309. \& switch (cond)
  4310. \& {
  4311. \& case 1:
  4312. \& bar (0);
  4313. \& /* FALLTHRU */
  4314. \& default:
  4315. \& ...
  4316. \& }
  4317. .Ve
  4318. .Sp
  4319. The \fB\-Wimplicit\-fallthrough=3\fR warning is enabled by \fB\-Wextra\fR.
  4320. .RE
  4321. .IP "\fB\-Wif\-not\-aligned\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
  4322. .IX Item "-Wif-not-aligned (C, , Objective-C and Objective- only)"
  4323. Control if warning triggered by the \f(CW\*(C`warn_if_not_aligned\*(C'\fR attribute
  4324. should be issued. This is enabled by default.
  4325. Use \fB\-Wno\-if\-not\-aligned\fR to disable it.
  4326. .IP "\fB\-Wignored\-qualifiers\fR (C and \*(C+ only)" 4
  4327. .IX Item "-Wignored-qualifiers (C and only)"
  4328. Warn if the return type of a function has a type qualifier
  4329. such as \f(CW\*(C`const\*(C'\fR. For \s-1ISO C\s0 such a type qualifier has no effect,
  4330. since the value returned by a function is not an lvalue.
  4331. For \*(C+, the warning is only emitted for scalar types or \f(CW\*(C`void\*(C'\fR.
  4332. \&\s-1ISO C\s0 prohibits qualified \f(CW\*(C`void\*(C'\fR return types on function
  4333. definitions, so such return types always receive a warning
  4334. even without this option.
  4335. .Sp
  4336. This warning is also enabled by \fB\-Wextra\fR.
  4337. .IP "\fB\-Wignored\-attributes\fR (C and \*(C+ only)" 4
  4338. .IX Item "-Wignored-attributes (C and only)"
  4339. Warn when an attribute is ignored. This is different from the
  4340. \&\fB\-Wattributes\fR option in that it warns whenever the compiler decides
  4341. to drop an attribute, not that the attribute is either unknown, used in a
  4342. wrong place, etc. This warning is enabled by default.
  4343. .IP "\fB\-Wmain\fR" 4
  4344. .IX Item "-Wmain"
  4345. Warn if the type of \f(CW\*(C`main\*(C'\fR is suspicious. \f(CW\*(C`main\*(C'\fR should be
  4346. a function with external linkage, returning int, taking either zero
  4347. arguments, two, or three arguments of appropriate types. This warning
  4348. is enabled by default in \*(C+ and is enabled by either \fB\-Wall\fR
  4349. or \fB\-Wpedantic\fR.
  4350. .IP "\fB\-Wmisleading\-indentation\fR (C and \*(C+ only)" 4
  4351. .IX Item "-Wmisleading-indentation (C and only)"
  4352. Warn when the indentation of the code does not reflect the block structure.
  4353. 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
  4354. \&\f(CW\*(C`for\*(C'\fR clauses with a guarded statement that does not use braces,
  4355. followed by an unguarded statement with the same indentation.
  4356. .Sp
  4357. In the following example, the call to \*(L"bar\*(R" is misleadingly indented as
  4358. if it were guarded by the \*(L"if\*(R" conditional.
  4359. .Sp
  4360. .Vb 3
  4361. \& if (some_condition ())
  4362. \& foo ();
  4363. \& bar (); /* Gotcha: this is not guarded by the "if". */
  4364. .Ve
  4365. .Sp
  4366. In the case of mixed tabs and spaces, the warning uses the
  4367. \&\fB\-ftabstop=\fR option to determine if the statements line up
  4368. (defaulting to 8).
  4369. .Sp
  4370. The warning is not issued for code involving multiline preprocessor logic
  4371. such as the following example.
  4372. .Sp
  4373. .Vb 6
  4374. \& if (flagA)
  4375. \& foo (0);
  4376. \& #if SOME_CONDITION_THAT_DOES_NOT_HOLD
  4377. \& if (flagB)
  4378. \& #endif
  4379. \& foo (1);
  4380. .Ve
  4381. .Sp
  4382. The warning is not issued after a \f(CW\*(C`#line\*(C'\fR directive, since this
  4383. typically indicates autogenerated code, and no assumptions can be made
  4384. about the layout of the file that the directive references.
  4385. .Sp
  4386. This warning is enabled by \fB\-Wall\fR in C and \*(C+.
  4387. .IP "\fB\-Wmissing\-attributes\fR" 4
  4388. .IX Item "-Wmissing-attributes"
  4389. Warn when a declaration of a function is missing one or more attributes
  4390. that a related function is declared with and whose absence may adversely
  4391. affect the correctness or efficiency of generated code. For example, in
  4392. \&\*(C+, the warning is issued when an explicit specialization of a primary
  4393. template declared with attribute \f(CW\*(C`alloc_align\*(C'\fR, \f(CW\*(C`alloc_size\*(C'\fR,
  4394. \&\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,
  4395. or \f(CW\*(C`nonnull\*(C'\fR is declared without it. Attributes \f(CW\*(C`deprecated\*(C'\fR,
  4396. \&\f(CW\*(C`error\*(C'\fR, and \f(CW\*(C`warning\*(C'\fR suppress the warning..
  4397. .Sp
  4398. \&\fB\-Wmissing\-attributes\fR is enabled by \fB\-Wall\fR.
  4399. .Sp
  4400. For example, since the declaration of the primary function template
  4401. below makes use of both attribute \f(CW\*(C`malloc\*(C'\fR and \f(CW\*(C`alloc_size\*(C'\fR
  4402. the declaration of the explicit specialization of the template is
  4403. diagnosed because it is missing one of the attributes.
  4404. .Sp
  4405. .Vb 3
  4406. \& template <class T>
  4407. \& T* _\|_attribute_\|_ ((malloc, alloc_size (1)))
  4408. \& allocate (size_t);
  4409. \&
  4410. \& template <>
  4411. \& void* _\|_attribute_\|_ ((malloc)) // missing alloc_size
  4412. \& allocate<void> (size_t);
  4413. .Ve
  4414. .IP "\fB\-Wmissing\-braces\fR" 4
  4415. .IX Item "-Wmissing-braces"
  4416. Warn if an aggregate or union initializer is not fully bracketed. In
  4417. the following example, the initializer for \f(CW\*(C`a\*(C'\fR is not fully
  4418. bracketed, but that for \f(CW\*(C`b\*(C'\fR is fully bracketed. This warning is
  4419. enabled by \fB\-Wall\fR in C.
  4420. .Sp
  4421. .Vb 2
  4422. \& int a[2][2] = { 0, 1, 2, 3 };
  4423. \& int b[2][2] = { { 0, 1 }, { 2, 3 } };
  4424. .Ve
  4425. .Sp
  4426. This warning is enabled by \fB\-Wall\fR.
  4427. .IP "\fB\-Wmissing\-include\-dirs\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
  4428. .IX Item "-Wmissing-include-dirs (C, , Objective-C and Objective- only)"
  4429. Warn if a user-supplied include directory does not exist.
  4430. .IP "\fB\-Wmultistatement\-macros\fR" 4
  4431. .IX Item "-Wmultistatement-macros"
  4432. Warn about unsafe multiple statement macros that appear to be guarded
  4433. 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
  4434. \&\f(CW\*(C`while\*(C'\fR, in which only the first statement is actually guarded after
  4435. the macro is expanded.
  4436. .Sp
  4437. For example:
  4438. .Sp
  4439. .Vb 3
  4440. \& #define DOIT x++; y++
  4441. \& if (c)
  4442. \& DOIT;
  4443. .Ve
  4444. .Sp
  4445. will increment \f(CW\*(C`y\*(C'\fR unconditionally, not just when \f(CW\*(C`c\*(C'\fR holds.
  4446. The can usually be fixed by wrapping the macro in a do-while loop:
  4447. .Sp
  4448. .Vb 3
  4449. \& #define DOIT do { x++; y++; } while (0)
  4450. \& if (c)
  4451. \& DOIT;
  4452. .Ve
  4453. .Sp
  4454. This warning is enabled by \fB\-Wall\fR in C and \*(C+.
  4455. .IP "\fB\-Wparentheses\fR" 4
  4456. .IX Item "-Wparentheses"
  4457. Warn if parentheses are omitted in certain contexts, such
  4458. as when there is an assignment in a context where a truth value
  4459. is expected, or when operators are nested whose precedence people
  4460. often get confused about.
  4461. .Sp
  4462. Also warn if a comparison like \f(CW\*(C`x<=y<=z\*(C'\fR appears; this is
  4463. equivalent to \f(CW\*(C`(x<=y ? 1 : 0) <= z\*(C'\fR, which is a different
  4464. interpretation from that of ordinary mathematical notation.
  4465. .Sp
  4466. Also warn for dangerous uses of the \s-1GNU\s0 extension to
  4467. \&\f(CW\*(C`?:\*(C'\fR with omitted middle operand. When the condition
  4468. in the \f(CW\*(C`?\*(C'\fR: operator is a boolean expression, the omitted value is
  4469. always 1. Often programmers expect it to be a value computed
  4470. inside the conditional expression instead.
  4471. .Sp
  4472. For \*(C+ this also warns for some cases of unnecessary parentheses in
  4473. declarations, which can indicate an attempt at a function call instead
  4474. of a declaration:
  4475. .Sp
  4476. .Vb 5
  4477. \& {
  4478. \& // Declares a local variable called mymutex.
  4479. \& std::unique_lock<std::mutex> (mymutex);
  4480. \& // User meant std::unique_lock<std::mutex> lock (mymutex);
  4481. \& }
  4482. .Ve
  4483. .Sp
  4484. This warning is enabled by \fB\-Wall\fR.
  4485. .IP "\fB\-Wsequence\-point\fR" 4
  4486. .IX Item "-Wsequence-point"
  4487. Warn about code that may have undefined semantics because of violations
  4488. of sequence point rules in the C and \*(C+ standards.
  4489. .Sp
  4490. The C and \*(C+ standards define the order in which expressions in a C/\*(C+
  4491. program are evaluated in terms of \fIsequence points\fR, which represent
  4492. a partial ordering between the execution of parts of the program: those
  4493. executed before the sequence point, and those executed after it. These
  4494. occur after the evaluation of a full expression (one which is not part
  4495. of a larger expression), after the evaluation of the first operand of a
  4496. \&\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
  4497. function is called (but after the evaluation of its arguments and the
  4498. expression denoting the called function), and in certain other places.
  4499. Other than as expressed by the sequence point rules, the order of
  4500. evaluation of subexpressions of an expression is not specified. All
  4501. these rules describe only a partial order rather than a total order,
  4502. since, for example, if two functions are called within one expression
  4503. with no sequence point between them, the order in which the functions
  4504. are called is not specified. However, the standards committee have
  4505. ruled that function calls do not overlap.
  4506. .Sp
  4507. It is not specified when between sequence points modifications to the
  4508. values of objects take effect. Programs whose behavior depends on this
  4509. have undefined behavior; the C and \*(C+ standards specify that \*(L"Between
  4510. the previous and next sequence point an object shall have its stored
  4511. value modified at most once by the evaluation of an expression.
  4512. Furthermore, the prior value shall be read only to determine the value
  4513. to be stored.\*(R". If a program breaks these rules, the results on any
  4514. particular implementation are entirely unpredictable.
  4515. .Sp
  4516. Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
  4517. = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR. Some more complicated cases are not
  4518. diagnosed by this option, and it may give an occasional false positive
  4519. result, but in general it has been found fairly effective at detecting
  4520. this sort of problem in programs.
  4521. .Sp
  4522. The \*(C+17 standard will define the order of evaluation of operands in
  4523. more cases: in particular it requires that the right-hand side of an
  4524. assignment be evaluated before the left-hand side, so the above
  4525. examples are no longer undefined. But this warning will still warn
  4526. about them, to help people avoid writing code that is undefined in C
  4527. and earlier revisions of \*(C+.
  4528. .Sp
  4529. The standard is worded confusingly, therefore there is some debate
  4530. over the precise meaning of the sequence point rules in subtle cases.
  4531. Links to discussions of the problem, including proposed formal
  4532. definitions, may be found on the \s-1GCC\s0 readings page, at
  4533. <\fBhttp://gcc.gnu.org/readings.html\fR>.
  4534. .Sp
  4535. This warning is enabled by \fB\-Wall\fR for C and \*(C+.
  4536. .IP "\fB\-Wno\-return\-local\-addr\fR" 4
  4537. .IX Item "-Wno-return-local-addr"
  4538. Do not warn about returning a pointer (or in \*(C+, a reference) to a
  4539. variable that goes out of scope after the function returns.
  4540. .IP "\fB\-Wreturn\-type\fR" 4
  4541. .IX Item "-Wreturn-type"
  4542. Warn whenever a function is defined with a return type that defaults
  4543. to \f(CW\*(C`int\*(C'\fR. Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
  4544. return value in a function whose return type is not \f(CW\*(C`void\*(C'\fR
  4545. (falling off the end of the function body is considered returning
  4546. without a value).
  4547. .Sp
  4548. For C only, warn about a \f(CW\*(C`return\*(C'\fR statement with an expression in a
  4549. function whose return type is \f(CW\*(C`void\*(C'\fR, unless the expression type is
  4550. also \f(CW\*(C`void\*(C'\fR. As a \s-1GNU\s0 extension, the latter case is accepted
  4551. without a warning unless \fB\-Wpedantic\fR is used.
  4552. .Sp
  4553. For \*(C+, a function without return type always produces a diagnostic
  4554. message, even when \fB\-Wno\-return\-type\fR is specified. The only
  4555. exceptions are \f(CW\*(C`main\*(C'\fR and functions defined in system headers.
  4556. .Sp
  4557. This warning is enabled by default for \*(C+ and is enabled by \fB\-Wall\fR.
  4558. .IP "\fB\-Wshift\-count\-negative\fR" 4
  4559. .IX Item "-Wshift-count-negative"
  4560. Warn if shift count is negative. This warning is enabled by default.
  4561. .IP "\fB\-Wshift\-count\-overflow\fR" 4
  4562. .IX Item "-Wshift-count-overflow"
  4563. Warn if shift count >= width of type. This warning is enabled by default.
  4564. .IP "\fB\-Wshift\-negative\-value\fR" 4
  4565. .IX Item "-Wshift-negative-value"
  4566. Warn if left shifting a negative value. This warning is enabled by
  4567. \&\fB\-Wextra\fR in C99 and \*(C+11 modes (and newer).
  4568. .IP "\fB\-Wshift\-overflow\fR" 4
  4569. .IX Item "-Wshift-overflow"
  4570. .PD 0
  4571. .IP "\fB\-Wshift\-overflow=\fR\fIn\fR" 4
  4572. .IX Item "-Wshift-overflow=n"
  4573. .PD
  4574. Warn about left shift overflows. This warning is enabled by
  4575. default in C99 and \*(C+11 modes (and newer).
  4576. .RS 4
  4577. .IP "\fB\-Wshift\-overflow=1\fR" 4
  4578. .IX Item "-Wshift-overflow=1"
  4579. This is the warning level of \fB\-Wshift\-overflow\fR and is enabled
  4580. by default in C99 and \*(C+11 modes (and newer). This warning level does
  4581. not warn about left-shifting 1 into the sign bit. (However, in C, such
  4582. an overflow is still rejected in contexts where an integer constant expression
  4583. is required.)
  4584. .IP "\fB\-Wshift\-overflow=2\fR" 4
  4585. .IX Item "-Wshift-overflow=2"
  4586. This warning level also warns about left-shifting 1 into the sign bit,
  4587. unless \*(C+14 mode is active.
  4588. .RE
  4589. .RS 4
  4590. .RE
  4591. .IP "\fB\-Wswitch\fR" 4
  4592. .IX Item "-Wswitch"
  4593. Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
  4594. and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
  4595. enumeration. (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
  4596. warning.) \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
  4597. provoke warnings when this option is used (even if there is a
  4598. \&\f(CW\*(C`default\*(C'\fR label).
  4599. This warning is enabled by \fB\-Wall\fR.
  4600. .IP "\fB\-Wswitch\-default\fR" 4
  4601. .IX Item "-Wswitch-default"
  4602. Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
  4603. case.
  4604. .IP "\fB\-Wswitch\-enum\fR" 4
  4605. .IX Item "-Wswitch-enum"
  4606. Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
  4607. and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
  4608. enumeration. \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
  4609. provoke warnings when this option is used. The only difference
  4610. between \fB\-Wswitch\fR and this option is that this option gives a
  4611. warning about an omitted enumeration code even if there is a
  4612. \&\f(CW\*(C`default\*(C'\fR label.
  4613. .IP "\fB\-Wswitch\-bool\fR" 4
  4614. .IX Item "-Wswitch-bool"
  4615. Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of boolean type
  4616. and the case values are outside the range of a boolean type.
  4617. It is possible to suppress this warning by casting the controlling
  4618. expression to a type other than \f(CW\*(C`bool\*(C'\fR. For example:
  4619. .Sp
  4620. .Vb 4
  4621. \& switch ((int) (a == 4))
  4622. \& {
  4623. \& ...
  4624. \& }
  4625. .Ve
  4626. .Sp
  4627. This warning is enabled by default for C and \*(C+ programs.
  4628. .IP "\fB\-Wswitch\-unreachable\fR" 4
  4629. .IX Item "-Wswitch-unreachable"
  4630. Warn whenever a \f(CW\*(C`switch\*(C'\fR statement contains statements between the
  4631. controlling expression and the first case label, which will never be
  4632. executed. For example:
  4633. .Sp
  4634. .Vb 7
  4635. \& switch (cond)
  4636. \& {
  4637. \& i = 15;
  4638. \& ...
  4639. \& case 5:
  4640. \& ...
  4641. \& }
  4642. .Ve
  4643. .Sp
  4644. \&\fB\-Wswitch\-unreachable\fR does not warn if the statement between the
  4645. controlling expression and the first case label is just a declaration:
  4646. .Sp
  4647. .Vb 8
  4648. \& switch (cond)
  4649. \& {
  4650. \& int i;
  4651. \& ...
  4652. \& case 5:
  4653. \& i = 5;
  4654. \& ...
  4655. \& }
  4656. .Ve
  4657. .Sp
  4658. This warning is enabled by default for C and \*(C+ programs.
  4659. .IP "\fB\-Wsync\-nand\fR (C and \*(C+ only)" 4
  4660. .IX Item "-Wsync-nand (C and only)"
  4661. Warn when \f(CW\*(C`_\|_sync_fetch_and_nand\*(C'\fR and \f(CW\*(C`_\|_sync_nand_and_fetch\*(C'\fR
  4662. built-in functions are used. These functions changed semantics in \s-1GCC 4.4.\s0
  4663. .IP "\fB\-Wunused\-but\-set\-parameter\fR" 4
  4664. .IX Item "-Wunused-but-set-parameter"
  4665. Warn whenever a function parameter is assigned to, but otherwise unused
  4666. (aside from its declaration).
  4667. .Sp
  4668. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  4669. .Sp
  4670. This warning is also enabled by \fB\-Wunused\fR together with
  4671. \&\fB\-Wextra\fR.
  4672. .IP "\fB\-Wunused\-but\-set\-variable\fR" 4
  4673. .IX Item "-Wunused-but-set-variable"
  4674. Warn whenever a local variable is assigned to, but otherwise unused
  4675. (aside from its declaration).
  4676. This warning is enabled by \fB\-Wall\fR.
  4677. .Sp
  4678. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  4679. .Sp
  4680. This warning is also enabled by \fB\-Wunused\fR, which is enabled
  4681. by \fB\-Wall\fR.
  4682. .IP "\fB\-Wunused\-function\fR" 4
  4683. .IX Item "-Wunused-function"
  4684. Warn whenever a static function is declared but not defined or a
  4685. non-inline static function is unused.
  4686. This warning is enabled by \fB\-Wall\fR.
  4687. .IP "\fB\-Wunused\-label\fR" 4
  4688. .IX Item "-Wunused-label"
  4689. Warn whenever a label is declared but not used.
  4690. This warning is enabled by \fB\-Wall\fR.
  4691. .Sp
  4692. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  4693. .IP "\fB\-Wunused\-local\-typedefs\fR (C, Objective-C, \*(C+ and Objective\-\*(C+ only)" 4
  4694. .IX Item "-Wunused-local-typedefs (C, Objective-C, and Objective- only)"
  4695. Warn when a typedef locally defined in a function is not used.
  4696. This warning is enabled by \fB\-Wall\fR.
  4697. .IP "\fB\-Wunused\-parameter\fR" 4
  4698. .IX Item "-Wunused-parameter"
  4699. Warn whenever a function parameter is unused aside from its declaration.
  4700. .Sp
  4701. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  4702. .IP "\fB\-Wno\-unused\-result\fR" 4
  4703. .IX Item "-Wno-unused-result"
  4704. Do not warn if a caller of a function marked with attribute
  4705. \&\f(CW\*(C`warn_unused_result\*(C'\fR does not use
  4706. its return value. The default is \fB\-Wunused\-result\fR.
  4707. .IP "\fB\-Wunused\-variable\fR" 4
  4708. .IX Item "-Wunused-variable"
  4709. Warn whenever a local or static variable is unused aside from its
  4710. declaration. This option implies \fB\-Wunused\-const\-variable=1\fR for C,
  4711. but not for \*(C+. This warning is enabled by \fB\-Wall\fR.
  4712. .Sp
  4713. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  4714. .IP "\fB\-Wunused\-const\-variable\fR" 4
  4715. .IX Item "-Wunused-const-variable"
  4716. .PD 0
  4717. .IP "\fB\-Wunused\-const\-variable=\fR\fIn\fR" 4
  4718. .IX Item "-Wunused-const-variable=n"
  4719. .PD
  4720. Warn whenever a constant static variable is unused aside from its declaration.
  4721. \&\fB\-Wunused\-const\-variable=1\fR is enabled by \fB\-Wunused\-variable\fR
  4722. for C, but not for \*(C+. In C this declares variable storage, but in \*(C+ this
  4723. is not an error since const variables take the place of \f(CW\*(C`#define\*(C'\fRs.
  4724. .Sp
  4725. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  4726. .RS 4
  4727. .IP "\fB\-Wunused\-const\-variable=1\fR" 4
  4728. .IX Item "-Wunused-const-variable=1"
  4729. This is the warning level that is enabled by \fB\-Wunused\-variable\fR for
  4730. C. It warns only about unused static const variables defined in the main
  4731. compilation unit, but not about static const variables declared in any
  4732. header included.
  4733. .IP "\fB\-Wunused\-const\-variable=2\fR" 4
  4734. .IX Item "-Wunused-const-variable=2"
  4735. This warning level also warns for unused constant static variables in
  4736. headers (excluding system headers). This is the warning level of
  4737. \&\fB\-Wunused\-const\-variable\fR and must be explicitly requested since
  4738. in \*(C+ this isn't an error and in C it might be harder to clean up all
  4739. headers included.
  4740. .RE
  4741. .RS 4
  4742. .RE
  4743. .IP "\fB\-Wunused\-value\fR" 4
  4744. .IX Item "-Wunused-value"
  4745. Warn whenever a statement computes a result that is explicitly not
  4746. used. To suppress this warning cast the unused expression to
  4747. \&\f(CW\*(C`void\*(C'\fR. This includes an expression-statement or the left-hand
  4748. side of a comma expression that contains no side effects. For example,
  4749. an expression such as \f(CW\*(C`x[i,j]\*(C'\fR causes a warning, while
  4750. \&\f(CW\*(C`x[(void)i,j]\*(C'\fR does not.
  4751. .Sp
  4752. This warning is enabled by \fB\-Wall\fR.
  4753. .IP "\fB\-Wunused\fR" 4
  4754. .IX Item "-Wunused"
  4755. All the above \fB\-Wunused\fR options combined.
  4756. .Sp
  4757. In order to get a warning about an unused function parameter, you must
  4758. either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
  4759. \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
  4760. .IP "\fB\-Wuninitialized\fR" 4
  4761. .IX Item "-Wuninitialized"
  4762. Warn if an automatic variable is used without first being initialized
  4763. or if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call. In \*(C+,
  4764. warn if a non-static reference or non-static \f(CW\*(C`const\*(C'\fR member
  4765. appears in a class without constructors.
  4766. .Sp
  4767. If you want to warn about code that uses the uninitialized value of the
  4768. variable in its own initializer, use the \fB\-Winit\-self\fR option.
  4769. .Sp
  4770. These warnings occur for individual uninitialized or clobbered
  4771. elements of structure, union or array variables as well as for
  4772. variables that are uninitialized or clobbered as a whole. They do
  4773. not occur for variables or elements declared \f(CW\*(C`volatile\*(C'\fR. Because
  4774. these warnings depend on optimization, the exact variables or elements
  4775. for which there are warnings depends on the precise optimization
  4776. options and version of \s-1GCC\s0 used.
  4777. .Sp
  4778. Note that there may be no warning about a variable that is used only
  4779. to compute a value that itself is never used, because such
  4780. computations may be deleted by data flow analysis before the warnings
  4781. are printed.
  4782. .IP "\fB\-Winvalid\-memory\-model\fR" 4
  4783. .IX Item "-Winvalid-memory-model"
  4784. Warn for invocations of \fB_\|_atomic Builtins\fR, \fB_\|_sync Builtins\fR,
  4785. and the C11 atomic generic functions with a memory consistency argument
  4786. that is either invalid for the operation or outside the range of values
  4787. of the \f(CW\*(C`memory_order\*(C'\fR enumeration. For example, since the
  4788. \&\f(CW\*(C`_\|_atomic_store\*(C'\fR and \f(CW\*(C`_\|_atomic_store_n\*(C'\fR built-ins are only
  4789. defined for the relaxed, release, and sequentially consistent memory
  4790. orders the following code is diagnosed:
  4791. .Sp
  4792. .Vb 4
  4793. \& void store (int *i)
  4794. \& {
  4795. \& _\|_atomic_store_n (i, 0, memory_order_consume);
  4796. \& }
  4797. .Ve
  4798. .Sp
  4799. \&\fB\-Winvalid\-memory\-model\fR is enabled by default.
  4800. .IP "\fB\-Wmaybe\-uninitialized\fR" 4
  4801. .IX Item "-Wmaybe-uninitialized"
  4802. For an automatic (i.e. local) variable, if there exists a path from the
  4803. function entry to a use of the variable that is initialized, but there exist
  4804. some other paths for which the variable is not initialized, the compiler
  4805. emits a warning if it cannot prove the uninitialized paths are not
  4806. executed at run time.
  4807. .Sp
  4808. These warnings are only possible in optimizing compilation, because otherwise
  4809. \&\s-1GCC\s0 does not keep track of the state of variables.
  4810. .Sp
  4811. These warnings are made optional because \s-1GCC\s0 may not be able to determine when
  4812. the code is correct in spite of appearing to have an error. Here is one
  4813. example of how this can happen:
  4814. .Sp
  4815. .Vb 12
  4816. \& {
  4817. \& int x;
  4818. \& switch (y)
  4819. \& {
  4820. \& case 1: x = 1;
  4821. \& break;
  4822. \& case 2: x = 4;
  4823. \& break;
  4824. \& case 3: x = 5;
  4825. \& }
  4826. \& foo (x);
  4827. \& }
  4828. .Ve
  4829. .Sp
  4830. If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
  4831. always initialized, but \s-1GCC\s0 doesn't know this. To suppress the
  4832. warning, you need to provide a default case with \fBassert\fR\|(0) or
  4833. similar code.
  4834. .Sp
  4835. This option also warns when a non-volatile automatic variable might be
  4836. changed by a call to \f(CW\*(C`longjmp\*(C'\fR.
  4837. The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR. It cannot know
  4838. where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
  4839. call it at any point in the code. As a result, you may get a warning
  4840. even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
  4841. in fact be called at the place that would cause a problem.
  4842. .Sp
  4843. Some spurious warnings can be avoided if you declare all the functions
  4844. you use that never return as \f(CW\*(C`noreturn\*(C'\fR.
  4845. .Sp
  4846. This warning is enabled by \fB\-Wall\fR or \fB\-Wextra\fR.
  4847. .IP "\fB\-Wunknown\-pragmas\fR" 4
  4848. .IX Item "-Wunknown-pragmas"
  4849. Warn when a \f(CW\*(C`#pragma\*(C'\fR directive is encountered that is not understood by
  4850. \&\s-1GCC.\s0 If this command-line option is used, warnings are even issued
  4851. for unknown pragmas in system header files. This is not the case if
  4852. the warnings are only enabled by the \fB\-Wall\fR command-line option.
  4853. .IP "\fB\-Wno\-pragmas\fR" 4
  4854. .IX Item "-Wno-pragmas"
  4855. Do not warn about misuses of pragmas, such as incorrect parameters,
  4856. invalid syntax, or conflicts between pragmas. See also
  4857. \&\fB\-Wunknown\-pragmas\fR.
  4858. .IP "\fB\-Wstrict\-aliasing\fR" 4
  4859. .IX Item "-Wstrict-aliasing"
  4860. This option is only active when \fB\-fstrict\-aliasing\fR is active.
  4861. It warns about code that might break the strict aliasing rules that the
  4862. compiler is using for optimization. The warning does not catch all
  4863. cases, but does attempt to catch the more common pitfalls. It is
  4864. included in \fB\-Wall\fR.
  4865. It is equivalent to \fB\-Wstrict\-aliasing=3\fR
  4866. .IP "\fB\-Wstrict\-aliasing=n\fR" 4
  4867. .IX Item "-Wstrict-aliasing=n"
  4868. This option is only active when \fB\-fstrict\-aliasing\fR is active.
  4869. It warns about code that might break the strict aliasing rules that the
  4870. compiler is using for optimization.
  4871. Higher levels correspond to higher accuracy (fewer false positives).
  4872. Higher levels also correspond to more effort, similar to the way \fB\-O\fR
  4873. works.
  4874. \&\fB\-Wstrict\-aliasing\fR is equivalent to \fB\-Wstrict\-aliasing=3\fR.
  4875. .Sp
  4876. Level 1: Most aggressive, quick, least accurate.
  4877. Possibly useful when higher levels
  4878. do not warn but \fB\-fstrict\-aliasing\fR still breaks the code, as it has very few
  4879. false negatives. However, it has many false positives.
  4880. Warns for all pointer conversions between possibly incompatible types,
  4881. even if never dereferenced. Runs in the front end only.
  4882. .Sp
  4883. Level 2: Aggressive, quick, not too precise.
  4884. May still have many false positives (not as many as level 1 though),
  4885. and few false negatives (but possibly more than level 1).
  4886. Unlike level 1, it only warns when an address is taken. Warns about
  4887. incomplete types. Runs in the front end only.
  4888. .Sp
  4889. Level 3 (default for \fB\-Wstrict\-aliasing\fR):
  4890. Should have very few false positives and few false
  4891. negatives. Slightly slower than levels 1 or 2 when optimization is enabled.
  4892. Takes care of the common pun+dereference pattern in the front end:
  4893. \&\f(CW\*(C`*(int*)&some_float\*(C'\fR.
  4894. If optimization is enabled, it also runs in the back end, where it deals
  4895. with multiple statement cases using flow-sensitive points-to information.
  4896. Only warns when the converted pointer is dereferenced.
  4897. Does not warn about incomplete types.
  4898. .IP "\fB\-Wstrict\-overflow\fR" 4
  4899. .IX Item "-Wstrict-overflow"
  4900. .PD 0
  4901. .IP "\fB\-Wstrict\-overflow=\fR\fIn\fR" 4
  4902. .IX Item "-Wstrict-overflow=n"
  4903. .PD
  4904. This option is only active when signed overflow is undefined.
  4905. It warns about cases where the compiler optimizes based on the
  4906. assumption that signed overflow does not occur. Note that it does not
  4907. warn about all cases where the code might overflow: it only warns
  4908. about cases where the compiler implements some optimization. Thus
  4909. this warning depends on the optimization level.
  4910. .Sp
  4911. An optimization that assumes that signed overflow does not occur is
  4912. perfectly safe if the values of the variables involved are such that
  4913. overflow never does, in fact, occur. Therefore this warning can
  4914. easily give a false positive: a warning about code that is not
  4915. actually a problem. To help focus on important issues, several
  4916. warning levels are defined. No warnings are issued for the use of
  4917. undefined signed overflow when estimating how many iterations a loop
  4918. requires, in particular when determining whether a loop will be
  4919. executed at all.
  4920. .RS 4
  4921. .IP "\fB\-Wstrict\-overflow=1\fR" 4
  4922. .IX Item "-Wstrict-overflow=1"
  4923. Warn about cases that are both questionable and easy to avoid. For
  4924. example the compiler simplifies
  4925. \&\f(CW\*(C`x + 1 > x\*(C'\fR to \f(CW1\fR. This level of
  4926. \&\fB\-Wstrict\-overflow\fR is enabled by \fB\-Wall\fR; higher levels
  4927. are not, and must be explicitly requested.
  4928. .IP "\fB\-Wstrict\-overflow=2\fR" 4
  4929. .IX Item "-Wstrict-overflow=2"
  4930. Also warn about other cases where a comparison is simplified to a
  4931. constant. For example: \f(CW\*(C`abs (x) >= 0\*(C'\fR. This can only be
  4932. simplified when signed integer overflow is undefined, because
  4933. \&\f(CW\*(C`abs (INT_MIN)\*(C'\fR overflows to \f(CW\*(C`INT_MIN\*(C'\fR, which is less than
  4934. zero. \fB\-Wstrict\-overflow\fR (with no level) is the same as
  4935. \&\fB\-Wstrict\-overflow=2\fR.
  4936. .IP "\fB\-Wstrict\-overflow=3\fR" 4
  4937. .IX Item "-Wstrict-overflow=3"
  4938. Also warn about other cases where a comparison is simplified. For
  4939. example: \f(CW\*(C`x + 1 > 1\*(C'\fR is simplified to \f(CW\*(C`x > 0\*(C'\fR.
  4940. .IP "\fB\-Wstrict\-overflow=4\fR" 4
  4941. .IX Item "-Wstrict-overflow=4"
  4942. Also warn about other simplifications not covered by the above cases.
  4943. For example: \f(CW\*(C`(x * 10) / 5\*(C'\fR is simplified to \f(CW\*(C`x * 2\*(C'\fR.
  4944. .IP "\fB\-Wstrict\-overflow=5\fR" 4
  4945. .IX Item "-Wstrict-overflow=5"
  4946. Also warn about cases where the compiler reduces the magnitude of a
  4947. constant involved in a comparison. For example: \f(CW\*(C`x + 2 > y\*(C'\fR is
  4948. simplified to \f(CW\*(C`x + 1 >= y\*(C'\fR. This is reported only at the
  4949. highest warning level because this simplification applies to many
  4950. comparisons, so this warning level gives a very large number of
  4951. false positives.
  4952. .RE
  4953. .RS 4
  4954. .RE
  4955. .IP "\fB\-Wstringop\-overflow\fR" 4
  4956. .IX Item "-Wstringop-overflow"
  4957. .PD 0
  4958. .IP "\fB\-Wstringop\-overflow=\fR\fItype\fR" 4
  4959. .IX Item "-Wstringop-overflow=type"
  4960. .PD
  4961. Warn for calls to string manipulation functions such as \f(CW\*(C`memcpy\*(C'\fR and
  4962. \&\f(CW\*(C`strcpy\*(C'\fR that are determined to overflow the destination buffer. The
  4963. optional argument is one greater than the type of Object Size Checking to
  4964. perform to determine the size of the destination.
  4965. The argument is meaningful only for functions that operate on character arrays
  4966. but not for raw memory functions like \f(CW\*(C`memcpy\*(C'\fR which always make use
  4967. of Object Size type\-0. The option also warns for calls that specify a size
  4968. in excess of the largest possible object or at most \f(CW\*(C`SIZE_MAX / 2\*(C'\fR bytes.
  4969. The option produces the best results with optimization enabled but can detect
  4970. a small subset of simple buffer overflows even without optimization in
  4971. calls to the \s-1GCC\s0 built-in functions like \f(CW\*(C`_\|_builtin_memcpy\*(C'\fR that
  4972. correspond to the standard functions. In any case, the option warns about
  4973. just a subset of buffer overflows detected by the corresponding overflow
  4974. checking built-ins. For example, the option will issue a warning for
  4975. the \f(CW\*(C`strcpy\*(C'\fR call below because it copies at least 5 characters
  4976. (the string \f(CW"blue"\fR including the terminating \s-1NUL\s0) into the buffer
  4977. of size 4.
  4978. .Sp
  4979. .Vb 11
  4980. \& enum Color { blue, purple, yellow };
  4981. \& const char* f (enum Color clr)
  4982. \& {
  4983. \& static char buf [4];
  4984. \& const char *str;
  4985. \& switch (clr)
  4986. \& {
  4987. \& case blue: str = "blue"; break;
  4988. \& case purple: str = "purple"; break;
  4989. \& case yellow: str = "yellow"; break;
  4990. \& }
  4991. \&
  4992. \& return strcpy (buf, str); // warning here
  4993. \& }
  4994. .Ve
  4995. .Sp
  4996. Option \fB\-Wstringop\-overflow=2\fR is enabled by default.
  4997. .RS 4
  4998. .IP "\fB\-Wstringop\-overflow\fR" 4
  4999. .IX Item "-Wstringop-overflow"
  5000. .PD 0
  5001. .IP "\fB\-Wstringop\-overflow=1\fR" 4
  5002. .IX Item "-Wstringop-overflow=1"
  5003. .PD
  5004. The \fB\-Wstringop\-overflow=1\fR option uses type-zero Object Size Checking
  5005. to determine the sizes of destination objects. This is the default setting
  5006. of the option. At this setting the option will not warn for writes past
  5007. the end of subobjects of larger objects accessed by pointers unless the
  5008. size of the largest surrounding object is known. When the destination may
  5009. be one of several objects it is assumed to be the largest one of them. On
  5010. Linux systems, when optimization is enabled at this setting the option warns
  5011. for the same code as when the \f(CW\*(C`_FORTIFY_SOURCE\*(C'\fR macro is defined to
  5012. a non-zero value.
  5013. .IP "\fB\-Wstringop\-overflow=2\fR" 4
  5014. .IX Item "-Wstringop-overflow=2"
  5015. The \fB\-Wstringop\-overflow=2\fR option uses type-one Object Size Checking
  5016. to determine the sizes of destination objects. At this setting the option
  5017. will warn about overflows when writing to members of the largest complete
  5018. objects whose exact size is known. It will, however, not warn for excessive
  5019. writes to the same members of unknown objects referenced by pointers since
  5020. they may point to arrays containing unknown numbers of elements.
  5021. .IP "\fB\-Wstringop\-overflow=3\fR" 4
  5022. .IX Item "-Wstringop-overflow=3"
  5023. The \fB\-Wstringop\-overflow=3\fR option uses type-two Object Size Checking
  5024. to determine the sizes of destination objects. At this setting the option
  5025. warns about overflowing the smallest object or data member. This is the
  5026. most restrictive setting of the option that may result in warnings for safe
  5027. code.
  5028. .IP "\fB\-Wstringop\-overflow=4\fR" 4
  5029. .IX Item "-Wstringop-overflow=4"
  5030. The \fB\-Wstringop\-overflow=4\fR option uses type-three Object Size Checking
  5031. to determine the sizes of destination objects. At this setting the option
  5032. will warn about overflowing any data members, and when the destination is
  5033. one of several objects it uses the size of the largest of them to decide
  5034. whether to issue a warning. Similarly to \fB\-Wstringop\-overflow=3\fR this
  5035. setting of the option may result in warnings for benign code.
  5036. .RE
  5037. .RS 4
  5038. .RE
  5039. .IP "\fB\-Wstringop\-truncation\fR" 4
  5040. .IX Item "-Wstringop-truncation"
  5041. Warn for calls to bounded string manipulation functions such as \f(CW\*(C`strncat\*(C'\fR,
  5042. \&\f(CW\*(C`strncpy\*(C'\fR, and \f(CW\*(C`stpncpy\*(C'\fR that may either truncate the copied string
  5043. or leave the destination unchanged.
  5044. .Sp
  5045. In the following example, the call to \f(CW\*(C`strncat\*(C'\fR specifies a bound that
  5046. is less than the length of the source string. As a result, the copy of
  5047. the source will be truncated and so the call is diagnosed. To avoid the
  5048. warning use \f(CW\*(C`bufsize \- strlen (buf) \- 1)\*(C'\fR as the bound.
  5049. .Sp
  5050. .Vb 4
  5051. \& void append (char *buf, size_t bufsize)
  5052. \& {
  5053. \& strncat (buf, ".txt", 3);
  5054. \& }
  5055. .Ve
  5056. .Sp
  5057. As another example, the following call to \f(CW\*(C`strncpy\*(C'\fR results in copying
  5058. to \f(CW\*(C`d\*(C'\fR just the characters preceding the terminating \s-1NUL,\s0 without
  5059. appending the \s-1NUL\s0 to the end. Assuming the result of \f(CW\*(C`strncpy\*(C'\fR is
  5060. necessarily a NUL-terminated string is a common mistake, and so the call
  5061. is diagnosed. To avoid the warning when the result is not expected to be
  5062. NUL-terminated, call \f(CW\*(C`memcpy\*(C'\fR instead.
  5063. .Sp
  5064. .Vb 4
  5065. \& void copy (char *d, const char *s)
  5066. \& {
  5067. \& strncpy (d, s, strlen (s));
  5068. \& }
  5069. .Ve
  5070. .Sp
  5071. In the following example, the call to \f(CW\*(C`strncpy\*(C'\fR specifies the size
  5072. of the destination buffer as the bound. If the length of the source
  5073. string is equal to or greater than this size the result of the copy will
  5074. not be NUL-terminated. Therefore, the call is also diagnosed. To avoid
  5075. the warning, specify \f(CW\*(C`sizeof buf \- 1\*(C'\fR as the bound and set the last
  5076. element of the buffer to \f(CW\*(C`NUL\*(C'\fR.
  5077. .Sp
  5078. .Vb 6
  5079. \& void copy (const char *s)
  5080. \& {
  5081. \& char buf[80];
  5082. \& strncpy (buf, s, sizeof buf);
  5083. \& ...
  5084. \& }
  5085. .Ve
  5086. .Sp
  5087. In situations where a character array is intended to store a sequence
  5088. of bytes with no terminating \f(CW\*(C`NUL\*(C'\fR such an array may be annotated
  5089. with attribute \f(CW\*(C`nonstring\*(C'\fR to avoid this warning. Such arrays,
  5090. however, are not suitable arguments to functions that expect
  5091. \&\f(CW\*(C`NUL\*(C'\fR\-terminated strings. To help detect accidental misuses of
  5092. such arrays \s-1GCC\s0 issues warnings unless it can prove that the use is
  5093. safe.
  5094. .Sp
  5095. Option \fB\-Wstringop\-truncation\fR is enabled by \fB\-Wall\fR.
  5096. .IP "\fB\-Wsuggest\-attribute=\fR[\fBpure\fR|\fBconst\fR|\fBnoreturn\fR|\fBformat\fR|\fBcold\fR|\fBmalloc\fR]" 4
  5097. .IX Item "-Wsuggest-attribute=[pure|const|noreturn|format|cold|malloc]"
  5098. Warn for cases where adding an attribute may be beneficial. The
  5099. attributes currently supported are listed below.
  5100. .RS 4
  5101. .IP "\fB\-Wsuggest\-attribute=pure\fR" 4
  5102. .IX Item "-Wsuggest-attribute=pure"
  5103. .PD 0
  5104. .IP "\fB\-Wsuggest\-attribute=const\fR" 4
  5105. .IX Item "-Wsuggest-attribute=const"
  5106. .IP "\fB\-Wsuggest\-attribute=noreturn\fR" 4
  5107. .IX Item "-Wsuggest-attribute=noreturn"
  5108. .IP "\fB\-Wsuggest\-attribute=malloc\fR" 4
  5109. .IX Item "-Wsuggest-attribute=malloc"
  5110. .PD
  5111. Warn about functions that might be candidates for attributes
  5112. \&\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
  5113. only warns for functions visible in other compilation units or (in the case of
  5114. \&\f(CW\*(C`pure\*(C'\fR and \f(CW\*(C`const\*(C'\fR) if it cannot prove that the function returns
  5115. normally. A function returns normally if it doesn't contain an infinite loop or
  5116. return abnormally by throwing, calling \f(CW\*(C`abort\*(C'\fR or trapping. This analysis
  5117. requires option \fB\-fipa\-pure\-const\fR, which is enabled by default at
  5118. \&\fB\-O\fR and higher. Higher optimization levels improve the accuracy
  5119. of the analysis.
  5120. .IP "\fB\-Wsuggest\-attribute=format\fR" 4
  5121. .IX Item "-Wsuggest-attribute=format"
  5122. .PD 0
  5123. .IP "\fB\-Wmissing\-format\-attribute\fR" 4
  5124. .IX Item "-Wmissing-format-attribute"
  5125. .PD
  5126. Warn about function pointers that might be candidates for \f(CW\*(C`format\*(C'\fR
  5127. attributes. Note these are only possible candidates, not absolute ones.
  5128. \&\s-1GCC\s0 guesses that function pointers with \f(CW\*(C`format\*(C'\fR attributes that
  5129. are used in assignment, initialization, parameter passing or return
  5130. statements should have a corresponding \f(CW\*(C`format\*(C'\fR attribute in the
  5131. resulting type. I.e. the left-hand side of the assignment or
  5132. initialization, the type of the parameter variable, or the return type
  5133. of the containing function respectively should also have a \f(CW\*(C`format\*(C'\fR
  5134. attribute to avoid the warning.
  5135. .Sp
  5136. \&\s-1GCC\s0 also warns about function definitions that might be
  5137. candidates for \f(CW\*(C`format\*(C'\fR attributes. Again, these are only
  5138. possible candidates. \s-1GCC\s0 guesses that \f(CW\*(C`format\*(C'\fR attributes
  5139. might be appropriate for any function that calls a function like
  5140. \&\f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
  5141. case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
  5142. appropriate may not be detected.
  5143. .IP "\fB\-Wsuggest\-attribute=cold\fR" 4
  5144. .IX Item "-Wsuggest-attribute=cold"
  5145. Warn about functions that might be candidates for \f(CW\*(C`cold\*(C'\fR attribute. This
  5146. is based on static detection and generally will only warn about functions which
  5147. always leads to a call to another \f(CW\*(C`cold\*(C'\fR function such as wrappers of
  5148. \&\*(C+ \f(CW\*(C`throw\*(C'\fR or fatal error reporting functions leading to \f(CW\*(C`abort\*(C'\fR.
  5149. .RE
  5150. .RS 4
  5151. .RE
  5152. .IP "\fB\-Wsuggest\-final\-types\fR" 4
  5153. .IX Item "-Wsuggest-final-types"
  5154. Warn about types with virtual methods where code quality would be improved
  5155. if the type were declared with the \*(C+11 \f(CW\*(C`final\*(C'\fR specifier,
  5156. or, if possible,
  5157. declared in an anonymous namespace. This allows \s-1GCC\s0 to more aggressively
  5158. devirtualize the polymorphic calls. This warning is more effective with link
  5159. time optimization, where the information about the class hierarchy graph is
  5160. more complete.
  5161. .IP "\fB\-Wsuggest\-final\-methods\fR" 4
  5162. .IX Item "-Wsuggest-final-methods"
  5163. Warn about virtual methods where code quality would be improved if the method
  5164. were declared with the \*(C+11 \f(CW\*(C`final\*(C'\fR specifier,
  5165. or, if possible, its type were
  5166. declared in an anonymous namespace or with the \f(CW\*(C`final\*(C'\fR specifier.
  5167. This warning is
  5168. more effective with link-time optimization, where the information about the
  5169. class hierarchy graph is more complete. It is recommended to first consider
  5170. suggestions of \fB\-Wsuggest\-final\-types\fR and then rebuild with new
  5171. annotations.
  5172. .IP "\fB\-Wsuggest\-override\fR" 4
  5173. .IX Item "-Wsuggest-override"
  5174. Warn about overriding virtual functions that are not marked with the override
  5175. keyword.
  5176. .IP "\fB\-Walloc\-zero\fR" 4
  5177. .IX Item "-Walloc-zero"
  5178. Warn about calls to allocation functions decorated with attribute
  5179. \&\f(CW\*(C`alloc_size\*(C'\fR that specify zero bytes, including those to the built-in
  5180. forms of the functions \f(CW\*(C`aligned_alloc\*(C'\fR, \f(CW\*(C`alloca\*(C'\fR, \f(CW\*(C`calloc\*(C'\fR,
  5181. \&\f(CW\*(C`malloc\*(C'\fR, and \f(CW\*(C`realloc\*(C'\fR. Because the behavior of these functions
  5182. when called with a zero size differs among implementations (and in the case
  5183. of \f(CW\*(C`realloc\*(C'\fR has been deprecated) relying on it may result in subtle
  5184. portability bugs and should be avoided.
  5185. .IP "\fB\-Walloc\-size\-larger\-than=\fR\fIn\fR" 4
  5186. .IX Item "-Walloc-size-larger-than=n"
  5187. Warn about calls to functions decorated with attribute \f(CW\*(C`alloc_size\*(C'\fR
  5188. that attempt to allocate objects larger than the specified number of bytes,
  5189. or where the result of the size computation in an integer type with infinite
  5190. precision would exceed \f(CW\*(C`SIZE_MAX / 2\*(C'\fR. The option argument \fIn\fR
  5191. may end in one of the standard suffixes designating a multiple of bytes
  5192. such as \f(CW\*(C`kB\*(C'\fR and \f(CW\*(C`KiB\*(C'\fR for kilobyte and kibibyte, respectively,
  5193. \&\f(CW\*(C`MB\*(C'\fR and \f(CW\*(C`MiB\*(C'\fR for megabyte and mebibyte, and so on.
  5194. \&\fB\-Walloc\-size\-larger\-than=\fR\fI\s-1PTRDIFF_MAX\s0\fR is enabled by default.
  5195. Warnings controlled by the option can be disabled by specifying \fIn\fR
  5196. of \fI\s-1SIZE_MAX\s0\fR or more.
  5197. .IP "\fB\-Walloca\fR" 4
  5198. .IX Item "-Walloca"
  5199. This option warns on all uses of \f(CW\*(C`alloca\*(C'\fR in the source.
  5200. .IP "\fB\-Walloca\-larger\-than=\fR\fIn\fR" 4
  5201. .IX Item "-Walloca-larger-than=n"
  5202. This option warns on calls to \f(CW\*(C`alloca\*(C'\fR that are not bounded by a
  5203. controlling predicate limiting its argument of integer type to at most
  5204. \&\fIn\fR bytes, or calls to \f(CW\*(C`alloca\*(C'\fR where the bound is unknown.
  5205. Arguments of non-integer types are considered unbounded even if they
  5206. appear to be constrained to the expected range.
  5207. .Sp
  5208. For example, a bounded case of \f(CW\*(C`alloca\*(C'\fR could be:
  5209. .Sp
  5210. .Vb 9
  5211. \& void func (size_t n)
  5212. \& {
  5213. \& void *p;
  5214. \& if (n <= 1000)
  5215. \& p = alloca (n);
  5216. \& else
  5217. \& p = malloc (n);
  5218. \& f (p);
  5219. \& }
  5220. .Ve
  5221. .Sp
  5222. In the above example, passing \f(CW\*(C`\-Walloca\-larger\-than=1000\*(C'\fR would not
  5223. issue a warning because the call to \f(CW\*(C`alloca\*(C'\fR is known to be at most
  5224. 1000 bytes. However, if \f(CW\*(C`\-Walloca\-larger\-than=500\*(C'\fR were passed,
  5225. the compiler would emit a warning.
  5226. .Sp
  5227. Unbounded uses, on the other hand, are uses of \f(CW\*(C`alloca\*(C'\fR with no
  5228. controlling predicate constraining its integer argument. For example:
  5229. .Sp
  5230. .Vb 5
  5231. \& void func ()
  5232. \& {
  5233. \& void *p = alloca (n);
  5234. \& f (p);
  5235. \& }
  5236. .Ve
  5237. .Sp
  5238. If \f(CW\*(C`\-Walloca\-larger\-than=500\*(C'\fR were passed, the above would trigger
  5239. a warning, but this time because of the lack of bounds checking.
  5240. .Sp
  5241. Note, that even seemingly correct code involving signed integers could
  5242. cause a warning:
  5243. .Sp
  5244. .Vb 8
  5245. \& void func (signed int n)
  5246. \& {
  5247. \& if (n < 500)
  5248. \& {
  5249. \& p = alloca (n);
  5250. \& f (p);
  5251. \& }
  5252. \& }
  5253. .Ve
  5254. .Sp
  5255. In the above example, \fIn\fR could be negative, causing a larger than
  5256. expected argument to be implicitly cast into the \f(CW\*(C`alloca\*(C'\fR call.
  5257. .Sp
  5258. This option also warns when \f(CW\*(C`alloca\*(C'\fR is used in a loop.
  5259. .Sp
  5260. This warning is not enabled by \fB\-Wall\fR, and is only active when
  5261. \&\fB\-ftree\-vrp\fR is active (default for \fB\-O2\fR and above).
  5262. .Sp
  5263. See also \fB\-Wvla\-larger\-than=\fR\fIn\fR.
  5264. .IP "\fB\-Warray\-bounds\fR" 4
  5265. .IX Item "-Warray-bounds"
  5266. .PD 0
  5267. .IP "\fB\-Warray\-bounds=\fR\fIn\fR" 4
  5268. .IX Item "-Warray-bounds=n"
  5269. .PD
  5270. This option is only active when \fB\-ftree\-vrp\fR is active
  5271. (default for \fB\-O2\fR and above). It warns about subscripts to arrays
  5272. that are always out of bounds. This warning is enabled by \fB\-Wall\fR.
  5273. .RS 4
  5274. .IP "\fB\-Warray\-bounds=1\fR" 4
  5275. .IX Item "-Warray-bounds=1"
  5276. This is the warning level of \fB\-Warray\-bounds\fR and is enabled
  5277. by \fB\-Wall\fR; higher levels are not, and must be explicitly requested.
  5278. .IP "\fB\-Warray\-bounds=2\fR" 4
  5279. .IX Item "-Warray-bounds=2"
  5280. This warning level also warns about out of bounds access for
  5281. arrays at the end of a struct and for arrays accessed through
  5282. pointers. This warning level may give a larger number of
  5283. false positives and is deactivated by default.
  5284. .RE
  5285. .RS 4
  5286. .RE
  5287. .IP "\fB\-Wattribute\-alias\fR" 4
  5288. .IX Item "-Wattribute-alias"
  5289. Warn about declarations using the \f(CW\*(C`alias\*(C'\fR and similar attributes whose
  5290. target is incompatible with the type of the alias.
  5291. .IP "\fB\-Wbool\-compare\fR" 4
  5292. .IX Item "-Wbool-compare"
  5293. Warn about boolean expression compared with an integer value different from
  5294. \&\f(CW\*(C`true\*(C'\fR/\f(CW\*(C`false\*(C'\fR. For instance, the following comparison is
  5295. always false:
  5296. .Sp
  5297. .Vb 3
  5298. \& int n = 5;
  5299. \& ...
  5300. \& if ((n > 1) == 2) { ... }
  5301. .Ve
  5302. .Sp
  5303. This warning is enabled by \fB\-Wall\fR.
  5304. .IP "\fB\-Wbool\-operation\fR" 4
  5305. .IX Item "-Wbool-operation"
  5306. Warn about suspicious operations on expressions of a boolean type. For
  5307. instance, bitwise negation of a boolean is very likely a bug in the program.
  5308. For C, this warning also warns about incrementing or decrementing a boolean,
  5309. which rarely makes sense. (In \*(C+, decrementing a boolean is always invalid.
  5310. Incrementing a boolean is invalid in \*(C+17, and deprecated otherwise.)
  5311. .Sp
  5312. This warning is enabled by \fB\-Wall\fR.
  5313. .IP "\fB\-Wduplicated\-branches\fR" 4
  5314. .IX Item "-Wduplicated-branches"
  5315. Warn when an if-else has identical branches. This warning detects cases like
  5316. .Sp
  5317. .Vb 4
  5318. \& if (p != NULL)
  5319. \& return 0;
  5320. \& else
  5321. \& return 0;
  5322. .Ve
  5323. .Sp
  5324. It doesn't warn when both branches contain just a null statement. This warning
  5325. also warn for conditional operators:
  5326. .Sp
  5327. .Vb 1
  5328. \& int i = x ? *p : *p;
  5329. .Ve
  5330. .IP "\fB\-Wduplicated\-cond\fR" 4
  5331. .IX Item "-Wduplicated-cond"
  5332. Warn about duplicated conditions in an if-else-if chain. For instance,
  5333. warn for the following code:
  5334. .Sp
  5335. .Vb 2
  5336. \& if (p\->q != NULL) { ... }
  5337. \& else if (p\->q != NULL) { ... }
  5338. .Ve
  5339. .IP "\fB\-Wframe\-address\fR" 4
  5340. .IX Item "-Wframe-address"
  5341. Warn when the \fB_\|_builtin_frame_address\fR or \fB_\|_builtin_return_address\fR
  5342. is called with an argument greater than 0. Such calls may return indeterminate
  5343. values or crash the program. The warning is included in \fB\-Wall\fR.
  5344. .IP "\fB\-Wno\-discarded\-qualifiers\fR (C and Objective-C only)" 4
  5345. .IX Item "-Wno-discarded-qualifiers (C and Objective-C only)"
  5346. Do not warn if type qualifiers on pointers are being discarded.
  5347. Typically, the compiler warns if a \f(CW\*(C`const char *\*(C'\fR variable is
  5348. passed to a function that takes a \f(CW\*(C`char *\*(C'\fR parameter. This option
  5349. can be used to suppress such a warning.
  5350. .IP "\fB\-Wno\-discarded\-array\-qualifiers\fR (C and Objective-C only)" 4
  5351. .IX Item "-Wno-discarded-array-qualifiers (C and Objective-C only)"
  5352. Do not warn if type qualifiers on arrays which are pointer targets
  5353. are being discarded. Typically, the compiler warns if a
  5354. \&\f(CW\*(C`const int (*)[]\*(C'\fR variable is passed to a function that
  5355. takes a \f(CW\*(C`int (*)[]\*(C'\fR parameter. This option can be used to
  5356. suppress such a warning.
  5357. .IP "\fB\-Wno\-incompatible\-pointer\-types\fR (C and Objective-C only)" 4
  5358. .IX Item "-Wno-incompatible-pointer-types (C and Objective-C only)"
  5359. Do not warn when there is a conversion between pointers that have incompatible
  5360. types. This warning is for cases not covered by \fB\-Wno\-pointer\-sign\fR,
  5361. which warns for pointer argument passing or assignment with different
  5362. signedness.
  5363. .IP "\fB\-Wno\-int\-conversion\fR (C and Objective-C only)" 4
  5364. .IX Item "-Wno-int-conversion (C and Objective-C only)"
  5365. Do not warn about incompatible integer to pointer and pointer to integer
  5366. conversions. This warning is about implicit conversions; for explicit
  5367. conversions the warnings \fB\-Wno\-int\-to\-pointer\-cast\fR and
  5368. \&\fB\-Wno\-pointer\-to\-int\-cast\fR may be used.
  5369. .IP "\fB\-Wno\-div\-by\-zero\fR" 4
  5370. .IX Item "-Wno-div-by-zero"
  5371. Do not warn about compile-time integer division by zero. Floating-point
  5372. division by zero is not warned about, as it can be a legitimate way of
  5373. obtaining infinities and NaNs.
  5374. .IP "\fB\-Wsystem\-headers\fR" 4
  5375. .IX Item "-Wsystem-headers"
  5376. Print warning messages for constructs found in system header files.
  5377. Warnings from system headers are normally suppressed, on the assumption
  5378. that they usually do not indicate real problems and would only make the
  5379. compiler output harder to read. Using this command-line option tells
  5380. \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
  5381. code. However, note that using \fB\-Wall\fR in conjunction with this
  5382. option does \fInot\fR warn about unknown pragmas in system
  5383. headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
  5384. .IP "\fB\-Wtautological\-compare\fR" 4
  5385. .IX Item "-Wtautological-compare"
  5386. Warn if a self-comparison always evaluates to true or false. This
  5387. warning detects various mistakes such as:
  5388. .Sp
  5389. .Vb 3
  5390. \& int i = 1;
  5391. \& ...
  5392. \& if (i > i) { ... }
  5393. .Ve
  5394. .Sp
  5395. This warning also warns about bitwise comparisons that always evaluate
  5396. to true or false, for instance:
  5397. .Sp
  5398. .Vb 1
  5399. \& if ((a & 16) == 10) { ... }
  5400. .Ve
  5401. .Sp
  5402. will always be false.
  5403. .Sp
  5404. This warning is enabled by \fB\-Wall\fR.
  5405. .IP "\fB\-Wtrampolines\fR" 4
  5406. .IX Item "-Wtrampolines"
  5407. Warn about trampolines generated for pointers to nested functions.
  5408. A trampoline is a small piece of data or code that is created at run
  5409. time on the stack when the address of a nested function is taken, and is
  5410. used to call the nested function indirectly. For some targets, it is
  5411. made up of data only and thus requires no special treatment. But, for
  5412. most targets, it is made up of code and thus requires the stack to be
  5413. made executable in order for the program to work properly.
  5414. .IP "\fB\-Wfloat\-equal\fR" 4
  5415. .IX Item "-Wfloat-equal"
  5416. Warn if floating-point values are used in equality comparisons.
  5417. .Sp
  5418. The idea behind this is that sometimes it is convenient (for the
  5419. programmer) to consider floating-point values as approximations to
  5420. infinitely precise real numbers. If you are doing this, then you need
  5421. to compute (by analyzing the code, or in some other way) the maximum or
  5422. likely maximum error that the computation introduces, and allow for it
  5423. when performing comparisons (and when producing output, but that's a
  5424. different problem). In particular, instead of testing for equality, you
  5425. should check to see whether the two values have ranges that overlap; and
  5426. this is done with the relational operators, so equality comparisons are
  5427. probably mistaken.
  5428. .IP "\fB\-Wtraditional\fR (C and Objective-C only)" 4
  5429. .IX Item "-Wtraditional (C and Objective-C only)"
  5430. Warn about certain constructs that behave differently in traditional and
  5431. \&\s-1ISO C.\s0 Also warn about \s-1ISO C\s0 constructs that have no traditional C
  5432. equivalent, and/or problematic constructs that should be avoided.
  5433. .RS 4
  5434. .IP "*" 4
  5435. Macro parameters that appear within string literals in the macro body.
  5436. In traditional C macro replacement takes place within string literals,
  5437. but in \s-1ISO C\s0 it does not.
  5438. .IP "*" 4
  5439. In traditional C, some preprocessor directives did not exist.
  5440. Traditional preprocessors only considered a line to be a directive
  5441. if the \fB#\fR appeared in column 1 on the line. Therefore
  5442. \&\fB\-Wtraditional\fR warns about directives that traditional C
  5443. understands but ignores because the \fB#\fR does not appear as the
  5444. first character on the line. It also suggests you hide directives like
  5445. \&\f(CW\*(C`#pragma\*(C'\fR not understood by traditional C by indenting them. Some
  5446. traditional implementations do not recognize \f(CW\*(C`#elif\*(C'\fR, so this option
  5447. suggests avoiding it altogether.
  5448. .IP "*" 4
  5449. A function-like macro that appears without arguments.
  5450. .IP "*" 4
  5451. The unary plus operator.
  5452. .IP "*" 4
  5453. The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating-point
  5454. constant suffixes. (Traditional C does support the \fBL\fR suffix on integer
  5455. constants.) Note, these suffixes appear in macros defined in the system
  5456. headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
  5457. Use of these macros in user code might normally lead to spurious
  5458. warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
  5459. avoid warning in these cases.
  5460. .IP "*" 4
  5461. A function declared external in one block and then used after the end of
  5462. the block.
  5463. .IP "*" 4
  5464. A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
  5465. .IP "*" 4
  5466. A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
  5467. This construct is not accepted by some traditional C compilers.
  5468. .IP "*" 4
  5469. The \s-1ISO\s0 type of an integer constant has a different width or
  5470. signedness from its traditional type. This warning is only issued if
  5471. the base of the constant is ten. I.e. hexadecimal or octal values, which
  5472. typically represent bit patterns, are not warned about.
  5473. .IP "*" 4
  5474. Usage of \s-1ISO\s0 string concatenation is detected.
  5475. .IP "*" 4
  5476. Initialization of automatic aggregates.
  5477. .IP "*" 4
  5478. Identifier conflicts with labels. Traditional C lacks a separate
  5479. namespace for labels.
  5480. .IP "*" 4
  5481. Initialization of unions. If the initializer is zero, the warning is
  5482. omitted. This is done under the assumption that the zero initializer in
  5483. user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
  5484. initializer warnings and relies on default initialization to zero in the
  5485. traditional C case.
  5486. .IP "*" 4
  5487. Conversions by prototypes between fixed/floating\-point values and vice
  5488. versa. The absence of these prototypes when compiling with traditional
  5489. C causes serious problems. This is a subset of the possible
  5490. conversion warnings; for the full set use \fB\-Wtraditional\-conversion\fR.
  5491. .IP "*" 4
  5492. Use of \s-1ISO C\s0 style function definitions. This warning intentionally is
  5493. \&\fInot\fR issued for prototype declarations or variadic functions
  5494. because these \s-1ISO C\s0 features appear in your code when using
  5495. libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
  5496. \&\f(CW\*(C`VPARAMS\*(C'\fR. This warning is also bypassed for nested functions
  5497. because that feature is already a \s-1GCC\s0 extension and thus not relevant to
  5498. traditional C compatibility.
  5499. .RE
  5500. .RS 4
  5501. .RE
  5502. .IP "\fB\-Wtraditional\-conversion\fR (C and Objective-C only)" 4
  5503. .IX Item "-Wtraditional-conversion (C and Objective-C only)"
  5504. Warn if a prototype causes a type conversion that is different from what
  5505. would happen to the same argument in the absence of a prototype. This
  5506. includes conversions of fixed point to floating and vice versa, and
  5507. conversions changing the width or signedness of a fixed-point argument
  5508. except when the same as the default promotion.
  5509. .IP "\fB\-Wdeclaration\-after\-statement\fR (C and Objective-C only)" 4
  5510. .IX Item "-Wdeclaration-after-statement (C and Objective-C only)"
  5511. Warn when a declaration is found after a statement in a block. This
  5512. construct, known from \*(C+, was introduced with \s-1ISO C99\s0 and is by default
  5513. allowed in \s-1GCC.\s0 It is not supported by \s-1ISO C90.\s0
  5514. .IP "\fB\-Wshadow\fR" 4
  5515. .IX Item "-Wshadow"
  5516. Warn whenever a local variable or type declaration shadows another
  5517. variable, parameter, type, class member (in \*(C+), or instance variable
  5518. (in Objective-C) or whenever a built-in function is shadowed. Note
  5519. that in \*(C+, the compiler warns if a local variable shadows an
  5520. explicit typedef, but not if it shadows a struct/class/enum.
  5521. Same as \fB\-Wshadow=global\fR.
  5522. .IP "\fB\-Wno\-shadow\-ivar\fR (Objective-C only)" 4
  5523. .IX Item "-Wno-shadow-ivar (Objective-C only)"
  5524. Do not warn whenever a local variable shadows an instance variable in an
  5525. Objective-C method.
  5526. .IP "\fB\-Wshadow=global\fR" 4
  5527. .IX Item "-Wshadow=global"
  5528. The default for \fB\-Wshadow\fR. Warns for any (global) shadowing.
  5529. .IP "\fB\-Wshadow=local\fR" 4
  5530. .IX Item "-Wshadow=local"
  5531. Warn when a local variable shadows another local variable or parameter.
  5532. This warning is enabled by \fB\-Wshadow=global\fR.
  5533. .IP "\fB\-Wshadow=compatible\-local\fR" 4
  5534. .IX Item "-Wshadow=compatible-local"
  5535. Warn when a local variable shadows another local variable or parameter
  5536. whose type is compatible with that of the shadowing variable. In \*(C+,
  5537. type compatibility here means the type of the shadowing variable can be
  5538. converted to that of the shadowed variable. The creation of this flag
  5539. (in addition to \fB\-Wshadow=local\fR) is based on the idea that when
  5540. a local variable shadows another one of incompatible type, it is most
  5541. likely intentional, not a bug or typo, as shown in the following example:
  5542. .Sp
  5543. .Vb 8
  5544. \& for (SomeIterator i = SomeObj.begin(); i != SomeObj.end(); ++i)
  5545. \& {
  5546. \& for (int i = 0; i < N; ++i)
  5547. \& {
  5548. \& ...
  5549. \& }
  5550. \& ...
  5551. \& }
  5552. .Ve
  5553. .Sp
  5554. Since the two variable \f(CW\*(C`i\*(C'\fR in the example above have incompatible types,
  5555. enabling only \fB\-Wshadow=compatible\-local\fR will not emit a warning.
  5556. Because their types are incompatible, if a programmer accidentally uses one
  5557. in place of the other, type checking will catch that and emit an error or
  5558. warning. So not warning (about shadowing) in this case will not lead to
  5559. undetected bugs. Use of this flag instead of \fB\-Wshadow=local\fR can
  5560. possibly reduce the number of warnings triggered by intentional shadowing.
  5561. .Sp
  5562. This warning is enabled by \fB\-Wshadow=local\fR.
  5563. .IP "\fB\-Wlarger\-than=\fR\fIlen\fR" 4
  5564. .IX Item "-Wlarger-than=len"
  5565. Warn whenever an object of larger than \fIlen\fR bytes is defined.
  5566. .IP "\fB\-Wframe\-larger\-than=\fR\fIlen\fR" 4
  5567. .IX Item "-Wframe-larger-than=len"
  5568. Warn if the size of a function frame is larger than \fIlen\fR bytes.
  5569. The computation done to determine the stack frame size is approximate
  5570. and not conservative.
  5571. The actual requirements may be somewhat greater than \fIlen\fR
  5572. even if you do not get a warning. In addition, any space allocated
  5573. via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related constructs
  5574. is not included by the compiler when determining
  5575. whether or not to issue a warning.
  5576. .IP "\fB\-Wno\-free\-nonheap\-object\fR" 4
  5577. .IX Item "-Wno-free-nonheap-object"
  5578. Do not warn when attempting to free an object that was not allocated
  5579. on the heap.
  5580. .IP "\fB\-Wstack\-usage=\fR\fIlen\fR" 4
  5581. .IX Item "-Wstack-usage=len"
  5582. Warn if the stack usage of a function might be larger than \fIlen\fR bytes.
  5583. The computation done to determine the stack usage is conservative.
  5584. Any space allocated via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related
  5585. constructs is included by the compiler when determining whether or not to
  5586. issue a warning.
  5587. .Sp
  5588. The message is in keeping with the output of \fB\-fstack\-usage\fR.
  5589. .RS 4
  5590. .IP "*" 4
  5591. If the stack usage is fully static but exceeds the specified amount, it's:
  5592. .Sp
  5593. .Vb 1
  5594. \& warning: stack usage is 1120 bytes
  5595. .Ve
  5596. .IP "*" 4
  5597. If the stack usage is (partly) dynamic but bounded, it's:
  5598. .Sp
  5599. .Vb 1
  5600. \& warning: stack usage might be 1648 bytes
  5601. .Ve
  5602. .IP "*" 4
  5603. If the stack usage is (partly) dynamic and not bounded, it's:
  5604. .Sp
  5605. .Vb 1
  5606. \& warning: stack usage might be unbounded
  5607. .Ve
  5608. .RE
  5609. .RS 4
  5610. .RE
  5611. .IP "\fB\-Wno\-pedantic\-ms\-format\fR (MinGW targets only)" 4
  5612. .IX Item "-Wno-pedantic-ms-format (MinGW targets only)"
  5613. When used in combination with \fB\-Wformat\fR
  5614. and \fB\-pedantic\fR without \s-1GNU\s0 extensions, this option
  5615. disables the warnings about non-ISO \f(CW\*(C`printf\*(C'\fR / \f(CW\*(C`scanf\*(C'\fR format
  5616. 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,
  5617. which depend on the \s-1MS\s0 runtime.
  5618. .IP "\fB\-Waligned\-new\fR" 4
  5619. .IX Item "-Waligned-new"
  5620. Warn about a new-expression of a type that requires greater alignment
  5621. than the \f(CW\*(C`alignof(std::max_align_t)\*(C'\fR but uses an allocation
  5622. function without an explicit alignment parameter. This option is
  5623. enabled by \fB\-Wall\fR.
  5624. .Sp
  5625. Normally this only warns about global allocation functions, but
  5626. \&\fB\-Waligned\-new=all\fR also warns about class member allocation
  5627. functions.
  5628. .IP "\fB\-Wplacement\-new\fR" 4
  5629. .IX Item "-Wplacement-new"
  5630. .PD 0
  5631. .IP "\fB\-Wplacement\-new=\fR\fIn\fR" 4
  5632. .IX Item "-Wplacement-new=n"
  5633. .PD
  5634. Warn about placement new expressions with undefined behavior, such as
  5635. constructing an object in a buffer that is smaller than the type of
  5636. the object. For example, the placement new expression below is diagnosed
  5637. because it attempts to construct an array of 64 integers in a buffer only
  5638. 64 bytes large.
  5639. .Sp
  5640. .Vb 2
  5641. \& char buf [64];
  5642. \& new (buf) int[64];
  5643. .Ve
  5644. .Sp
  5645. This warning is enabled by default.
  5646. .RS 4
  5647. .IP "\fB\-Wplacement\-new=1\fR" 4
  5648. .IX Item "-Wplacement-new=1"
  5649. This is the default warning level of \fB\-Wplacement\-new\fR. At this
  5650. level the warning is not issued for some strictly undefined constructs that
  5651. \&\s-1GCC\s0 allows as extensions for compatibility with legacy code. For example,
  5652. the following \f(CW\*(C`new\*(C'\fR expression is not diagnosed at this level even
  5653. though it has undefined behavior according to the \*(C+ standard because
  5654. it writes past the end of the one-element array.
  5655. .Sp
  5656. .Vb 3
  5657. \& struct S { int n, a[1]; };
  5658. \& S *s = (S *)malloc (sizeof *s + 31 * sizeof s\->a[0]);
  5659. \& new (s\->a)int [32]();
  5660. .Ve
  5661. .IP "\fB\-Wplacement\-new=2\fR" 4
  5662. .IX Item "-Wplacement-new=2"
  5663. At this level, in addition to diagnosing all the same constructs as at level
  5664. 1, a diagnostic is also issued for placement new expressions that construct
  5665. an object in the last member of structure whose type is an array of a single
  5666. element and whose size is less than the size of the object being constructed.
  5667. While the previous example would be diagnosed, the following construct makes
  5668. use of the flexible member array extension to avoid the warning at level 2.
  5669. .Sp
  5670. .Vb 3
  5671. \& struct S { int n, a[]; };
  5672. \& S *s = (S *)malloc (sizeof *s + 32 * sizeof s\->a[0]);
  5673. \& new (s\->a)int [32]();
  5674. .Ve
  5675. .RE
  5676. .RS 4
  5677. .RE
  5678. .IP "\fB\-Wpointer\-arith\fR" 4
  5679. .IX Item "-Wpointer-arith"
  5680. Warn about anything that depends on the \*(L"size of\*(R" a function type or
  5681. of \f(CW\*(C`void\*(C'\fR. \s-1GNU C\s0 assigns these types a size of 1, for
  5682. convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
  5683. to functions. In \*(C+, warn also when an arithmetic operation involves
  5684. \&\f(CW\*(C`NULL\*(C'\fR. This warning is also enabled by \fB\-Wpedantic\fR.
  5685. .IP "\fB\-Wpointer\-compare\fR" 4
  5686. .IX Item "-Wpointer-compare"
  5687. Warn if a pointer is compared with a zero character constant. This usually
  5688. means that the pointer was meant to be dereferenced. For example:
  5689. .Sp
  5690. .Vb 3
  5691. \& const char *p = foo ();
  5692. \& if (p == \*(Aq\e0\*(Aq)
  5693. \& return 42;
  5694. .Ve
  5695. .Sp
  5696. Note that the code above is invalid in \*(C+11.
  5697. .Sp
  5698. This warning is enabled by default.
  5699. .IP "\fB\-Wtype\-limits\fR" 4
  5700. .IX Item "-Wtype-limits"
  5701. Warn if a comparison is always true or always false due to the limited
  5702. range of the data type, but do not warn for constant expressions. For
  5703. example, warn if an unsigned variable is compared against zero with
  5704. \&\f(CW\*(C`<\*(C'\fR or \f(CW\*(C`>=\*(C'\fR. This warning is also enabled by
  5705. \&\fB\-Wextra\fR.
  5706. .IP "\fB\-Wcomment\fR" 4
  5707. .IX Item "-Wcomment"
  5708. .PD 0
  5709. .IP "\fB\-Wcomments\fR" 4
  5710. .IX Item "-Wcomments"
  5711. .PD
  5712. Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
  5713. comment, or whenever a backslash-newline appears in a \fB//\fR comment.
  5714. This warning is enabled by \fB\-Wall\fR.
  5715. .IP "\fB\-Wtrigraphs\fR" 4
  5716. .IX Item "-Wtrigraphs"
  5717. Warn if any trigraphs are encountered that might change the meaning of
  5718. the program. Trigraphs within comments are not warned about,
  5719. except those that would form escaped newlines.
  5720. .Sp
  5721. This option is implied by \fB\-Wall\fR. If \fB\-Wall\fR is not
  5722. given, this option is still enabled unless trigraphs are enabled. To
  5723. get trigraph conversion without warnings, but get the other
  5724. \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
  5725. .IP "\fB\-Wundef\fR" 4
  5726. .IX Item "-Wundef"
  5727. Warn if an undefined identifier is evaluated in an \f(CW\*(C`#if\*(C'\fR directive.
  5728. Such identifiers are replaced with zero.
  5729. .IP "\fB\-Wexpansion\-to\-defined\fR" 4
  5730. .IX Item "-Wexpansion-to-defined"
  5731. Warn whenever \fBdefined\fR is encountered in the expansion of a macro
  5732. (including the case where the macro is expanded by an \fB#if\fR directive).
  5733. Such usage is not portable.
  5734. This warning is also enabled by \fB\-Wpedantic\fR and \fB\-Wextra\fR.
  5735. .IP "\fB\-Wunused\-macros\fR" 4
  5736. .IX Item "-Wunused-macros"
  5737. Warn about macros defined in the main file that are unused. A macro
  5738. is \fIused\fR if it is expanded or tested for existence at least once.
  5739. The preprocessor also warns if the macro has not been used at the
  5740. time it is redefined or undefined.
  5741. .Sp
  5742. Built-in macros, macros defined on the command line, and macros
  5743. defined in include files are not warned about.
  5744. .Sp
  5745. \&\fINote:\fR If a macro is actually used, but only used in skipped
  5746. conditional blocks, then the preprocessor reports it as unused. To avoid the
  5747. warning in such a case, you might improve the scope of the macro's
  5748. definition by, for example, moving it into the first skipped block.
  5749. Alternatively, you could provide a dummy use with something like:
  5750. .Sp
  5751. .Vb 2
  5752. \& #if defined the_macro_causing_the_warning
  5753. \& #endif
  5754. .Ve
  5755. .IP "\fB\-Wno\-endif\-labels\fR" 4
  5756. .IX Item "-Wno-endif-labels"
  5757. Do not warn whenever an \f(CW\*(C`#else\*(C'\fR or an \f(CW\*(C`#endif\*(C'\fR are followed by text.
  5758. This sometimes happens in older programs with code of the form
  5759. .Sp
  5760. .Vb 5
  5761. \& #if FOO
  5762. \& ...
  5763. \& #else FOO
  5764. \& ...
  5765. \& #endif FOO
  5766. .Ve
  5767. .Sp
  5768. The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments.
  5769. This warning is on by default.
  5770. .IP "\fB\-Wbad\-function\-cast\fR (C and Objective-C only)" 4
  5771. .IX Item "-Wbad-function-cast (C and Objective-C only)"
  5772. Warn when a function call is cast to a non-matching type.
  5773. For example, warn if a call to a function returning an integer type
  5774. is cast to a pointer type.
  5775. .IP "\fB\-Wc90\-c99\-compat\fR (C and Objective-C only)" 4
  5776. .IX Item "-Wc90-c99-compat (C and Objective-C only)"
  5777. Warn about features not present in \s-1ISO C90,\s0 but present in \s-1ISO C99.\s0
  5778. For instance, warn about use of variable length arrays, \f(CW\*(C`long long\*(C'\fR
  5779. type, \f(CW\*(C`bool\*(C'\fR type, compound literals, designated initializers, and so
  5780. on. This option is independent of the standards mode. Warnings are disabled
  5781. in the expression that follows \f(CW\*(C`_\|_extension_\|_\*(C'\fR.
  5782. .IP "\fB\-Wc99\-c11\-compat\fR (C and Objective-C only)" 4
  5783. .IX Item "-Wc99-c11-compat (C and Objective-C only)"
  5784. Warn about features not present in \s-1ISO C99,\s0 but present in \s-1ISO C11.\s0
  5785. For instance, warn about use of anonymous structures and unions,
  5786. \&\f(CW\*(C`_Atomic\*(C'\fR type qualifier, \f(CW\*(C`_Thread_local\*(C'\fR storage-class specifier,
  5787. \&\f(CW\*(C`_Alignas\*(C'\fR specifier, \f(CW\*(C`Alignof\*(C'\fR operator, \f(CW\*(C`_Generic\*(C'\fR keyword,
  5788. and so on. This option is independent of the standards mode. Warnings are
  5789. disabled in the expression that follows \f(CW\*(C`_\|_extension_\|_\*(C'\fR.
  5790. .IP "\fB\-Wc++\-compat\fR (C and Objective-C only)" 4
  5791. .IX Item "-Wc++-compat (C and Objective-C only)"
  5792. Warn about \s-1ISO C\s0 constructs that are outside of the common subset of
  5793. \&\s-1ISO C\s0 and \s-1ISO \*(C+,\s0 e.g. request for implicit conversion from
  5794. \&\f(CW\*(C`void *\*(C'\fR to a pointer to non\-\f(CW\*(C`void\*(C'\fR type.
  5795. .IP "\fB\-Wc++11\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5796. .IX Item "-Wc++11-compat ( and Objective- only)"
  5797. Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 1998\s0
  5798. and \s-1ISO \*(C+ 2011,\s0 e.g., identifiers in \s-1ISO \*(C+ 1998\s0 that are keywords
  5799. in \s-1ISO \*(C+ 2011.\s0 This warning turns on \fB\-Wnarrowing\fR and is
  5800. enabled by \fB\-Wall\fR.
  5801. .IP "\fB\-Wc++14\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5802. .IX Item "-Wc++14-compat ( and Objective- only)"
  5803. Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 2011\s0
  5804. and \s-1ISO \*(C+ 2014.\s0 This warning is enabled by \fB\-Wall\fR.
  5805. .IP "\fB\-Wc++17\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5806. .IX Item "-Wc++17-compat ( and Objective- only)"
  5807. Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 2014\s0
  5808. and \s-1ISO \*(C+ 2017.\s0 This warning is enabled by \fB\-Wall\fR.
  5809. .IP "\fB\-Wcast\-qual\fR" 4
  5810. .IX Item "-Wcast-qual"
  5811. Warn whenever a pointer is cast so as to remove a type qualifier from
  5812. the target type. For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
  5813. to an ordinary \f(CW\*(C`char *\*(C'\fR.
  5814. .Sp
  5815. Also warn when making a cast that introduces a type qualifier in an
  5816. unsafe way. For example, casting \f(CW\*(C`char **\*(C'\fR to \f(CW\*(C`const char **\*(C'\fR
  5817. is unsafe, as in this example:
  5818. .Sp
  5819. .Vb 6
  5820. \& /* p is char ** value. */
  5821. \& const char **q = (const char **) p;
  5822. \& /* Assignment of readonly string to const char * is OK. */
  5823. \& *q = "string";
  5824. \& /* Now char** pointer points to read\-only memory. */
  5825. \& **p = \*(Aqb\*(Aq;
  5826. .Ve
  5827. .IP "\fB\-Wcast\-align\fR" 4
  5828. .IX Item "-Wcast-align"
  5829. Warn whenever a pointer is cast such that the required alignment of the
  5830. target is increased. For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
  5831. an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
  5832. two\- or four-byte boundaries.
  5833. .IP "\fB\-Wcast\-align=strict\fR" 4
  5834. .IX Item "-Wcast-align=strict"
  5835. Warn whenever a pointer is cast such that the required alignment of the
  5836. target is increased. For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
  5837. an \f(CW\*(C`int *\*(C'\fR regardless of the target machine.
  5838. .IP "\fB\-Wcast\-function\-type\fR" 4
  5839. .IX Item "-Wcast-function-type"
  5840. Warn when a function pointer is cast to an incompatible function pointer.
  5841. In a cast involving function types with a variable argument list only
  5842. the types of initial arguments that are provided are considered.
  5843. Any parameter of pointer-type matches any other pointer-type. Any benign
  5844. differences in integral types are ignored, like \f(CW\*(C`int\*(C'\fR vs. \f(CW\*(C`long\*(C'\fR
  5845. on \s-1ILP32\s0 targets. Likewise type qualifiers are ignored. The function
  5846. type \f(CW\*(C`void (*) (void)\*(C'\fR is special and matches everything, which can
  5847. be used to suppress this warning.
  5848. In a cast involving pointer to member types this warning warns whenever
  5849. the type cast is changing the pointer to member type.
  5850. This warning is enabled by \fB\-Wextra\fR.
  5851. .IP "\fB\-Wwrite\-strings\fR" 4
  5852. .IX Item "-Wwrite-strings"
  5853. When compiling C, give string constants the type \f(CW\*(C`const
  5854. char[\f(CIlength\f(CW]\*(C'\fR so that copying the address of one into a
  5855. non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR pointer produces a warning. These
  5856. warnings help you find at compile time code that can try to write
  5857. into a string constant, but only if you have been very careful about
  5858. using \f(CW\*(C`const\*(C'\fR in declarations and prototypes. Otherwise, it is
  5859. just a nuisance. This is why we did not make \fB\-Wall\fR request
  5860. these warnings.
  5861. .Sp
  5862. When compiling \*(C+, warn about the deprecated conversion from string
  5863. literals to \f(CW\*(C`char *\*(C'\fR. This warning is enabled by default for \*(C+
  5864. programs.
  5865. .IP "\fB\-Wcatch\-value\fR" 4
  5866. .IX Item "-Wcatch-value"
  5867. .PD 0
  5868. .IP "\fB\-Wcatch\-value=\fR\fIn\fR\fB \fR(\*(C+ and Objective\-\*(C+ only)" 4
  5869. .IX Item "-Wcatch-value=n ( and Objective- only)"
  5870. .PD
  5871. Warn about catch handlers that do not catch via reference.
  5872. With \fB\-Wcatch\-value=1\fR (or \fB\-Wcatch\-value\fR for short)
  5873. warn about polymorphic class types that are caught by value.
  5874. With \fB\-Wcatch\-value=2\fR warn about all class types that are caught
  5875. by value. With \fB\-Wcatch\-value=3\fR warn about all types that are
  5876. not caught by reference. \fB\-Wcatch\-value\fR is enabled by \fB\-Wall\fR.
  5877. .IP "\fB\-Wclobbered\fR" 4
  5878. .IX Item "-Wclobbered"
  5879. Warn for variables that might be changed by \f(CW\*(C`longjmp\*(C'\fR or
  5880. \&\f(CW\*(C`vfork\*(C'\fR. This warning is also enabled by \fB\-Wextra\fR.
  5881. .IP "\fB\-Wconditionally\-supported\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5882. .IX Item "-Wconditionally-supported ( and Objective- only)"
  5883. Warn for conditionally-supported (\*(C+11 [intro.defs]) constructs.
  5884. .IP "\fB\-Wconversion\fR" 4
  5885. .IX Item "-Wconversion"
  5886. Warn for implicit conversions that may alter a value. This includes
  5887. conversions between real and integer, like \f(CW\*(C`abs (x)\*(C'\fR when
  5888. \&\f(CW\*(C`x\*(C'\fR is \f(CW\*(C`double\*(C'\fR; conversions between signed and unsigned,
  5889. like \f(CW\*(C`unsigned ui = \-1\*(C'\fR; and conversions to smaller types, like
  5890. \&\f(CW\*(C`sqrtf (M_PI)\*(C'\fR. Do not warn for explicit casts like \f(CW\*(C`abs
  5891. ((int) x)\*(C'\fR and \f(CW\*(C`ui = (unsigned) \-1\*(C'\fR, or if the value is not
  5892. changed by the conversion like in \f(CW\*(C`abs (2.0)\*(C'\fR. Warnings about
  5893. conversions between signed and unsigned integers can be disabled by
  5894. using \fB\-Wno\-sign\-conversion\fR.
  5895. .Sp
  5896. For \*(C+, also warn for confusing overload resolution for user-defined
  5897. conversions; and conversions that never use a type conversion
  5898. operator: conversions to \f(CW\*(C`void\*(C'\fR, the same type, a base class or a
  5899. reference to them. Warnings about conversions between signed and
  5900. unsigned integers are disabled by default in \*(C+ unless
  5901. \&\fB\-Wsign\-conversion\fR is explicitly enabled.
  5902. .IP "\fB\-Wno\-conversion\-null\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5903. .IX Item "-Wno-conversion-null ( and Objective- only)"
  5904. Do not warn for conversions between \f(CW\*(C`NULL\*(C'\fR and non-pointer
  5905. types. \fB\-Wconversion\-null\fR is enabled by default.
  5906. .IP "\fB\-Wzero\-as\-null\-pointer\-constant\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5907. .IX Item "-Wzero-as-null-pointer-constant ( and Objective- only)"
  5908. Warn when a literal \fB0\fR is used as null pointer constant. This can
  5909. be useful to facilitate the conversion to \f(CW\*(C`nullptr\*(C'\fR in \*(C+11.
  5910. .IP "\fB\-Wsubobject\-linkage\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5911. .IX Item "-Wsubobject-linkage ( and Objective- only)"
  5912. Warn if a class type has a base or a field whose type uses the anonymous
  5913. namespace or depends on a type with no linkage. If a type A depends on
  5914. a type B with no or internal linkage, defining it in multiple
  5915. translation units would be an \s-1ODR\s0 violation because the meaning of B
  5916. is different in each translation unit. If A only appears in a single
  5917. translation unit, the best way to silence the warning is to give it
  5918. internal linkage by putting it in an anonymous namespace as well. The
  5919. compiler doesn't give this warning for types defined in the main .C
  5920. file, as those are unlikely to have multiple definitions.
  5921. \&\fB\-Wsubobject\-linkage\fR is enabled by default.
  5922. .IP "\fB\-Wdangling\-else\fR" 4
  5923. .IX Item "-Wdangling-else"
  5924. Warn about constructions where there may be confusion to which
  5925. \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs. Here is an example of
  5926. such a case:
  5927. .Sp
  5928. .Vb 7
  5929. \& {
  5930. \& if (a)
  5931. \& if (b)
  5932. \& foo ();
  5933. \& else
  5934. \& bar ();
  5935. \& }
  5936. .Ve
  5937. .Sp
  5938. In C/\*(C+, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible
  5939. \&\f(CW\*(C`if\*(C'\fR statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR. This is
  5940. often not what the programmer expected, as illustrated in the above
  5941. example by indentation the programmer chose. When there is the
  5942. potential for this confusion, \s-1GCC\s0 issues a warning when this flag
  5943. is specified. To eliminate the warning, add explicit braces around
  5944. the innermost \f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR
  5945. can belong to the enclosing \f(CW\*(C`if\*(C'\fR. The resulting code
  5946. looks like this:
  5947. .Sp
  5948. .Vb 9
  5949. \& {
  5950. \& if (a)
  5951. \& {
  5952. \& if (b)
  5953. \& foo ();
  5954. \& else
  5955. \& bar ();
  5956. \& }
  5957. \& }
  5958. .Ve
  5959. .Sp
  5960. This warning is enabled by \fB\-Wparentheses\fR.
  5961. .IP "\fB\-Wdate\-time\fR" 4
  5962. .IX Item "-Wdate-time"
  5963. Warn when macros \f(CW\*(C`_\|_TIME_\|_\*(C'\fR, \f(CW\*(C`_\|_DATE_\|_\*(C'\fR or \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR
  5964. are encountered as they might prevent bit-wise-identical reproducible
  5965. compilations.
  5966. .IP "\fB\-Wdelete\-incomplete\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5967. .IX Item "-Wdelete-incomplete ( and Objective- only)"
  5968. Warn when deleting a pointer to incomplete type, which may cause
  5969. undefined behavior at runtime. This warning is enabled by default.
  5970. .IP "\fB\-Wuseless\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5971. .IX Item "-Wuseless-cast ( and Objective- only)"
  5972. Warn when an expression is casted to its own type.
  5973. .IP "\fB\-Wempty\-body\fR" 4
  5974. .IX Item "-Wempty-body"
  5975. 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
  5976. while\*(C'\fR statement. This warning is also enabled by \fB\-Wextra\fR.
  5977. .IP "\fB\-Wenum\-compare\fR" 4
  5978. .IX Item "-Wenum-compare"
  5979. Warn about a comparison between values of different enumerated types.
  5980. In \*(C+ enumerated type mismatches in conditional expressions are also
  5981. diagnosed and the warning is enabled by default. In C this warning is
  5982. enabled by \fB\-Wall\fR.
  5983. .IP "\fB\-Wextra\-semi\fR (\*(C+, Objective\-\*(C+ only)" 4
  5984. .IX Item "-Wextra-semi (, Objective- only)"
  5985. Warn about redundant semicolon after in-class function definition.
  5986. .IP "\fB\-Wjump\-misses\-init\fR (C, Objective-C only)" 4
  5987. .IX Item "-Wjump-misses-init (C, Objective-C only)"
  5988. Warn if a \f(CW\*(C`goto\*(C'\fR statement or a \f(CW\*(C`switch\*(C'\fR statement jumps
  5989. forward across the initialization of a variable, or jumps backward to a
  5990. label after the variable has been initialized. This only warns about
  5991. variables that are initialized when they are declared. This warning is
  5992. only supported for C and Objective-C; in \*(C+ this sort of branch is an
  5993. error in any case.
  5994. .Sp
  5995. \&\fB\-Wjump\-misses\-init\fR is included in \fB\-Wc++\-compat\fR. It
  5996. can be disabled with the \fB\-Wno\-jump\-misses\-init\fR option.
  5997. .IP "\fB\-Wsign\-compare\fR" 4
  5998. .IX Item "-Wsign-compare"
  5999. Warn when a comparison between signed and unsigned values could produce
  6000. an incorrect result when the signed value is converted to unsigned.
  6001. In \*(C+, this warning is also enabled by \fB\-Wall\fR. In C, it is
  6002. also enabled by \fB\-Wextra\fR.
  6003. .IP "\fB\-Wsign\-conversion\fR" 4
  6004. .IX Item "-Wsign-conversion"
  6005. Warn for implicit conversions that may change the sign of an integer
  6006. value, like assigning a signed integer expression to an unsigned
  6007. integer variable. An explicit cast silences the warning. In C, this
  6008. option is enabled also by \fB\-Wconversion\fR.
  6009. .IP "\fB\-Wfloat\-conversion\fR" 4
  6010. .IX Item "-Wfloat-conversion"
  6011. Warn for implicit conversions that reduce the precision of a real value.
  6012. This includes conversions from real to integer, and from higher precision
  6013. real to lower precision real values. This option is also enabled by
  6014. \&\fB\-Wconversion\fR.
  6015. .IP "\fB\-Wno\-scalar\-storage\-order\fR" 4
  6016. .IX Item "-Wno-scalar-storage-order"
  6017. Do not warn on suspicious constructs involving reverse scalar storage order.
  6018. .IP "\fB\-Wsized\-deallocation\fR (\*(C+ and Objective\-\*(C+ only)" 4
  6019. .IX Item "-Wsized-deallocation ( and Objective- only)"
  6020. Warn about a definition of an unsized deallocation function
  6021. .Sp
  6022. .Vb 2
  6023. \& void operator delete (void *) noexcept;
  6024. \& void operator delete[] (void *) noexcept;
  6025. .Ve
  6026. .Sp
  6027. without a definition of the corresponding sized deallocation function
  6028. .Sp
  6029. .Vb 2
  6030. \& void operator delete (void *, std::size_t) noexcept;
  6031. \& void operator delete[] (void *, std::size_t) noexcept;
  6032. .Ve
  6033. .Sp
  6034. or vice versa. Enabled by \fB\-Wextra\fR along with
  6035. \&\fB\-fsized\-deallocation\fR.
  6036. .IP "\fB\-Wsizeof\-pointer\-div\fR" 4
  6037. .IX Item "-Wsizeof-pointer-div"
  6038. Warn for suspicious divisions of two sizeof expressions that divide
  6039. the pointer size by the element size, which is the usual way to compute
  6040. the array size but won't work out correctly with pointers. This warning
  6041. warns e.g. about \f(CW\*(C`sizeof (ptr) / sizeof (ptr[0])\*(C'\fR if \f(CW\*(C`ptr\*(C'\fR is
  6042. not an array, but a pointer. This warning is enabled by \fB\-Wall\fR.
  6043. .IP "\fB\-Wsizeof\-pointer\-memaccess\fR" 4
  6044. .IX Item "-Wsizeof-pointer-memaccess"
  6045. Warn for suspicious length parameters to certain string and memory built-in
  6046. functions if the argument uses \f(CW\*(C`sizeof\*(C'\fR. This warning triggers for
  6047. example for \f(CW\*(C`memset (ptr, 0, sizeof (ptr));\*(C'\fR if \f(CW\*(C`ptr\*(C'\fR is not
  6048. an array, but a pointer, and suggests a possible fix, or about
  6049. \&\f(CW\*(C`memcpy (&foo, ptr, sizeof (&foo));\*(C'\fR. \fB\-Wsizeof\-pointer\-memaccess\fR
  6050. also warns about calls to bounded string copy functions like \f(CW\*(C`strncat\*(C'\fR
  6051. or \f(CW\*(C`strncpy\*(C'\fR that specify as the bound a \f(CW\*(C`sizeof\*(C'\fR expression of
  6052. the source array. For example, in the following function the call to
  6053. \&\f(CW\*(C`strncat\*(C'\fR specifies the size of the source string as the bound. That
  6054. is almost certainly a mistake and so the call is diagnosed.
  6055. .Sp
  6056. .Vb 7
  6057. \& void make_file (const char *name)
  6058. \& {
  6059. \& char path[PATH_MAX];
  6060. \& strncpy (path, name, sizeof path \- 1);
  6061. \& strncat (path, ".text", sizeof ".text");
  6062. \& ...
  6063. \& }
  6064. .Ve
  6065. .Sp
  6066. The \fB\-Wsizeof\-pointer\-memaccess\fR option is enabled by \fB\-Wall\fR.
  6067. .IP "\fB\-Wsizeof\-array\-argument\fR" 4
  6068. .IX Item "-Wsizeof-array-argument"
  6069. Warn when the \f(CW\*(C`sizeof\*(C'\fR operator is applied to a parameter that is
  6070. declared as an array in a function definition. This warning is enabled by
  6071. default for C and \*(C+ programs.
  6072. .IP "\fB\-Wmemset\-elt\-size\fR" 4
  6073. .IX Item "-Wmemset-elt-size"
  6074. Warn for suspicious calls to the \f(CW\*(C`memset\*(C'\fR built-in function, if the
  6075. first argument references an array, and the third argument is a number
  6076. equal to the number of elements, but not equal to the size of the array
  6077. in memory. This indicates that the user has omitted a multiplication by
  6078. the element size. This warning is enabled by \fB\-Wall\fR.
  6079. .IP "\fB\-Wmemset\-transposed\-args\fR" 4
  6080. .IX Item "-Wmemset-transposed-args"
  6081. Warn for suspicious calls to the \f(CW\*(C`memset\*(C'\fR built-in function, if the
  6082. second argument is not zero and the third argument is zero. This warns e.g.@
  6083. about \f(CW\*(C`memset (buf, sizeof buf, 0)\*(C'\fR where most probably
  6084. \&\f(CW\*(C`memset (buf, 0, sizeof buf)\*(C'\fR was meant instead. The diagnostics
  6085. is only emitted if the third argument is literal zero. If it is some
  6086. expression that is folded to zero, a cast of zero to some type, etc.,
  6087. it is far less likely that the user has mistakenly exchanged the arguments
  6088. and no warning is emitted. This warning is enabled by \fB\-Wall\fR.
  6089. .IP "\fB\-Waddress\fR" 4
  6090. .IX Item "-Waddress"
  6091. Warn about suspicious uses of memory addresses. These include using
  6092. the address of a function in a conditional expression, such as
  6093. \&\f(CW\*(C`void func(void); if (func)\*(C'\fR, and comparisons against the memory
  6094. address of a string literal, such as \f(CW\*(C`if (x == "abc")\*(C'\fR. Such
  6095. uses typically indicate a programmer error: the address of a function
  6096. always evaluates to true, so their use in a conditional usually
  6097. indicate that the programmer forgot the parentheses in a function
  6098. call; and comparisons against string literals result in unspecified
  6099. behavior and are not portable in C, so they usually indicate that the
  6100. programmer intended to use \f(CW\*(C`strcmp\*(C'\fR. This warning is enabled by
  6101. \&\fB\-Wall\fR.
  6102. .IP "\fB\-Wlogical\-op\fR" 4
  6103. .IX Item "-Wlogical-op"
  6104. Warn about suspicious uses of logical operators in expressions.
  6105. This includes using logical operators in contexts where a
  6106. bit-wise operator is likely to be expected. Also warns when
  6107. the operands of a logical operator are the same:
  6108. .Sp
  6109. .Vb 2
  6110. \& extern int a;
  6111. \& if (a < 0 && a < 0) { ... }
  6112. .Ve
  6113. .IP "\fB\-Wlogical\-not\-parentheses\fR" 4
  6114. .IX Item "-Wlogical-not-parentheses"
  6115. Warn about logical not used on the left hand side operand of a comparison.
  6116. This option does not warn if the right operand is considered to be a boolean
  6117. expression. Its purpose is to detect suspicious code like the following:
  6118. .Sp
  6119. .Vb 3
  6120. \& int a;
  6121. \& ...
  6122. \& if (!a > 1) { ... }
  6123. .Ve
  6124. .Sp
  6125. It is possible to suppress the warning by wrapping the \s-1LHS\s0 into
  6126. parentheses:
  6127. .Sp
  6128. .Vb 1
  6129. \& if ((!a) > 1) { ... }
  6130. .Ve
  6131. .Sp
  6132. This warning is enabled by \fB\-Wall\fR.
  6133. .IP "\fB\-Waggregate\-return\fR" 4
  6134. .IX Item "-Waggregate-return"
  6135. Warn if any functions that return structures or unions are defined or
  6136. called. (In languages where you can return an array, this also elicits
  6137. a warning.)
  6138. .IP "\fB\-Wno\-aggressive\-loop\-optimizations\fR" 4
  6139. .IX Item "-Wno-aggressive-loop-optimizations"
  6140. Warn if in a loop with constant number of iterations the compiler detects
  6141. undefined behavior in some statement during one or more of the iterations.
  6142. .IP "\fB\-Wno\-attributes\fR" 4
  6143. .IX Item "-Wno-attributes"
  6144. Do not warn if an unexpected \f(CW\*(C`_\|_attribute_\|_\*(C'\fR is used, such as
  6145. unrecognized attributes, function attributes applied to variables,
  6146. etc. This does not stop errors for incorrect use of supported
  6147. attributes.
  6148. .IP "\fB\-Wno\-builtin\-declaration\-mismatch\fR" 4
  6149. .IX Item "-Wno-builtin-declaration-mismatch"
  6150. Warn if a built-in function is declared with the wrong signature or
  6151. as non-function.
  6152. This warning is enabled by default.
  6153. .IP "\fB\-Wno\-builtin\-macro\-redefined\fR" 4
  6154. .IX Item "-Wno-builtin-macro-redefined"
  6155. Do not warn if certain built-in macros are redefined. This suppresses
  6156. warnings for redefinition of \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR, \f(CW\*(C`_\|_TIME_\|_\*(C'\fR,
  6157. \&\f(CW\*(C`_\|_DATE_\|_\*(C'\fR, \f(CW\*(C`_\|_FILE_\|_\*(C'\fR, and \f(CW\*(C`_\|_BASE_FILE_\|_\*(C'\fR.
  6158. .IP "\fB\-Wstrict\-prototypes\fR (C and Objective-C only)" 4
  6159. .IX Item "-Wstrict-prototypes (C and Objective-C only)"
  6160. Warn if a function is declared or defined without specifying the
  6161. argument types. (An old-style function definition is permitted without
  6162. a warning if preceded by a declaration that specifies the argument
  6163. types.)
  6164. .IP "\fB\-Wold\-style\-declaration\fR (C and Objective-C only)" 4
  6165. .IX Item "-Wold-style-declaration (C and Objective-C only)"
  6166. Warn for obsolescent usages, according to the C Standard, in a
  6167. declaration. For example, warn if storage-class specifiers like
  6168. \&\f(CW\*(C`static\*(C'\fR are not the first things in a declaration. This warning
  6169. is also enabled by \fB\-Wextra\fR.
  6170. .IP "\fB\-Wold\-style\-definition\fR (C and Objective-C only)" 4
  6171. .IX Item "-Wold-style-definition (C and Objective-C only)"
  6172. Warn if an old-style function definition is used. A warning is given
  6173. even if there is a previous prototype.
  6174. .IP "\fB\-Wmissing\-parameter\-type\fR (C and Objective-C only)" 4
  6175. .IX Item "-Wmissing-parameter-type (C and Objective-C only)"
  6176. A function parameter is declared without a type specifier in K&R\-style
  6177. functions:
  6178. .Sp
  6179. .Vb 1
  6180. \& void foo(bar) { }
  6181. .Ve
  6182. .Sp
  6183. This warning is also enabled by \fB\-Wextra\fR.
  6184. .IP "\fB\-Wmissing\-prototypes\fR (C and Objective-C only)" 4
  6185. .IX Item "-Wmissing-prototypes (C and Objective-C only)"
  6186. Warn if a global function is defined without a previous prototype
  6187. declaration. This warning is issued even if the definition itself
  6188. provides a prototype. Use this option to detect global functions
  6189. that do not have a matching prototype declaration in a header file.
  6190. This option is not valid for \*(C+ because all function declarations
  6191. provide prototypes and a non-matching declaration declares an
  6192. overload rather than conflict with an earlier declaration.
  6193. Use \fB\-Wmissing\-declarations\fR to detect missing declarations in \*(C+.
  6194. .IP "\fB\-Wmissing\-declarations\fR" 4
  6195. .IX Item "-Wmissing-declarations"
  6196. Warn if a global function is defined without a previous declaration.
  6197. Do so even if the definition itself provides a prototype.
  6198. Use this option to detect global functions that are not declared in
  6199. header files. In C, no warnings are issued for functions with previous
  6200. non-prototype declarations; use \fB\-Wmissing\-prototypes\fR to detect
  6201. missing prototypes. In \*(C+, no warnings are issued for function templates,
  6202. or for inline functions, or for functions in anonymous namespaces.
  6203. .IP "\fB\-Wmissing\-field\-initializers\fR" 4
  6204. .IX Item "-Wmissing-field-initializers"
  6205. Warn if a structure's initializer has some fields missing. For
  6206. example, the following code causes such a warning, because
  6207. \&\f(CW\*(C`x.h\*(C'\fR is implicitly zero:
  6208. .Sp
  6209. .Vb 2
  6210. \& struct s { int f, g, h; };
  6211. \& struct s x = { 3, 4 };
  6212. .Ve
  6213. .Sp
  6214. This option does not warn about designated initializers, so the following
  6215. modification does not trigger a warning:
  6216. .Sp
  6217. .Vb 2
  6218. \& struct s { int f, g, h; };
  6219. \& struct s x = { .f = 3, .g = 4 };
  6220. .Ve
  6221. .Sp
  6222. In C this option does not warn about the universal zero initializer
  6223. \&\fB{ 0 }\fR:
  6224. .Sp
  6225. .Vb 2
  6226. \& struct s { int f, g, h; };
  6227. \& struct s x = { 0 };
  6228. .Ve
  6229. .Sp
  6230. Likewise, in \*(C+ this option does not warn about the empty { }
  6231. initializer, for example:
  6232. .Sp
  6233. .Vb 2
  6234. \& struct s { int f, g, h; };
  6235. \& s x = { };
  6236. .Ve
  6237. .Sp
  6238. This warning is included in \fB\-Wextra\fR. To get other \fB\-Wextra\fR
  6239. warnings without this one, use \fB\-Wextra \-Wno\-missing\-field\-initializers\fR.
  6240. .IP "\fB\-Wno\-multichar\fR" 4
  6241. .IX Item "-Wno-multichar"
  6242. Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
  6243. Usually they indicate a typo in the user's code, as they have
  6244. implementation-defined values, and should not be used in portable code.
  6245. .IP "\fB\-Wnormalized=\fR[\fBnone\fR|\fBid\fR|\fBnfc\fR|\fBnfkc\fR]" 4
  6246. .IX Item "-Wnormalized=[none|id|nfc|nfkc]"
  6247. In \s-1ISO C\s0 and \s-1ISO \*(C+,\s0 two identifiers are different if they are
  6248. different sequences of characters. However, sometimes when characters
  6249. outside the basic \s-1ASCII\s0 character set are used, you can have two
  6250. different character sequences that look the same. To avoid confusion,
  6251. the \s-1ISO 10646\s0 standard sets out some \fInormalization rules\fR which
  6252. when applied ensure that two sequences that look the same are turned into
  6253. the same sequence. \s-1GCC\s0 can warn you if you are using identifiers that
  6254. have not been normalized; this option controls that warning.
  6255. .Sp
  6256. There are four levels of warning supported by \s-1GCC.\s0 The default is
  6257. \&\fB\-Wnormalized=nfc\fR, which warns about any identifier that is
  6258. not in the \s-1ISO 10646 \*(L"C\*(R"\s0 normalized form, \fI\s-1NFC\s0\fR. \s-1NFC\s0 is the
  6259. recommended form for most uses. It is equivalent to
  6260. \&\fB\-Wnormalized\fR.
  6261. .Sp
  6262. Unfortunately, there are some characters allowed in identifiers by
  6263. \&\s-1ISO C\s0 and \s-1ISO \*(C+\s0 that, when turned into \s-1NFC,\s0 are not allowed in
  6264. identifiers. That is, there's no way to use these symbols in portable
  6265. \&\s-1ISO C\s0 or \*(C+ and have all your identifiers in \s-1NFC.\s0
  6266. \&\fB\-Wnormalized=id\fR suppresses the warning for these characters.
  6267. It is hoped that future versions of the standards involved will correct
  6268. this, which is why this option is not the default.
  6269. .Sp
  6270. You can switch the warning off for all characters by writing
  6271. \&\fB\-Wnormalized=none\fR or \fB\-Wno\-normalized\fR. You should
  6272. only do this if you are using some other normalization scheme (like
  6273. \&\*(L"D\*(R"), because otherwise you can easily create bugs that are
  6274. literally impossible to see.
  6275. .Sp
  6276. Some characters in \s-1ISO 10646\s0 have distinct meanings but look identical
  6277. in some fonts or display methodologies, especially once formatting has
  6278. been applied. For instance \f(CW\*(C`\eu207F\*(C'\fR, \*(L"\s-1SUPERSCRIPT LATIN SMALL
  6279. LETTER N\*(R",\s0 displays just like a regular \f(CW\*(C`n\*(C'\fR that has been
  6280. placed in a superscript. \s-1ISO 10646\s0 defines the \fI\s-1NFKC\s0\fR
  6281. normalization scheme to convert all these into a standard form as
  6282. well, and \s-1GCC\s0 warns if your code is not in \s-1NFKC\s0 if you use
  6283. \&\fB\-Wnormalized=nfkc\fR. This warning is comparable to warning
  6284. about every identifier that contains the letter O because it might be
  6285. confused with the digit 0, and so is not the default, but may be
  6286. useful as a local coding convention if the programming environment
  6287. cannot be fixed to display these characters distinctly.
  6288. .IP "\fB\-Wno\-deprecated\fR" 4
  6289. .IX Item "-Wno-deprecated"
  6290. Do not warn about usage of deprecated features.
  6291. .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
  6292. .IX Item "-Wno-deprecated-declarations"
  6293. Do not warn about uses of functions,
  6294. variables, and types marked as deprecated by using the \f(CW\*(C`deprecated\*(C'\fR
  6295. attribute.
  6296. .IP "\fB\-Wno\-overflow\fR" 4
  6297. .IX Item "-Wno-overflow"
  6298. Do not warn about compile-time overflow in constant expressions.
  6299. .IP "\fB\-Wno\-odr\fR" 4
  6300. .IX Item "-Wno-odr"
  6301. Warn about One Definition Rule violations during link-time optimization.
  6302. Requires \fB\-flto\-odr\-type\-merging\fR to be enabled. Enabled by default.
  6303. .IP "\fB\-Wopenmp\-simd\fR" 4
  6304. .IX Item "-Wopenmp-simd"
  6305. Warn if the vectorizer cost model overrides the OpenMP
  6306. simd directive set by user. The \fB\-fsimd\-cost\-model=unlimited\fR
  6307. option can be used to relax the cost model.
  6308. .IP "\fB\-Woverride\-init\fR (C and Objective-C only)" 4
  6309. .IX Item "-Woverride-init (C and Objective-C only)"
  6310. Warn if an initialized field without side effects is overridden when
  6311. using designated initializers.
  6312. .Sp
  6313. This warning is included in \fB\-Wextra\fR. To get other
  6314. \&\fB\-Wextra\fR warnings without this one, use \fB\-Wextra
  6315. \&\-Wno\-override\-init\fR.
  6316. .IP "\fB\-Woverride\-init\-side\-effects\fR (C and Objective-C only)" 4
  6317. .IX Item "-Woverride-init-side-effects (C and Objective-C only)"
  6318. Warn if an initialized field with side effects is overridden when
  6319. using designated initializers. This warning is enabled by default.
  6320. .IP "\fB\-Wpacked\fR" 4
  6321. .IX Item "-Wpacked"
  6322. Warn if a structure is given the packed attribute, but the packed
  6323. attribute has no effect on the layout or size of the structure.
  6324. Such structures may be mis-aligned for little benefit. For
  6325. instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
  6326. is misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
  6327. have the packed attribute:
  6328. .Sp
  6329. .Vb 8
  6330. \& struct foo {
  6331. \& int x;
  6332. \& char a, b, c, d;
  6333. \& } _\|_attribute_\|_((packed));
  6334. \& struct bar {
  6335. \& char z;
  6336. \& struct foo f;
  6337. \& };
  6338. .Ve
  6339. .IP "\fB\-Wpacked\-bitfield\-compat\fR" 4
  6340. .IX Item "-Wpacked-bitfield-compat"
  6341. The 4.1, 4.2 and 4.3 series of \s-1GCC\s0 ignore the \f(CW\*(C`packed\*(C'\fR attribute
  6342. on bit-fields of type \f(CW\*(C`char\*(C'\fR. This has been fixed in \s-1GCC 4.4\s0 but
  6343. the change can lead to differences in the structure layout. \s-1GCC\s0
  6344. informs you when the offset of such a field has changed in \s-1GCC 4.4.\s0
  6345. For example there is no longer a 4\-bit padding between field \f(CW\*(C`a\*(C'\fR
  6346. and \f(CW\*(C`b\*(C'\fR in this structure:
  6347. .Sp
  6348. .Vb 5
  6349. \& struct foo
  6350. \& {
  6351. \& char a:4;
  6352. \& char b:8;
  6353. \& } _\|_attribute_\|_ ((packed));
  6354. .Ve
  6355. .Sp
  6356. This warning is enabled by default. Use
  6357. \&\fB\-Wno\-packed\-bitfield\-compat\fR to disable this warning.
  6358. .IP "\fB\-Wpacked\-not\-aligned\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
  6359. .IX Item "-Wpacked-not-aligned (C, , Objective-C and Objective- only)"
  6360. Warn if a structure field with explicitly specified alignment in a
  6361. packed struct or union is misaligned. For example, a warning will
  6362. be issued on \f(CW\*(C`struct S\*(C'\fR, like, \f(CW\*(C`warning: alignment 1 of
  6363. \&\*(Aqstruct S\*(Aq is less than 8\*(C'\fR, in this code:
  6364. .Sp
  6365. .Vb 4
  6366. \& struct _\|_attribute_\|_ ((aligned (8))) S8 { char a[8]; };
  6367. \& struct _\|_attribute_\|_ ((packed)) S {
  6368. \& struct S8 s8;
  6369. \& };
  6370. .Ve
  6371. .Sp
  6372. This warning is enabled by \fB\-Wall\fR.
  6373. .IP "\fB\-Wpadded\fR" 4
  6374. .IX Item "-Wpadded"
  6375. Warn if padding is included in a structure, either to align an element
  6376. of the structure or to align the whole structure. Sometimes when this
  6377. happens it is possible to rearrange the fields of the structure to
  6378. reduce the padding and so make the structure smaller.
  6379. .IP "\fB\-Wredundant\-decls\fR" 4
  6380. .IX Item "-Wredundant-decls"
  6381. Warn if anything is declared more than once in the same scope, even in
  6382. cases where multiple declaration is valid and changes nothing.
  6383. .IP "\fB\-Wno\-restrict\fR" 4
  6384. .IX Item "-Wno-restrict"
  6385. Warn when an object referenced by a \f(CW\*(C`restrict\*(C'\fR\-qualified parameter
  6386. (or, in \*(C+, a \f(CW\*(C`_\|_restrict\*(C'\fR\-qualified parameter) is aliased by another
  6387. argument, or when copies between such objects overlap. For example,
  6388. the call to the \f(CW\*(C`strcpy\*(C'\fR function below attempts to truncate the string
  6389. by replacing its initial characters with the last four. However, because
  6390. the call writes the terminating \s-1NUL\s0 into \f(CW\*(C`a[4]\*(C'\fR, the copies overlap and
  6391. the call is diagnosed.
  6392. .Sp
  6393. .Vb 6
  6394. \& void foo (void)
  6395. \& {
  6396. \& char a[] = "abcd1234";
  6397. \& strcpy (a, a + 4);
  6398. \& ...
  6399. \& }
  6400. .Ve
  6401. .Sp
  6402. The \fB\-Wrestrict\fR option detects some instances of simple overlap
  6403. even without optimization but works best at \fB\-O2\fR and above. It
  6404. is included in \fB\-Wall\fR.
  6405. .IP "\fB\-Wnested\-externs\fR (C and Objective-C only)" 4
  6406. .IX Item "-Wnested-externs (C and Objective-C only)"
  6407. Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
  6408. .IP "\fB\-Wno\-inherited\-variadic\-ctor\fR" 4
  6409. .IX Item "-Wno-inherited-variadic-ctor"
  6410. Suppress warnings about use of \*(C+11 inheriting constructors when the
  6411. base class inherited from has a C variadic constructor; the warning is
  6412. on by default because the ellipsis is not inherited.
  6413. .IP "\fB\-Winline\fR" 4
  6414. .IX Item "-Winline"
  6415. Warn if a function that is declared as inline cannot be inlined.
  6416. Even with this option, the compiler does not warn about failures to
  6417. inline functions declared in system headers.
  6418. .Sp
  6419. The compiler uses a variety of heuristics to determine whether or not
  6420. to inline a function. For example, the compiler takes into account
  6421. the size of the function being inlined and the amount of inlining
  6422. that has already been done in the current function. Therefore,
  6423. seemingly insignificant changes in the source program can cause the
  6424. warnings produced by \fB\-Winline\fR to appear or disappear.
  6425. .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ and Objective\-\*(C+ only)" 4
  6426. .IX Item "-Wno-invalid-offsetof ( and Objective- only)"
  6427. Suppress warnings from applying the \f(CW\*(C`offsetof\*(C'\fR macro to a non-POD
  6428. type. According to the 2014 \s-1ISO \*(C+\s0 standard, applying \f(CW\*(C`offsetof\*(C'\fR
  6429. to a non-standard-layout type is undefined. In existing \*(C+ implementations,
  6430. however, \f(CW\*(C`offsetof\*(C'\fR typically gives meaningful results.
  6431. This flag is for users who are aware that they are
  6432. writing nonportable code and who have deliberately chosen to ignore the
  6433. warning about it.
  6434. .Sp
  6435. The restrictions on \f(CW\*(C`offsetof\*(C'\fR may be relaxed in a future version
  6436. of the \*(C+ standard.
  6437. .IP "\fB\-Wint\-in\-bool\-context\fR" 4
  6438. .IX Item "-Wint-in-bool-context"
  6439. Warn for suspicious use of integer values where boolean values are expected,
  6440. such as conditional expressions (?:) using non-boolean integer constants in
  6441. boolean context, like \f(CW\*(C`if (a <= b ? 2 : 3)\*(C'\fR. Or left shifting of signed
  6442. integers in boolean context, like \f(CW\*(C`for (a = 0; 1 << a; a++);\*(C'\fR. Likewise
  6443. for all kinds of multiplications regardless of the data type.
  6444. This warning is enabled by \fB\-Wall\fR.
  6445. .IP "\fB\-Wno\-int\-to\-pointer\-cast\fR" 4
  6446. .IX Item "-Wno-int-to-pointer-cast"
  6447. Suppress warnings from casts to pointer type of an integer of a
  6448. different size. In \*(C+, casting to a pointer type of smaller size is
  6449. an error. \fBWint-to-pointer-cast\fR is enabled by default.
  6450. .IP "\fB\-Wno\-pointer\-to\-int\-cast\fR (C and Objective-C only)" 4
  6451. .IX Item "-Wno-pointer-to-int-cast (C and Objective-C only)"
  6452. Suppress warnings from casts from a pointer to an integer type of a
  6453. different size.
  6454. .IP "\fB\-Winvalid\-pch\fR" 4
  6455. .IX Item "-Winvalid-pch"
  6456. Warn if a precompiled header is found in
  6457. the search path but cannot be used.
  6458. .IP "\fB\-Wlong\-long\fR" 4
  6459. .IX Item "-Wlong-long"
  6460. Warn if \f(CW\*(C`long long\*(C'\fR type is used. This is enabled by either
  6461. \&\fB\-Wpedantic\fR or \fB\-Wtraditional\fR in \s-1ISO C90\s0 and \*(C+98
  6462. modes. To inhibit the warning messages, use \fB\-Wno\-long\-long\fR.
  6463. .IP "\fB\-Wvariadic\-macros\fR" 4
  6464. .IX Item "-Wvariadic-macros"
  6465. Warn if variadic macros are used in \s-1ISO C90\s0 mode, or if the \s-1GNU\s0
  6466. alternate syntax is used in \s-1ISO C99\s0 mode. This is enabled by either
  6467. \&\fB\-Wpedantic\fR or \fB\-Wtraditional\fR. To inhibit the warning
  6468. messages, use \fB\-Wno\-variadic\-macros\fR.
  6469. .IP "\fB\-Wvarargs\fR" 4
  6470. .IX Item "-Wvarargs"
  6471. Warn upon questionable usage of the macros used to handle variable
  6472. arguments like \f(CW\*(C`va_start\*(C'\fR. This is default. To inhibit the
  6473. warning messages, use \fB\-Wno\-varargs\fR.
  6474. .IP "\fB\-Wvector\-operation\-performance\fR" 4
  6475. .IX Item "-Wvector-operation-performance"
  6476. Warn if vector operation is not implemented via \s-1SIMD\s0 capabilities of the
  6477. architecture. Mainly useful for the performance tuning.
  6478. Vector operation can be implemented \f(CW\*(C`piecewise\*(C'\fR, which means that the
  6479. scalar operation is performed on every vector element;
  6480. \&\f(CW\*(C`in parallel\*(C'\fR, which means that the vector operation is implemented
  6481. using scalars of wider type, which normally is more performance efficient;
  6482. and \f(CW\*(C`as a single scalar\*(C'\fR, which means that vector fits into a
  6483. scalar type.
  6484. .IP "\fB\-Wno\-virtual\-move\-assign\fR" 4
  6485. .IX Item "-Wno-virtual-move-assign"
  6486. Suppress warnings about inheriting from a virtual base with a
  6487. non-trivial \*(C+11 move assignment operator. This is dangerous because
  6488. if the virtual base is reachable along more than one path, it is
  6489. moved multiple times, which can mean both objects end up in the
  6490. moved-from state. If the move assignment operator is written to avoid
  6491. moving from a moved-from object, this warning can be disabled.
  6492. .IP "\fB\-Wvla\fR" 4
  6493. .IX Item "-Wvla"
  6494. Warn if a variable-length array is used in the code.
  6495. \&\fB\-Wno\-vla\fR prevents the \fB\-Wpedantic\fR warning of
  6496. the variable-length array.
  6497. .IP "\fB\-Wvla\-larger\-than=\fR\fIn\fR" 4
  6498. .IX Item "-Wvla-larger-than=n"
  6499. If this option is used, the compiler will warn on uses of
  6500. variable-length arrays where the size is either unbounded, or bounded
  6501. by an argument that can be larger than \fIn\fR bytes. This is similar
  6502. to how \fB\-Walloca\-larger\-than=\fR\fIn\fR works, but with
  6503. variable-length arrays.
  6504. .Sp
  6505. Note that \s-1GCC\s0 may optimize small variable-length arrays of a known
  6506. value into plain arrays, so this warning may not get triggered for
  6507. such arrays.
  6508. .Sp
  6509. This warning is not enabled by \fB\-Wall\fR, and is only active when
  6510. \&\fB\-ftree\-vrp\fR is active (default for \fB\-O2\fR and above).
  6511. .Sp
  6512. See also \fB\-Walloca\-larger\-than=\fR\fIn\fR.
  6513. .IP "\fB\-Wvolatile\-register\-var\fR" 4
  6514. .IX Item "-Wvolatile-register-var"
  6515. Warn if a register variable is declared volatile. The volatile
  6516. modifier does not inhibit all optimizations that may eliminate reads
  6517. and/or writes to register variables. This warning is enabled by
  6518. \&\fB\-Wall\fR.
  6519. .IP "\fB\-Wdisabled\-optimization\fR" 4
  6520. .IX Item "-Wdisabled-optimization"
  6521. Warn if a requested optimization pass is disabled. This warning does
  6522. not generally indicate that there is anything wrong with your code; it
  6523. merely indicates that \s-1GCC\s0's optimizers are unable to handle the code
  6524. effectively. Often, the problem is that your code is too big or too
  6525. complex; \s-1GCC\s0 refuses to optimize programs when the optimization
  6526. itself is likely to take inordinate amounts of time.
  6527. .IP "\fB\-Wpointer\-sign\fR (C and Objective-C only)" 4
  6528. .IX Item "-Wpointer-sign (C and Objective-C only)"
  6529. Warn for pointer argument passing or assignment with different signedness.
  6530. This option is only supported for C and Objective-C. It is implied by
  6531. \&\fB\-Wall\fR and by \fB\-Wpedantic\fR, which can be disabled with
  6532. \&\fB\-Wno\-pointer\-sign\fR.
  6533. .IP "\fB\-Wstack\-protector\fR" 4
  6534. .IX Item "-Wstack-protector"
  6535. This option is only active when \fB\-fstack\-protector\fR is active. It
  6536. warns about functions that are not protected against stack smashing.
  6537. .IP "\fB\-Woverlength\-strings\fR" 4
  6538. .IX Item "-Woverlength-strings"
  6539. Warn about string constants that are longer than the \*(L"minimum
  6540. maximum\*(R" length specified in the C standard. Modern compilers
  6541. generally allow string constants that are much longer than the
  6542. standard's minimum limit, but very portable programs should avoid
  6543. using longer strings.
  6544. .Sp
  6545. The limit applies \fIafter\fR string constant concatenation, and does
  6546. not count the trailing \s-1NUL.\s0 In C90, the limit was 509 characters; in
  6547. C99, it was raised to 4095. \*(C+98 does not specify a normative
  6548. minimum maximum, so we do not diagnose overlength strings in \*(C+.
  6549. .Sp
  6550. This option is implied by \fB\-Wpedantic\fR, and can be disabled with
  6551. \&\fB\-Wno\-overlength\-strings\fR.
  6552. .IP "\fB\-Wunsuffixed\-float\-constants\fR (C and Objective-C only)" 4
  6553. .IX Item "-Wunsuffixed-float-constants (C and Objective-C only)"
  6554. Issue a warning for any floating constant that does not have
  6555. a suffix. When used together with \fB\-Wsystem\-headers\fR it
  6556. warns about such constants in system header files. This can be useful
  6557. when preparing code to use with the \f(CW\*(C`FLOAT_CONST_DECIMAL64\*(C'\fR pragma
  6558. from the decimal floating-point extension to C99.
  6559. .IP "\fB\-Wno\-designated\-init\fR (C and Objective-C only)" 4
  6560. .IX Item "-Wno-designated-init (C and Objective-C only)"
  6561. Suppress warnings when a positional initializer is used to initialize
  6562. a structure that has been marked with the \f(CW\*(C`designated_init\*(C'\fR
  6563. attribute.
  6564. .IP "\fB\-Whsa\fR" 4
  6565. .IX Item "-Whsa"
  6566. Issue a warning when \s-1HSAIL\s0 cannot be emitted for the compiled function or
  6567. OpenMP construct.
  6568. .SS "Options for Debugging Your Program"
  6569. .IX Subsection "Options for Debugging Your Program"
  6570. To tell \s-1GCC\s0 to emit extra information for use by a debugger, in almost
  6571. all cases you need only to add \fB\-g\fR to your other options.
  6572. .PP
  6573. \&\s-1GCC\s0 allows you to use \fB\-g\fR with
  6574. \&\fB\-O\fR. The shortcuts taken by optimized code may occasionally
  6575. be surprising: some variables you declared may not exist
  6576. at all; flow of control may briefly move where you did not expect it;
  6577. some statements may not be executed because they compute constant
  6578. results or their values are already at hand; some statements may
  6579. execute in different places because they have been moved out of loops.
  6580. Nevertheless it is possible to debug optimized output. This makes
  6581. it reasonable to use the optimizer for programs that might have bugs.
  6582. .PP
  6583. If you are not using some other optimization option, consider
  6584. using \fB\-Og\fR with \fB\-g\fR.
  6585. With no \fB\-O\fR option at all, some compiler passes that collect
  6586. information useful for debugging do not run at all, so that
  6587. \&\fB\-Og\fR may result in a better debugging experience.
  6588. .IP "\fB\-g\fR" 4
  6589. .IX Item "-g"
  6590. Produce debugging information in the operating system's native format
  6591. (stabs, \s-1COFF, XCOFF,\s0 or \s-1DWARF\s0). \s-1GDB\s0 can work with this debugging
  6592. information.
  6593. .Sp
  6594. On most systems that use stabs format, \fB\-g\fR enables use of extra
  6595. debugging information that only \s-1GDB\s0 can use; this extra information
  6596. makes debugging work better in \s-1GDB\s0 but probably makes other debuggers
  6597. crash or
  6598. refuse to read the program. If you want to control for certain whether
  6599. to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
  6600. \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
  6601. .IP "\fB\-ggdb\fR" 4
  6602. .IX Item "-ggdb"
  6603. Produce debugging information for use by \s-1GDB.\s0 This means to use the
  6604. most expressive format available (\s-1DWARF,\s0 stabs, or the native format
  6605. if neither of those are supported), including \s-1GDB\s0 extensions if at all
  6606. possible.
  6607. .IP "\fB\-gdwarf\fR" 4
  6608. .IX Item "-gdwarf"
  6609. .PD 0
  6610. .IP "\fB\-gdwarf\-\fR\fIversion\fR" 4
  6611. .IX Item "-gdwarf-version"
  6612. .PD
  6613. Produce debugging information in \s-1DWARF\s0 format (if that is supported).
  6614. The value of \fIversion\fR may be either 2, 3, 4 or 5; the default version
  6615. for most targets is 4. \s-1DWARF\s0 Version 5 is only experimental.
  6616. .Sp
  6617. Note that with \s-1DWARF\s0 Version 2, some ports require and always
  6618. use some non-conflicting \s-1DWARF 3\s0 extensions in the unwind tables.
  6619. .Sp
  6620. Version 4 may require \s-1GDB 7.0\s0 and \fB\-fvar\-tracking\-assignments\fR
  6621. for maximum benefit.
  6622. .Sp
  6623. \&\s-1GCC\s0 no longer supports \s-1DWARF\s0 Version 1, which is substantially
  6624. different than Version 2 and later. For historical reasons, some
  6625. other DWARF-related options such as
  6626. \&\fB\-fno\-dwarf2\-cfi\-asm\fR) retain a reference to \s-1DWARF\s0 Version 2
  6627. in their names, but apply to all currently-supported versions of \s-1DWARF.\s0
  6628. .IP "\fB\-gstabs\fR" 4
  6629. .IX Item "-gstabs"
  6630. Produce debugging information in stabs format (if that is supported),
  6631. without \s-1GDB\s0 extensions. This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
  6632. systems. On \s-1MIPS,\s0 Alpha and System V Release 4 systems this option
  6633. produces stabs debugging output that is not understood by \s-1DBX.\s0
  6634. On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
  6635. .IP "\fB\-gstabs+\fR" 4
  6636. .IX Item "-gstabs+"
  6637. Produce debugging information in stabs format (if that is supported),
  6638. using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0). The
  6639. use of these extensions is likely to make other debuggers crash or
  6640. refuse to read the program.
  6641. .IP "\fB\-gxcoff\fR" 4
  6642. .IX Item "-gxcoff"
  6643. Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
  6644. This is the format used by the \s-1DBX\s0 debugger on \s-1IBM RS/6000\s0 systems.
  6645. .IP "\fB\-gxcoff+\fR" 4
  6646. .IX Item "-gxcoff+"
  6647. Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
  6648. using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0). The
  6649. use of these extensions is likely to make other debuggers crash or
  6650. refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
  6651. assembler (\s-1GAS\s0) to fail with an error.
  6652. .IP "\fB\-gvms\fR" 4
  6653. .IX Item "-gvms"
  6654. Produce debugging information in Alpha/VMS debug format (if that is
  6655. supported). This is the format used by \s-1DEBUG\s0 on Alpha/VMS systems.
  6656. .IP "\fB\-g\fR\fIlevel\fR" 4
  6657. .IX Item "-glevel"
  6658. .PD 0
  6659. .IP "\fB\-ggdb\fR\fIlevel\fR" 4
  6660. .IX Item "-ggdblevel"
  6661. .IP "\fB\-gstabs\fR\fIlevel\fR" 4
  6662. .IX Item "-gstabslevel"
  6663. .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
  6664. .IX Item "-gxcofflevel"
  6665. .IP "\fB\-gvms\fR\fIlevel\fR" 4
  6666. .IX Item "-gvmslevel"
  6667. .PD
  6668. Request debugging information and also use \fIlevel\fR to specify how
  6669. much information. The default level is 2.
  6670. .Sp
  6671. Level 0 produces no debug information at all. Thus, \fB\-g0\fR negates
  6672. \&\fB\-g\fR.
  6673. .Sp
  6674. Level 1 produces minimal information, enough for making backtraces in
  6675. parts of the program that you don't plan to debug. This includes
  6676. descriptions of functions and external variables, and line number
  6677. tables, but no information about local variables.
  6678. .Sp
  6679. Level 3 includes extra information, such as all the macro definitions
  6680. present in the program. Some debuggers support macro expansion when
  6681. you use \fB\-g3\fR.
  6682. .Sp
  6683. \&\fB\-gdwarf\fR does not accept a concatenated debug level, to avoid
  6684. confusion with \fB\-gdwarf\-\fR\fIlevel\fR.
  6685. Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
  6686. debug level for \s-1DWARF.\s0
  6687. .IP "\fB\-feliminate\-unused\-debug\-symbols\fR" 4
  6688. .IX Item "-feliminate-unused-debug-symbols"
  6689. Produce debugging information in stabs format (if that is supported),
  6690. for only symbols that are actually used.
  6691. .IP "\fB\-femit\-class\-debug\-always\fR" 4
  6692. .IX Item "-femit-class-debug-always"
  6693. Instead of emitting debugging information for a \*(C+ class in only one
  6694. object file, emit it in all object files using the class. This option
  6695. should be used only with debuggers that are unable to handle the way \s-1GCC\s0
  6696. normally emits debugging information for classes because using this
  6697. option increases the size of debugging information by as much as a
  6698. factor of two.
  6699. .IP "\fB\-fno\-merge\-debug\-strings\fR" 4
  6700. .IX Item "-fno-merge-debug-strings"
  6701. Direct the linker to not merge together strings in the debugging
  6702. information that are identical in different object files. Merging is
  6703. not supported by all assemblers or linkers. Merging decreases the size
  6704. of the debug information in the output file at the cost of increasing
  6705. link processing time. Merging is enabled by default.
  6706. .IP "\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
  6707. .IX Item "-fdebug-prefix-map=old=new"
  6708. When compiling files residing in directory \fI\fIold\fI\fR, record
  6709. debugging information describing them as if the files resided in
  6710. directory \fI\fInew\fI\fR instead. This can be used to replace a
  6711. build-time path with an install-time path in the debug info. It can
  6712. also be used to change an absolute path to a relative path by using
  6713. \&\fI.\fR for \fInew\fR. This can give more reproducible builds, which
  6714. are location independent, but may require an extra command to tell \s-1GDB\s0
  6715. where to find the source files. See also \fB\-ffile\-prefix\-map\fR.
  6716. .IP "\fB\-fvar\-tracking\fR" 4
  6717. .IX Item "-fvar-tracking"
  6718. Run variable tracking pass. It computes where variables are stored at each
  6719. position in code. Better debugging information is then generated
  6720. (if the debugging information format supports this information).
  6721. .Sp
  6722. It is enabled by default when compiling with optimization (\fB\-Os\fR,
  6723. \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
  6724. the debug info format supports it.
  6725. .IP "\fB\-fvar\-tracking\-assignments\fR" 4
  6726. .IX Item "-fvar-tracking-assignments"
  6727. Annotate assignments to user variables early in the compilation and
  6728. attempt to carry the annotations over throughout the compilation all the
  6729. way to the end, in an attempt to improve debug information while
  6730. optimizing. Use of \fB\-gdwarf\-4\fR is recommended along with it.
  6731. .Sp
  6732. It can be enabled even if var-tracking is disabled, in which case
  6733. annotations are created and maintained, but discarded at the end.
  6734. By default, this flag is enabled together with \fB\-fvar\-tracking\fR,
  6735. except when selective scheduling is enabled.
  6736. .IP "\fB\-gsplit\-dwarf\fR" 4
  6737. .IX Item "-gsplit-dwarf"
  6738. Separate as much \s-1DWARF\s0 debugging information as possible into a
  6739. separate output file with the extension \fI.dwo\fR. This option allows
  6740. the build system to avoid linking files with debug information. To
  6741. be useful, this option requires a debugger capable of reading \fI.dwo\fR
  6742. files.
  6743. .IP "\fB\-gpubnames\fR" 4
  6744. .IX Item "-gpubnames"
  6745. Generate \s-1DWARF\s0 \f(CW\*(C`.debug_pubnames\*(C'\fR and \f(CW\*(C`.debug_pubtypes\*(C'\fR sections.
  6746. .IP "\fB\-ggnu\-pubnames\fR" 4
  6747. .IX Item "-ggnu-pubnames"
  6748. Generate \f(CW\*(C`.debug_pubnames\*(C'\fR and \f(CW\*(C`.debug_pubtypes\*(C'\fR sections in a format
  6749. suitable for conversion into a \s-1GDB\s0 index. This option is only useful
  6750. with a linker that can produce \s-1GDB\s0 index version 7.
  6751. .IP "\fB\-fdebug\-types\-section\fR" 4
  6752. .IX Item "-fdebug-types-section"
  6753. When using \s-1DWARF\s0 Version 4 or higher, type DIEs can be put into
  6754. their own \f(CW\*(C`.debug_types\*(C'\fR section instead of making them part of the
  6755. \&\f(CW\*(C`.debug_info\*(C'\fR section. It is more efficient to put them in a separate
  6756. comdat sections since the linker can then remove duplicates.
  6757. But not all \s-1DWARF\s0 consumers support \f(CW\*(C`.debug_types\*(C'\fR sections yet
  6758. and on some objects \f(CW\*(C`.debug_types\*(C'\fR produces larger instead of smaller
  6759. debugging information.
  6760. .IP "\fB\-grecord\-gcc\-switches\fR" 4
  6761. .IX Item "-grecord-gcc-switches"
  6762. .PD 0
  6763. .IP "\fB\-gno\-record\-gcc\-switches\fR" 4
  6764. .IX Item "-gno-record-gcc-switches"
  6765. .PD
  6766. This switch causes the command-line options used to invoke the
  6767. compiler that may affect code generation to be appended to the
  6768. DW_AT_producer attribute in \s-1DWARF\s0 debugging information. The options
  6769. are concatenated with spaces separating them from each other and from
  6770. the compiler version.
  6771. It is enabled by default.
  6772. See also \fB\-frecord\-gcc\-switches\fR for another
  6773. way of storing compiler options into the object file.
  6774. .IP "\fB\-gstrict\-dwarf\fR" 4
  6775. .IX Item "-gstrict-dwarf"
  6776. Disallow using extensions of later \s-1DWARF\s0 standard version than selected
  6777. with \fB\-gdwarf\-\fR\fIversion\fR. On most targets using non-conflicting
  6778. \&\s-1DWARF\s0 extensions from later standard versions is allowed.
  6779. .IP "\fB\-gno\-strict\-dwarf\fR" 4
  6780. .IX Item "-gno-strict-dwarf"
  6781. Allow using extensions of later \s-1DWARF\s0 standard version than selected with
  6782. \&\fB\-gdwarf\-\fR\fIversion\fR.
  6783. .IP "\fB\-gas\-loc\-support\fR" 4
  6784. .IX Item "-gas-loc-support"
  6785. Inform the compiler that the assembler supports \f(CW\*(C`.loc\*(C'\fR directives.
  6786. It may then use them for the assembler to generate \s-1DWARF2+\s0 line number
  6787. tables.
  6788. .Sp
  6789. This is generally desirable, because assembler-generated line-number
  6790. tables are a lot more compact than those the compiler can generate
  6791. itself.
  6792. .Sp
  6793. This option will be enabled by default if, at \s-1GCC\s0 configure time, the
  6794. assembler was found to support such directives.
  6795. .IP "\fB\-gno\-as\-loc\-support\fR" 4
  6796. .IX Item "-gno-as-loc-support"
  6797. Force \s-1GCC\s0 to generate \s-1DWARF2+\s0 line number tables internally, if \s-1DWARF2+\s0
  6798. line number tables are to be generated.
  6799. .IP "\fBgas-locview-support\fR" 4
  6800. .IX Item "gas-locview-support"
  6801. Inform the compiler that the assembler supports \f(CW\*(C`view\*(C'\fR assignment
  6802. and reset assertion checking in \f(CW\*(C`.loc\*(C'\fR directives.
  6803. .Sp
  6804. This option will be enabled by default if, at \s-1GCC\s0 configure time, the
  6805. assembler was found to support them.
  6806. .IP "\fBgno-as-locview-support\fR" 4
  6807. .IX Item "gno-as-locview-support"
  6808. Force \s-1GCC\s0 to assign view numbers internally, if
  6809. \&\fB\-gvariable\-location\-views\fR are explicitly requested.
  6810. .IP "\fB\-gcolumn\-info\fR" 4
  6811. .IX Item "-gcolumn-info"
  6812. .PD 0
  6813. .IP "\fB\-gno\-column\-info\fR" 4
  6814. .IX Item "-gno-column-info"
  6815. .PD
  6816. Emit location column information into \s-1DWARF\s0 debugging information, rather
  6817. than just file and line.
  6818. This option is enabled by default.
  6819. .IP "\fB\-gstatement\-frontiers\fR" 4
  6820. .IX Item "-gstatement-frontiers"
  6821. .PD 0
  6822. .IP "\fB\-gno\-statement\-frontiers\fR" 4
  6823. .IX Item "-gno-statement-frontiers"
  6824. .PD
  6825. This option causes \s-1GCC\s0 to create markers in the internal representation
  6826. at the beginning of statements, and to keep them roughly in place
  6827. throughout compilation, using them to guide the output of \f(CW\*(C`is_stmt\*(C'\fR
  6828. markers in the line number table. This is enabled by default when
  6829. compiling with optimization (\fB\-Os\fR, \fB\-O\fR, \fB\-O2\fR,
  6830. \&...), and outputting \s-1DWARF 2\s0 debug information at the normal level.
  6831. .IP "\fB\-gvariable\-location\-views\fR" 4
  6832. .IX Item "-gvariable-location-views"
  6833. .PD 0
  6834. .IP "\fB\-gvariable\-location\-views=incompat5\fR" 4
  6835. .IX Item "-gvariable-location-views=incompat5"
  6836. .IP "\fB\-gno\-variable\-location\-views\fR" 4
  6837. .IX Item "-gno-variable-location-views"
  6838. .PD
  6839. Augment variable location lists with progressive view numbers implied
  6840. from the line number table. This enables debug information consumers to
  6841. inspect state at certain points of the program, even if no instructions
  6842. associated with the corresponding source locations are present at that
  6843. point. If the assembler lacks support for view numbers in line number
  6844. tables, this will cause the compiler to emit the line number table,
  6845. which generally makes them somewhat less compact. The augmented line
  6846. number tables and location lists are fully backward-compatible, so they
  6847. can be consumed by debug information consumers that are not aware of
  6848. these augmentations, but they won't derive any benefit from them either.
  6849. .Sp
  6850. This is enabled by default when outputting \s-1DWARF 2\s0 debug information at
  6851. the normal level, as long as there is assembler support,
  6852. \&\fB\-fvar\-tracking\-assignments\fR is enabled and
  6853. \&\fB\-gstrict\-dwarf\fR is not. When assembler support is not
  6854. available, this may still be enabled, but it will force \s-1GCC\s0 to output
  6855. internal line number tables, and if
  6856. \&\fB\-ginternal\-reset\-location\-views\fR is not enabled, that will most
  6857. certainly lead to silently mismatching location views.
  6858. .Sp
  6859. There is a proposed representation for view numbers that is not backward
  6860. compatible with the location list format introduced in \s-1DWARF 5,\s0 that can
  6861. be enabled with \fB\-gvariable\-location\-views=incompat5\fR. This
  6862. option may be removed in the future, is only provided as a reference
  6863. implementation of the proposed representation. Debug information
  6864. consumers are not expected to support this extended format, and they
  6865. would be rendered unable to decode location lists using it.
  6866. .IP "\fB\-ginternal\-reset\-location\-views\fR" 4
  6867. .IX Item "-ginternal-reset-location-views"
  6868. .PD 0
  6869. .IP "\fB\-gnointernal\-reset\-location\-views\fR" 4
  6870. .IX Item "-gnointernal-reset-location-views"
  6871. .PD
  6872. Attempt to determine location views that can be omitted from location
  6873. view lists. This requires the compiler to have very accurate insn
  6874. length estimates, which isn't always the case, and it may cause
  6875. incorrect view lists to be generated silently when using an assembler
  6876. that does not support location view lists. The \s-1GNU\s0 assembler will flag
  6877. any such error as a \f(CW\*(C`view number mismatch\*(C'\fR. This is only enabled
  6878. on ports that define a reliable estimation function.
  6879. .IP "\fB\-ginline\-points\fR" 4
  6880. .IX Item "-ginline-points"
  6881. .PD 0
  6882. .IP "\fB\-gno\-inline\-points\fR" 4
  6883. .IX Item "-gno-inline-points"
  6884. .PD
  6885. Generate extended debug information for inlined functions. Location
  6886. view tracking markers are inserted at inlined entry points, so that
  6887. address and view numbers can be computed and output in debug
  6888. information. This can be enabled independently of location views, in
  6889. which case the view numbers won't be output, but it can only be enabled
  6890. along with statement frontiers, and it is only enabled by default if
  6891. location views are enabled.
  6892. .IP "\fB\-gz\fR[\fB=\fR\fItype\fR]" 4
  6893. .IX Item "-gz[=type]"
  6894. Produce compressed debug sections in \s-1DWARF\s0 format, if that is supported.
  6895. If \fItype\fR is not given, the default type depends on the capabilities
  6896. of the assembler and linker used. \fItype\fR may be one of
  6897. \&\fBnone\fR (don't compress debug sections), \fBzlib\fR (use zlib
  6898. compression in \s-1ELF\s0 gABI format), or \fBzlib-gnu\fR (use zlib
  6899. compression in traditional \s-1GNU\s0 format). If the linker doesn't support
  6900. writing compressed debug sections, the option is rejected. Otherwise,
  6901. if the assembler does not support them, \fB\-gz\fR is silently ignored
  6902. when producing object files.
  6903. .IP "\fB\-femit\-struct\-debug\-baseonly\fR" 4
  6904. .IX Item "-femit-struct-debug-baseonly"
  6905. Emit debug information for struct-like types
  6906. only when the base name of the compilation source file
  6907. matches the base name of file in which the struct is defined.
  6908. .Sp
  6909. This option substantially reduces the size of debugging information,
  6910. but at significant potential loss in type information to the debugger.
  6911. See \fB\-femit\-struct\-debug\-reduced\fR for a less aggressive option.
  6912. See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
  6913. .Sp
  6914. This option works only with \s-1DWARF\s0 debug output.
  6915. .IP "\fB\-femit\-struct\-debug\-reduced\fR" 4
  6916. .IX Item "-femit-struct-debug-reduced"
  6917. Emit debug information for struct-like types
  6918. only when the base name of the compilation source file
  6919. matches the base name of file in which the type is defined,
  6920. unless the struct is a template or defined in a system header.
  6921. .Sp
  6922. This option significantly reduces the size of debugging information,
  6923. with some potential loss in type information to the debugger.
  6924. See \fB\-femit\-struct\-debug\-baseonly\fR for a more aggressive option.
  6925. See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
  6926. .Sp
  6927. This option works only with \s-1DWARF\s0 debug output.
  6928. .IP "\fB\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]" 4
  6929. .IX Item "-femit-struct-debug-detailed[=spec-list]"
  6930. Specify the struct-like types
  6931. for which the compiler generates debug information.
  6932. The intent is to reduce duplicate struct debug information
  6933. between different object files within the same program.
  6934. .Sp
  6935. This option is a detailed version of
  6936. \&\fB\-femit\-struct\-debug\-reduced\fR and \fB\-femit\-struct\-debug\-baseonly\fR,
  6937. which serves for most needs.
  6938. .Sp
  6939. A specification has the syntax[\fBdir:\fR|\fBind:\fR][\fBord:\fR|\fBgen:\fR](\fBany\fR|\fBsys\fR|\fBbase\fR|\fBnone\fR)
  6940. .Sp
  6941. The optional first word limits the specification to
  6942. structs that are used directly (\fBdir:\fR) or used indirectly (\fBind:\fR).
  6943. A struct type is used directly when it is the type of a variable, member.
  6944. Indirect uses arise through pointers to structs.
  6945. That is, when use of an incomplete struct is valid, the use is indirect.
  6946. An example is
  6947. \&\fBstruct one direct; struct two * indirect;\fR.
  6948. .Sp
  6949. The optional second word limits the specification to
  6950. ordinary structs (\fBord:\fR) or generic structs (\fBgen:\fR).
  6951. Generic structs are a bit complicated to explain.
  6952. For \*(C+, these are non-explicit specializations of template classes,
  6953. or non-template classes within the above.
  6954. Other programming languages have generics,
  6955. but \fB\-femit\-struct\-debug\-detailed\fR does not yet implement them.
  6956. .Sp
  6957. The third word specifies the source files for those
  6958. structs for which the compiler should emit debug information.
  6959. The values \fBnone\fR and \fBany\fR have the normal meaning.
  6960. The value \fBbase\fR means that
  6961. the base of name of the file in which the type declaration appears
  6962. must match the base of the name of the main compilation file.
  6963. In practice, this means that when compiling \fIfoo.c\fR, debug information
  6964. is generated for types declared in that file and \fIfoo.h\fR,
  6965. but not other header files.
  6966. The value \fBsys\fR means those types satisfying \fBbase\fR
  6967. or declared in system or compiler headers.
  6968. .Sp
  6969. You may need to experiment to determine the best settings for your application.
  6970. .Sp
  6971. The default is \fB\-femit\-struct\-debug\-detailed=all\fR.
  6972. .Sp
  6973. This option works only with \s-1DWARF\s0 debug output.
  6974. .IP "\fB\-fno\-dwarf2\-cfi\-asm\fR" 4
  6975. .IX Item "-fno-dwarf2-cfi-asm"
  6976. Emit \s-1DWARF\s0 unwind info as compiler generated \f(CW\*(C`.eh_frame\*(C'\fR section
  6977. instead of using \s-1GAS\s0 \f(CW\*(C`.cfi_*\*(C'\fR directives.
  6978. .IP "\fB\-fno\-eliminate\-unused\-debug\-types\fR" 4
  6979. .IX Item "-fno-eliminate-unused-debug-types"
  6980. Normally, when producing \s-1DWARF\s0 output, \s-1GCC\s0 avoids producing debug symbol
  6981. output for types that are nowhere used in the source file being compiled.
  6982. Sometimes it is useful to have \s-1GCC\s0 emit debugging
  6983. information for all types declared in a compilation
  6984. unit, regardless of whether or not they are actually used
  6985. in that compilation unit, for example
  6986. if, in the debugger, you want to cast a value to a type that is
  6987. not actually used in your program (but is declared). More often,
  6988. however, this results in a significant amount of wasted space.
  6989. .SS "Options That Control Optimization"
  6990. .IX Subsection "Options That Control Optimization"
  6991. These options control various sorts of optimizations.
  6992. .PP
  6993. Without any optimization option, the compiler's goal is to reduce the
  6994. cost of compilation and to make debugging produce the expected
  6995. results. Statements are independent: if you stop the program with a
  6996. breakpoint between statements, you can then assign a new value to any
  6997. variable or change the program counter to any other statement in the
  6998. function and get exactly the results you expect from the source
  6999. code.
  7000. .PP
  7001. Turning on optimization flags makes the compiler attempt to improve
  7002. the performance and/or code size at the expense of compilation time
  7003. and possibly the ability to debug the program.
  7004. .PP
  7005. The compiler performs optimization based on the knowledge it has of the
  7006. program. Compiling multiple files at once to a single output file mode allows
  7007. the compiler to use information gained from all of the files when compiling
  7008. each of them.
  7009. .PP
  7010. Not all optimizations are controlled directly by a flag. Only
  7011. optimizations that have a flag are listed in this section.
  7012. .PP
  7013. Most optimizations are only enabled if an \fB\-O\fR level is set on
  7014. the command line. Otherwise they are disabled, even if individual
  7015. optimization flags are specified.
  7016. .PP
  7017. Depending on the target and how \s-1GCC\s0 was configured, a slightly different
  7018. set of optimizations may be enabled at each \fB\-O\fR level than
  7019. those listed here. You can invoke \s-1GCC\s0 with \fB\-Q \-\-help=optimizers\fR
  7020. to find out the exact set of optimizations that are enabled at each level.
  7021. .IP "\fB\-O\fR" 4
  7022. .IX Item "-O"
  7023. .PD 0
  7024. .IP "\fB\-O1\fR" 4
  7025. .IX Item "-O1"
  7026. .PD
  7027. Optimize. Optimizing compilation takes somewhat more time, and a lot
  7028. more memory for a large function.
  7029. .Sp
  7030. With \fB\-O\fR, the compiler tries to reduce code size and execution
  7031. time, without performing any optimizations that take a great deal of
  7032. compilation time.
  7033. .Sp
  7034. \&\fB\-O\fR turns on the following optimization flags:
  7035. .Sp
  7036. \&\fB\-fauto\-inc\-dec
  7037. \&\-fbranch\-count\-reg
  7038. \&\-fcombine\-stack\-adjustments
  7039. \&\-fcompare\-elim
  7040. \&\-fcprop\-registers
  7041. \&\-fdce
  7042. \&\-fdefer\-pop
  7043. \&\-fdelayed\-branch
  7044. \&\-fdse
  7045. \&\-fforward\-propagate
  7046. \&\-fguess\-branch\-probability
  7047. \&\-fif\-conversion2
  7048. \&\-fif\-conversion
  7049. \&\-finline\-functions\-called\-once
  7050. \&\-fipa\-pure\-const
  7051. \&\-fipa\-profile
  7052. \&\-fipa\-reference
  7053. \&\-fmerge\-constants
  7054. \&\-fmove\-loop\-invariants
  7055. \&\-fomit\-frame\-pointer
  7056. \&\-freorder\-blocks
  7057. \&\-fshrink\-wrap
  7058. \&\-fshrink\-wrap\-separate
  7059. \&\-fsplit\-wide\-types
  7060. \&\-fssa\-backprop
  7061. \&\-fssa\-phiopt
  7062. \&\-ftree\-bit\-ccp
  7063. \&\-ftree\-ccp
  7064. \&\-ftree\-ch
  7065. \&\-ftree\-coalesce\-vars
  7066. \&\-ftree\-copy\-prop
  7067. \&\-ftree\-dce
  7068. \&\-ftree\-dominator\-opts
  7069. \&\-ftree\-dse
  7070. \&\-ftree\-forwprop
  7071. \&\-ftree\-fre
  7072. \&\-ftree\-phiprop
  7073. \&\-ftree\-sink
  7074. \&\-ftree\-slsr
  7075. \&\-ftree\-sra
  7076. \&\-ftree\-pta
  7077. \&\-ftree\-ter
  7078. \&\-funit\-at\-a\-time\fR
  7079. .IP "\fB\-O2\fR" 4
  7080. .IX Item "-O2"
  7081. Optimize even more. \s-1GCC\s0 performs nearly all supported optimizations
  7082. that do not involve a space-speed tradeoff.
  7083. As compared to \fB\-O\fR, this option increases both compilation time
  7084. and the performance of the generated code.
  7085. .Sp
  7086. \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR. It
  7087. also turns on the following optimization flags:
  7088. \&\fB\-fthread\-jumps
  7089. \&\-falign\-functions \-falign\-jumps
  7090. \&\-falign\-loops \-falign\-labels
  7091. \&\-fcaller\-saves
  7092. \&\-fcrossjumping
  7093. \&\-fcse\-follow\-jumps \-fcse\-skip\-blocks
  7094. \&\-fdelete\-null\-pointer\-checks
  7095. \&\-fdevirtualize \-fdevirtualize\-speculatively
  7096. \&\-fexpensive\-optimizations
  7097. \&\-fgcse \-fgcse\-lm
  7098. \&\-fhoist\-adjacent\-loads
  7099. \&\-finline\-small\-functions
  7100. \&\-findirect\-inlining
  7101. \&\-fipa\-cp
  7102. \&\-fipa\-bit\-cp
  7103. \&\-fipa\-vrp
  7104. \&\-fipa\-sra
  7105. \&\-fipa\-icf
  7106. \&\-fisolate\-erroneous\-paths\-dereference
  7107. \&\-flra\-remat
  7108. \&\-foptimize\-sibling\-calls
  7109. \&\-foptimize\-strlen
  7110. \&\-fpartial\-inlining
  7111. \&\-fpeephole2
  7112. \&\-freorder\-blocks\-algorithm=stc
  7113. \&\-freorder\-blocks\-and\-partition \-freorder\-functions
  7114. \&\-frerun\-cse\-after\-loop
  7115. \&\-fsched\-interblock \-fsched\-spec
  7116. \&\-fschedule\-insns \-fschedule\-insns2
  7117. \&\-fstore\-merging
  7118. \&\-fstrict\-aliasing
  7119. \&\-ftree\-builtin\-call\-dce
  7120. \&\-ftree\-switch\-conversion \-ftree\-tail\-merge
  7121. \&\-fcode\-hoisting
  7122. \&\-ftree\-pre
  7123. \&\-ftree\-vrp
  7124. \&\-fipa\-ra\fR
  7125. .Sp
  7126. Please note the warning under \fB\-fgcse\fR about
  7127. invoking \fB\-O2\fR on programs that use computed gotos.
  7128. .IP "\fB\-O3\fR" 4
  7129. .IX Item "-O3"
  7130. Optimize yet more. \fB\-O3\fR turns on all optimizations specified
  7131. by \fB\-O2\fR and also turns on the following optimization flags:
  7132. \&\fB\-finline\-functions
  7133. \&\-funswitch\-loops
  7134. \&\-fpredictive\-commoning
  7135. \&\-fgcse\-after\-reload
  7136. \&\-ftree\-loop\-vectorize
  7137. \&\-ftree\-loop\-distribution
  7138. \&\-ftree\-loop\-distribute\-patterns
  7139. \&\-floop\-interchange
  7140. \&\-floop\-unroll\-and\-jam
  7141. \&\-fsplit\-paths
  7142. \&\-ftree\-slp\-vectorize
  7143. \&\-fvect\-cost\-model
  7144. \&\-ftree\-partial\-pre
  7145. \&\-fpeel\-loops
  7146. \&\-fipa\-cp\-clone\fR
  7147. .IP "\fB\-O0\fR" 4
  7148. .IX Item "-O0"
  7149. Reduce compilation time and make debugging produce the expected
  7150. results. This is the default.
  7151. .IP "\fB\-Os\fR" 4
  7152. .IX Item "-Os"
  7153. Optimize for size. \fB\-Os\fR enables all \fB\-O2\fR optimizations that
  7154. do not typically increase code size.
  7155. .Sp
  7156. \&\fB\-Os\fR disables the following optimization flags:
  7157. \&\fB\-falign\-functions \-falign\-jumps \-falign\-loops
  7158. \&\-falign\-labels \-freorder\-blocks \-freorder\-blocks\-algorithm=stc
  7159. \&\-freorder\-blocks\-and\-partition \-fprefetch\-loop\-arrays\fR
  7160. .Sp
  7161. It also enables \fB\-finline\-functions\fR, causes the compiler to tune for
  7162. code size rather than execution speed, and performs further optimizations
  7163. designed to reduce code size.
  7164. .IP "\fB\-Ofast\fR" 4
  7165. .IX Item "-Ofast"
  7166. Disregard strict standards compliance. \fB\-Ofast\fR enables all
  7167. \&\fB\-O3\fR optimizations. It also enables optimizations that are not
  7168. valid for all standard-compliant programs.
  7169. It turns on \fB\-ffast\-math\fR and the Fortran-specific
  7170. \&\fB\-fstack\-arrays\fR, unless \fB\-fmax\-stack\-var\-size\fR is
  7171. specified, and \fB\-fno\-protect\-parens\fR.
  7172. .IP "\fB\-Og\fR" 4
  7173. .IX Item "-Og"
  7174. Optimize debugging experience. \fB\-Og\fR enables optimizations
  7175. that do not interfere with debugging. It should be the optimization
  7176. level of choice for the standard edit-compile-debug cycle, offering
  7177. a reasonable level of optimization while maintaining fast compilation
  7178. and a good debugging experience.
  7179. .PP
  7180. If you use multiple \fB\-O\fR options, with or without level numbers,
  7181. the last such option is the one that is effective.
  7182. .PP
  7183. Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
  7184. flags. Most flags have both positive and negative forms; the negative
  7185. form of \fB\-ffoo\fR is \fB\-fno\-foo\fR. In the table
  7186. below, only one of the forms is listed\-\-\-the one you typically
  7187. use. You can figure out the other form by either removing \fBno\-\fR
  7188. or adding it.
  7189. .PP
  7190. The following options control specific optimizations. They are either
  7191. activated by \fB\-O\fR options or are related to ones that are. You
  7192. can use the following flags in the rare cases when \*(L"fine-tuning\*(R" of
  7193. optimizations to be performed is desired.
  7194. .IP "\fB\-fno\-defer\-pop\fR" 4
  7195. .IX Item "-fno-defer-pop"
  7196. Always pop the arguments to each function call as soon as that function
  7197. returns. For machines that must pop arguments after a function call,
  7198. the compiler normally lets arguments accumulate on the stack for several
  7199. function calls and pops them all at once.
  7200. .Sp
  7201. Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7202. .IP "\fB\-fforward\-propagate\fR" 4
  7203. .IX Item "-fforward-propagate"
  7204. Perform a forward propagation pass on \s-1RTL.\s0 The pass tries to combine two
  7205. instructions and checks if the result can be simplified. If loop unrolling
  7206. is active, two passes are performed and the second is scheduled after
  7207. loop unrolling.
  7208. .Sp
  7209. This option is enabled by default at optimization levels \fB\-O\fR,
  7210. \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7211. .IP "\fB\-ffp\-contract=\fR\fIstyle\fR" 4
  7212. .IX Item "-ffp-contract=style"
  7213. \&\fB\-ffp\-contract=off\fR disables floating-point expression contraction.
  7214. \&\fB\-ffp\-contract=fast\fR enables floating-point expression contraction
  7215. such as forming of fused multiply-add operations if the target has
  7216. native support for them.
  7217. \&\fB\-ffp\-contract=on\fR enables floating-point expression contraction
  7218. if allowed by the language standard. This is currently not implemented
  7219. and treated equal to \fB\-ffp\-contract=off\fR.
  7220. .Sp
  7221. The default is \fB\-ffp\-contract=fast\fR.
  7222. .IP "\fB\-fomit\-frame\-pointer\fR" 4
  7223. .IX Item "-fomit-frame-pointer"
  7224. Omit the frame pointer in functions that don't need one. This avoids the
  7225. instructions to save, set up and restore the frame pointer; on many targets
  7226. it also makes an extra register available.
  7227. .Sp
  7228. On some targets this flag has no effect because the standard calling sequence
  7229. always uses a frame pointer, so it cannot be omitted.
  7230. .Sp
  7231. Note that \fB\-fno\-omit\-frame\-pointer\fR doesn't guarantee the frame pointer
  7232. is used in all functions. Several targets always omit the frame pointer in
  7233. leaf functions.
  7234. .Sp
  7235. Enabled by default at \fB\-O\fR and higher.
  7236. .IP "\fB\-foptimize\-sibling\-calls\fR" 4
  7237. .IX Item "-foptimize-sibling-calls"
  7238. Optimize sibling and tail recursive calls.
  7239. .Sp
  7240. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7241. .IP "\fB\-foptimize\-strlen\fR" 4
  7242. .IX Item "-foptimize-strlen"
  7243. Optimize various standard C string functions (e.g. \f(CW\*(C`strlen\*(C'\fR,
  7244. \&\f(CW\*(C`strchr\*(C'\fR or \f(CW\*(C`strcpy\*(C'\fR) and
  7245. their \f(CW\*(C`_FORTIFY_SOURCE\*(C'\fR counterparts into faster alternatives.
  7246. .Sp
  7247. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  7248. .IP "\fB\-fno\-inline\fR" 4
  7249. .IX Item "-fno-inline"
  7250. Do not expand any functions inline apart from those marked with
  7251. the \f(CW\*(C`always_inline\*(C'\fR attribute. This is the default when not
  7252. optimizing.
  7253. .Sp
  7254. Single functions can be exempted from inlining by marking them
  7255. with the \f(CW\*(C`noinline\*(C'\fR attribute.
  7256. .IP "\fB\-finline\-small\-functions\fR" 4
  7257. .IX Item "-finline-small-functions"
  7258. Integrate functions into their callers when their body is smaller than expected
  7259. function call code (so overall size of program gets smaller). The compiler
  7260. heuristically decides which functions are simple enough to be worth integrating
  7261. in this way. This inlining applies to all functions, even those not declared
  7262. inline.
  7263. .Sp
  7264. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7265. .IP "\fB\-findirect\-inlining\fR" 4
  7266. .IX Item "-findirect-inlining"
  7267. Inline also indirect calls that are discovered to be known at compile
  7268. time thanks to previous inlining. This option has any effect only
  7269. when inlining itself is turned on by the \fB\-finline\-functions\fR
  7270. or \fB\-finline\-small\-functions\fR options.
  7271. .Sp
  7272. Enabled at levels \fB\-O3\fR, \fB\-Os\fR. Also enabled
  7273. by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  7274. .IP "\fB\-finline\-functions\fR" 4
  7275. .IX Item "-finline-functions"
  7276. Consider all functions for inlining, even if they are not declared inline.
  7277. The compiler heuristically decides which functions are worth integrating
  7278. in this way.
  7279. .Sp
  7280. If all calls to a given function are integrated, and the function is
  7281. declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
  7282. assembler code in its own right.
  7283. .Sp
  7284. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7285. .IP "\fB\-finline\-functions\-called\-once\fR" 4
  7286. .IX Item "-finline-functions-called-once"
  7287. Consider all \f(CW\*(C`static\*(C'\fR functions called once for inlining into their
  7288. caller even if they are not marked \f(CW\*(C`inline\*(C'\fR. If a call to a given
  7289. function is integrated, then the function is not output as assembler code
  7290. in its own right.
  7291. .Sp
  7292. Enabled at levels \fB\-O1\fR, \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
  7293. .IP "\fB\-fearly\-inlining\fR" 4
  7294. .IX Item "-fearly-inlining"
  7295. Inline functions marked by \f(CW\*(C`always_inline\*(C'\fR and functions whose body seems
  7296. smaller than the function call overhead early before doing
  7297. \&\fB\-fprofile\-generate\fR instrumentation and real inlining pass. Doing so
  7298. makes profiling significantly cheaper and usually inlining faster on programs
  7299. having large chains of nested wrapper functions.
  7300. .Sp
  7301. Enabled by default.
  7302. .IP "\fB\-fipa\-sra\fR" 4
  7303. .IX Item "-fipa-sra"
  7304. Perform interprocedural scalar replacement of aggregates, removal of
  7305. unused parameters and replacement of parameters passed by reference
  7306. by parameters passed by value.
  7307. .Sp
  7308. Enabled at levels \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
  7309. .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
  7310. .IX Item "-finline-limit=n"
  7311. By default, \s-1GCC\s0 limits the size of functions that can be inlined. This flag
  7312. allows coarse control of this limit. \fIn\fR is the size of functions that
  7313. can be inlined in number of pseudo instructions.
  7314. .Sp
  7315. Inlining is actually controlled by a number of parameters, which may be
  7316. specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
  7317. The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
  7318. as follows:
  7319. .RS 4
  7320. .IP "\fBmax-inline-insns-single\fR" 4
  7321. .IX Item "max-inline-insns-single"
  7322. is set to \fIn\fR/2.
  7323. .IP "\fBmax-inline-insns-auto\fR" 4
  7324. .IX Item "max-inline-insns-auto"
  7325. is set to \fIn\fR/2.
  7326. .RE
  7327. .RS 4
  7328. .Sp
  7329. See below for a documentation of the individual
  7330. parameters controlling inlining and for the defaults of these parameters.
  7331. .Sp
  7332. \&\fINote:\fR there may be no value to \fB\-finline\-limit\fR that results
  7333. in default behavior.
  7334. .Sp
  7335. \&\fINote:\fR pseudo instruction represents, in this particular context, an
  7336. abstract measurement of function's size. In no way does it represent a count
  7337. of assembly instructions and as such its exact meaning might change from one
  7338. release to an another.
  7339. .RE
  7340. .IP "\fB\-fno\-keep\-inline\-dllexport\fR" 4
  7341. .IX Item "-fno-keep-inline-dllexport"
  7342. This is a more fine-grained version of \fB\-fkeep\-inline\-functions\fR,
  7343. which applies only to functions that are declared using the \f(CW\*(C`dllexport\*(C'\fR
  7344. attribute or declspec.
  7345. .IP "\fB\-fkeep\-inline\-functions\fR" 4
  7346. .IX Item "-fkeep-inline-functions"
  7347. In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
  7348. into the object file, even if the function has been inlined into all
  7349. of its callers. This switch does not affect functions using the
  7350. \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU C90.\s0 In \*(C+, emit any and all
  7351. inline functions into the object file.
  7352. .IP "\fB\-fkeep\-static\-functions\fR" 4
  7353. .IX Item "-fkeep-static-functions"
  7354. Emit \f(CW\*(C`static\*(C'\fR functions into the object file, even if the function
  7355. is never used.
  7356. .IP "\fB\-fkeep\-static\-consts\fR" 4
  7357. .IX Item "-fkeep-static-consts"
  7358. Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
  7359. on, even if the variables aren't referenced.
  7360. .Sp
  7361. \&\s-1GCC\s0 enables this option by default. If you want to force the compiler to
  7362. check if a variable is referenced, regardless of whether or not
  7363. optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
  7364. .IP "\fB\-fmerge\-constants\fR" 4
  7365. .IX Item "-fmerge-constants"
  7366. Attempt to merge identical constants (string constants and floating-point
  7367. constants) across compilation units.
  7368. .Sp
  7369. This option is the default for optimized compilation if the assembler and
  7370. linker support it. Use \fB\-fno\-merge\-constants\fR to inhibit this
  7371. behavior.
  7372. .Sp
  7373. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7374. .IP "\fB\-fmerge\-all\-constants\fR" 4
  7375. .IX Item "-fmerge-all-constants"
  7376. Attempt to merge identical constants and identical variables.
  7377. .Sp
  7378. This option implies \fB\-fmerge\-constants\fR. In addition to
  7379. \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
  7380. arrays or initialized constant variables with integral or floating-point
  7381. types. Languages like C or \*(C+ require each variable, including multiple
  7382. instances of the same variable in recursive calls, to have distinct locations,
  7383. so using this option results in non-conforming
  7384. behavior.
  7385. .IP "\fB\-fmodulo\-sched\fR" 4
  7386. .IX Item "-fmodulo-sched"
  7387. Perform swing modulo scheduling immediately before the first scheduling
  7388. pass. This pass looks at innermost loops and reorders their
  7389. instructions by overlapping different iterations.
  7390. .IP "\fB\-fmodulo\-sched\-allow\-regmoves\fR" 4
  7391. .IX Item "-fmodulo-sched-allow-regmoves"
  7392. Perform more aggressive SMS-based modulo scheduling with register moves
  7393. allowed. By setting this flag certain anti-dependences edges are
  7394. deleted, which triggers the generation of reg-moves based on the
  7395. life-range analysis. This option is effective only with
  7396. \&\fB\-fmodulo\-sched\fR enabled.
  7397. .IP "\fB\-fno\-branch\-count\-reg\fR" 4
  7398. .IX Item "-fno-branch-count-reg"
  7399. Avoid running a pass scanning for opportunities to use \*(L"decrement and
  7400. branch\*(R" instructions on a count register instead of generating sequences
  7401. of instructions that decrement a register, compare it against zero, and
  7402. then branch based upon the result. This option is only meaningful on
  7403. architectures that support such instructions, which include x86, PowerPC,
  7404. \&\s-1IA\-64\s0 and S/390. Note that the \fB\-fno\-branch\-count\-reg\fR option
  7405. doesn't remove the decrement and branch instructions from the generated
  7406. instruction stream introduced by other optimization passes.
  7407. .Sp
  7408. Enabled by default at \fB\-O1\fR and higher.
  7409. .Sp
  7410. The default is \fB\-fbranch\-count\-reg\fR.
  7411. .IP "\fB\-fno\-function\-cse\fR" 4
  7412. .IX Item "-fno-function-cse"
  7413. Do not put function addresses in registers; make each instruction that
  7414. calls a constant function contain the function's address explicitly.
  7415. .Sp
  7416. This option results in less efficient code, but some strange hacks
  7417. that alter the assembler output may be confused by the optimizations
  7418. performed when this option is not used.
  7419. .Sp
  7420. The default is \fB\-ffunction\-cse\fR
  7421. .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
  7422. .IX Item "-fno-zero-initialized-in-bss"
  7423. If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
  7424. are initialized to zero into \s-1BSS.\s0 This can save space in the resulting
  7425. code.
  7426. .Sp
  7427. This option turns off this behavior because some programs explicitly
  7428. rely on variables going to the data section\-\-\-e.g., so that the
  7429. resulting executable can find the beginning of that section and/or make
  7430. assumptions based on that.
  7431. .Sp
  7432. The default is \fB\-fzero\-initialized\-in\-bss\fR.
  7433. .IP "\fB\-fthread\-jumps\fR" 4
  7434. .IX Item "-fthread-jumps"
  7435. Perform optimizations that check to see if a jump branches to a
  7436. location where another comparison subsumed by the first is found. If
  7437. so, the first branch is redirected to either the destination of the
  7438. second branch or a point immediately following it, depending on whether
  7439. the condition is known to be true or false.
  7440. .Sp
  7441. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7442. .IP "\fB\-fsplit\-wide\-types\fR" 4
  7443. .IX Item "-fsplit-wide-types"
  7444. When using a type that occupies multiple registers, such as \f(CW\*(C`long
  7445. long\*(C'\fR on a 32\-bit system, split the registers apart and allocate them
  7446. independently. This normally generates better code for those types,
  7447. but may make debugging more difficult.
  7448. .Sp
  7449. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR,
  7450. \&\fB\-Os\fR.
  7451. .IP "\fB\-fcse\-follow\-jumps\fR" 4
  7452. .IX Item "-fcse-follow-jumps"
  7453. In common subexpression elimination (\s-1CSE\s0), scan through jump instructions
  7454. when the target of the jump is not reached by any other path. For
  7455. example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
  7456. \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 follows the jump when the condition
  7457. tested is false.
  7458. .Sp
  7459. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7460. .IP "\fB\-fcse\-skip\-blocks\fR" 4
  7461. .IX Item "-fcse-skip-blocks"
  7462. This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
  7463. follow jumps that conditionally skip over blocks. When \s-1CSE\s0
  7464. encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
  7465. \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
  7466. body of the \f(CW\*(C`if\*(C'\fR.
  7467. .Sp
  7468. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7469. .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
  7470. .IX Item "-frerun-cse-after-loop"
  7471. Re-run common subexpression elimination after loop optimizations are
  7472. performed.
  7473. .Sp
  7474. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7475. .IP "\fB\-fgcse\fR" 4
  7476. .IX Item "-fgcse"
  7477. Perform a global common subexpression elimination pass.
  7478. This pass also performs global constant and copy propagation.
  7479. .Sp
  7480. \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
  7481. extension, you may get better run-time performance if you disable
  7482. the global common subexpression elimination pass by adding
  7483. \&\fB\-fno\-gcse\fR to the command line.
  7484. .Sp
  7485. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7486. .IP "\fB\-fgcse\-lm\fR" 4
  7487. .IX Item "-fgcse-lm"
  7488. When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination
  7489. attempts to move loads that are only killed by stores into themselves. This
  7490. allows a loop containing a load/store sequence to be changed to a load outside
  7491. the loop, and a copy/store within the loop.
  7492. .Sp
  7493. Enabled by default when \fB\-fgcse\fR is enabled.
  7494. .IP "\fB\-fgcse\-sm\fR" 4
  7495. .IX Item "-fgcse-sm"
  7496. When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
  7497. global common subexpression elimination. This pass attempts to move
  7498. stores out of loops. When used in conjunction with \fB\-fgcse\-lm\fR,
  7499. loops containing a load/store sequence can be changed to a load before
  7500. the loop and a store after the loop.
  7501. .Sp
  7502. Not enabled at any optimization level.
  7503. .IP "\fB\-fgcse\-las\fR" 4
  7504. .IX Item "-fgcse-las"
  7505. When \fB\-fgcse\-las\fR is enabled, the global common subexpression
  7506. elimination pass eliminates redundant loads that come after stores to the
  7507. same memory location (both partial and full redundancies).
  7508. .Sp
  7509. Not enabled at any optimization level.
  7510. .IP "\fB\-fgcse\-after\-reload\fR" 4
  7511. .IX Item "-fgcse-after-reload"
  7512. When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
  7513. pass is performed after reload. The purpose of this pass is to clean up
  7514. redundant spilling.
  7515. .IP "\fB\-faggressive\-loop\-optimizations\fR" 4
  7516. .IX Item "-faggressive-loop-optimizations"
  7517. This option tells the loop optimizer to use language constraints to
  7518. derive bounds for the number of iterations of a loop. This assumes that
  7519. loop code does not invoke undefined behavior by for example causing signed
  7520. integer overflows or out-of-bound array accesses. The bounds for the
  7521. number of iterations of a loop are used to guide loop unrolling and peeling
  7522. and loop exit test optimizations.
  7523. This option is enabled by default.
  7524. .IP "\fB\-funconstrained\-commons\fR" 4
  7525. .IX Item "-funconstrained-commons"
  7526. This option tells the compiler that variables declared in common blocks
  7527. (e.g. Fortran) may later be overridden with longer trailing arrays. This
  7528. prevents certain optimizations that depend on knowing the array bounds.
  7529. .IP "\fB\-fcrossjumping\fR" 4
  7530. .IX Item "-fcrossjumping"
  7531. Perform cross-jumping transformation.
  7532. This transformation unifies equivalent code and saves code size. The
  7533. resulting code may or may not perform better than without cross-jumping.
  7534. .Sp
  7535. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7536. .IP "\fB\-fauto\-inc\-dec\fR" 4
  7537. .IX Item "-fauto-inc-dec"
  7538. Combine increments or decrements of addresses with memory accesses.
  7539. This pass is always skipped on architectures that do not have
  7540. instructions to support this. Enabled by default at \fB\-O\fR and
  7541. higher on architectures that support this.
  7542. .IP "\fB\-fdce\fR" 4
  7543. .IX Item "-fdce"
  7544. Perform dead code elimination (\s-1DCE\s0) on \s-1RTL.\s0
  7545. Enabled by default at \fB\-O\fR and higher.
  7546. .IP "\fB\-fdse\fR" 4
  7547. .IX Item "-fdse"
  7548. Perform dead store elimination (\s-1DSE\s0) on \s-1RTL.\s0
  7549. Enabled by default at \fB\-O\fR and higher.
  7550. .IP "\fB\-fif\-conversion\fR" 4
  7551. .IX Item "-fif-conversion"
  7552. Attempt to transform conditional jumps into branch-less equivalents. This
  7553. includes use of conditional moves, min, max, set flags and abs instructions, and
  7554. some tricks doable by standard arithmetics. The use of conditional execution
  7555. on chips where it is available is controlled by \fB\-fif\-conversion2\fR.
  7556. .Sp
  7557. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7558. .IP "\fB\-fif\-conversion2\fR" 4
  7559. .IX Item "-fif-conversion2"
  7560. Use conditional execution (where available) to transform conditional jumps into
  7561. branch-less equivalents.
  7562. .Sp
  7563. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7564. .IP "\fB\-fdeclone\-ctor\-dtor\fR" 4
  7565. .IX Item "-fdeclone-ctor-dtor"
  7566. The \*(C+ \s-1ABI\s0 requires multiple entry points for constructors and
  7567. destructors: one for a base subobject, one for a complete object, and
  7568. one for a virtual destructor that calls operator delete afterwards.
  7569. For a hierarchy with virtual bases, the base and complete variants are
  7570. clones, which means two copies of the function. With this option, the
  7571. base and complete variants are changed to be thunks that call a common
  7572. implementation.
  7573. .Sp
  7574. Enabled by \fB\-Os\fR.
  7575. .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
  7576. .IX Item "-fdelete-null-pointer-checks"
  7577. Assume that programs cannot safely dereference null pointers, and that
  7578. no code or data element resides at address zero.
  7579. This option enables simple constant
  7580. folding optimizations at all optimization levels. In addition, other
  7581. optimization passes in \s-1GCC\s0 use this flag to control global dataflow
  7582. analyses that eliminate useless checks for null pointers; these assume
  7583. that a memory access to address zero always results in a trap, so
  7584. that if a pointer is checked after it has already been dereferenced,
  7585. it cannot be null.
  7586. .Sp
  7587. Note however that in some environments this assumption is not true.
  7588. Use \fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
  7589. for programs that depend on that behavior.
  7590. .Sp
  7591. This option is enabled by default on most targets. On Nios \s-1II ELF,\s0 it
  7592. defaults to off. On \s-1AVR, CR16,\s0 and \s-1MSP430,\s0 this option is completely disabled.
  7593. .Sp
  7594. Passes that use the dataflow information
  7595. are enabled independently at different optimization levels.
  7596. .IP "\fB\-fdevirtualize\fR" 4
  7597. .IX Item "-fdevirtualize"
  7598. Attempt to convert calls to virtual functions to direct calls. This
  7599. is done both within a procedure and interprocedurally as part of
  7600. indirect inlining (\fB\-findirect\-inlining\fR) and interprocedural constant
  7601. propagation (\fB\-fipa\-cp\fR).
  7602. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7603. .IP "\fB\-fdevirtualize\-speculatively\fR" 4
  7604. .IX Item "-fdevirtualize-speculatively"
  7605. Attempt to convert calls to virtual functions to speculative direct calls.
  7606. Based on the analysis of the type inheritance graph, determine for a given call
  7607. the set of likely targets. If the set is small, preferably of size 1, change
  7608. the call into a conditional deciding between direct and indirect calls. The
  7609. speculative calls enable more optimizations, such as inlining. When they seem
  7610. useless after further optimization, they are converted back into original form.
  7611. .IP "\fB\-fdevirtualize\-at\-ltrans\fR" 4
  7612. .IX Item "-fdevirtualize-at-ltrans"
  7613. Stream extra information needed for aggressive devirtualization when running
  7614. the link-time optimizer in local transformation mode.
  7615. This option enables more devirtualization but
  7616. significantly increases the size of streamed data. For this reason it is
  7617. disabled by default.
  7618. .IP "\fB\-fexpensive\-optimizations\fR" 4
  7619. .IX Item "-fexpensive-optimizations"
  7620. Perform a number of minor optimizations that are relatively expensive.
  7621. .Sp
  7622. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7623. .IP "\fB\-free\fR" 4
  7624. .IX Item "-free"
  7625. Attempt to remove redundant extension instructions. This is especially
  7626. helpful for the x86\-64 architecture, which implicitly zero-extends in 64\-bit
  7627. registers after writing to their lower 32\-bit half.
  7628. .Sp
  7629. Enabled for Alpha, AArch64 and x86 at levels \fB\-O2\fR,
  7630. \&\fB\-O3\fR, \fB\-Os\fR.
  7631. .IP "\fB\-fno\-lifetime\-dse\fR" 4
  7632. .IX Item "-fno-lifetime-dse"
  7633. In \*(C+ the value of an object is only affected by changes within its
  7634. lifetime: when the constructor begins, the object has an indeterminate
  7635. value, and any changes during the lifetime of the object are dead when
  7636. the object is destroyed. Normally dead store elimination will take
  7637. advantage of this; if your code relies on the value of the object
  7638. storage persisting beyond the lifetime of the object, you can use this
  7639. flag to disable this optimization. To preserve stores before the
  7640. constructor starts (e.g. because your operator new clears the object
  7641. storage) but still treat the object as dead after the destructor you,
  7642. can use \fB\-flifetime\-dse=1\fR. The default behavior can be
  7643. explicitly selected with \fB\-flifetime\-dse=2\fR.
  7644. \&\fB\-flifetime\-dse=0\fR is equivalent to \fB\-fno\-lifetime\-dse\fR.
  7645. .IP "\fB\-flive\-range\-shrinkage\fR" 4
  7646. .IX Item "-flive-range-shrinkage"
  7647. Attempt to decrease register pressure through register live range
  7648. shrinkage. This is helpful for fast processors with small or moderate
  7649. size register sets.
  7650. .IP "\fB\-fira\-algorithm=\fR\fIalgorithm\fR" 4
  7651. .IX Item "-fira-algorithm=algorithm"
  7652. Use the specified coloring algorithm for the integrated register
  7653. allocator. The \fIalgorithm\fR argument can be \fBpriority\fR, which
  7654. specifies Chow's priority coloring, or \fB\s-1CB\s0\fR, which specifies
  7655. Chaitin-Briggs coloring. Chaitin-Briggs coloring is not implemented
  7656. for all architectures, but for those targets that do support it, it is
  7657. the default because it generates better code.
  7658. .IP "\fB\-fira\-region=\fR\fIregion\fR" 4
  7659. .IX Item "-fira-region=region"
  7660. Use specified regions for the integrated register allocator. The
  7661. \&\fIregion\fR argument should be one of the following:
  7662. .RS 4
  7663. .IP "\fBall\fR" 4
  7664. .IX Item "all"
  7665. Use all loops as register allocation regions.
  7666. This can give the best results for machines with a small and/or
  7667. irregular register set.
  7668. .IP "\fBmixed\fR" 4
  7669. .IX Item "mixed"
  7670. Use all loops except for loops with small register pressure
  7671. as the regions. This value usually gives
  7672. the best results in most cases and for most architectures,
  7673. and is enabled by default when compiling with optimization for speed
  7674. (\fB\-O\fR, \fB\-O2\fR, ...).
  7675. .IP "\fBone\fR" 4
  7676. .IX Item "one"
  7677. Use all functions as a single region.
  7678. This typically results in the smallest code size, and is enabled by default for
  7679. \&\fB\-Os\fR or \fB\-O0\fR.
  7680. .RE
  7681. .RS 4
  7682. .RE
  7683. .IP "\fB\-fira\-hoist\-pressure\fR" 4
  7684. .IX Item "-fira-hoist-pressure"
  7685. Use \s-1IRA\s0 to evaluate register pressure in the code hoisting pass for
  7686. decisions to hoist expressions. This option usually results in smaller
  7687. code, but it can slow the compiler down.
  7688. .Sp
  7689. This option is enabled at level \fB\-Os\fR for all targets.
  7690. .IP "\fB\-fira\-loop\-pressure\fR" 4
  7691. .IX Item "-fira-loop-pressure"
  7692. Use \s-1IRA\s0 to evaluate register pressure in loops for decisions to move
  7693. loop invariants. This option usually results in generation
  7694. of faster and smaller code on machines with large register files (>= 32
  7695. registers), but it can slow the compiler down.
  7696. .Sp
  7697. This option is enabled at level \fB\-O3\fR for some targets.
  7698. .IP "\fB\-fno\-ira\-share\-save\-slots\fR" 4
  7699. .IX Item "-fno-ira-share-save-slots"
  7700. Disable sharing of stack slots used for saving call-used hard
  7701. registers living through a call. Each hard register gets a
  7702. separate stack slot, and as a result function stack frames are
  7703. larger.
  7704. .IP "\fB\-fno\-ira\-share\-spill\-slots\fR" 4
  7705. .IX Item "-fno-ira-share-spill-slots"
  7706. Disable sharing of stack slots allocated for pseudo-registers. Each
  7707. pseudo-register that does not get a hard register gets a separate
  7708. stack slot, and as a result function stack frames are larger.
  7709. .IP "\fB\-flra\-remat\fR" 4
  7710. .IX Item "-flra-remat"
  7711. Enable CFG-sensitive rematerialization in \s-1LRA.\s0 Instead of loading
  7712. values of spilled pseudos, \s-1LRA\s0 tries to rematerialize (recalculate)
  7713. values if it is profitable.
  7714. .Sp
  7715. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7716. .IP "\fB\-fdelayed\-branch\fR" 4
  7717. .IX Item "-fdelayed-branch"
  7718. If supported for the target machine, attempt to reorder instructions
  7719. to exploit instruction slots available after delayed branch
  7720. instructions.
  7721. .Sp
  7722. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7723. .IP "\fB\-fschedule\-insns\fR" 4
  7724. .IX Item "-fschedule-insns"
  7725. If supported for the target machine, attempt to reorder instructions to
  7726. eliminate execution stalls due to required data being unavailable. This
  7727. helps machines that have slow floating point or memory load instructions
  7728. by allowing other instructions to be issued until the result of the load
  7729. or floating-point instruction is required.
  7730. .Sp
  7731. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  7732. .IP "\fB\-fschedule\-insns2\fR" 4
  7733. .IX Item "-fschedule-insns2"
  7734. Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
  7735. instruction scheduling after register allocation has been done. This is
  7736. especially useful on machines with a relatively small number of
  7737. registers and where memory load instructions take more than one cycle.
  7738. .Sp
  7739. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7740. .IP "\fB\-fno\-sched\-interblock\fR" 4
  7741. .IX Item "-fno-sched-interblock"
  7742. Don't schedule instructions across basic blocks. This is normally
  7743. enabled by default when scheduling before register allocation, i.e.
  7744. with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
  7745. .IP "\fB\-fno\-sched\-spec\fR" 4
  7746. .IX Item "-fno-sched-spec"
  7747. Don't allow speculative motion of non-load instructions. This is normally
  7748. enabled by default when scheduling before register allocation, i.e.
  7749. with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
  7750. .IP "\fB\-fsched\-pressure\fR" 4
  7751. .IX Item "-fsched-pressure"
  7752. Enable register pressure sensitive insn scheduling before register
  7753. allocation. This only makes sense when scheduling before register
  7754. allocation is enabled, i.e. with \fB\-fschedule\-insns\fR or at
  7755. \&\fB\-O2\fR or higher. Usage of this option can improve the
  7756. generated code and decrease its size by preventing register pressure
  7757. increase above the number of available hard registers and subsequent
  7758. spills in register allocation.
  7759. .IP "\fB\-fsched\-spec\-load\fR" 4
  7760. .IX Item "-fsched-spec-load"
  7761. Allow speculative motion of some load instructions. This only makes
  7762. sense when scheduling before register allocation, i.e. with
  7763. \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
  7764. .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
  7765. .IX Item "-fsched-spec-load-dangerous"
  7766. Allow speculative motion of more load instructions. This only makes
  7767. sense when scheduling before register allocation, i.e. with
  7768. \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
  7769. .IP "\fB\-fsched\-stalled\-insns\fR" 4
  7770. .IX Item "-fsched-stalled-insns"
  7771. .PD 0
  7772. .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
  7773. .IX Item "-fsched-stalled-insns=n"
  7774. .PD
  7775. Define how many insns (if any) can be moved prematurely from the queue
  7776. of stalled insns into the ready list during the second scheduling pass.
  7777. \&\fB\-fno\-sched\-stalled\-insns\fR means that no insns are moved
  7778. prematurely, \fB\-fsched\-stalled\-insns=0\fR means there is no limit
  7779. on how many queued insns can be moved prematurely.
  7780. \&\fB\-fsched\-stalled\-insns\fR without a value is equivalent to
  7781. \&\fB\-fsched\-stalled\-insns=1\fR.
  7782. .IP "\fB\-fsched\-stalled\-insns\-dep\fR" 4
  7783. .IX Item "-fsched-stalled-insns-dep"
  7784. .PD 0
  7785. .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
  7786. .IX Item "-fsched-stalled-insns-dep=n"
  7787. .PD
  7788. Define how many insn groups (cycles) are examined for a dependency
  7789. on a stalled insn that is a candidate for premature removal from the queue
  7790. of stalled insns. This has an effect only during the second scheduling pass,
  7791. and only if \fB\-fsched\-stalled\-insns\fR is used.
  7792. \&\fB\-fno\-sched\-stalled\-insns\-dep\fR is equivalent to
  7793. \&\fB\-fsched\-stalled\-insns\-dep=0\fR.
  7794. \&\fB\-fsched\-stalled\-insns\-dep\fR without a value is equivalent to
  7795. \&\fB\-fsched\-stalled\-insns\-dep=1\fR.
  7796. .IP "\fB\-fsched2\-use\-superblocks\fR" 4
  7797. .IX Item "-fsched2-use-superblocks"
  7798. When scheduling after register allocation, use superblock scheduling.
  7799. This allows motion across basic block boundaries,
  7800. resulting in faster schedules. This option is experimental, as not all machine
  7801. descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
  7802. results from the algorithm.
  7803. .Sp
  7804. This only makes sense when scheduling after register allocation, i.e. with
  7805. \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
  7806. .IP "\fB\-fsched\-group\-heuristic\fR" 4
  7807. .IX Item "-fsched-group-heuristic"
  7808. Enable the group heuristic in the scheduler. This heuristic favors
  7809. the instruction that belongs to a schedule group. This is enabled
  7810. by default when scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
  7811. or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
  7812. .IP "\fB\-fsched\-critical\-path\-heuristic\fR" 4
  7813. .IX Item "-fsched-critical-path-heuristic"
  7814. Enable the critical-path heuristic in the scheduler. This heuristic favors
  7815. instructions on the critical path. This is enabled by default when
  7816. scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
  7817. or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
  7818. .IP "\fB\-fsched\-spec\-insn\-heuristic\fR" 4
  7819. .IX Item "-fsched-spec-insn-heuristic"
  7820. Enable the speculative instruction heuristic in the scheduler. This
  7821. heuristic favors speculative instructions with greater dependency weakness.
  7822. This is enabled by default when scheduling is enabled, i.e.
  7823. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR
  7824. or at \fB\-O2\fR or higher.
  7825. .IP "\fB\-fsched\-rank\-heuristic\fR" 4
  7826. .IX Item "-fsched-rank-heuristic"
  7827. Enable the rank heuristic in the scheduler. This heuristic favors
  7828. the instruction belonging to a basic block with greater size or frequency.
  7829. This is enabled by default when scheduling is enabled, i.e.
  7830. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
  7831. at \fB\-O2\fR or higher.
  7832. .IP "\fB\-fsched\-last\-insn\-heuristic\fR" 4
  7833. .IX Item "-fsched-last-insn-heuristic"
  7834. Enable the last-instruction heuristic in the scheduler. This heuristic
  7835. favors the instruction that is less dependent on the last instruction
  7836. scheduled. This is enabled by default when scheduling is enabled,
  7837. i.e. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
  7838. at \fB\-O2\fR or higher.
  7839. .IP "\fB\-fsched\-dep\-count\-heuristic\fR" 4
  7840. .IX Item "-fsched-dep-count-heuristic"
  7841. Enable the dependent-count heuristic in the scheduler. This heuristic
  7842. favors the instruction that has more instructions depending on it.
  7843. This is enabled by default when scheduling is enabled, i.e.
  7844. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
  7845. at \fB\-O2\fR or higher.
  7846. .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
  7847. .IX Item "-freschedule-modulo-scheduled-loops"
  7848. Modulo scheduling is performed before traditional scheduling. If a loop
  7849. is modulo scheduled, later scheduling passes may change its schedule.
  7850. Use this option to control that behavior.
  7851. .IP "\fB\-fselective\-scheduling\fR" 4
  7852. .IX Item "-fselective-scheduling"
  7853. Schedule instructions using selective scheduling algorithm. Selective
  7854. scheduling runs instead of the first scheduler pass.
  7855. .IP "\fB\-fselective\-scheduling2\fR" 4
  7856. .IX Item "-fselective-scheduling2"
  7857. Schedule instructions using selective scheduling algorithm. Selective
  7858. scheduling runs instead of the second scheduler pass.
  7859. .IP "\fB\-fsel\-sched\-pipelining\fR" 4
  7860. .IX Item "-fsel-sched-pipelining"
  7861. Enable software pipelining of innermost loops during selective scheduling.
  7862. This option has no effect unless one of \fB\-fselective\-scheduling\fR or
  7863. \&\fB\-fselective\-scheduling2\fR is turned on.
  7864. .IP "\fB\-fsel\-sched\-pipelining\-outer\-loops\fR" 4
  7865. .IX Item "-fsel-sched-pipelining-outer-loops"
  7866. When pipelining loops during selective scheduling, also pipeline outer loops.
  7867. This option has no effect unless \fB\-fsel\-sched\-pipelining\fR is turned on.
  7868. .IP "\fB\-fsemantic\-interposition\fR" 4
  7869. .IX Item "-fsemantic-interposition"
  7870. Some object formats, like \s-1ELF,\s0 allow interposing of symbols by the
  7871. dynamic linker.
  7872. This means that for symbols exported from the \s-1DSO,\s0 the compiler cannot perform
  7873. interprocedural propagation, inlining and other optimizations in anticipation
  7874. that the function or variable in question may change. While this feature is
  7875. useful, for example, to rewrite memory allocation functions by a debugging
  7876. implementation, it is expensive in the terms of code quality.
  7877. With \fB\-fno\-semantic\-interposition\fR the compiler assumes that
  7878. if interposition happens for functions the overwriting function will have
  7879. precisely the same semantics (and side effects).
  7880. Similarly if interposition happens
  7881. for variables, the constructor of the variable will be the same. The flag
  7882. has no effect for functions explicitly declared inline
  7883. (where it is never allowed for interposition to change semantics)
  7884. and for symbols explicitly declared weak.
  7885. .IP "\fB\-fshrink\-wrap\fR" 4
  7886. .IX Item "-fshrink-wrap"
  7887. Emit function prologues only before parts of the function that need it,
  7888. rather than at the top of the function. This flag is enabled by default at
  7889. \&\fB\-O\fR and higher.
  7890. .IP "\fB\-fshrink\-wrap\-separate\fR" 4
  7891. .IX Item "-fshrink-wrap-separate"
  7892. Shrink-wrap separate parts of the prologue and epilogue separately, so that
  7893. those parts are only executed when needed.
  7894. This option is on by default, but has no effect unless \fB\-fshrink\-wrap\fR
  7895. is also turned on and the target supports this.
  7896. .IP "\fB\-fcaller\-saves\fR" 4
  7897. .IX Item "-fcaller-saves"
  7898. Enable allocation of values to registers that are clobbered by
  7899. function calls, by emitting extra instructions to save and restore the
  7900. registers around such calls. Such allocation is done only when it
  7901. seems to result in better code.
  7902. .Sp
  7903. This option is always enabled by default on certain machines, usually
  7904. those which have no call-preserved registers to use instead.
  7905. .Sp
  7906. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7907. .IP "\fB\-fcombine\-stack\-adjustments\fR" 4
  7908. .IX Item "-fcombine-stack-adjustments"
  7909. Tracks stack adjustments (pushes and pops) and stack memory references
  7910. and then tries to find ways to combine them.
  7911. .Sp
  7912. Enabled by default at \fB\-O1\fR and higher.
  7913. .IP "\fB\-fipa\-ra\fR" 4
  7914. .IX Item "-fipa-ra"
  7915. Use caller save registers for allocation if those registers are not used by
  7916. any called function. In that case it is not necessary to save and restore
  7917. them around calls. This is only possible if called functions are part of
  7918. same compilation unit as current function and they are compiled before it.
  7919. .Sp
  7920. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR, however the option
  7921. is disabled if generated code will be instrumented for profiling
  7922. (\fB\-p\fR, or \fB\-pg\fR) or if callee's register usage cannot be known
  7923. exactly (this happens on targets that do not expose prologues
  7924. and epilogues in \s-1RTL\s0).
  7925. .IP "\fB\-fconserve\-stack\fR" 4
  7926. .IX Item "-fconserve-stack"
  7927. Attempt to minimize stack usage. The compiler attempts to use less
  7928. stack space, even if that makes the program slower. This option
  7929. implies setting the \fBlarge-stack-frame\fR parameter to 100
  7930. and the \fBlarge-stack-frame-growth\fR parameter to 400.
  7931. .IP "\fB\-ftree\-reassoc\fR" 4
  7932. .IX Item "-ftree-reassoc"
  7933. Perform reassociation on trees. This flag is enabled by default
  7934. at \fB\-O\fR and higher.
  7935. .IP "\fB\-fcode\-hoisting\fR" 4
  7936. .IX Item "-fcode-hoisting"
  7937. Perform code hoisting. Code hoisting tries to move the
  7938. evaluation of expressions executed on all paths to the function exit
  7939. as early as possible. This is especially useful as a code size
  7940. optimization, but it often helps for code speed as well.
  7941. This flag is enabled by default at \fB\-O2\fR and higher.
  7942. .IP "\fB\-ftree\-pre\fR" 4
  7943. .IX Item "-ftree-pre"
  7944. Perform partial redundancy elimination (\s-1PRE\s0) on trees. This flag is
  7945. enabled by default at \fB\-O2\fR and \fB\-O3\fR.
  7946. .IP "\fB\-ftree\-partial\-pre\fR" 4
  7947. .IX Item "-ftree-partial-pre"
  7948. Make partial redundancy elimination (\s-1PRE\s0) more aggressive. This flag is
  7949. enabled by default at \fB\-O3\fR.
  7950. .IP "\fB\-ftree\-forwprop\fR" 4
  7951. .IX Item "-ftree-forwprop"
  7952. Perform forward propagation on trees. This flag is enabled by default
  7953. at \fB\-O\fR and higher.
  7954. .IP "\fB\-ftree\-fre\fR" 4
  7955. .IX Item "-ftree-fre"
  7956. Perform full redundancy elimination (\s-1FRE\s0) on trees. The difference
  7957. between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
  7958. that are computed on all paths leading to the redundant computation.
  7959. This analysis is faster than \s-1PRE,\s0 though it exposes fewer redundancies.
  7960. This flag is enabled by default at \fB\-O\fR and higher.
  7961. .IP "\fB\-ftree\-phiprop\fR" 4
  7962. .IX Item "-ftree-phiprop"
  7963. Perform hoisting of loads from conditional pointers on trees. This
  7964. pass is enabled by default at \fB\-O\fR and higher.
  7965. .IP "\fB\-fhoist\-adjacent\-loads\fR" 4
  7966. .IX Item "-fhoist-adjacent-loads"
  7967. Speculatively hoist loads from both branches of an if-then-else if the
  7968. loads are from adjacent locations in the same structure and the target
  7969. architecture has a conditional move instruction. This flag is enabled
  7970. by default at \fB\-O2\fR and higher.
  7971. .IP "\fB\-ftree\-copy\-prop\fR" 4
  7972. .IX Item "-ftree-copy-prop"
  7973. Perform copy propagation on trees. This pass eliminates unnecessary
  7974. copy operations. This flag is enabled by default at \fB\-O\fR and
  7975. higher.
  7976. .IP "\fB\-fipa\-pure\-const\fR" 4
  7977. .IX Item "-fipa-pure-const"
  7978. Discover which functions are pure or constant.
  7979. Enabled by default at \fB\-O\fR and higher.
  7980. .IP "\fB\-fipa\-reference\fR" 4
  7981. .IX Item "-fipa-reference"
  7982. Discover which static variables do not escape the
  7983. compilation unit.
  7984. Enabled by default at \fB\-O\fR and higher.
  7985. .IP "\fB\-fipa\-pta\fR" 4
  7986. .IX Item "-fipa-pta"
  7987. Perform interprocedural pointer analysis and interprocedural modification
  7988. and reference analysis. This option can cause excessive memory and
  7989. compile-time usage on large compilation units. It is not enabled by
  7990. default at any optimization level.
  7991. .IP "\fB\-fipa\-profile\fR" 4
  7992. .IX Item "-fipa-profile"
  7993. Perform interprocedural profile propagation. The functions called only from
  7994. cold functions are marked as cold. Also functions executed once (such as
  7995. \&\f(CW\*(C`cold\*(C'\fR, \f(CW\*(C`noreturn\*(C'\fR, static constructors or destructors) are identified. Cold
  7996. functions and loop less parts of functions executed once are then optimized for
  7997. size.
  7998. Enabled by default at \fB\-O\fR and higher.
  7999. .IP "\fB\-fipa\-cp\fR" 4
  8000. .IX Item "-fipa-cp"
  8001. Perform interprocedural constant propagation.
  8002. This optimization analyzes the program to determine when values passed
  8003. to functions are constants and then optimizes accordingly.
  8004. This optimization can substantially increase performance
  8005. if the application has constants passed to functions.
  8006. This flag is enabled by default at \fB\-O2\fR, \fB\-Os\fR and \fB\-O3\fR.
  8007. .IP "\fB\-fipa\-cp\-clone\fR" 4
  8008. .IX Item "-fipa-cp-clone"
  8009. Perform function cloning to make interprocedural constant propagation stronger.
  8010. When enabled, interprocedural constant propagation performs function cloning
  8011. when externally visible function can be called with constant arguments.
  8012. Because this optimization can create multiple copies of functions,
  8013. it may significantly increase code size
  8014. (see \fB\-\-param ipcp\-unit\-growth=\fR\fIvalue\fR).
  8015. This flag is enabled by default at \fB\-O3\fR.
  8016. .IP "\fB\-fipa\-bit\-cp\fR" 4
  8017. .IX Item "-fipa-bit-cp"
  8018. When enabled, perform interprocedural bitwise constant
  8019. propagation. This flag is enabled by default at \fB\-O2\fR. It
  8020. requires that \fB\-fipa\-cp\fR is enabled.
  8021. .IP "\fB\-fipa\-vrp\fR" 4
  8022. .IX Item "-fipa-vrp"
  8023. When enabled, perform interprocedural propagation of value
  8024. ranges. This flag is enabled by default at \fB\-O2\fR. It requires
  8025. that \fB\-fipa\-cp\fR is enabled.
  8026. .IP "\fB\-fipa\-icf\fR" 4
  8027. .IX Item "-fipa-icf"
  8028. Perform Identical Code Folding for functions and read-only variables.
  8029. The optimization reduces code size and may disturb unwind stacks by replacing
  8030. a function by equivalent one with a different name. The optimization works
  8031. more effectively with link-time optimization enabled.
  8032. .Sp
  8033. Nevertheless the behavior is similar to Gold Linker \s-1ICF\s0 optimization, \s-1GCC ICF\s0
  8034. works on different levels and thus the optimizations are not same \- there are
  8035. equivalences that are found only by \s-1GCC\s0 and equivalences found only by Gold.
  8036. .Sp
  8037. This flag is enabled by default at \fB\-O2\fR and \fB\-Os\fR.
  8038. .IP "\fB\-fisolate\-erroneous\-paths\-dereference\fR" 4
  8039. .IX Item "-fisolate-erroneous-paths-dereference"
  8040. Detect paths that trigger erroneous or undefined behavior due to
  8041. dereferencing a null pointer. Isolate those paths from the main control
  8042. flow and turn the statement with erroneous or undefined behavior into a trap.
  8043. This flag is enabled by default at \fB\-O2\fR and higher and depends on
  8044. \&\fB\-fdelete\-null\-pointer\-checks\fR also being enabled.
  8045. .IP "\fB\-fisolate\-erroneous\-paths\-attribute\fR" 4
  8046. .IX Item "-fisolate-erroneous-paths-attribute"
  8047. Detect paths that trigger erroneous or undefined behavior due to a null value
  8048. being used in a way forbidden by a \f(CW\*(C`returns_nonnull\*(C'\fR or \f(CW\*(C`nonnull\*(C'\fR
  8049. attribute. Isolate those paths from the main control flow and turn the
  8050. statement with erroneous or undefined behavior into a trap. This is not
  8051. currently enabled, but may be enabled by \fB\-O2\fR in the future.
  8052. .IP "\fB\-ftree\-sink\fR" 4
  8053. .IX Item "-ftree-sink"
  8054. Perform forward store motion on trees. This flag is
  8055. enabled by default at \fB\-O\fR and higher.
  8056. .IP "\fB\-ftree\-bit\-ccp\fR" 4
  8057. .IX Item "-ftree-bit-ccp"
  8058. Perform sparse conditional bit constant propagation on trees and propagate
  8059. pointer alignment information.
  8060. This pass only operates on local scalar variables and is enabled by default
  8061. at \fB\-O\fR and higher. It requires that \fB\-ftree\-ccp\fR is enabled.
  8062. .IP "\fB\-ftree\-ccp\fR" 4
  8063. .IX Item "-ftree-ccp"
  8064. Perform sparse conditional constant propagation (\s-1CCP\s0) on trees. This
  8065. pass only operates on local scalar variables and is enabled by default
  8066. at \fB\-O\fR and higher.
  8067. .IP "\fB\-fssa\-backprop\fR" 4
  8068. .IX Item "-fssa-backprop"
  8069. Propagate information about uses of a value up the definition chain
  8070. in order to simplify the definitions. For example, this pass strips
  8071. sign operations if the sign of a value never matters. The flag is
  8072. enabled by default at \fB\-O\fR and higher.
  8073. .IP "\fB\-fssa\-phiopt\fR" 4
  8074. .IX Item "-fssa-phiopt"
  8075. Perform pattern matching on \s-1SSA PHI\s0 nodes to optimize conditional
  8076. code. This pass is enabled by default at \fB\-O\fR and higher.
  8077. .IP "\fB\-ftree\-switch\-conversion\fR" 4
  8078. .IX Item "-ftree-switch-conversion"
  8079. Perform conversion of simple initializations in a switch to
  8080. initializations from a scalar array. This flag is enabled by default
  8081. at \fB\-O2\fR and higher.
  8082. .IP "\fB\-ftree\-tail\-merge\fR" 4
  8083. .IX Item "-ftree-tail-merge"
  8084. Look for identical code sequences. When found, replace one with a jump to the
  8085. other. This optimization is known as tail merging or cross jumping. This flag
  8086. is enabled by default at \fB\-O2\fR and higher. The compilation time
  8087. in this pass can
  8088. be limited using \fBmax-tail-merge-comparisons\fR parameter and
  8089. \&\fBmax-tail-merge-iterations\fR parameter.
  8090. .IP "\fB\-ftree\-dce\fR" 4
  8091. .IX Item "-ftree-dce"
  8092. Perform dead code elimination (\s-1DCE\s0) on trees. This flag is enabled by
  8093. default at \fB\-O\fR and higher.
  8094. .IP "\fB\-ftree\-builtin\-call\-dce\fR" 4
  8095. .IX Item "-ftree-builtin-call-dce"
  8096. Perform conditional dead code elimination (\s-1DCE\s0) for calls to built-in functions
  8097. that may set \f(CW\*(C`errno\*(C'\fR but are otherwise free of side effects. This flag is
  8098. enabled by default at \fB\-O2\fR and higher if \fB\-Os\fR is not also
  8099. specified.
  8100. .IP "\fB\-ftree\-dominator\-opts\fR" 4
  8101. .IX Item "-ftree-dominator-opts"
  8102. Perform a variety of simple scalar cleanups (constant/copy
  8103. propagation, redundancy elimination, range propagation and expression
  8104. simplification) based on a dominator tree traversal. This also
  8105. performs jump threading (to reduce jumps to jumps). This flag is
  8106. enabled by default at \fB\-O\fR and higher.
  8107. .IP "\fB\-ftree\-dse\fR" 4
  8108. .IX Item "-ftree-dse"
  8109. Perform dead store elimination (\s-1DSE\s0) on trees. A dead store is a store into
  8110. a memory location that is later overwritten by another store without
  8111. any intervening loads. In this case the earlier store can be deleted. This
  8112. flag is enabled by default at \fB\-O\fR and higher.
  8113. .IP "\fB\-ftree\-ch\fR" 4
  8114. .IX Item "-ftree-ch"
  8115. Perform loop header copying on trees. This is beneficial since it increases
  8116. effectiveness of code motion optimizations. It also saves one jump. This flag
  8117. is enabled by default at \fB\-O\fR and higher. It is not enabled
  8118. for \fB\-Os\fR, since it usually increases code size.
  8119. .IP "\fB\-ftree\-loop\-optimize\fR" 4
  8120. .IX Item "-ftree-loop-optimize"
  8121. Perform loop optimizations on trees. This flag is enabled by default
  8122. at \fB\-O\fR and higher.
  8123. .IP "\fB\-ftree\-loop\-linear\fR" 4
  8124. .IX Item "-ftree-loop-linear"
  8125. .PD 0
  8126. .IP "\fB\-floop\-strip\-mine\fR" 4
  8127. .IX Item "-floop-strip-mine"
  8128. .IP "\fB\-floop\-block\fR" 4
  8129. .IX Item "-floop-block"
  8130. .PD
  8131. Perform loop nest optimizations. Same as
  8132. \&\fB\-floop\-nest\-optimize\fR. To use this code transformation, \s-1GCC\s0 has
  8133. to be configured with \fB\-\-with\-isl\fR to enable the Graphite loop
  8134. transformation infrastructure.
  8135. .IP "\fB\-fgraphite\-identity\fR" 4
  8136. .IX Item "-fgraphite-identity"
  8137. Enable the identity transformation for graphite. For every SCoP we generate
  8138. the polyhedral representation and transform it back to gimple. Using
  8139. \&\fB\-fgraphite\-identity\fR we can check the costs or benefits of the
  8140. \&\s-1GIMPLE\s0 \-> \s-1GRAPHITE\s0 \-> \s-1GIMPLE\s0 transformation. Some minimal optimizations
  8141. are also performed by the code generator isl, like index splitting and
  8142. dead code elimination in loops.
  8143. .IP "\fB\-floop\-nest\-optimize\fR" 4
  8144. .IX Item "-floop-nest-optimize"
  8145. Enable the isl based loop nest optimizer. This is a generic loop nest
  8146. optimizer based on the Pluto optimization algorithms. It calculates a loop
  8147. structure optimized for data-locality and parallelism. This option
  8148. is experimental.
  8149. .IP "\fB\-floop\-parallelize\-all\fR" 4
  8150. .IX Item "-floop-parallelize-all"
  8151. Use the Graphite data dependence analysis to identify loops that can
  8152. be parallelized. Parallelize all the loops that can be analyzed to
  8153. not contain loop carried dependences without checking that it is
  8154. profitable to parallelize the loops.
  8155. .IP "\fB\-ftree\-coalesce\-vars\fR" 4
  8156. .IX Item "-ftree-coalesce-vars"
  8157. While transforming the program out of the \s-1SSA\s0 representation, attempt to
  8158. reduce copying by coalescing versions of different user-defined
  8159. variables, instead of just compiler temporaries. This may severely
  8160. limit the ability to debug an optimized program compiled with
  8161. \&\fB\-fno\-var\-tracking\-assignments\fR. In the negated form, this flag
  8162. prevents \s-1SSA\s0 coalescing of user variables. This option is enabled by
  8163. default if optimization is enabled, and it does very little otherwise.
  8164. .IP "\fB\-ftree\-loop\-if\-convert\fR" 4
  8165. .IX Item "-ftree-loop-if-convert"
  8166. Attempt to transform conditional jumps in the innermost loops to
  8167. branch-less equivalents. The intent is to remove control-flow from
  8168. the innermost loops in order to improve the ability of the
  8169. vectorization pass to handle these loops. This is enabled by default
  8170. if vectorization is enabled.
  8171. .IP "\fB\-ftree\-loop\-distribution\fR" 4
  8172. .IX Item "-ftree-loop-distribution"
  8173. Perform loop distribution. This flag can improve cache performance on
  8174. big loop bodies and allow further loop optimizations, like
  8175. parallelization or vectorization, to take place. For example, the loop
  8176. .Sp
  8177. .Vb 4
  8178. \& DO I = 1, N
  8179. \& A(I) = B(I) + C
  8180. \& D(I) = E(I) * F
  8181. \& ENDDO
  8182. .Ve
  8183. .Sp
  8184. is transformed to
  8185. .Sp
  8186. .Vb 6
  8187. \& DO I = 1, N
  8188. \& A(I) = B(I) + C
  8189. \& ENDDO
  8190. \& DO I = 1, N
  8191. \& D(I) = E(I) * F
  8192. \& ENDDO
  8193. .Ve
  8194. .IP "\fB\-ftree\-loop\-distribute\-patterns\fR" 4
  8195. .IX Item "-ftree-loop-distribute-patterns"
  8196. Perform loop distribution of patterns that can be code generated with
  8197. calls to a library. This flag is enabled by default at \fB\-O3\fR.
  8198. .Sp
  8199. This pass distributes the initialization loops and generates a call to
  8200. memset zero. For example, the loop
  8201. .Sp
  8202. .Vb 4
  8203. \& DO I = 1, N
  8204. \& A(I) = 0
  8205. \& B(I) = A(I) + I
  8206. \& ENDDO
  8207. .Ve
  8208. .Sp
  8209. is transformed to
  8210. .Sp
  8211. .Vb 6
  8212. \& DO I = 1, N
  8213. \& A(I) = 0
  8214. \& ENDDO
  8215. \& DO I = 1, N
  8216. \& B(I) = A(I) + I
  8217. \& ENDDO
  8218. .Ve
  8219. .Sp
  8220. and the initialization loop is transformed into a call to memset zero.
  8221. .IP "\fB\-floop\-interchange\fR" 4
  8222. .IX Item "-floop-interchange"
  8223. Perform loop interchange outside of graphite. This flag can improve cache
  8224. performance on loop nest and allow further loop optimizations, like
  8225. vectorization, to take place. For example, the loop
  8226. .Sp
  8227. .Vb 4
  8228. \& for (int i = 0; i < N; i++)
  8229. \& for (int j = 0; j < N; j++)
  8230. \& for (int k = 0; k < N; k++)
  8231. \& c[i][j] = c[i][j] + a[i][k]*b[k][j];
  8232. .Ve
  8233. .Sp
  8234. is transformed to
  8235. .Sp
  8236. .Vb 4
  8237. \& for (int i = 0; i < N; i++)
  8238. \& for (int k = 0; k < N; k++)
  8239. \& for (int j = 0; j < N; j++)
  8240. \& c[i][j] = c[i][j] + a[i][k]*b[k][j];
  8241. .Ve
  8242. .Sp
  8243. This flag is enabled by default at \fB\-O3\fR.
  8244. .IP "\fB\-floop\-unroll\-and\-jam\fR" 4
  8245. .IX Item "-floop-unroll-and-jam"
  8246. Apply unroll and jam transformations on feasible loops. In a loop
  8247. nest this unrolls the outer loop by some factor and fuses the resulting
  8248. multiple inner loops. This flag is enabled by default at \fB\-O3\fR.
  8249. .IP "\fB\-ftree\-loop\-im\fR" 4
  8250. .IX Item "-ftree-loop-im"
  8251. Perform loop invariant motion on trees. This pass moves only invariants that
  8252. are hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
  8253. nontrivial sequences of insns). With \fB\-funswitch\-loops\fR it also moves
  8254. operands of conditions that are invariant out of the loop, so that we can use
  8255. just trivial invariantness analysis in loop unswitching. The pass also includes
  8256. store motion.
  8257. .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
  8258. .IX Item "-ftree-loop-ivcanon"
  8259. Create a canonical counter for number of iterations in loops for which
  8260. determining number of iterations requires complicated analysis. Later
  8261. optimizations then may determine the number easily. Useful especially
  8262. in connection with unrolling.
  8263. .IP "\fB\-fivopts\fR" 4
  8264. .IX Item "-fivopts"
  8265. Perform induction variable optimizations (strength reduction, induction
  8266. variable merging and induction variable elimination) on trees.
  8267. .IP "\fB\-ftree\-parallelize\-loops=n\fR" 4
  8268. .IX Item "-ftree-parallelize-loops=n"
  8269. Parallelize loops, i.e., split their iteration space to run in n threads.
  8270. This is only possible for loops whose iterations are independent
  8271. and can be arbitrarily reordered. The optimization is only
  8272. profitable on multiprocessor machines, for loops that are CPU-intensive,
  8273. rather than constrained e.g. by memory bandwidth. This option
  8274. implies \fB\-pthread\fR, and thus is only supported on targets
  8275. that have support for \fB\-pthread\fR.
  8276. .IP "\fB\-ftree\-pta\fR" 4
  8277. .IX Item "-ftree-pta"
  8278. Perform function-local points-to analysis on trees. This flag is
  8279. enabled by default at \fB\-O\fR and higher.
  8280. .IP "\fB\-ftree\-sra\fR" 4
  8281. .IX Item "-ftree-sra"
  8282. Perform scalar replacement of aggregates. This pass replaces structure
  8283. references with scalars to prevent committing structures to memory too
  8284. early. This flag is enabled by default at \fB\-O\fR and higher.
  8285. .IP "\fB\-fstore\-merging\fR" 4
  8286. .IX Item "-fstore-merging"
  8287. Perform merging of narrow stores to consecutive memory addresses. This pass
  8288. merges contiguous stores of immediate values narrower than a word into fewer
  8289. wider stores to reduce the number of instructions. This is enabled by default
  8290. at \fB\-O2\fR and higher as well as \fB\-Os\fR.
  8291. .IP "\fB\-ftree\-ter\fR" 4
  8292. .IX Item "-ftree-ter"
  8293. Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase. Single
  8294. use/single def temporaries are replaced at their use location with their
  8295. defining expression. This results in non-GIMPLE code, but gives the expanders
  8296. much more complex trees to work on resulting in better \s-1RTL\s0 generation. This is
  8297. enabled by default at \fB\-O\fR and higher.
  8298. .IP "\fB\-ftree\-slsr\fR" 4
  8299. .IX Item "-ftree-slsr"
  8300. Perform straight-line strength reduction on trees. This recognizes related
  8301. expressions involving multiplications and replaces them by less expensive
  8302. calculations when possible. This is enabled by default at \fB\-O\fR and
  8303. higher.
  8304. .IP "\fB\-ftree\-vectorize\fR" 4
  8305. .IX Item "-ftree-vectorize"
  8306. Perform vectorization on trees. This flag enables \fB\-ftree\-loop\-vectorize\fR
  8307. and \fB\-ftree\-slp\-vectorize\fR if not explicitly specified.
  8308. .IP "\fB\-ftree\-loop\-vectorize\fR" 4
  8309. .IX Item "-ftree-loop-vectorize"
  8310. Perform loop vectorization on trees. This flag is enabled by default at
  8311. \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
  8312. .IP "\fB\-ftree\-slp\-vectorize\fR" 4
  8313. .IX Item "-ftree-slp-vectorize"
  8314. Perform basic block vectorization on trees. This flag is enabled by default at
  8315. \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
  8316. .IP "\fB\-fvect\-cost\-model=\fR\fImodel\fR" 4
  8317. .IX Item "-fvect-cost-model=model"
  8318. Alter the cost model used for vectorization. The \fImodel\fR argument
  8319. should be one of \fBunlimited\fR, \fBdynamic\fR or \fBcheap\fR.
  8320. With the \fBunlimited\fR model the vectorized code-path is assumed
  8321. to be profitable while with the \fBdynamic\fR model a runtime check
  8322. guards the vectorized code-path to enable it only for iteration
  8323. counts that will likely execute faster than when executing the original
  8324. scalar loop. The \fBcheap\fR model disables vectorization of
  8325. loops where doing so would be cost prohibitive for example due to
  8326. required runtime checks for data dependence or alignment but otherwise
  8327. is equal to the \fBdynamic\fR model.
  8328. The default cost model depends on other optimization flags and is
  8329. either \fBdynamic\fR or \fBcheap\fR.
  8330. .IP "\fB\-fsimd\-cost\-model=\fR\fImodel\fR" 4
  8331. .IX Item "-fsimd-cost-model=model"
  8332. Alter the cost model used for vectorization of loops marked with the OpenMP
  8333. simd directive. The \fImodel\fR argument should be one of
  8334. \&\fBunlimited\fR, \fBdynamic\fR, \fBcheap\fR. All values of \fImodel\fR
  8335. have the same meaning as described in \fB\-fvect\-cost\-model\fR and by
  8336. default a cost model defined with \fB\-fvect\-cost\-model\fR is used.
  8337. .IP "\fB\-ftree\-vrp\fR" 4
  8338. .IX Item "-ftree-vrp"
  8339. Perform Value Range Propagation on trees. This is similar to the
  8340. constant propagation pass, but instead of values, ranges of values are
  8341. propagated. This allows the optimizers to remove unnecessary range
  8342. checks like array bound checks and null pointer checks. This is
  8343. enabled by default at \fB\-O2\fR and higher. Null pointer check
  8344. elimination is only done if \fB\-fdelete\-null\-pointer\-checks\fR is
  8345. enabled.
  8346. .IP "\fB\-fsplit\-paths\fR" 4
  8347. .IX Item "-fsplit-paths"
  8348. Split paths leading to loop backedges. This can improve dead code
  8349. elimination and common subexpression elimination. This is enabled by
  8350. default at \fB\-O2\fR and above.
  8351. .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
  8352. .IX Item "-fsplit-ivs-in-unroller"
  8353. Enables expression of values of induction variables in later iterations
  8354. of the unrolled loop using the value in the first iteration. This breaks
  8355. long dependency chains, thus improving efficiency of the scheduling passes.
  8356. .Sp
  8357. A combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
  8358. same effect. However, that is not reliable in cases where the loop body
  8359. is more complicated than a single basic block. It also does not work at all
  8360. on some architectures due to restrictions in the \s-1CSE\s0 pass.
  8361. .Sp
  8362. This optimization is enabled by default.
  8363. .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
  8364. .IX Item "-fvariable-expansion-in-unroller"
  8365. With this option, the compiler creates multiple copies of some
  8366. local variables when unrolling a loop, which can result in superior code.
  8367. .IP "\fB\-fpartial\-inlining\fR" 4
  8368. .IX Item "-fpartial-inlining"
  8369. Inline parts of functions. This option has any effect only
  8370. when inlining itself is turned on by the \fB\-finline\-functions\fR
  8371. or \fB\-finline\-small\-functions\fR options.
  8372. .Sp
  8373. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  8374. .IP "\fB\-fpredictive\-commoning\fR" 4
  8375. .IX Item "-fpredictive-commoning"
  8376. Perform predictive commoning optimization, i.e., reusing computations
  8377. (especially memory loads and stores) performed in previous
  8378. iterations of loops.
  8379. .Sp
  8380. This option is enabled at level \fB\-O3\fR.
  8381. .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
  8382. .IX Item "-fprefetch-loop-arrays"
  8383. If supported by the target machine, generate instructions to prefetch
  8384. memory to improve the performance of loops that access large arrays.
  8385. .Sp
  8386. This option may generate better or worse code; results are highly
  8387. dependent on the structure of loops within the source code.
  8388. .Sp
  8389. Disabled at level \fB\-Os\fR.
  8390. .IP "\fB\-fno\-printf\-return\-value\fR" 4
  8391. .IX Item "-fno-printf-return-value"
  8392. Do not substitute constants for known return value of formatted output
  8393. functions such as \f(CW\*(C`sprintf\*(C'\fR, \f(CW\*(C`snprintf\*(C'\fR, \f(CW\*(C`vsprintf\*(C'\fR, and
  8394. \&\f(CW\*(C`vsnprintf\*(C'\fR (but not \f(CW\*(C`printf\*(C'\fR of \f(CW\*(C`fprintf\*(C'\fR). This
  8395. transformation allows \s-1GCC\s0 to optimize or even eliminate branches based
  8396. on the known return value of these functions called with arguments that
  8397. are either constant, or whose values are known to be in a range that
  8398. makes determining the exact return value possible. For example, when
  8399. \&\fB\-fprintf\-return\-value\fR is in effect, both the branch and the
  8400. body of the \f(CW\*(C`if\*(C'\fR statement (but not the call to \f(CW\*(C`snprint\*(C'\fR)
  8401. can be optimized away when \f(CW\*(C`i\*(C'\fR is a 32\-bit or smaller integer
  8402. because the return value is guaranteed to be at most 8.
  8403. .Sp
  8404. .Vb 3
  8405. \& char buf[9];
  8406. \& if (snprintf (buf, "%08x", i) >= sizeof buf)
  8407. \& ...
  8408. .Ve
  8409. .Sp
  8410. The \fB\-fprintf\-return\-value\fR option relies on other optimizations
  8411. and yields best results with \fB\-O2\fR and above. It works in tandem
  8412. with the \fB\-Wformat\-overflow\fR and \fB\-Wformat\-truncation\fR
  8413. options. The \fB\-fprintf\-return\-value\fR option is enabled by default.
  8414. .IP "\fB\-fno\-peephole\fR" 4
  8415. .IX Item "-fno-peephole"
  8416. .PD 0
  8417. .IP "\fB\-fno\-peephole2\fR" 4
  8418. .IX Item "-fno-peephole2"
  8419. .PD
  8420. Disable any machine-specific peephole optimizations. The difference
  8421. between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
  8422. are implemented in the compiler; some targets use one, some use the
  8423. other, a few use both.
  8424. .Sp
  8425. \&\fB\-fpeephole\fR is enabled by default.
  8426. \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  8427. .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
  8428. .IX Item "-fno-guess-branch-probability"
  8429. Do not guess branch probabilities using heuristics.
  8430. .Sp
  8431. \&\s-1GCC\s0 uses heuristics to guess branch probabilities if they are
  8432. not provided by profiling feedback (\fB\-fprofile\-arcs\fR). These
  8433. heuristics are based on the control flow graph. If some branch probabilities
  8434. are specified by \f(CW\*(C`_\|_builtin_expect\*(C'\fR, then the heuristics are
  8435. used to guess branch probabilities for the rest of the control flow graph,
  8436. taking the \f(CW\*(C`_\|_builtin_expect\*(C'\fR info into account. The interactions
  8437. between the heuristics and \f(CW\*(C`_\|_builtin_expect\*(C'\fR can be complex, and in
  8438. some cases, it may be useful to disable the heuristics so that the effects
  8439. of \f(CW\*(C`_\|_builtin_expect\*(C'\fR are easier to understand.
  8440. .Sp
  8441. The default is \fB\-fguess\-branch\-probability\fR at levels
  8442. \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  8443. .IP "\fB\-freorder\-blocks\fR" 4
  8444. .IX Item "-freorder-blocks"
  8445. Reorder basic blocks in the compiled function in order to reduce number of
  8446. taken branches and improve code locality.
  8447. .Sp
  8448. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  8449. .IP "\fB\-freorder\-blocks\-algorithm=\fR\fIalgorithm\fR" 4
  8450. .IX Item "-freorder-blocks-algorithm=algorithm"
  8451. Use the specified algorithm for basic block reordering. The
  8452. \&\fIalgorithm\fR argument can be \fBsimple\fR, which does not increase
  8453. code size (except sometimes due to secondary effects like alignment),
  8454. or \fBstc\fR, the \*(L"software trace cache\*(R" algorithm, which tries to
  8455. put all often executed code together, minimizing the number of branches
  8456. executed by making extra copies of code.
  8457. .Sp
  8458. The default is \fBsimple\fR at levels \fB\-O\fR, \fB\-Os\fR, and
  8459. \&\fBstc\fR at levels \fB\-O2\fR, \fB\-O3\fR.
  8460. .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
  8461. .IX Item "-freorder-blocks-and-partition"
  8462. In addition to reordering basic blocks in the compiled function, in order
  8463. to reduce number of taken branches, partitions hot and cold basic blocks
  8464. into separate sections of the assembly and \fI.o\fR files, to improve
  8465. paging and cache locality performance.
  8466. .Sp
  8467. This optimization is automatically turned off in the presence of
  8468. exception handling or unwind tables (on targets using setjump/longjump or target specific scheme), for linkonce sections, for functions with a user-defined
  8469. section attribute and on any architecture that does not support named
  8470. sections. When \fB\-fsplit\-stack\fR is used this option is not
  8471. enabled by default (to avoid linker errors), but may be enabled
  8472. explicitly (if using a working linker).
  8473. .Sp
  8474. Enabled for x86 at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  8475. .IP "\fB\-freorder\-functions\fR" 4
  8476. .IX Item "-freorder-functions"
  8477. Reorder functions in the object file in order to
  8478. improve code locality. This is implemented by using special
  8479. subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
  8480. \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions. Reordering is done by
  8481. the linker so object file format must support named sections and linker must
  8482. place them in a reasonable way.
  8483. .Sp
  8484. Also profile feedback must be available to make this option effective. See
  8485. \&\fB\-fprofile\-arcs\fR for details.
  8486. .Sp
  8487. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  8488. .IP "\fB\-fstrict\-aliasing\fR" 4
  8489. .IX Item "-fstrict-aliasing"
  8490. Allow the compiler to assume the strictest aliasing rules applicable to
  8491. the language being compiled. For C (and \*(C+), this activates
  8492. optimizations based on the type of expressions. In particular, an
  8493. object of one type is assumed never to reside at the same address as an
  8494. object of a different type, unless the types are almost the same. For
  8495. example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
  8496. \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR. A character type may alias any other
  8497. type.
  8498. .Sp
  8499. Pay special attention to code like this:
  8500. .Sp
  8501. .Vb 4
  8502. \& union a_union {
  8503. \& int i;
  8504. \& double d;
  8505. \& };
  8506. \&
  8507. \& int f() {
  8508. \& union a_union t;
  8509. \& t.d = 3.0;
  8510. \& return t.i;
  8511. \& }
  8512. .Ve
  8513. .Sp
  8514. The practice of reading from a different union member than the one most
  8515. recently written to (called \*(L"type-punning\*(R") is common. Even with
  8516. \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
  8517. is accessed through the union type. So, the code above works as
  8518. expected. However, this code might not:
  8519. .Sp
  8520. .Vb 7
  8521. \& int f() {
  8522. \& union a_union t;
  8523. \& int* ip;
  8524. \& t.d = 3.0;
  8525. \& ip = &t.i;
  8526. \& return *ip;
  8527. \& }
  8528. .Ve
  8529. .Sp
  8530. Similarly, access by taking the address, casting the resulting pointer
  8531. and dereferencing the result has undefined behavior, even if the cast
  8532. uses a union type, e.g.:
  8533. .Sp
  8534. .Vb 4
  8535. \& int f() {
  8536. \& double d = 3.0;
  8537. \& return ((union a_union *) &d)\->i;
  8538. \& }
  8539. .Ve
  8540. .Sp
  8541. The \fB\-fstrict\-aliasing\fR option is enabled at levels
  8542. \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  8543. .IP "\fB\-falign\-functions\fR" 4
  8544. .IX Item "-falign-functions"
  8545. .PD 0
  8546. .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
  8547. .IX Item "-falign-functions=n"
  8548. .PD
  8549. Align the start of functions to the next power-of-two greater than
  8550. \&\fIn\fR, skipping up to \fIn\fR bytes. For instance,
  8551. \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
  8552. boundary, but \fB\-falign\-functions=24\fR aligns to the next
  8553. 32\-byte boundary only if this can be done by skipping 23 bytes or less.
  8554. .Sp
  8555. \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
  8556. equivalent and mean that functions are not aligned.
  8557. .Sp
  8558. Some assemblers only support this flag when \fIn\fR is a power of two;
  8559. in that case, it is rounded up.
  8560. .Sp
  8561. If \fIn\fR is not specified or is zero, use a machine-dependent default.
  8562. The maximum allowed \fIn\fR option value is 65536.
  8563. .Sp
  8564. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  8565. .IP "\fB\-flimit\-function\-alignment\fR" 4
  8566. .IX Item "-flimit-function-alignment"
  8567. If this option is enabled, the compiler tries to avoid unnecessarily
  8568. overaligning functions. It attempts to instruct the assembler to align
  8569. by the amount specified by \fB\-falign\-functions\fR, but not to
  8570. skip more bytes than the size of the function.
  8571. .IP "\fB\-falign\-labels\fR" 4
  8572. .IX Item "-falign-labels"
  8573. .PD 0
  8574. .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
  8575. .IX Item "-falign-labels=n"
  8576. .PD
  8577. Align all branch targets to a power-of-two boundary, skipping up to
  8578. \&\fIn\fR bytes like \fB\-falign\-functions\fR. This option can easily
  8579. make code slower, because it must insert dummy operations for when the
  8580. branch target is reached in the usual flow of the code.
  8581. .Sp
  8582. \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
  8583. equivalent and mean that labels are not aligned.
  8584. .Sp
  8585. If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
  8586. are greater than this value, then their values are used instead.
  8587. .Sp
  8588. If \fIn\fR is not specified or is zero, use a machine-dependent default
  8589. which is very likely to be \fB1\fR, meaning no alignment.
  8590. The maximum allowed \fIn\fR option value is 65536.
  8591. .Sp
  8592. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  8593. .IP "\fB\-falign\-loops\fR" 4
  8594. .IX Item "-falign-loops"
  8595. .PD 0
  8596. .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
  8597. .IX Item "-falign-loops=n"
  8598. .PD
  8599. Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
  8600. like \fB\-falign\-functions\fR. If the loops are
  8601. executed many times, this makes up for any execution of the dummy
  8602. operations.
  8603. .Sp
  8604. \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
  8605. equivalent and mean that loops are not aligned.
  8606. The maximum allowed \fIn\fR option value is 65536.
  8607. .Sp
  8608. If \fIn\fR is not specified or is zero, use a machine-dependent default.
  8609. .Sp
  8610. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  8611. .IP "\fB\-falign\-jumps\fR" 4
  8612. .IX Item "-falign-jumps"
  8613. .PD 0
  8614. .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
  8615. .IX Item "-falign-jumps=n"
  8616. .PD
  8617. Align branch targets to a power-of-two boundary, for branch targets
  8618. where the targets can only be reached by jumping, skipping up to \fIn\fR
  8619. bytes like \fB\-falign\-functions\fR. In this case, no dummy operations
  8620. need be executed.
  8621. .Sp
  8622. \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
  8623. equivalent and mean that loops are not aligned.
  8624. .Sp
  8625. If \fIn\fR is not specified or is zero, use a machine-dependent default.
  8626. The maximum allowed \fIn\fR option value is 65536.
  8627. .Sp
  8628. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  8629. .IP "\fB\-funit\-at\-a\-time\fR" 4
  8630. .IX Item "-funit-at-a-time"
  8631. This option is left for compatibility reasons. \fB\-funit\-at\-a\-time\fR
  8632. has no effect, while \fB\-fno\-unit\-at\-a\-time\fR implies
  8633. \&\fB\-fno\-toplevel\-reorder\fR and \fB\-fno\-section\-anchors\fR.
  8634. .Sp
  8635. Enabled by default.
  8636. .IP "\fB\-fno\-toplevel\-reorder\fR" 4
  8637. .IX Item "-fno-toplevel-reorder"
  8638. Do not reorder top-level functions, variables, and \f(CW\*(C`asm\*(C'\fR
  8639. statements. Output them in the same order that they appear in the
  8640. input file. When this option is used, unreferenced static variables
  8641. are not removed. This option is intended to support existing code
  8642. that relies on a particular ordering. For new code, it is better to
  8643. use attributes when possible.
  8644. .Sp
  8645. Enabled at level \fB\-O0\fR. When disabled explicitly, it also implies
  8646. \&\fB\-fno\-section\-anchors\fR, which is otherwise enabled at \fB\-O0\fR on some
  8647. targets.
  8648. .IP "\fB\-fweb\fR" 4
  8649. .IX Item "-fweb"
  8650. Constructs webs as commonly used for register allocation purposes and assign
  8651. each web individual pseudo register. This allows the register allocation pass
  8652. to operate on pseudos directly, but also strengthens several other optimization
  8653. passes, such as \s-1CSE,\s0 loop optimizer and trivial dead code remover. It can,
  8654. however, make debugging impossible, since variables no longer stay in a
  8655. \&\*(L"home register\*(R".
  8656. .Sp
  8657. Enabled by default with \fB\-funroll\-loops\fR.
  8658. .IP "\fB\-fwhole\-program\fR" 4
  8659. .IX Item "-fwhole-program"
  8660. Assume that the current compilation unit represents the whole program being
  8661. compiled. All public functions and variables with the exception of \f(CW\*(C`main\*(C'\fR
  8662. and those merged by attribute \f(CW\*(C`externally_visible\*(C'\fR become static functions
  8663. and in effect are optimized more aggressively by interprocedural optimizers.
  8664. .Sp
  8665. This option should not be used in combination with \fB\-flto\fR.
  8666. Instead relying on a linker plugin should provide safer and more precise
  8667. information.
  8668. .IP "\fB\-flto[=\fR\fIn\fR\fB]\fR" 4
  8669. .IX Item "-flto[=n]"
  8670. This option runs the standard link-time optimizer. When invoked
  8671. with source code, it generates \s-1GIMPLE\s0 (one of \s-1GCC\s0's internal
  8672. representations) and writes it to special \s-1ELF\s0 sections in the object
  8673. file. When the object files are linked together, all the function
  8674. bodies are read from these \s-1ELF\s0 sections and instantiated as if they
  8675. had been part of the same translation unit.
  8676. .Sp
  8677. To use the link-time optimizer, \fB\-flto\fR and optimization
  8678. options should be specified at compile time and during the final link.
  8679. It is recommended that you compile all the files participating in the
  8680. same link with the same options and also specify those options at
  8681. link time.
  8682. For example:
  8683. .Sp
  8684. .Vb 3
  8685. \& gcc \-c \-O2 \-flto foo.c
  8686. \& gcc \-c \-O2 \-flto bar.c
  8687. \& gcc \-o myprog \-flto \-O2 foo.o bar.o
  8688. .Ve
  8689. .Sp
  8690. The first two invocations to \s-1GCC\s0 save a bytecode representation
  8691. of \s-1GIMPLE\s0 into special \s-1ELF\s0 sections inside \fIfoo.o\fR and
  8692. \&\fIbar.o\fR. The final invocation reads the \s-1GIMPLE\s0 bytecode from
  8693. \&\fIfoo.o\fR and \fIbar.o\fR, merges the two files into a single
  8694. internal image, and compiles the result as usual. Since both
  8695. \&\fIfoo.o\fR and \fIbar.o\fR are merged into a single image, this
  8696. causes all the interprocedural analyses and optimizations in \s-1GCC\s0 to
  8697. work across the two files as if they were a single one. This means,
  8698. for example, that the inliner is able to inline functions in
  8699. \&\fIbar.o\fR into functions in \fIfoo.o\fR and vice-versa.
  8700. .Sp
  8701. Another (simpler) way to enable link-time optimization is:
  8702. .Sp
  8703. .Vb 1
  8704. \& gcc \-o myprog \-flto \-O2 foo.c bar.c
  8705. .Ve
  8706. .Sp
  8707. The above generates bytecode for \fIfoo.c\fR and \fIbar.c\fR,
  8708. merges them together into a single \s-1GIMPLE\s0 representation and optimizes
  8709. them as usual to produce \fImyprog\fR.
  8710. .Sp
  8711. The only important thing to keep in mind is that to enable link-time
  8712. optimizations you need to use the \s-1GCC\s0 driver to perform the link step.
  8713. \&\s-1GCC\s0 then automatically performs link-time optimization if any of the
  8714. objects involved were compiled with the \fB\-flto\fR command-line option.
  8715. You generally
  8716. should specify the optimization options to be used for link-time
  8717. optimization though \s-1GCC\s0 tries to be clever at guessing an
  8718. optimization level to use from the options used at compile time
  8719. if you fail to specify one at link time. You can always override
  8720. the automatic decision to do link-time optimization
  8721. by passing \fB\-fno\-lto\fR to the link command.
  8722. .Sp
  8723. To make whole program optimization effective, it is necessary to make
  8724. certain whole program assumptions. The compiler needs to know
  8725. what functions and variables can be accessed by libraries and runtime
  8726. outside of the link-time optimized unit. When supported by the linker,
  8727. the linker plugin (see \fB\-fuse\-linker\-plugin\fR) passes information
  8728. to the compiler about used and externally visible symbols. When
  8729. the linker plugin is not available, \fB\-fwhole\-program\fR should be
  8730. used to allow the compiler to make these assumptions, which leads
  8731. to more aggressive optimization decisions.
  8732. .Sp
  8733. When \fB\-fuse\-linker\-plugin\fR is not enabled, when a file is
  8734. compiled with \fB\-flto\fR, the generated object file is larger than
  8735. a regular object file because it contains \s-1GIMPLE\s0 bytecodes and the usual
  8736. final code (see \fB\-ffat\-lto\-objects\fR. This means that
  8737. object files with \s-1LTO\s0 information can be linked as normal object
  8738. files; if \fB\-fno\-lto\fR is passed to the linker, no
  8739. interprocedural optimizations are applied. Note that when
  8740. \&\fB\-fno\-fat\-lto\-objects\fR is enabled the compile stage is faster
  8741. but you cannot perform a regular, non-LTO link on them.
  8742. .Sp
  8743. Additionally, the optimization flags used to compile individual files
  8744. are not necessarily related to those used at link time. For instance,
  8745. .Sp
  8746. .Vb 3
  8747. \& gcc \-c \-O0 \-ffat\-lto\-objects \-flto foo.c
  8748. \& gcc \-c \-O0 \-ffat\-lto\-objects \-flto bar.c
  8749. \& gcc \-o myprog \-O3 foo.o bar.o
  8750. .Ve
  8751. .Sp
  8752. This produces individual object files with unoptimized assembler
  8753. code, but the resulting binary \fImyprog\fR is optimized at
  8754. \&\fB\-O3\fR. If, instead, the final binary is generated with
  8755. \&\fB\-fno\-lto\fR, then \fImyprog\fR is not optimized.
  8756. .Sp
  8757. When producing the final binary, \s-1GCC\s0 only
  8758. applies link-time optimizations to those files that contain bytecode.
  8759. Therefore, you can mix and match object files and libraries with
  8760. \&\s-1GIMPLE\s0 bytecodes and final object code. \s-1GCC\s0 automatically selects
  8761. which files to optimize in \s-1LTO\s0 mode and which files to link without
  8762. further processing.
  8763. .Sp
  8764. There are some code generation flags preserved by \s-1GCC\s0 when
  8765. generating bytecodes, as they need to be used during the final link
  8766. stage. Generally options specified at link time override those
  8767. specified at compile time.
  8768. .Sp
  8769. If you do not specify an optimization level option \fB\-O\fR at
  8770. link time, then \s-1GCC\s0 uses the highest optimization level
  8771. used when compiling the object files.
  8772. .Sp
  8773. Currently, the following options and their settings are taken from
  8774. the first object file that explicitly specifies them:
  8775. \&\fB\-fPIC\fR, \fB\-fpic\fR, \fB\-fpie\fR, \fB\-fcommon\fR,
  8776. \&\fB\-fexceptions\fR, \fB\-fnon\-call\-exceptions\fR, \fB\-fgnu\-tm\fR
  8777. and all the \fB\-m\fR target flags.
  8778. .Sp
  8779. Certain ABI-changing flags are required to match in all compilation units,
  8780. and trying to override this at link time with a conflicting value
  8781. is ignored. This includes options such as \fB\-freg\-struct\-return\fR
  8782. and \fB\-fpcc\-struct\-return\fR.
  8783. .Sp
  8784. Other options such as \fB\-ffp\-contract\fR, \fB\-fno\-strict\-overflow\fR,
  8785. \&\fB\-fwrapv\fR, \fB\-fno\-trapv\fR or \fB\-fno\-strict\-aliasing\fR
  8786. are passed through to the link stage and merged conservatively for
  8787. conflicting translation units. Specifically
  8788. \&\fB\-fno\-strict\-overflow\fR, \fB\-fwrapv\fR and \fB\-fno\-trapv\fR take
  8789. precedence; and for example \fB\-ffp\-contract=off\fR takes precedence
  8790. over \fB\-ffp\-contract=fast\fR. You can override them at link time.
  8791. .Sp
  8792. If \s-1LTO\s0 encounters objects with C linkage declared with incompatible
  8793. types in separate translation units to be linked together (undefined
  8794. behavior according to \s-1ISO C99 6.2.7\s0), a non-fatal diagnostic may be
  8795. issued. The behavior is still undefined at run time. Similar
  8796. diagnostics may be raised for other languages.
  8797. .Sp
  8798. Another feature of \s-1LTO\s0 is that it is possible to apply interprocedural
  8799. optimizations on files written in different languages:
  8800. .Sp
  8801. .Vb 4
  8802. \& gcc \-c \-flto foo.c
  8803. \& g++ \-c \-flto bar.cc
  8804. \& gfortran \-c \-flto baz.f90
  8805. \& g++ \-o myprog \-flto \-O3 foo.o bar.o baz.o \-lgfortran
  8806. .Ve
  8807. .Sp
  8808. Notice that the final link is done with \fBg++\fR to get the \*(C+
  8809. runtime libraries and \fB\-lgfortran\fR is added to get the Fortran
  8810. runtime libraries. In general, when mixing languages in \s-1LTO\s0 mode, you
  8811. should use the same link command options as when mixing languages in a
  8812. regular (non-LTO) compilation.
  8813. .Sp
  8814. If object files containing \s-1GIMPLE\s0 bytecode are stored in a library archive, say
  8815. \&\fIlibfoo.a\fR, it is possible to extract and use them in an \s-1LTO\s0 link if you
  8816. are using a linker with plugin support. To create static libraries suitable
  8817. for \s-1LTO,\s0 use \fBgcc-ar\fR and \fBgcc-ranlib\fR instead of \fBar\fR
  8818. and \fBranlib\fR;
  8819. to show the symbols of object files with \s-1GIMPLE\s0 bytecode, use
  8820. \&\fBgcc-nm\fR. Those commands require that \fBar\fR, \fBranlib\fR
  8821. and \fBnm\fR have been compiled with plugin support. At link time, use the
  8822. flag \fB\-fuse\-linker\-plugin\fR to ensure that the library participates in
  8823. the \s-1LTO\s0 optimization process:
  8824. .Sp
  8825. .Vb 1
  8826. \& gcc \-o myprog \-O2 \-flto \-fuse\-linker\-plugin a.o b.o \-lfoo
  8827. .Ve
  8828. .Sp
  8829. With the linker plugin enabled, the linker extracts the needed
  8830. \&\s-1GIMPLE\s0 files from \fIlibfoo.a\fR and passes them on to the running \s-1GCC\s0
  8831. to make them part of the aggregated \s-1GIMPLE\s0 image to be optimized.
  8832. .Sp
  8833. If you are not using a linker with plugin support and/or do not
  8834. enable the linker plugin, then the objects inside \fIlibfoo.a\fR
  8835. are extracted and linked as usual, but they do not participate
  8836. in the \s-1LTO\s0 optimization process. In order to make a static library suitable
  8837. for both \s-1LTO\s0 optimization and usual linkage, compile its object files with
  8838. \&\fB\-flto\fR \fB\-ffat\-lto\-objects\fR.
  8839. .Sp
  8840. Link-time optimizations do not require the presence of the whole program to
  8841. operate. If the program does not require any symbols to be exported, it is
  8842. possible to combine \fB\-flto\fR and \fB\-fwhole\-program\fR to allow
  8843. the interprocedural optimizers to use more aggressive assumptions which may
  8844. lead to improved optimization opportunities.
  8845. Use of \fB\-fwhole\-program\fR is not needed when linker plugin is
  8846. active (see \fB\-fuse\-linker\-plugin\fR).
  8847. .Sp
  8848. The current implementation of \s-1LTO\s0 makes no
  8849. attempt to generate bytecode that is portable between different
  8850. types of hosts. The bytecode files are versioned and there is a
  8851. strict version check, so bytecode files generated in one version of
  8852. \&\s-1GCC\s0 do not work with an older or newer version of \s-1GCC.\s0
  8853. .Sp
  8854. Link-time optimization does not work well with generation of debugging
  8855. information on systems other than those using a combination of \s-1ELF\s0 and
  8856. \&\s-1DWARF.\s0
  8857. .Sp
  8858. If you specify the optional \fIn\fR, the optimization and code
  8859. generation done at link time is executed in parallel using \fIn\fR
  8860. parallel jobs by utilizing an installed \fBmake\fR program. The
  8861. environment variable \fB\s-1MAKE\s0\fR may be used to override the program
  8862. used. The default value for \fIn\fR is 1.
  8863. .Sp
  8864. You can also specify \fB\-flto=jobserver\fR to use \s-1GNU\s0 make's
  8865. job server mode to determine the number of parallel jobs. This
  8866. is useful when the Makefile calling \s-1GCC\s0 is already executing in parallel.
  8867. You must prepend a \fB+\fR to the command recipe in the parent Makefile
  8868. for this to work. This option likely only works if \fB\s-1MAKE\s0\fR is
  8869. \&\s-1GNU\s0 make.
  8870. .IP "\fB\-flto\-partition=\fR\fIalg\fR" 4
  8871. .IX Item "-flto-partition=alg"
  8872. Specify the partitioning algorithm used by the link-time optimizer.
  8873. The value is either \fB1to1\fR to specify a partitioning mirroring
  8874. the original source files or \fBbalanced\fR to specify partitioning
  8875. into equally sized chunks (whenever possible) or \fBmax\fR to create
  8876. new partition for every symbol where possible. Specifying \fBnone\fR
  8877. as an algorithm disables partitioning and streaming completely.
  8878. The default value is \fBbalanced\fR. While \fB1to1\fR can be used
  8879. as an workaround for various code ordering issues, the \fBmax\fR
  8880. partitioning is intended for internal testing only.
  8881. The value \fBone\fR specifies that exactly one partition should be
  8882. used while the value \fBnone\fR bypasses partitioning and executes
  8883. the link-time optimization step directly from the \s-1WPA\s0 phase.
  8884. .IP "\fB\-flto\-odr\-type\-merging\fR" 4
  8885. .IX Item "-flto-odr-type-merging"
  8886. Enable streaming of mangled types names of \*(C+ types and their unification
  8887. at link time. This increases size of \s-1LTO\s0 object files, but enables
  8888. diagnostics about One Definition Rule violations.
  8889. .IP "\fB\-flto\-compression\-level=\fR\fIn\fR" 4
  8890. .IX Item "-flto-compression-level=n"
  8891. This option specifies the level of compression used for intermediate
  8892. language written to \s-1LTO\s0 object files, and is only meaningful in
  8893. conjunction with \s-1LTO\s0 mode (\fB\-flto\fR). Valid
  8894. values are 0 (no compression) to 9 (maximum compression). Values
  8895. outside this range are clamped to either 0 or 9. If the option is not
  8896. given, a default balanced compression setting is used.
  8897. .IP "\fB\-fuse\-linker\-plugin\fR" 4
  8898. .IX Item "-fuse-linker-plugin"
  8899. Enables the use of a linker plugin during link-time optimization. This
  8900. option relies on plugin support in the linker, which is available in gold
  8901. or in \s-1GNU\s0 ld 2.21 or newer.
  8902. .Sp
  8903. This option enables the extraction of object files with \s-1GIMPLE\s0 bytecode out
  8904. of library archives. This improves the quality of optimization by exposing
  8905. more code to the link-time optimizer. This information specifies what
  8906. symbols can be accessed externally (by non-LTO object or during dynamic
  8907. linking). Resulting code quality improvements on binaries (and shared
  8908. libraries that use hidden visibility) are similar to \fB\-fwhole\-program\fR.
  8909. See \fB\-flto\fR for a description of the effect of this flag and how to
  8910. use it.
  8911. .Sp
  8912. This option is enabled by default when \s-1LTO\s0 support in \s-1GCC\s0 is enabled
  8913. and \s-1GCC\s0 was configured for use with
  8914. a linker supporting plugins (\s-1GNU\s0 ld 2.21 or newer or gold).
  8915. .IP "\fB\-ffat\-lto\-objects\fR" 4
  8916. .IX Item "-ffat-lto-objects"
  8917. Fat \s-1LTO\s0 objects are object files that contain both the intermediate language
  8918. and the object code. This makes them usable for both \s-1LTO\s0 linking and normal
  8919. linking. This option is effective only when compiling with \fB\-flto\fR
  8920. and is ignored at link time.
  8921. .Sp
  8922. \&\fB\-fno\-fat\-lto\-objects\fR improves compilation time over plain \s-1LTO,\s0 but
  8923. requires the complete toolchain to be aware of \s-1LTO.\s0 It requires a linker with
  8924. linker plugin support for basic functionality. Additionally,
  8925. \&\fBnm\fR, \fBar\fR and \fBranlib\fR
  8926. need to support linker plugins to allow a full-featured build environment
  8927. (capable of building static libraries etc). \s-1GCC\s0 provides the \fBgcc-ar\fR,
  8928. \&\fBgcc-nm\fR, \fBgcc-ranlib\fR wrappers to pass the right options
  8929. to these tools. With non fat \s-1LTO\s0 makefiles need to be modified to use them.
  8930. .Sp
  8931. Note that modern binutils provide plugin auto-load mechanism.
  8932. Installing the linker plugin into \fI\f(CI$libdir\fI/bfd\-plugins\fR has the same
  8933. effect as usage of the command wrappers (\fBgcc-ar\fR, \fBgcc-nm\fR and
  8934. \&\fBgcc-ranlib\fR).
  8935. .Sp
  8936. The default is \fB\-fno\-fat\-lto\-objects\fR on targets with linker plugin
  8937. support.
  8938. .IP "\fB\-fcompare\-elim\fR" 4
  8939. .IX Item "-fcompare-elim"
  8940. After register allocation and post-register allocation instruction splitting,
  8941. identify arithmetic instructions that compute processor flags similar to a
  8942. comparison operation based on that arithmetic. If possible, eliminate the
  8943. explicit comparison operation.
  8944. .Sp
  8945. This pass only applies to certain targets that cannot explicitly represent
  8946. the comparison operation before register allocation is complete.
  8947. .Sp
  8948. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  8949. .IP "\fB\-fcprop\-registers\fR" 4
  8950. .IX Item "-fcprop-registers"
  8951. After register allocation and post-register allocation instruction splitting,
  8952. perform a copy-propagation pass to try to reduce scheduling dependencies
  8953. and occasionally eliminate the copy.
  8954. .Sp
  8955. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  8956. .IP "\fB\-fprofile\-correction\fR" 4
  8957. .IX Item "-fprofile-correction"
  8958. Profiles collected using an instrumented binary for multi-threaded programs may
  8959. be inconsistent due to missed counter updates. When this option is specified,
  8960. \&\s-1GCC\s0 uses heuristics to correct or smooth out such inconsistencies. By
  8961. default, \s-1GCC\s0 emits an error message when an inconsistent profile is detected.
  8962. .IP "\fB\-fprofile\-use\fR" 4
  8963. .IX Item "-fprofile-use"
  8964. .PD 0
  8965. .IP "\fB\-fprofile\-use=\fR\fIpath\fR" 4
  8966. .IX Item "-fprofile-use=path"
  8967. .PD
  8968. Enable profile feedback-directed optimizations,
  8969. and the following optimizations
  8970. which are generally profitable only with profile feedback available:
  8971. \&\fB\-fbranch\-probabilities\fR, \fB\-fvpt\fR,
  8972. \&\fB\-funroll\-loops\fR, \fB\-fpeel\-loops\fR, \fB\-ftracer\fR,
  8973. \&\fB\-ftree\-vectorize\fR, and \fBftree-loop-distribute-patterns\fR.
  8974. .Sp
  8975. Before you can use this option, you must first generate profiling information.
  8976. .Sp
  8977. By default, \s-1GCC\s0 emits an error message if the feedback profiles do not
  8978. match the source code. This error can be turned into a warning by using
  8979. \&\fB\-Wcoverage\-mismatch\fR. Note this may result in poorly optimized
  8980. code.
  8981. .Sp
  8982. If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
  8983. the profile feedback data files. See \fB\-fprofile\-dir\fR.
  8984. .IP "\fB\-fauto\-profile\fR" 4
  8985. .IX Item "-fauto-profile"
  8986. .PD 0
  8987. .IP "\fB\-fauto\-profile=\fR\fIpath\fR" 4
  8988. .IX Item "-fauto-profile=path"
  8989. .PD
  8990. Enable sampling-based feedback-directed optimizations,
  8991. and the following optimizations
  8992. which are generally profitable only with profile feedback available:
  8993. \&\fB\-fbranch\-probabilities\fR, \fB\-fvpt\fR,
  8994. \&\fB\-funroll\-loops\fR, \fB\-fpeel\-loops\fR, \fB\-ftracer\fR,
  8995. \&\fB\-ftree\-vectorize\fR,
  8996. \&\fB\-finline\-functions\fR, \fB\-fipa\-cp\fR, \fB\-fipa\-cp\-clone\fR,
  8997. \&\fB\-fpredictive\-commoning\fR, \fB\-funswitch\-loops\fR,
  8998. \&\fB\-fgcse\-after\-reload\fR, and \fB\-ftree\-loop\-distribute\-patterns\fR.
  8999. .Sp
  9000. \&\fIpath\fR is the name of a file containing AutoFDO profile information.
  9001. If omitted, it defaults to \fIfbdata.afdo\fR in the current directory.
  9002. .Sp
  9003. Producing an AutoFDO profile data file requires running your program
  9004. with the \fBperf\fR utility on a supported GNU/Linux target system.
  9005. For more information, see <\fBhttps://perf.wiki.kernel.org/\fR>.
  9006. .Sp
  9007. E.g.
  9008. .Sp
  9009. .Vb 2
  9010. \& perf record \-e br_inst_retired:near_taken \-b \-o perf.data \e
  9011. \& \-\- your_program
  9012. .Ve
  9013. .Sp
  9014. Then use the \fBcreate_gcov\fR tool to convert the raw profile data
  9015. to a format that can be used by \s-1GCC.\s0 You must also supply the
  9016. unstripped binary for your program to this tool.
  9017. See <\fBhttps://github.com/google/autofdo\fR>.
  9018. .Sp
  9019. E.g.
  9020. .Sp
  9021. .Vb 2
  9022. \& create_gcov \-\-binary=your_program.unstripped \-\-profile=perf.data \e
  9023. \& \-\-gcov=profile.afdo
  9024. .Ve
  9025. .PP
  9026. The following options control compiler behavior regarding floating-point
  9027. arithmetic. These options trade off between speed and
  9028. correctness. All must be specifically enabled.
  9029. .IP "\fB\-ffloat\-store\fR" 4
  9030. .IX Item "-ffloat-store"
  9031. Do not store floating-point variables in registers, and inhibit other
  9032. options that might change whether a floating-point value is taken from a
  9033. register or memory.
  9034. .Sp
  9035. This option prevents undesirable excess precision on machines such as
  9036. the 68000 where the floating registers (of the 68881) keep more
  9037. precision than a \f(CW\*(C`double\*(C'\fR is supposed to have. Similarly for the
  9038. x86 architecture. For most programs, the excess precision does only
  9039. good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
  9040. point. Use \fB\-ffloat\-store\fR for such programs, after modifying
  9041. them to store all pertinent intermediate computations into variables.
  9042. .IP "\fB\-fexcess\-precision=\fR\fIstyle\fR" 4
  9043. .IX Item "-fexcess-precision=style"
  9044. This option allows further control over excess precision on machines
  9045. where floating-point operations occur in a format with more precision or
  9046. range than the \s-1IEEE\s0 standard and interchange floating-point types. By
  9047. default, \fB\-fexcess\-precision=fast\fR is in effect; this means that
  9048. operations may be carried out in a wider precision than the types specified
  9049. in the source if that would result in faster code, and it is unpredictable
  9050. when rounding to the types specified in the source code takes place.
  9051. When compiling C, if \fB\-fexcess\-precision=standard\fR is specified then
  9052. excess precision follows the rules specified in \s-1ISO C99\s0; in particular,
  9053. both casts and assignments cause values to be rounded to their
  9054. semantic types (whereas \fB\-ffloat\-store\fR only affects
  9055. assignments). This option is enabled by default for C if a strict
  9056. conformance option such as \fB\-std=c99\fR is used.
  9057. \&\fB\-ffast\-math\fR enables \fB\-fexcess\-precision=fast\fR by default
  9058. regardless of whether a strict conformance option is used.
  9059. .Sp
  9060. \&\fB\-fexcess\-precision=standard\fR is not implemented for languages
  9061. other than C. On the x86, it has no effect if \fB\-mfpmath=sse\fR
  9062. or \fB\-mfpmath=sse+387\fR is specified; in the former case, \s-1IEEE\s0
  9063. semantics apply without excess precision, and in the latter, rounding
  9064. is unpredictable.
  9065. .IP "\fB\-ffast\-math\fR" 4
  9066. .IX Item "-ffast-math"
  9067. Sets the options \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR,
  9068. \&\fB\-ffinite\-math\-only\fR, \fB\-fno\-rounding\-math\fR,
  9069. \&\fB\-fno\-signaling\-nans\fR, \fB\-fcx\-limited\-range\fR and
  9070. \&\fB\-fexcess\-precision=fast\fR.
  9071. .Sp
  9072. This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
  9073. .Sp
  9074. This option is not turned on by any \fB\-O\fR option besides
  9075. \&\fB\-Ofast\fR since it can result in incorrect output for programs
  9076. that depend on an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications
  9077. for math functions. It may, however, yield faster code for programs
  9078. that do not require the guarantees of these specifications.
  9079. .IP "\fB\-fno\-math\-errno\fR" 4
  9080. .IX Item "-fno-math-errno"
  9081. Do not set \f(CW\*(C`errno\*(C'\fR after calling math functions that are executed
  9082. with a single instruction, e.g., \f(CW\*(C`sqrt\*(C'\fR. A program that relies on
  9083. \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
  9084. for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
  9085. .Sp
  9086. This option is not turned on by any \fB\-O\fR option since
  9087. it can result in incorrect output for programs that depend on
  9088. an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
  9089. math functions. It may, however, yield faster code for programs
  9090. that do not require the guarantees of these specifications.
  9091. .Sp
  9092. The default is \fB\-fmath\-errno\fR.
  9093. .Sp
  9094. On Darwin systems, the math library never sets \f(CW\*(C`errno\*(C'\fR. There is
  9095. therefore no reason for the compiler to consider the possibility that
  9096. it might, and \fB\-fno\-math\-errno\fR is the default.
  9097. .IP "\fB\-funsafe\-math\-optimizations\fR" 4
  9098. .IX Item "-funsafe-math-optimizations"
  9099. Allow optimizations for floating-point arithmetic that (a) assume
  9100. that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
  9101. \&\s-1ANSI\s0 standards. When used at link time, it may include libraries
  9102. or startup files that change the default \s-1FPU\s0 control word or other
  9103. similar optimizations.
  9104. .Sp
  9105. This option is not turned on by any \fB\-O\fR option since
  9106. it can result in incorrect output for programs that depend on
  9107. an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
  9108. math functions. It may, however, yield faster code for programs
  9109. that do not require the guarantees of these specifications.
  9110. Enables \fB\-fno\-signed\-zeros\fR, \fB\-fno\-trapping\-math\fR,
  9111. \&\fB\-fassociative\-math\fR and \fB\-freciprocal\-math\fR.
  9112. .Sp
  9113. The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
  9114. .IP "\fB\-fassociative\-math\fR" 4
  9115. .IX Item "-fassociative-math"
  9116. Allow re-association of operands in series of floating-point operations.
  9117. This violates the \s-1ISO C\s0 and \*(C+ language standard by possibly changing
  9118. computation result. \s-1NOTE:\s0 re-ordering may change the sign of zero as
  9119. well as ignore NaNs and inhibit or create underflow or overflow (and
  9120. thus cannot be used on code that relies on rounding behavior like
  9121. \&\f(CW\*(C`(x + 2**52) \- 2**52\*(C'\fR. May also reorder floating-point comparisons
  9122. and thus may not be used when ordered comparisons are required.
  9123. This option requires that both \fB\-fno\-signed\-zeros\fR and
  9124. \&\fB\-fno\-trapping\-math\fR be in effect. Moreover, it doesn't make
  9125. much sense with \fB\-frounding\-math\fR. For Fortran the option
  9126. is automatically enabled when both \fB\-fno\-signed\-zeros\fR and
  9127. \&\fB\-fno\-trapping\-math\fR are in effect.
  9128. .Sp
  9129. The default is \fB\-fno\-associative\-math\fR.
  9130. .IP "\fB\-freciprocal\-math\fR" 4
  9131. .IX Item "-freciprocal-math"
  9132. Allow the reciprocal of a value to be used instead of dividing by
  9133. the value if this enables optimizations. For example \f(CW\*(C`x / y\*(C'\fR
  9134. can be replaced with \f(CW\*(C`x * (1/y)\*(C'\fR, which is useful if \f(CW\*(C`(1/y)\*(C'\fR
  9135. is subject to common subexpression elimination. Note that this loses
  9136. precision and increases the number of flops operating on the value.
  9137. .Sp
  9138. The default is \fB\-fno\-reciprocal\-math\fR.
  9139. .IP "\fB\-ffinite\-math\-only\fR" 4
  9140. .IX Item "-ffinite-math-only"
  9141. Allow optimizations for floating-point arithmetic that assume
  9142. that arguments and results are not NaNs or +\-Infs.
  9143. .Sp
  9144. This option is not turned on by any \fB\-O\fR option since
  9145. it can result in incorrect output for programs that depend on
  9146. an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
  9147. math functions. It may, however, yield faster code for programs
  9148. that do not require the guarantees of these specifications.
  9149. .Sp
  9150. The default is \fB\-fno\-finite\-math\-only\fR.
  9151. .IP "\fB\-fno\-signed\-zeros\fR" 4
  9152. .IX Item "-fno-signed-zeros"
  9153. Allow optimizations for floating-point arithmetic that ignore the
  9154. signedness of zero. \s-1IEEE\s0 arithmetic specifies the behavior of
  9155. distinct +0.0 and \-0.0 values, which then prohibits simplification
  9156. of expressions such as x+0.0 or 0.0*x (even with \fB\-ffinite\-math\-only\fR).
  9157. This option implies that the sign of a zero result isn't significant.
  9158. .Sp
  9159. The default is \fB\-fsigned\-zeros\fR.
  9160. .IP "\fB\-fno\-trapping\-math\fR" 4
  9161. .IX Item "-fno-trapping-math"
  9162. Compile code assuming that floating-point operations cannot generate
  9163. user-visible traps. These traps include division by zero, overflow,
  9164. underflow, inexact result and invalid operation. This option requires
  9165. that \fB\-fno\-signaling\-nans\fR be in effect. Setting this option may
  9166. allow faster code if one relies on \*(L"non-stop\*(R" \s-1IEEE\s0 arithmetic, for example.
  9167. .Sp
  9168. This option should never be turned on by any \fB\-O\fR option since
  9169. it can result in incorrect output for programs that depend on
  9170. an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
  9171. math functions.
  9172. .Sp
  9173. The default is \fB\-ftrapping\-math\fR.
  9174. .IP "\fB\-frounding\-math\fR" 4
  9175. .IX Item "-frounding-math"
  9176. Disable transformations and optimizations that assume default floating-point
  9177. rounding behavior. This is round-to-zero for all floating point
  9178. to integer conversions, and round-to-nearest for all other arithmetic
  9179. truncations. This option should be specified for programs that change
  9180. the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
  9181. non-default rounding mode. This option disables constant folding of
  9182. floating-point expressions at compile time (which may be affected by
  9183. rounding mode) and arithmetic transformations that are unsafe in the
  9184. presence of sign-dependent rounding modes.
  9185. .Sp
  9186. The default is \fB\-fno\-rounding\-math\fR.
  9187. .Sp
  9188. This option is experimental and does not currently guarantee to
  9189. disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
  9190. Future versions of \s-1GCC\s0 may provide finer control of this setting
  9191. using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma. This command-line option
  9192. will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
  9193. .IP "\fB\-fsignaling\-nans\fR" 4
  9194. .IX Item "-fsignaling-nans"
  9195. Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
  9196. traps during floating-point operations. Setting this option disables
  9197. optimizations that may change the number of exceptions visible with
  9198. signaling NaNs. This option implies \fB\-ftrapping\-math\fR.
  9199. .Sp
  9200. This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
  9201. be defined.
  9202. .Sp
  9203. The default is \fB\-fno\-signaling\-nans\fR.
  9204. .Sp
  9205. This option is experimental and does not currently guarantee to
  9206. disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
  9207. .IP "\fB\-fno\-fp\-int\-builtin\-inexact\fR" 4
  9208. .IX Item "-fno-fp-int-builtin-inexact"
  9209. Do not allow the built-in functions \f(CW\*(C`ceil\*(C'\fR, \f(CW\*(C`floor\*(C'\fR,
  9210. \&\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
  9211. double\*(C'\fR variants, to generate code that raises the \*(L"inexact\*(R"
  9212. floating-point exception for noninteger arguments. \s-1ISO C99\s0 and C11
  9213. allow these functions to raise the \*(L"inexact\*(R" exception, but \s-1ISO/IEC
  9214. TS 18661\-1:2014,\s0 the C bindings to \s-1IEEE 754\-2008,\s0 does not allow these
  9215. functions to do so.
  9216. .Sp
  9217. The default is \fB\-ffp\-int\-builtin\-inexact\fR, allowing the
  9218. exception to be raised. This option does nothing unless
  9219. \&\fB\-ftrapping\-math\fR is in effect.
  9220. .Sp
  9221. Even if \fB\-fno\-fp\-int\-builtin\-inexact\fR is used, if the functions
  9222. generate a call to a library function then the \*(L"inexact\*(R" exception
  9223. may be raised if the library implementation does not follow \s-1TS 18661.\s0
  9224. .IP "\fB\-fsingle\-precision\-constant\fR" 4
  9225. .IX Item "-fsingle-precision-constant"
  9226. Treat floating-point constants as single precision instead of
  9227. implicitly converting them to double-precision constants.
  9228. .IP "\fB\-fcx\-limited\-range\fR" 4
  9229. .IX Item "-fcx-limited-range"
  9230. When enabled, this option states that a range reduction step is not
  9231. needed when performing complex division. Also, there is no checking
  9232. whether the result of a complex multiplication or division is \f(CW\*(C`NaN
  9233. + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case. The
  9234. default is \fB\-fno\-cx\-limited\-range\fR, but is enabled by
  9235. \&\fB\-ffast\-math\fR.
  9236. .Sp
  9237. This option controls the default setting of the \s-1ISO C99\s0
  9238. \&\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma. Nevertheless, the option applies to
  9239. all languages.
  9240. .IP "\fB\-fcx\-fortran\-rules\fR" 4
  9241. .IX Item "-fcx-fortran-rules"
  9242. Complex multiplication and division follow Fortran rules. Range
  9243. reduction is done as part of complex division, but there is no checking
  9244. whether the result of a complex multiplication or division is \f(CW\*(C`NaN
  9245. + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.
  9246. .Sp
  9247. The default is \fB\-fno\-cx\-fortran\-rules\fR.
  9248. .PP
  9249. The following options control optimizations that may improve
  9250. performance, but are not enabled by any \fB\-O\fR options. This
  9251. section includes experimental options that may produce broken code.
  9252. .IP "\fB\-fbranch\-probabilities\fR" 4
  9253. .IX Item "-fbranch-probabilities"
  9254. After running a program compiled with \fB\-fprofile\-arcs\fR,
  9255. you can compile it a second time using
  9256. \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
  9257. the number of times each branch was taken. When a program
  9258. compiled with \fB\-fprofile\-arcs\fR exits, it saves arc execution
  9259. counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
  9260. file. The information in this data file is very dependent on the
  9261. structure of the generated code, so you must use the same source code
  9262. and the same optimization options for both compilations.
  9263. .Sp
  9264. With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
  9265. \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
  9266. These can be used to improve optimization. Currently, they are only
  9267. used in one place: in \fIreorg.c\fR, instead of guessing which path a
  9268. branch is most likely to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
  9269. exactly determine which path is taken more often.
  9270. .IP "\fB\-fprofile\-values\fR" 4
  9271. .IX Item "-fprofile-values"
  9272. If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
  9273. data about values of expressions in the program is gathered.
  9274. .Sp
  9275. With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
  9276. from profiling values of expressions for usage in optimizations.
  9277. .Sp
  9278. Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
  9279. .IP "\fB\-fprofile\-reorder\-functions\fR" 4
  9280. .IX Item "-fprofile-reorder-functions"
  9281. Function reordering based on profile instrumentation collects
  9282. first time of execution of a function and orders these functions
  9283. in ascending order.
  9284. .Sp
  9285. Enabled with \fB\-fprofile\-use\fR.
  9286. .IP "\fB\-fvpt\fR" 4
  9287. .IX Item "-fvpt"
  9288. If combined with \fB\-fprofile\-arcs\fR, this option instructs the compiler
  9289. to add code to gather information about values of expressions.
  9290. .Sp
  9291. With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
  9292. and actually performs the optimizations based on them.
  9293. Currently the optimizations include specialization of division operations
  9294. using the knowledge about the value of the denominator.
  9295. .IP "\fB\-frename\-registers\fR" 4
  9296. .IX Item "-frename-registers"
  9297. Attempt to avoid false dependencies in scheduled code by making use
  9298. of registers left over after register allocation. This optimization
  9299. most benefits processors with lots of registers. Depending on the
  9300. debug information format adopted by the target, however, it can
  9301. make debugging impossible, since variables no longer stay in
  9302. a \*(L"home register\*(R".
  9303. .Sp
  9304. Enabled by default with \fB\-funroll\-loops\fR.
  9305. .IP "\fB\-fschedule\-fusion\fR" 4
  9306. .IX Item "-fschedule-fusion"
  9307. Performs a target dependent pass over the instruction stream to schedule
  9308. instructions of same type together because target machine can execute them
  9309. more efficiently if they are adjacent to each other in the instruction flow.
  9310. .Sp
  9311. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  9312. .IP "\fB\-ftracer\fR" 4
  9313. .IX Item "-ftracer"
  9314. Perform tail duplication to enlarge superblock size. This transformation
  9315. simplifies the control flow of the function allowing other optimizations to do
  9316. a better job.
  9317. .Sp
  9318. Enabled with \fB\-fprofile\-use\fR.
  9319. .IP "\fB\-funroll\-loops\fR" 4
  9320. .IX Item "-funroll-loops"
  9321. Unroll loops whose number of iterations can be determined at compile time or
  9322. upon entry to the loop. \fB\-funroll\-loops\fR implies
  9323. \&\fB\-frerun\-cse\-after\-loop\fR, \fB\-fweb\fR and \fB\-frename\-registers\fR.
  9324. It also turns on complete loop peeling (i.e. complete removal of loops with
  9325. a small constant number of iterations). This option makes code larger, and may
  9326. or may not make it run faster.
  9327. .Sp
  9328. Enabled with \fB\-fprofile\-use\fR.
  9329. .IP "\fB\-funroll\-all\-loops\fR" 4
  9330. .IX Item "-funroll-all-loops"
  9331. Unroll all loops, even if their number of iterations is uncertain when
  9332. the loop is entered. This usually makes programs run more slowly.
  9333. \&\fB\-funroll\-all\-loops\fR implies the same options as
  9334. \&\fB\-funroll\-loops\fR.
  9335. .IP "\fB\-fpeel\-loops\fR" 4
  9336. .IX Item "-fpeel-loops"
  9337. Peels loops for which there is enough information that they do not
  9338. roll much (from profile feedback or static analysis). It also turns on
  9339. complete loop peeling (i.e. complete removal of loops with small constant
  9340. number of iterations).
  9341. .Sp
  9342. Enabled with \fB\-O3\fR and/or \fB\-fprofile\-use\fR.
  9343. .IP "\fB\-fmove\-loop\-invariants\fR" 4
  9344. .IX Item "-fmove-loop-invariants"
  9345. Enables the loop invariant motion pass in the \s-1RTL\s0 loop optimizer. Enabled
  9346. at level \fB\-O1\fR
  9347. .IP "\fB\-fsplit\-loops\fR" 4
  9348. .IX Item "-fsplit-loops"
  9349. Split a loop into two if it contains a condition that's always true
  9350. for one side of the iteration space and false for the other.
  9351. .IP "\fB\-funswitch\-loops\fR" 4
  9352. .IX Item "-funswitch-loops"
  9353. Move branches with loop invariant conditions out of the loop, with duplicates
  9354. of the loop on both branches (modified according to result of the condition).
  9355. .IP "\fB\-ffunction\-sections\fR" 4
  9356. .IX Item "-ffunction-sections"
  9357. .PD 0
  9358. .IP "\fB\-fdata\-sections\fR" 4
  9359. .IX Item "-fdata-sections"
  9360. .PD
  9361. Place each function or data item into its own section in the output
  9362. file if the target supports arbitrary sections. The name of the
  9363. function or the name of the data item determines the section's name
  9364. in the output file.
  9365. .Sp
  9366. Use these options on systems where the linker can perform optimizations to
  9367. improve locality of reference in the instruction space. Most systems using the
  9368. \&\s-1ELF\s0 object format have linkers with such optimizations. On \s-1AIX,\s0 the linker
  9369. rearranges sections (CSECTs) based on the call graph. The performance impact
  9370. varies.
  9371. .Sp
  9372. Together with a linker garbage collection (linker \fB\-\-gc\-sections\fR
  9373. option) these options may lead to smaller statically-linked executables (after
  9374. stripping).
  9375. .Sp
  9376. On \s-1ELF/DWARF\s0 systems these options do not degenerate the quality of the debug
  9377. information. There could be issues with other object files/debug info formats.
  9378. .Sp
  9379. Only use these options when there are significant benefits from doing so. When
  9380. you specify these options, the assembler and linker create larger object and
  9381. executable files and are also slower. These options affect code generation.
  9382. They prevent optimizations by the compiler and assembler using relative
  9383. locations inside a translation unit since the locations are unknown until
  9384. link time. An example of such an optimization is relaxing calls to short call
  9385. instructions.
  9386. .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
  9387. .IX Item "-fbranch-target-load-optimize"
  9388. Perform branch target register load optimization before prologue / epilogue
  9389. threading.
  9390. The use of target registers can typically be exposed only during reload,
  9391. thus hoisting loads out of loops and doing inter-block scheduling needs
  9392. a separate optimization pass.
  9393. .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
  9394. .IX Item "-fbranch-target-load-optimize2"
  9395. Perform branch target register load optimization after prologue / epilogue
  9396. threading.
  9397. .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
  9398. .IX Item "-fbtr-bb-exclusive"
  9399. When performing branch target register load optimization, don't reuse
  9400. branch target registers within any basic block.
  9401. .IP "\fB\-fstdarg\-opt\fR" 4
  9402. .IX Item "-fstdarg-opt"
  9403. Optimize the prologue of variadic argument functions with respect to usage of
  9404. those arguments.
  9405. .IP "\fB\-fsection\-anchors\fR" 4
  9406. .IX Item "-fsection-anchors"
  9407. Try to reduce the number of symbolic address calculations by using
  9408. shared \*(L"anchor\*(R" symbols to address nearby objects. This transformation
  9409. can help to reduce the number of \s-1GOT\s0 entries and \s-1GOT\s0 accesses on some
  9410. targets.
  9411. .Sp
  9412. For example, the implementation of the following function \f(CW\*(C`foo\*(C'\fR:
  9413. .Sp
  9414. .Vb 2
  9415. \& static int a, b, c;
  9416. \& int foo (void) { return a + b + c; }
  9417. .Ve
  9418. .Sp
  9419. usually calculates the addresses of all three variables, but if you
  9420. compile it with \fB\-fsection\-anchors\fR, it accesses the variables
  9421. from a common anchor point instead. The effect is similar to the
  9422. following pseudocode (which isn't valid C):
  9423. .Sp
  9424. .Vb 5
  9425. \& int foo (void)
  9426. \& {
  9427. \& register int *xr = &x;
  9428. \& return xr[&a \- &x] + xr[&b \- &x] + xr[&c \- &x];
  9429. \& }
  9430. .Ve
  9431. .Sp
  9432. Not all targets support this option.
  9433. .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
  9434. .IX Item "--param name=value"
  9435. In some places, \s-1GCC\s0 uses various constants to control the amount of
  9436. optimization that is done. For example, \s-1GCC\s0 does not inline functions
  9437. that contain more than a certain number of instructions. You can
  9438. control some of these constants on the command line using the
  9439. \&\fB\-\-param\fR option.
  9440. .Sp
  9441. The names of specific parameters, and the meaning of the values, are
  9442. tied to the internals of the compiler, and are subject to change
  9443. without notice in future releases.
  9444. .Sp
  9445. In each case, the \fIvalue\fR is an integer. The allowable choices for
  9446. \&\fIname\fR are:
  9447. .RS 4
  9448. .IP "\fBpredictable-branch-outcome\fR" 4
  9449. .IX Item "predictable-branch-outcome"
  9450. When branch is predicted to be taken with probability lower than this threshold
  9451. (in percent), then it is considered well predictable. The default is 10.
  9452. .IP "\fBmax-rtl-if-conversion-insns\fR" 4
  9453. .IX Item "max-rtl-if-conversion-insns"
  9454. \&\s-1RTL\s0 if-conversion tries to remove conditional branches around a block and
  9455. replace them with conditionally executed instructions. This parameter
  9456. gives the maximum number of instructions in a block which should be
  9457. considered for if-conversion. The default is 10, though the compiler will
  9458. also use other heuristics to decide whether if-conversion is likely to be
  9459. profitable.
  9460. .IP "\fBmax-rtl-if-conversion-predictable-cost\fR" 4
  9461. .IX Item "max-rtl-if-conversion-predictable-cost"
  9462. .PD 0
  9463. .IP "\fBmax-rtl-if-conversion-unpredictable-cost\fR" 4
  9464. .IX Item "max-rtl-if-conversion-unpredictable-cost"
  9465. .PD
  9466. \&\s-1RTL\s0 if-conversion will try to remove conditional branches around a block
  9467. and replace them with conditionally executed instructions. These parameters
  9468. give the maximum permissible cost for the sequence that would be generated
  9469. by if-conversion depending on whether the branch is statically determined
  9470. to be predictable or not. The units for this parameter are the same as
  9471. those for the \s-1GCC\s0 internal seq_cost metric. The compiler will try to
  9472. provide a reasonable default for this parameter using the \s-1BRANCH_COST\s0
  9473. target macro.
  9474. .IP "\fBmax-crossjump-edges\fR" 4
  9475. .IX Item "max-crossjump-edges"
  9476. The maximum number of incoming edges to consider for cross-jumping.
  9477. The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
  9478. the number of edges incoming to each block. Increasing values mean
  9479. more aggressive optimization, making the compilation time increase with
  9480. probably small improvement in executable size.
  9481. .IP "\fBmin-crossjump-insns\fR" 4
  9482. .IX Item "min-crossjump-insns"
  9483. The minimum number of instructions that must be matched at the end
  9484. of two blocks before cross-jumping is performed on them. This
  9485. value is ignored in the case where all instructions in the block being
  9486. cross-jumped from are matched. The default value is 5.
  9487. .IP "\fBmax-grow-copy-bb-insns\fR" 4
  9488. .IX Item "max-grow-copy-bb-insns"
  9489. The maximum code size expansion factor when copying basic blocks
  9490. instead of jumping. The expansion is relative to a jump instruction.
  9491. The default value is 8.
  9492. .IP "\fBmax-goto-duplication-insns\fR" 4
  9493. .IX Item "max-goto-duplication-insns"
  9494. The maximum number of instructions to duplicate to a block that jumps
  9495. to a computed goto. To avoid O(N^2) behavior in a number of
  9496. passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
  9497. and unfactors them as late as possible. Only computed jumps at the
  9498. end of a basic blocks with no more than max-goto-duplication-insns are
  9499. unfactored. The default value is 8.
  9500. .IP "\fBmax-delay-slot-insn-search\fR" 4
  9501. .IX Item "max-delay-slot-insn-search"
  9502. The maximum number of instructions to consider when looking for an
  9503. instruction to fill a delay slot. If more than this arbitrary number of
  9504. instructions are searched, the time savings from filling the delay slot
  9505. are minimal, so stop searching. Increasing values mean more
  9506. aggressive optimization, making the compilation time increase with probably
  9507. small improvement in execution time.
  9508. .IP "\fBmax-delay-slot-live-search\fR" 4
  9509. .IX Item "max-delay-slot-live-search"
  9510. When trying to fill delay slots, the maximum number of instructions to
  9511. consider when searching for a block with valid live register
  9512. information. Increasing this arbitrarily chosen value means more
  9513. aggressive optimization, increasing the compilation time. This parameter
  9514. should be removed when the delay slot code is rewritten to maintain the
  9515. control-flow graph.
  9516. .IP "\fBmax-gcse-memory\fR" 4
  9517. .IX Item "max-gcse-memory"
  9518. The approximate maximum amount of memory that can be allocated in
  9519. order to perform the global common subexpression elimination
  9520. optimization. If more memory than specified is required, the
  9521. optimization is not done.
  9522. .IP "\fBmax-gcse-insertion-ratio\fR" 4
  9523. .IX Item "max-gcse-insertion-ratio"
  9524. If the ratio of expression insertions to deletions is larger than this value
  9525. for any expression, then \s-1RTL PRE\s0 inserts or removes the expression and thus
  9526. leaves partially redundant computations in the instruction stream. The default value is 20.
  9527. .IP "\fBmax-pending-list-length\fR" 4
  9528. .IX Item "max-pending-list-length"
  9529. The maximum number of pending dependencies scheduling allows
  9530. before flushing the current state and starting over. Large functions
  9531. with few branches or calls can create excessively large lists which
  9532. needlessly consume memory and resources.
  9533. .IP "\fBmax-modulo-backtrack-attempts\fR" 4
  9534. .IX Item "max-modulo-backtrack-attempts"
  9535. The maximum number of backtrack attempts the scheduler should make
  9536. when modulo scheduling a loop. Larger values can exponentially increase
  9537. compilation time.
  9538. .IP "\fBmax-inline-insns-single\fR" 4
  9539. .IX Item "max-inline-insns-single"
  9540. Several parameters control the tree inliner used in \s-1GCC.\s0
  9541. This number sets the maximum number of instructions (counted in \s-1GCC\s0's
  9542. internal representation) in a single function that the tree inliner
  9543. considers for inlining. This only affects functions declared
  9544. inline and methods implemented in a class declaration (\*(C+).
  9545. The default value is 400.
  9546. .IP "\fBmax-inline-insns-auto\fR" 4
  9547. .IX Item "max-inline-insns-auto"
  9548. When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
  9549. a lot of functions that would otherwise not be considered for inlining
  9550. by the compiler are investigated. To those functions, a different
  9551. (more restrictive) limit compared to functions declared inline can
  9552. be applied.
  9553. The default value is 30.
  9554. .IP "\fBinline-min-speedup\fR" 4
  9555. .IX Item "inline-min-speedup"
  9556. When estimated performance improvement of caller + callee runtime exceeds this
  9557. threshold (in percent), the function can be inlined regardless of the limit on
  9558. \&\fB\-\-param max-inline-insns-single\fR and \fB\-\-param
  9559. max-inline-insns-auto\fR.
  9560. The default value is 15.
  9561. .IP "\fBlarge-function-insns\fR" 4
  9562. .IX Item "large-function-insns"
  9563. The limit specifying really large functions. For functions larger than this
  9564. limit after inlining, inlining is constrained by
  9565. \&\fB\-\-param large-function-growth\fR. This parameter is useful primarily
  9566. to avoid extreme compilation time caused by non-linear algorithms used by the
  9567. back end.
  9568. The default value is 2700.
  9569. .IP "\fBlarge-function-growth\fR" 4
  9570. .IX Item "large-function-growth"
  9571. Specifies maximal growth of large function caused by inlining in percents.
  9572. The default value is 100 which limits large function growth to 2.0 times
  9573. the original size.
  9574. .IP "\fBlarge-unit-insns\fR" 4
  9575. .IX Item "large-unit-insns"
  9576. The limit specifying large translation unit. Growth caused by inlining of
  9577. units larger than this limit is limited by \fB\-\-param inline-unit-growth\fR.
  9578. For small units this might be too tight.
  9579. For example, consider a unit consisting of function A
  9580. that is inline and B that just calls A three times. If B is small relative to
  9581. A, the growth of unit is 300\e% and yet such inlining is very sane. For very
  9582. large units consisting of small inlineable functions, however, the overall unit
  9583. growth limit is needed to avoid exponential explosion of code size. Thus for
  9584. smaller units, the size is increased to \fB\-\-param large-unit-insns\fR
  9585. before applying \fB\-\-param inline-unit-growth\fR. The default is 10000.
  9586. .IP "\fBinline-unit-growth\fR" 4
  9587. .IX Item "inline-unit-growth"
  9588. Specifies maximal overall growth of the compilation unit caused by inlining.
  9589. The default value is 20 which limits unit growth to 1.2 times the original
  9590. size. Cold functions (either marked cold via an attribute or by profile
  9591. feedback) are not accounted into the unit size.
  9592. .IP "\fBipcp-unit-growth\fR" 4
  9593. .IX Item "ipcp-unit-growth"
  9594. Specifies maximal overall growth of the compilation unit caused by
  9595. interprocedural constant propagation. The default value is 10 which limits
  9596. unit growth to 1.1 times the original size.
  9597. .IP "\fBlarge-stack-frame\fR" 4
  9598. .IX Item "large-stack-frame"
  9599. The limit specifying large stack frames. While inlining the algorithm is trying
  9600. to not grow past this limit too much. The default value is 256 bytes.
  9601. .IP "\fBlarge-stack-frame-growth\fR" 4
  9602. .IX Item "large-stack-frame-growth"
  9603. Specifies maximal growth of large stack frames caused by inlining in percents.
  9604. The default value is 1000 which limits large stack frame growth to 11 times
  9605. the original size.
  9606. .IP "\fBmax-inline-insns-recursive\fR" 4
  9607. .IX Item "max-inline-insns-recursive"
  9608. .PD 0
  9609. .IP "\fBmax-inline-insns-recursive-auto\fR" 4
  9610. .IX Item "max-inline-insns-recursive-auto"
  9611. .PD
  9612. Specifies the maximum number of instructions an out-of-line copy of a
  9613. self-recursive inline
  9614. function can grow into by performing recursive inlining.
  9615. .Sp
  9616. \&\fB\-\-param max-inline-insns-recursive\fR applies to functions
  9617. declared inline.
  9618. For functions not declared inline, recursive inlining
  9619. happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
  9620. enabled; \fB\-\-param max-inline-insns-recursive-auto\fR applies instead. The
  9621. default value is 450.
  9622. .IP "\fBmax-inline-recursive-depth\fR" 4
  9623. .IX Item "max-inline-recursive-depth"
  9624. .PD 0
  9625. .IP "\fBmax-inline-recursive-depth-auto\fR" 4
  9626. .IX Item "max-inline-recursive-depth-auto"
  9627. .PD
  9628. Specifies the maximum recursion depth used for recursive inlining.
  9629. .Sp
  9630. \&\fB\-\-param max-inline-recursive-depth\fR applies to functions
  9631. declared inline. For functions not declared inline, recursive inlining
  9632. happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
  9633. enabled; \fB\-\-param max-inline-recursive-depth-auto\fR applies instead. The
  9634. default value is 8.
  9635. .IP "\fBmin-inline-recursive-probability\fR" 4
  9636. .IX Item "min-inline-recursive-probability"
  9637. Recursive inlining is profitable only for function having deep recursion
  9638. in average and can hurt for function having little recursion depth by
  9639. increasing the prologue size or complexity of function body to other
  9640. optimizers.
  9641. .Sp
  9642. When profile feedback is available (see \fB\-fprofile\-generate\fR) the actual
  9643. recursion depth can be guessed from the probability that function recurses
  9644. via a given call expression. This parameter limits inlining only to call
  9645. expressions whose probability exceeds the given threshold (in percents).
  9646. The default value is 10.
  9647. .IP "\fBearly-inlining-insns\fR" 4
  9648. .IX Item "early-inlining-insns"
  9649. Specify growth that the early inliner can make. In effect it increases
  9650. the amount of inlining for code having a large abstraction penalty.
  9651. The default value is 14.
  9652. .IP "\fBmax-early-inliner-iterations\fR" 4
  9653. .IX Item "max-early-inliner-iterations"
  9654. Limit of iterations of the early inliner. This basically bounds
  9655. the number of nested indirect calls the early inliner can resolve.
  9656. Deeper chains are still handled by late inlining.
  9657. .IP "\fBcomdat-sharing-probability\fR" 4
  9658. .IX Item "comdat-sharing-probability"
  9659. Probability (in percent) that \*(C+ inline function with comdat visibility
  9660. are shared across multiple compilation units. The default value is 20.
  9661. .IP "\fBprofile-func-internal-id\fR" 4
  9662. .IX Item "profile-func-internal-id"
  9663. A parameter to control whether to use function internal id in profile
  9664. database lookup. If the value is 0, the compiler uses an id that
  9665. is based on function assembler name and filename, which makes old profile
  9666. data more tolerant to source changes such as function reordering etc.
  9667. The default value is 0.
  9668. .IP "\fBmin-vect-loop-bound\fR" 4
  9669. .IX Item "min-vect-loop-bound"
  9670. The minimum number of iterations under which loops are not vectorized
  9671. when \fB\-ftree\-vectorize\fR is used. The number of iterations after
  9672. vectorization needs to be greater than the value specified by this option
  9673. to allow vectorization. The default value is 0.
  9674. .IP "\fBgcse-cost-distance-ratio\fR" 4
  9675. .IX Item "gcse-cost-distance-ratio"
  9676. Scaling factor in calculation of maximum distance an expression
  9677. can be moved by \s-1GCSE\s0 optimizations. This is currently supported only in the
  9678. code hoisting pass. The bigger the ratio, the more aggressive code hoisting
  9679. is with simple expressions, i.e., the expressions that have cost
  9680. less than \fBgcse-unrestricted-cost\fR. Specifying 0 disables
  9681. hoisting of simple expressions. The default value is 10.
  9682. .IP "\fBgcse-unrestricted-cost\fR" 4
  9683. .IX Item "gcse-unrestricted-cost"
  9684. Cost, roughly measured as the cost of a single typical machine
  9685. instruction, at which \s-1GCSE\s0 optimizations do not constrain
  9686. the distance an expression can travel. This is currently
  9687. supported only in the code hoisting pass. The lesser the cost,
  9688. the more aggressive code hoisting is. Specifying 0
  9689. allows all expressions to travel unrestricted distances.
  9690. The default value is 3.
  9691. .IP "\fBmax-hoist-depth\fR" 4
  9692. .IX Item "max-hoist-depth"
  9693. The depth of search in the dominator tree for expressions to hoist.
  9694. This is used to avoid quadratic behavior in hoisting algorithm.
  9695. The value of 0 does not limit on the search, but may slow down compilation
  9696. of huge functions. The default value is 30.
  9697. .IP "\fBmax-tail-merge-comparisons\fR" 4
  9698. .IX Item "max-tail-merge-comparisons"
  9699. The maximum amount of similar bbs to compare a bb with. This is used to
  9700. avoid quadratic behavior in tree tail merging. The default value is 10.
  9701. .IP "\fBmax-tail-merge-iterations\fR" 4
  9702. .IX Item "max-tail-merge-iterations"
  9703. The maximum amount of iterations of the pass over the function. This is used to
  9704. limit compilation time in tree tail merging. The default value is 2.
  9705. .IP "\fBstore-merging-allow-unaligned\fR" 4
  9706. .IX Item "store-merging-allow-unaligned"
  9707. Allow the store merging pass to introduce unaligned stores if it is legal to
  9708. do so. The default value is 1.
  9709. .IP "\fBmax-stores-to-merge\fR" 4
  9710. .IX Item "max-stores-to-merge"
  9711. The maximum number of stores to attempt to merge into wider stores in the store
  9712. merging pass. The minimum value is 2 and the default is 64.
  9713. .IP "\fBmax-unrolled-insns\fR" 4
  9714. .IX Item "max-unrolled-insns"
  9715. The maximum number of instructions that a loop may have to be unrolled.
  9716. If a loop is unrolled, this parameter also determines how many times
  9717. the loop code is unrolled.
  9718. .IP "\fBmax-average-unrolled-insns\fR" 4
  9719. .IX Item "max-average-unrolled-insns"
  9720. The maximum number of instructions biased by probabilities of their execution
  9721. that a loop may have to be unrolled. If a loop is unrolled,
  9722. this parameter also determines how many times the loop code is unrolled.
  9723. .IP "\fBmax-unroll-times\fR" 4
  9724. .IX Item "max-unroll-times"
  9725. The maximum number of unrollings of a single loop.
  9726. .IP "\fBmax-peeled-insns\fR" 4
  9727. .IX Item "max-peeled-insns"
  9728. The maximum number of instructions that a loop may have to be peeled.
  9729. If a loop is peeled, this parameter also determines how many times
  9730. the loop code is peeled.
  9731. .IP "\fBmax-peel-times\fR" 4
  9732. .IX Item "max-peel-times"
  9733. The maximum number of peelings of a single loop.
  9734. .IP "\fBmax-peel-branches\fR" 4
  9735. .IX Item "max-peel-branches"
  9736. The maximum number of branches on the hot path through the peeled sequence.
  9737. .IP "\fBmax-completely-peeled-insns\fR" 4
  9738. .IX Item "max-completely-peeled-insns"
  9739. The maximum number of insns of a completely peeled loop.
  9740. .IP "\fBmax-completely-peel-times\fR" 4
  9741. .IX Item "max-completely-peel-times"
  9742. The maximum number of iterations of a loop to be suitable for complete peeling.
  9743. .IP "\fBmax-completely-peel-loop-nest-depth\fR" 4
  9744. .IX Item "max-completely-peel-loop-nest-depth"
  9745. The maximum depth of a loop nest suitable for complete peeling.
  9746. .IP "\fBmax-unswitch-insns\fR" 4
  9747. .IX Item "max-unswitch-insns"
  9748. The maximum number of insns of an unswitched loop.
  9749. .IP "\fBmax-unswitch-level\fR" 4
  9750. .IX Item "max-unswitch-level"
  9751. The maximum number of branches unswitched in a single loop.
  9752. .IP "\fBmax-loop-headers-insns\fR" 4
  9753. .IX Item "max-loop-headers-insns"
  9754. The maximum number of insns in loop header duplicated by the copy loop headers
  9755. pass.
  9756. .IP "\fBlim-expensive\fR" 4
  9757. .IX Item "lim-expensive"
  9758. The minimum cost of an expensive expression in the loop invariant motion.
  9759. .IP "\fBiv-consider-all-candidates-bound\fR" 4
  9760. .IX Item "iv-consider-all-candidates-bound"
  9761. Bound on number of candidates for induction variables, below which
  9762. all candidates are considered for each use in induction variable
  9763. optimizations. If there are more candidates than this,
  9764. only the most relevant ones are considered to avoid quadratic time complexity.
  9765. .IP "\fBiv-max-considered-uses\fR" 4
  9766. .IX Item "iv-max-considered-uses"
  9767. The induction variable optimizations give up on loops that contain more
  9768. induction variable uses.
  9769. .IP "\fBiv-always-prune-cand-set-bound\fR" 4
  9770. .IX Item "iv-always-prune-cand-set-bound"
  9771. If the number of candidates in the set is smaller than this value,
  9772. always try to remove unnecessary ivs from the set
  9773. when adding a new one.
  9774. .IP "\fBavg-loop-niter\fR" 4
  9775. .IX Item "avg-loop-niter"
  9776. Average number of iterations of a loop.
  9777. .IP "\fBdse-max-object-size\fR" 4
  9778. .IX Item "dse-max-object-size"
  9779. Maximum size (in bytes) of objects tracked bytewise by dead store elimination.
  9780. Larger values may result in larger compilation times.
  9781. .IP "\fBscev-max-expr-size\fR" 4
  9782. .IX Item "scev-max-expr-size"
  9783. Bound on size of expressions used in the scalar evolutions analyzer.
  9784. Large expressions slow the analyzer.
  9785. .IP "\fBscev-max-expr-complexity\fR" 4
  9786. .IX Item "scev-max-expr-complexity"
  9787. Bound on the complexity of the expressions in the scalar evolutions analyzer.
  9788. Complex expressions slow the analyzer.
  9789. .IP "\fBmax-tree-if-conversion-phi-args\fR" 4
  9790. .IX Item "max-tree-if-conversion-phi-args"
  9791. Maximum number of arguments in a \s-1PHI\s0 supported by \s-1TREE\s0 if conversion
  9792. unless the loop is marked with simd pragma.
  9793. .IP "\fBvect-max-version-for-alignment-checks\fR" 4
  9794. .IX Item "vect-max-version-for-alignment-checks"
  9795. The maximum number of run-time checks that can be performed when
  9796. doing loop versioning for alignment in the vectorizer.
  9797. .IP "\fBvect-max-version-for-alias-checks\fR" 4
  9798. .IX Item "vect-max-version-for-alias-checks"
  9799. The maximum number of run-time checks that can be performed when
  9800. doing loop versioning for alias in the vectorizer.
  9801. .IP "\fBvect-max-peeling-for-alignment\fR" 4
  9802. .IX Item "vect-max-peeling-for-alignment"
  9803. The maximum number of loop peels to enhance access alignment
  9804. for vectorizer. Value \-1 means no limit.
  9805. .IP "\fBmax-iterations-to-track\fR" 4
  9806. .IX Item "max-iterations-to-track"
  9807. The maximum number of iterations of a loop the brute-force algorithm
  9808. for analysis of the number of iterations of the loop tries to evaluate.
  9809. .IP "\fBhot-bb-count-ws-permille\fR" 4
  9810. .IX Item "hot-bb-count-ws-permille"
  9811. A basic block profile count is considered hot if it contributes to
  9812. the given permillage (i.e. 0...1000) of the entire profiled execution.
  9813. .IP "\fBhot-bb-frequency-fraction\fR" 4
  9814. .IX Item "hot-bb-frequency-fraction"
  9815. Select fraction of the entry block frequency of executions of basic block in
  9816. function given basic block needs to have to be considered hot.
  9817. .IP "\fBmax-predicted-iterations\fR" 4
  9818. .IX Item "max-predicted-iterations"
  9819. The maximum number of loop iterations we predict statically. This is useful
  9820. in cases where a function contains a single loop with known bound and
  9821. another loop with unknown bound.
  9822. The known number of iterations is predicted correctly, while
  9823. the unknown number of iterations average to roughly 10. This means that the
  9824. loop without bounds appears artificially cold relative to the other one.
  9825. .IP "\fBbuiltin-expect-probability\fR" 4
  9826. .IX Item "builtin-expect-probability"
  9827. Control the probability of the expression having the specified value. This
  9828. parameter takes a percentage (i.e. 0 ... 100) as input.
  9829. The default probability of 90 is obtained empirically.
  9830. .IP "\fBalign-threshold\fR" 4
  9831. .IX Item "align-threshold"
  9832. Select fraction of the maximal frequency of executions of a basic block in
  9833. a function to align the basic block.
  9834. .IP "\fBalign-loop-iterations\fR" 4
  9835. .IX Item "align-loop-iterations"
  9836. A loop expected to iterate at least the selected number of iterations is
  9837. aligned.
  9838. .IP "\fBtracer-dynamic-coverage\fR" 4
  9839. .IX Item "tracer-dynamic-coverage"
  9840. .PD 0
  9841. .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
  9842. .IX Item "tracer-dynamic-coverage-feedback"
  9843. .PD
  9844. This value is used to limit superblock formation once the given percentage of
  9845. executed instructions is covered. This limits unnecessary code size
  9846. expansion.
  9847. .Sp
  9848. The \fBtracer-dynamic-coverage-feedback\fR parameter
  9849. is used only when profile
  9850. feedback is available. The real profiles (as opposed to statically estimated
  9851. ones) are much less balanced allowing the threshold to be larger value.
  9852. .IP "\fBtracer-max-code-growth\fR" 4
  9853. .IX Item "tracer-max-code-growth"
  9854. Stop tail duplication once code growth has reached given percentage. This is
  9855. a rather artificial limit, as most of the duplicates are eliminated later in
  9856. cross jumping, so it may be set to much higher values than is the desired code
  9857. growth.
  9858. .IP "\fBtracer-min-branch-ratio\fR" 4
  9859. .IX Item "tracer-min-branch-ratio"
  9860. Stop reverse growth when the reverse probability of best edge is less than this
  9861. threshold (in percent).
  9862. .IP "\fBtracer-min-branch-probability\fR" 4
  9863. .IX Item "tracer-min-branch-probability"
  9864. .PD 0
  9865. .IP "\fBtracer-min-branch-probability-feedback\fR" 4
  9866. .IX Item "tracer-min-branch-probability-feedback"
  9867. .PD
  9868. Stop forward growth if the best edge has probability lower than this
  9869. threshold.
  9870. .Sp
  9871. Similarly to \fBtracer-dynamic-coverage\fR two parameters are
  9872. provided. \fBtracer-min-branch-probability-feedback\fR is used for
  9873. compilation with profile feedback and \fBtracer-min-branch-probability\fR
  9874. compilation without. The value for compilation with profile feedback
  9875. needs to be more conservative (higher) in order to make tracer
  9876. effective.
  9877. .IP "\fBstack-clash-protection-guard-size\fR" 4
  9878. .IX Item "stack-clash-protection-guard-size"
  9879. Specify the size of the operating system provided stack guard as
  9880. 2 raised to \fInum\fR bytes. The default value is 12 (4096 bytes).
  9881. Acceptable values are between 12 and 30. Higher values may reduce the
  9882. number of explicit probes, but a value larger than the operating system
  9883. provided guard will leave code vulnerable to stack clash style attacks.
  9884. .IP "\fBstack-clash-protection-probe-interval\fR" 4
  9885. .IX Item "stack-clash-protection-probe-interval"
  9886. Stack clash protection involves probing stack space as it is allocated. This
  9887. param controls the maximum distance between probes into the stack as 2 raised
  9888. to \fInum\fR bytes. Acceptable values are between 10 and 16 and defaults to
  9889. 12. Higher values may reduce the number of explicit probes, but a value
  9890. larger than the operating system provided guard will leave code vulnerable to
  9891. stack clash style attacks.
  9892. .IP "\fBmax-cse-path-length\fR" 4
  9893. .IX Item "max-cse-path-length"
  9894. The maximum number of basic blocks on path that \s-1CSE\s0 considers.
  9895. The default is 10.
  9896. .IP "\fBmax-cse-insns\fR" 4
  9897. .IX Item "max-cse-insns"
  9898. The maximum number of instructions \s-1CSE\s0 processes before flushing.
  9899. The default is 1000.
  9900. .IP "\fBggc-min-expand\fR" 4
  9901. .IX Item "ggc-min-expand"
  9902. \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation. This
  9903. parameter specifies the minimum percentage by which the garbage
  9904. collector's heap should be allowed to expand between collections.
  9905. Tuning this may improve compilation speed; it has no effect on code
  9906. generation.
  9907. .Sp
  9908. The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
  9909. \&\s-1RAM\s0 >= 1GB. If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\*(R"\s0 is
  9910. the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR. If
  9911. \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
  9912. bound of 30% is used. Setting this parameter and
  9913. \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
  9914. every opportunity. This is extremely slow, but can be useful for
  9915. debugging.
  9916. .IP "\fBggc-min-heapsize\fR" 4
  9917. .IX Item "ggc-min-heapsize"
  9918. Minimum size of the garbage collector's heap before it begins bothering
  9919. to collect garbage. The first collection occurs after the heap expands
  9920. by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR. Again,
  9921. tuning this may improve compilation speed, and has no effect on code
  9922. generation.
  9923. .Sp
  9924. The default is the smaller of \s-1RAM/8, RLIMIT_RSS,\s0 or a limit that
  9925. tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
  9926. with a lower bound of 4096 (four megabytes) and an upper bound of
  9927. 131072 (128 megabytes). If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
  9928. particular platform, the lower bound is used. Setting this parameter
  9929. very large effectively disables garbage collection. Setting this
  9930. parameter and \fBggc-min-expand\fR to zero causes a full collection
  9931. to occur at every opportunity.
  9932. .IP "\fBmax-reload-search-insns\fR" 4
  9933. .IX Item "max-reload-search-insns"
  9934. The maximum number of instruction reload should look backward for equivalent
  9935. register. Increasing values mean more aggressive optimization, making the
  9936. compilation time increase with probably slightly better performance.
  9937. The default value is 100.
  9938. .IP "\fBmax-cselib-memory-locations\fR" 4
  9939. .IX Item "max-cselib-memory-locations"
  9940. The maximum number of memory locations cselib should take into account.
  9941. Increasing values mean more aggressive optimization, making the compilation time
  9942. increase with probably slightly better performance. The default value is 500.
  9943. .IP "\fBmax-sched-ready-insns\fR" 4
  9944. .IX Item "max-sched-ready-insns"
  9945. The maximum number of instructions ready to be issued the scheduler should
  9946. consider at any given time during the first scheduling pass. Increasing
  9947. values mean more thorough searches, making the compilation time increase
  9948. with probably little benefit. The default value is 100.
  9949. .IP "\fBmax-sched-region-blocks\fR" 4
  9950. .IX Item "max-sched-region-blocks"
  9951. The maximum number of blocks in a region to be considered for
  9952. interblock scheduling. The default value is 10.
  9953. .IP "\fBmax-pipeline-region-blocks\fR" 4
  9954. .IX Item "max-pipeline-region-blocks"
  9955. The maximum number of blocks in a region to be considered for
  9956. pipelining in the selective scheduler. The default value is 15.
  9957. .IP "\fBmax-sched-region-insns\fR" 4
  9958. .IX Item "max-sched-region-insns"
  9959. The maximum number of insns in a region to be considered for
  9960. interblock scheduling. The default value is 100.
  9961. .IP "\fBmax-pipeline-region-insns\fR" 4
  9962. .IX Item "max-pipeline-region-insns"
  9963. The maximum number of insns in a region to be considered for
  9964. pipelining in the selective scheduler. The default value is 200.
  9965. .IP "\fBmin-spec-prob\fR" 4
  9966. .IX Item "min-spec-prob"
  9967. The minimum probability (in percents) of reaching a source block
  9968. for interblock speculative scheduling. The default value is 40.
  9969. .IP "\fBmax-sched-extend-regions-iters\fR" 4
  9970. .IX Item "max-sched-extend-regions-iters"
  9971. The maximum number of iterations through \s-1CFG\s0 to extend regions.
  9972. A value of 0 (the default) disables region extensions.
  9973. .IP "\fBmax-sched-insn-conflict-delay\fR" 4
  9974. .IX Item "max-sched-insn-conflict-delay"
  9975. The maximum conflict delay for an insn to be considered for speculative motion.
  9976. The default value is 3.
  9977. .IP "\fBsched-spec-prob-cutoff\fR" 4
  9978. .IX Item "sched-spec-prob-cutoff"
  9979. The minimal probability of speculation success (in percents), so that
  9980. speculative insns are scheduled.
  9981. The default value is 40.
  9982. .IP "\fBsched-state-edge-prob-cutoff\fR" 4
  9983. .IX Item "sched-state-edge-prob-cutoff"
  9984. The minimum probability an edge must have for the scheduler to save its
  9985. state across it.
  9986. The default value is 10.
  9987. .IP "\fBsched-mem-true-dep-cost\fR" 4
  9988. .IX Item "sched-mem-true-dep-cost"
  9989. Minimal distance (in \s-1CPU\s0 cycles) between store and load targeting same
  9990. memory locations. The default value is 1.
  9991. .IP "\fBselsched-max-lookahead\fR" 4
  9992. .IX Item "selsched-max-lookahead"
  9993. The maximum size of the lookahead window of selective scheduling. It is a
  9994. depth of search for available instructions.
  9995. The default value is 50.
  9996. .IP "\fBselsched-max-sched-times\fR" 4
  9997. .IX Item "selsched-max-sched-times"
  9998. The maximum number of times that an instruction is scheduled during
  9999. selective scheduling. This is the limit on the number of iterations
  10000. through which the instruction may be pipelined. The default value is 2.
  10001. .IP "\fBselsched-insns-to-rename\fR" 4
  10002. .IX Item "selsched-insns-to-rename"
  10003. The maximum number of best instructions in the ready list that are considered
  10004. for renaming in the selective scheduler. The default value is 2.
  10005. .IP "\fBsms-min-sc\fR" 4
  10006. .IX Item "sms-min-sc"
  10007. The minimum value of stage count that swing modulo scheduler
  10008. generates. The default value is 2.
  10009. .IP "\fBmax-last-value-rtl\fR" 4
  10010. .IX Item "max-last-value-rtl"
  10011. The maximum size measured as number of RTLs that can be recorded in an expression
  10012. in combiner for a pseudo register as last known value of that register. The default
  10013. is 10000.
  10014. .IP "\fBmax-combine-insns\fR" 4
  10015. .IX Item "max-combine-insns"
  10016. The maximum number of instructions the \s-1RTL\s0 combiner tries to combine.
  10017. The default value is 2 at \fB\-Og\fR and 4 otherwise.
  10018. .IP "\fBinteger-share-limit\fR" 4
  10019. .IX Item "integer-share-limit"
  10020. Small integer constants can use a shared data structure, reducing the
  10021. compiler's memory usage and increasing its speed. This sets the maximum
  10022. value of a shared integer constant. The default value is 256.
  10023. .IP "\fBssp-buffer-size\fR" 4
  10024. .IX Item "ssp-buffer-size"
  10025. The minimum size of buffers (i.e. arrays) that receive stack smashing
  10026. protection when \fB\-fstack\-protection\fR is used.
  10027. .IP "\fBmin-size-for-stack-sharing\fR" 4
  10028. .IX Item "min-size-for-stack-sharing"
  10029. The minimum size of variables taking part in stack slot sharing when not
  10030. optimizing. The default value is 32.
  10031. .IP "\fBmax-jump-thread-duplication-stmts\fR" 4
  10032. .IX Item "max-jump-thread-duplication-stmts"
  10033. Maximum number of statements allowed in a block that needs to be
  10034. duplicated when threading jumps.
  10035. .IP "\fBmax-fields-for-field-sensitive\fR" 4
  10036. .IX Item "max-fields-for-field-sensitive"
  10037. Maximum number of fields in a structure treated in
  10038. a field sensitive manner during pointer analysis. The default is zero
  10039. for \fB\-O0\fR and \fB\-O1\fR,
  10040. and 100 for \fB\-Os\fR, \fB\-O2\fR, and \fB\-O3\fR.
  10041. .IP "\fBprefetch-latency\fR" 4
  10042. .IX Item "prefetch-latency"
  10043. Estimate on average number of instructions that are executed before
  10044. prefetch finishes. The distance prefetched ahead is proportional
  10045. to this constant. Increasing this number may also lead to less
  10046. streams being prefetched (see \fBsimultaneous-prefetches\fR).
  10047. .IP "\fBsimultaneous-prefetches\fR" 4
  10048. .IX Item "simultaneous-prefetches"
  10049. Maximum number of prefetches that can run at the same time.
  10050. .IP "\fBl1\-cache\-line\-size\fR" 4
  10051. .IX Item "l1-cache-line-size"
  10052. The size of cache line in L1 cache, in bytes.
  10053. .IP "\fBl1\-cache\-size\fR" 4
  10054. .IX Item "l1-cache-size"
  10055. The size of L1 cache, in kilobytes.
  10056. .IP "\fBl2\-cache\-size\fR" 4
  10057. .IX Item "l2-cache-size"
  10058. The size of L2 cache, in kilobytes.
  10059. .IP "\fBloop-interchange-max-num-stmts\fR" 4
  10060. .IX Item "loop-interchange-max-num-stmts"
  10061. The maximum number of stmts in a loop to be interchanged.
  10062. .IP "\fBloop-interchange-stride-ratio\fR" 4
  10063. .IX Item "loop-interchange-stride-ratio"
  10064. The minimum ratio between stride of two loops for interchange to be profitable.
  10065. .IP "\fBmin-insn-to-prefetch-ratio\fR" 4
  10066. .IX Item "min-insn-to-prefetch-ratio"
  10067. The minimum ratio between the number of instructions and the
  10068. number of prefetches to enable prefetching in a loop.
  10069. .IP "\fBprefetch-min-insn-to-mem-ratio\fR" 4
  10070. .IX Item "prefetch-min-insn-to-mem-ratio"
  10071. The minimum ratio between the number of instructions and the
  10072. number of memory references to enable prefetching in a loop.
  10073. .IP "\fBuse-canonical-types\fR" 4
  10074. .IX Item "use-canonical-types"
  10075. Whether the compiler should use the \*(L"canonical\*(R" type system. By
  10076. default, this should always be 1, which uses a more efficient internal
  10077. mechanism for comparing types in \*(C+ and Objective\-\*(C+. However, if
  10078. bugs in the canonical type system are causing compilation failures,
  10079. set this value to 0 to disable canonical types.
  10080. .IP "\fBswitch-conversion-max-branch-ratio\fR" 4
  10081. .IX Item "switch-conversion-max-branch-ratio"
  10082. Switch initialization conversion refuses to create arrays that are
  10083. bigger than \fBswitch-conversion-max-branch-ratio\fR times the number of
  10084. branches in the switch.
  10085. .IP "\fBmax-partial-antic-length\fR" 4
  10086. .IX Item "max-partial-antic-length"
  10087. Maximum length of the partial antic set computed during the tree
  10088. partial redundancy elimination optimization (\fB\-ftree\-pre\fR) when
  10089. optimizing at \fB\-O3\fR and above. For some sorts of source code
  10090. the enhanced partial redundancy elimination optimization can run away,
  10091. consuming all of the memory available on the host machine. This
  10092. parameter sets a limit on the length of the sets that are computed,
  10093. which prevents the runaway behavior. Setting a value of 0 for
  10094. this parameter allows an unlimited set length.
  10095. .IP "\fBsccvn-max-scc-size\fR" 4
  10096. .IX Item "sccvn-max-scc-size"
  10097. Maximum size of a strongly connected component (\s-1SCC\s0) during \s-1SCCVN\s0
  10098. processing. If this limit is hit, \s-1SCCVN\s0 processing for the whole
  10099. function is not done and optimizations depending on it are
  10100. disabled. The default maximum \s-1SCC\s0 size is 10000.
  10101. .IP "\fBsccvn-max-alias-queries-per-access\fR" 4
  10102. .IX Item "sccvn-max-alias-queries-per-access"
  10103. Maximum number of alias-oracle queries we perform when looking for
  10104. redundancies for loads and stores. If this limit is hit the search
  10105. is aborted and the load or store is not considered redundant. The
  10106. number of queries is algorithmically limited to the number of
  10107. stores on all paths from the load to the function entry.
  10108. The default maximum number of queries is 1000.
  10109. .IP "\fBira-max-loops-num\fR" 4
  10110. .IX Item "ira-max-loops-num"
  10111. \&\s-1IRA\s0 uses regional register allocation by default. If a function
  10112. contains more loops than the number given by this parameter, only at most
  10113. the given number of the most frequently-executed loops form regions
  10114. for regional register allocation. The default value of the
  10115. parameter is 100.
  10116. .IP "\fBira-max-conflict-table-size\fR" 4
  10117. .IX Item "ira-max-conflict-table-size"
  10118. Although \s-1IRA\s0 uses a sophisticated algorithm to compress the conflict
  10119. table, the table can still require excessive amounts of memory for
  10120. huge functions. If the conflict table for a function could be more
  10121. than the size in \s-1MB\s0 given by this parameter, the register allocator
  10122. instead uses a faster, simpler, and lower-quality
  10123. algorithm that does not require building a pseudo-register conflict table.
  10124. The default value of the parameter is 2000.
  10125. .IP "\fBira-loop-reserved-regs\fR" 4
  10126. .IX Item "ira-loop-reserved-regs"
  10127. \&\s-1IRA\s0 can be used to evaluate more accurate register pressure in loops
  10128. for decisions to move loop invariants (see \fB\-O3\fR). The number
  10129. of available registers reserved for some other purposes is given
  10130. by this parameter. The default value of the parameter is 2, which is
  10131. the minimal number of registers needed by typical instructions.
  10132. This value is the best found from numerous experiments.
  10133. .IP "\fBlra-inheritance-ebb-probability-cutoff\fR" 4
  10134. .IX Item "lra-inheritance-ebb-probability-cutoff"
  10135. \&\s-1LRA\s0 tries to reuse values reloaded in registers in subsequent insns.
  10136. This optimization is called inheritance. \s-1EBB\s0 is used as a region to
  10137. do this optimization. The parameter defines a minimal fall-through
  10138. edge probability in percentage used to add \s-1BB\s0 to inheritance \s-1EBB\s0 in
  10139. \&\s-1LRA.\s0 The default value of the parameter is 40. The value was chosen
  10140. from numerous runs of \s-1SPEC2000\s0 on x86\-64.
  10141. .IP "\fBloop-invariant-max-bbs-in-loop\fR" 4
  10142. .IX Item "loop-invariant-max-bbs-in-loop"
  10143. Loop invariant motion can be very expensive, both in compilation time and
  10144. in amount of needed compile-time memory, with very large loops. Loops
  10145. with more basic blocks than this parameter won't have loop invariant
  10146. motion optimization performed on them. The default value of the
  10147. parameter is 1000 for \fB\-O1\fR and 10000 for \fB\-O2\fR and above.
  10148. .IP "\fBloop-max-datarefs-for-datadeps\fR" 4
  10149. .IX Item "loop-max-datarefs-for-datadeps"
  10150. Building data dependencies is expensive for very large loops. This
  10151. parameter limits the number of data references in loops that are
  10152. considered for data dependence analysis. These large loops are no
  10153. handled by the optimizations using loop data dependencies.
  10154. The default value is 1000.
  10155. .IP "\fBmax-vartrack-size\fR" 4
  10156. .IX Item "max-vartrack-size"
  10157. Sets a maximum number of hash table slots to use during variable
  10158. tracking dataflow analysis of any function. If this limit is exceeded
  10159. with variable tracking at assignments enabled, analysis for that
  10160. function is retried without it, after removing all debug insns from
  10161. the function. If the limit is exceeded even without debug insns, var
  10162. tracking analysis is completely disabled for the function. Setting
  10163. the parameter to zero makes it unlimited.
  10164. .IP "\fBmax-vartrack-expr-depth\fR" 4
  10165. .IX Item "max-vartrack-expr-depth"
  10166. Sets a maximum number of recursion levels when attempting to map
  10167. variable names or debug temporaries to value expressions. This trades
  10168. compilation time for more complete debug information. If this is set too
  10169. low, value expressions that are available and could be represented in
  10170. debug information may end up not being used; setting this higher may
  10171. enable the compiler to find more complex debug expressions, but compile
  10172. time and memory use may grow. The default is 12.
  10173. .IP "\fBmax-debug-marker-count\fR" 4
  10174. .IX Item "max-debug-marker-count"
  10175. Sets a threshold on the number of debug markers (e.g. begin stmt
  10176. markers) to avoid complexity explosion at inlining or expanding to \s-1RTL.\s0
  10177. If a function has more such gimple stmts than the set limit, such stmts
  10178. will be dropped from the inlined copy of a function, and from its \s-1RTL\s0
  10179. expansion. The default is 100000.
  10180. .IP "\fBmin-nondebug-insn-uid\fR" 4
  10181. .IX Item "min-nondebug-insn-uid"
  10182. Use uids starting at this parameter for nondebug insns. The range below
  10183. the parameter is reserved exclusively for debug insns created by
  10184. \&\fB\-fvar\-tracking\-assignments\fR, but debug insns may get
  10185. (non-overlapping) uids above it if the reserved range is exhausted.
  10186. .IP "\fBipa-sra-ptr-growth-factor\fR" 4
  10187. .IX Item "ipa-sra-ptr-growth-factor"
  10188. IPA-SRA replaces a pointer to an aggregate with one or more new
  10189. parameters only when their cumulative size is less or equal to
  10190. \&\fBipa-sra-ptr-growth-factor\fR times the size of the original
  10191. pointer parameter.
  10192. .IP "\fBsra-max-scalarization-size-Ospeed\fR" 4
  10193. .IX Item "sra-max-scalarization-size-Ospeed"
  10194. .PD 0
  10195. .IP "\fBsra-max-scalarization-size-Osize\fR" 4
  10196. .IX Item "sra-max-scalarization-size-Osize"
  10197. .PD
  10198. The two Scalar Reduction of Aggregates passes (\s-1SRA\s0 and IPA-SRA) aim to
  10199. replace scalar parts of aggregates with uses of independent scalar
  10200. variables. These parameters control the maximum size, in storage units,
  10201. of aggregate which is considered for replacement when compiling for
  10202. speed
  10203. (\fBsra-max-scalarization-size-Ospeed\fR) or size
  10204. (\fBsra-max-scalarization-size-Osize\fR) respectively.
  10205. .IP "\fBtm-max-aggregate-size\fR" 4
  10206. .IX Item "tm-max-aggregate-size"
  10207. When making copies of thread-local variables in a transaction, this
  10208. parameter specifies the size in bytes after which variables are
  10209. saved with the logging functions as opposed to save/restore code
  10210. sequence pairs. This option only applies when using
  10211. \&\fB\-fgnu\-tm\fR.
  10212. .IP "\fBgraphite-max-nb-scop-params\fR" 4
  10213. .IX Item "graphite-max-nb-scop-params"
  10214. To avoid exponential effects in the Graphite loop transforms, the
  10215. number of parameters in a Static Control Part (SCoP) is bounded. The
  10216. default value is 10 parameters, a value of zero can be used to lift
  10217. the bound. A variable whose value is unknown at compilation time and
  10218. defined outside a SCoP is a parameter of the SCoP.
  10219. .IP "\fBloop-block-tile-size\fR" 4
  10220. .IX Item "loop-block-tile-size"
  10221. Loop blocking or strip mining transforms, enabled with
  10222. \&\fB\-floop\-block\fR or \fB\-floop\-strip\-mine\fR, strip mine each
  10223. loop in the loop nest by a given number of iterations. The strip
  10224. length can be changed using the \fBloop-block-tile-size\fR
  10225. parameter. The default value is 51 iterations.
  10226. .IP "\fBloop-unroll-jam-size\fR" 4
  10227. .IX Item "loop-unroll-jam-size"
  10228. Specify the unroll factor for the \fB\-floop\-unroll\-and\-jam\fR option. The
  10229. default value is 4.
  10230. .IP "\fBloop-unroll-jam-depth\fR" 4
  10231. .IX Item "loop-unroll-jam-depth"
  10232. Specify the dimension to be unrolled (counting from the most inner loop)
  10233. for the \fB\-floop\-unroll\-and\-jam\fR. The default value is 2.
  10234. .IP "\fBipa-cp-value-list-size\fR" 4
  10235. .IX Item "ipa-cp-value-list-size"
  10236. IPA-CP attempts to track all possible values and types passed to a function's
  10237. parameter in order to propagate them and perform devirtualization.
  10238. \&\fBipa-cp-value-list-size\fR is the maximum number of values and types it
  10239. stores per one formal parameter of a function.
  10240. .IP "\fBipa-cp-eval-threshold\fR" 4
  10241. .IX Item "ipa-cp-eval-threshold"
  10242. IPA-CP calculates its own score of cloning profitability heuristics
  10243. and performs those cloning opportunities with scores that exceed
  10244. \&\fBipa-cp-eval-threshold\fR.
  10245. .IP "\fBipa-cp-recursion-penalty\fR" 4
  10246. .IX Item "ipa-cp-recursion-penalty"
  10247. Percentage penalty the recursive functions will receive when they
  10248. are evaluated for cloning.
  10249. .IP "\fBipa-cp-single-call-penalty\fR" 4
  10250. .IX Item "ipa-cp-single-call-penalty"
  10251. Percentage penalty functions containing a single call to another
  10252. function will receive when they are evaluated for cloning.
  10253. .IP "\fBipa-max-agg-items\fR" 4
  10254. .IX Item "ipa-max-agg-items"
  10255. IPA-CP is also capable to propagate a number of scalar values passed
  10256. in an aggregate. \fBipa-max-agg-items\fR controls the maximum
  10257. number of such values per one parameter.
  10258. .IP "\fBipa-cp-loop-hint-bonus\fR" 4
  10259. .IX Item "ipa-cp-loop-hint-bonus"
  10260. When IPA-CP determines that a cloning candidate would make the number
  10261. of iterations of a loop known, it adds a bonus of
  10262. \&\fBipa-cp-loop-hint-bonus\fR to the profitability score of
  10263. the candidate.
  10264. .IP "\fBipa-cp-array-index-hint-bonus\fR" 4
  10265. .IX Item "ipa-cp-array-index-hint-bonus"
  10266. When IPA-CP determines that a cloning candidate would make the index of
  10267. an array access known, it adds a bonus of
  10268. \&\fBipa-cp-array-index-hint-bonus\fR to the profitability
  10269. score of the candidate.
  10270. .IP "\fBipa-max-aa-steps\fR" 4
  10271. .IX Item "ipa-max-aa-steps"
  10272. During its analysis of function bodies, IPA-CP employs alias analysis
  10273. in order to track values pointed to by function parameters. In order
  10274. not spend too much time analyzing huge functions, it gives up and
  10275. consider all memory clobbered after examining
  10276. \&\fBipa-max-aa-steps\fR statements modifying memory.
  10277. .IP "\fBlto-partitions\fR" 4
  10278. .IX Item "lto-partitions"
  10279. Specify desired number of partitions produced during \s-1WHOPR\s0 compilation.
  10280. The number of partitions should exceed the number of CPUs used for compilation.
  10281. The default value is 32.
  10282. .IP "\fBlto-min-partition\fR" 4
  10283. .IX Item "lto-min-partition"
  10284. Size of minimal partition for \s-1WHOPR\s0 (in estimated instructions).
  10285. This prevents expenses of splitting very small programs into too many
  10286. partitions.
  10287. .IP "\fBlto-max-partition\fR" 4
  10288. .IX Item "lto-max-partition"
  10289. Size of max partition for \s-1WHOPR\s0 (in estimated instructions).
  10290. to provide an upper bound for individual size of partition.
  10291. Meant to be used only with balanced partitioning.
  10292. .IP "\fBcxx-max-namespaces-for-diagnostic-help\fR" 4
  10293. .IX Item "cxx-max-namespaces-for-diagnostic-help"
  10294. The maximum number of namespaces to consult for suggestions when \*(C+
  10295. name lookup fails for an identifier. The default is 1000.
  10296. .IP "\fBsink-frequency-threshold\fR" 4
  10297. .IX Item "sink-frequency-threshold"
  10298. The maximum relative execution frequency (in percents) of the target block
  10299. relative to a statement's original block to allow statement sinking of a
  10300. statement. Larger numbers result in more aggressive statement sinking.
  10301. The default value is 75. A small positive adjustment is applied for
  10302. statements with memory operands as those are even more profitable so sink.
  10303. .IP "\fBmax-stores-to-sink\fR" 4
  10304. .IX Item "max-stores-to-sink"
  10305. The maximum number of conditional store pairs that can be sunk. Set to 0
  10306. if either vectorization (\fB\-ftree\-vectorize\fR) or if-conversion
  10307. (\fB\-ftree\-loop\-if\-convert\fR) is disabled. The default is 2.
  10308. .IP "\fBallow-store-data-races\fR" 4
  10309. .IX Item "allow-store-data-races"
  10310. Allow optimizers to introduce new data races on stores.
  10311. Set to 1 to allow, otherwise to 0. This option is enabled by default
  10312. at optimization level \fB\-Ofast\fR.
  10313. .IP "\fBcase-values-threshold\fR" 4
  10314. .IX Item "case-values-threshold"
  10315. The smallest number of different values for which it is best to use a
  10316. jump-table instead of a tree of conditional branches. If the value is
  10317. 0, use the default for the machine. The default is 0.
  10318. .IP "\fBtree-reassoc-width\fR" 4
  10319. .IX Item "tree-reassoc-width"
  10320. Set the maximum number of instructions executed in parallel in
  10321. reassociated tree. This parameter overrides target dependent
  10322. heuristics used by default if has non zero value.
  10323. .IP "\fBsched-pressure-algorithm\fR" 4
  10324. .IX Item "sched-pressure-algorithm"
  10325. Choose between the two available implementations of
  10326. \&\fB\-fsched\-pressure\fR. Algorithm 1 is the original implementation
  10327. and is the more likely to prevent instructions from being reordered.
  10328. Algorithm 2 was designed to be a compromise between the relatively
  10329. conservative approach taken by algorithm 1 and the rather aggressive
  10330. approach taken by the default scheduler. It relies more heavily on
  10331. having a regular register file and accurate register pressure classes.
  10332. See \fIhaifa\-sched.c\fR in the \s-1GCC\s0 sources for more details.
  10333. .Sp
  10334. The default choice depends on the target.
  10335. .IP "\fBmax-slsr-cand-scan\fR" 4
  10336. .IX Item "max-slsr-cand-scan"
  10337. Set the maximum number of existing candidates that are considered when
  10338. seeking a basis for a new straight-line strength reduction candidate.
  10339. .IP "\fBasan-globals\fR" 4
  10340. .IX Item "asan-globals"
  10341. Enable buffer overflow detection for global objects. This kind
  10342. of protection is enabled by default if you are using
  10343. \&\fB\-fsanitize=address\fR option.
  10344. To disable global objects protection use \fB\-\-param asan\-globals=0\fR.
  10345. .IP "\fBasan-stack\fR" 4
  10346. .IX Item "asan-stack"
  10347. Enable buffer overflow detection for stack objects. This kind of
  10348. protection is enabled by default when using \fB\-fsanitize=address\fR.
  10349. To disable stack protection use \fB\-\-param asan\-stack=0\fR option.
  10350. .IP "\fBasan-instrument-reads\fR" 4
  10351. .IX Item "asan-instrument-reads"
  10352. Enable buffer overflow detection for memory reads. This kind of
  10353. protection is enabled by default when using \fB\-fsanitize=address\fR.
  10354. To disable memory reads protection use
  10355. \&\fB\-\-param asan\-instrument\-reads=0\fR.
  10356. .IP "\fBasan-instrument-writes\fR" 4
  10357. .IX Item "asan-instrument-writes"
  10358. Enable buffer overflow detection for memory writes. This kind of
  10359. protection is enabled by default when using \fB\-fsanitize=address\fR.
  10360. To disable memory writes protection use
  10361. \&\fB\-\-param asan\-instrument\-writes=0\fR option.
  10362. .IP "\fBasan-memintrin\fR" 4
  10363. .IX Item "asan-memintrin"
  10364. Enable detection for built-in functions. This kind of protection
  10365. is enabled by default when using \fB\-fsanitize=address\fR.
  10366. To disable built-in functions protection use
  10367. \&\fB\-\-param asan\-memintrin=0\fR.
  10368. .IP "\fBasan-use-after-return\fR" 4
  10369. .IX Item "asan-use-after-return"
  10370. Enable detection of use-after-return. This kind of protection
  10371. is enabled by default when using the \fB\-fsanitize=address\fR option.
  10372. To disable it use \fB\-\-param asan\-use\-after\-return=0\fR.
  10373. .Sp
  10374. Note: By default the check is disabled at run time. To enable it,
  10375. add \f(CW\*(C`detect_stack_use_after_return=1\*(C'\fR to the environment variable
  10376. \&\fB\s-1ASAN_OPTIONS\s0\fR.
  10377. .IP "\fBasan-instrumentation-with-call-threshold\fR" 4
  10378. .IX Item "asan-instrumentation-with-call-threshold"
  10379. If number of memory accesses in function being instrumented
  10380. is greater or equal to this number, use callbacks instead of inline checks.
  10381. E.g. to disable inline code use
  10382. \&\fB\-\-param asan\-instrumentation\-with\-call\-threshold=0\fR.
  10383. .IP "\fBuse-after-scope-direct-emission-threshold\fR" 4
  10384. .IX Item "use-after-scope-direct-emission-threshold"
  10385. If the size of a local variable in bytes is smaller or equal to this
  10386. number, directly poison (or unpoison) shadow memory instead of using
  10387. run-time callbacks. The default value is 256.
  10388. .IP "\fBchkp-max-ctor-size\fR" 4
  10389. .IX Item "chkp-max-ctor-size"
  10390. Static constructors generated by Pointer Bounds Checker may become very
  10391. large and significantly increase compile time at optimization level
  10392. \&\fB\-O1\fR and higher. This parameter is a maximum number of statements
  10393. in a single generated constructor. Default value is 5000.
  10394. .IP "\fBmax-fsm-thread-path-insns\fR" 4
  10395. .IX Item "max-fsm-thread-path-insns"
  10396. Maximum number of instructions to copy when duplicating blocks on a
  10397. finite state automaton jump thread path. The default is 100.
  10398. .IP "\fBmax-fsm-thread-length\fR" 4
  10399. .IX Item "max-fsm-thread-length"
  10400. Maximum number of basic blocks on a finite state automaton jump thread
  10401. path. The default is 10.
  10402. .IP "\fBmax-fsm-thread-paths\fR" 4
  10403. .IX Item "max-fsm-thread-paths"
  10404. Maximum number of new jump thread paths to create for a finite state
  10405. automaton. The default is 50.
  10406. .IP "\fBparloops-chunk-size\fR" 4
  10407. .IX Item "parloops-chunk-size"
  10408. Chunk size of omp schedule for loops parallelized by parloops. The default
  10409. is 0.
  10410. .IP "\fBparloops-schedule\fR" 4
  10411. .IX Item "parloops-schedule"
  10412. Schedule type of omp schedule for loops parallelized by parloops (static,
  10413. dynamic, guided, auto, runtime). The default is static.
  10414. .IP "\fBparloops-min-per-thread\fR" 4
  10415. .IX Item "parloops-min-per-thread"
  10416. The minimum number of iterations per thread of an innermost parallelized
  10417. loop for which the parallelized variant is prefered over the single threaded
  10418. one. The default is 100. Note that for a parallelized loop nest the
  10419. minimum number of iterations of the outermost loop per thread is two.
  10420. .IP "\fBmax-ssa-name-query-depth\fR" 4
  10421. .IX Item "max-ssa-name-query-depth"
  10422. Maximum depth of recursion when querying properties of \s-1SSA\s0 names in things
  10423. like fold routines. One level of recursion corresponds to following a
  10424. use-def chain.
  10425. .IP "\fBhsa-gen-debug-stores\fR" 4
  10426. .IX Item "hsa-gen-debug-stores"
  10427. Enable emission of special debug stores within \s-1HSA\s0 kernels which are
  10428. then read and reported by libgomp plugin. Generation of these stores
  10429. is disabled by default, use \fB\-\-param hsa\-gen\-debug\-stores=1\fR to
  10430. enable it.
  10431. .IP "\fBmax-speculative-devirt-maydefs\fR" 4
  10432. .IX Item "max-speculative-devirt-maydefs"
  10433. The maximum number of may-defs we analyze when looking for a must-def
  10434. specifying the dynamic type of an object that invokes a virtual call
  10435. we may be able to devirtualize speculatively.
  10436. .IP "\fBmax-vrp-switch-assertions\fR" 4
  10437. .IX Item "max-vrp-switch-assertions"
  10438. The maximum number of assertions to add along the default edge of a switch
  10439. statement during \s-1VRP.\s0 The default is 10.
  10440. .IP "\fBunroll-jam-min-percent\fR" 4
  10441. .IX Item "unroll-jam-min-percent"
  10442. The minimum percentage of memory references that must be optimized
  10443. away for the unroll-and-jam transformation to be considered profitable.
  10444. .IP "\fBunroll-jam-max-unroll\fR" 4
  10445. .IX Item "unroll-jam-max-unroll"
  10446. The maximum number of times the outer loop should be unrolled by
  10447. the unroll-and-jam transformation.
  10448. .RE
  10449. .RS 4
  10450. .RE
  10451. .SS "Program Instrumentation Options"
  10452. .IX Subsection "Program Instrumentation Options"
  10453. \&\s-1GCC\s0 supports a number of command-line options that control adding
  10454. run-time instrumentation to the code it normally generates.
  10455. For example, one purpose of instrumentation is collect profiling
  10456. statistics for use in finding program hot spots, code coverage
  10457. analysis, or profile-guided optimizations.
  10458. Another class of program instrumentation is adding run-time checking
  10459. to detect programming errors like invalid pointer
  10460. dereferences or out-of-bounds array accesses, as well as deliberately
  10461. hostile attacks such as stack smashing or \*(C+ vtable hijacking.
  10462. There is also a general hook which can be used to implement other
  10463. forms of tracing or function-level instrumentation for debug or
  10464. program analysis purposes.
  10465. .IP "\fB\-p\fR" 4
  10466. .IX Item "-p"
  10467. Generate extra code to write profile information suitable for the
  10468. analysis program \fBprof\fR. You must use this option when compiling
  10469. the source files you want data about, and you must also use it when
  10470. linking.
  10471. .IP "\fB\-pg\fR" 4
  10472. .IX Item "-pg"
  10473. Generate extra code to write profile information suitable for the
  10474. analysis program \fBgprof\fR. You must use this option when compiling
  10475. the source files you want data about, and you must also use it when
  10476. linking.
  10477. .IP "\fB\-fprofile\-arcs\fR" 4
  10478. .IX Item "-fprofile-arcs"
  10479. Add code so that program flow \fIarcs\fR are instrumented. During
  10480. execution the program records how many times each branch and call is
  10481. executed and how many times it is taken or returns. On targets that support
  10482. constructors with priority support, profiling properly handles constructors,
  10483. destructors and \*(C+ constructors (and destructors) of classes which are used
  10484. as a type of a global variable.
  10485. .Sp
  10486. When the compiled
  10487. program exits it saves this data to a file called
  10488. \&\fI\fIauxname\fI.gcda\fR for each source file. The data may be used for
  10489. profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
  10490. test coverage analysis (\fB\-ftest\-coverage\fR). Each object file's
  10491. \&\fIauxname\fR is generated from the name of the output file, if
  10492. explicitly specified and it is not the final executable, otherwise it is
  10493. the basename of the source file. In both cases any suffix is removed
  10494. (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
  10495. \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
  10496. .IP "\fB\-\-coverage\fR" 4
  10497. .IX Item "--coverage"
  10498. This option is used to compile and link code instrumented for coverage
  10499. analysis. The option is a synonym for \fB\-fprofile\-arcs\fR
  10500. \&\fB\-ftest\-coverage\fR (when compiling) and \fB\-lgcov\fR (when
  10501. linking). See the documentation for those options for more details.
  10502. .RS 4
  10503. .IP "*" 4
  10504. Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
  10505. and code generation options. For test coverage analysis, use the
  10506. additional \fB\-ftest\-coverage\fR option. You do not need to profile
  10507. every source file in a program.
  10508. .IP "*" 4
  10509. Compile the source files additionally with \fB\-fprofile\-abs\-path\fR
  10510. to create absolute path names in the \fI.gcno\fR files. This allows
  10511. \&\fBgcov\fR to find the correct sources in projects where compilations
  10512. occur with different working directories.
  10513. .IP "*" 4
  10514. Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
  10515. (the latter implies the former).
  10516. .IP "*" 4
  10517. Run the program on a representative workload to generate the arc profile
  10518. information. This may be repeated any number of times. You can run
  10519. concurrent instances of your program, and provided that the file system
  10520. supports locking, the data files will be correctly updated. Unless
  10521. a strict \s-1ISO C\s0 dialect option is in effect, \f(CW\*(C`fork\*(C'\fR calls are
  10522. detected and correctly handled without double counting.
  10523. .IP "*" 4
  10524. For profile-directed optimizations, compile the source files again with
  10525. the same optimization and code generation options plus
  10526. \&\fB\-fbranch\-probabilities\fR.
  10527. .IP "*" 4
  10528. For test coverage analysis, use \fBgcov\fR to produce human readable
  10529. information from the \fI.gcno\fR and \fI.gcda\fR files. Refer to the
  10530. \&\fBgcov\fR documentation for further information.
  10531. .RE
  10532. .RS 4
  10533. .Sp
  10534. With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
  10535. creates a program flow graph, then finds a spanning tree for the graph.
  10536. Only arcs that are not on the spanning tree have to be instrumented: the
  10537. compiler adds code to count the number of times that these arcs are
  10538. executed. When an arc is the only exit or only entrance to a block, the
  10539. instrumentation code can be added to the block; otherwise, a new basic
  10540. block must be created to hold the instrumentation code.
  10541. .RE
  10542. .IP "\fB\-ftest\-coverage\fR" 4
  10543. .IX Item "-ftest-coverage"
  10544. Produce a notes file that the \fBgcov\fR code-coverage utility can use to
  10545. show program coverage. Each source file's note file is called
  10546. \&\fI\fIauxname\fI.gcno\fR. Refer to the \fB\-fprofile\-arcs\fR option
  10547. above for a description of \fIauxname\fR and instructions on how to
  10548. generate test coverage data. Coverage data matches the source files
  10549. more closely if you do not optimize.
  10550. .IP "\fB\-fprofile\-abs\-path\fR" 4
  10551. .IX Item "-fprofile-abs-path"
  10552. Automatically convert relative source file names to absolute path names
  10553. in the \fI.gcno\fR files. This allows \fBgcov\fR to find the correct
  10554. sources in projects where compilations occur with different working
  10555. directories.
  10556. .IP "\fB\-fprofile\-dir=\fR\fIpath\fR" 4
  10557. .IX Item "-fprofile-dir=path"
  10558. Set the directory to search for the profile data files in to \fIpath\fR.
  10559. This option affects only the profile data generated by
  10560. \&\fB\-fprofile\-generate\fR, \fB\-ftest\-coverage\fR, \fB\-fprofile\-arcs\fR
  10561. and used by \fB\-fprofile\-use\fR and \fB\-fbranch\-probabilities\fR
  10562. and its related options. Both absolute and relative paths can be used.
  10563. By default, \s-1GCC\s0 uses the current directory as \fIpath\fR, thus the
  10564. profile data file appears in the same directory as the object file.
  10565. .IP "\fB\-fprofile\-generate\fR" 4
  10566. .IX Item "-fprofile-generate"
  10567. .PD 0
  10568. .IP "\fB\-fprofile\-generate=\fR\fIpath\fR" 4
  10569. .IX Item "-fprofile-generate=path"
  10570. .PD
  10571. Enable options usually used for instrumenting application to produce
  10572. profile useful for later recompilation with profile feedback based
  10573. optimization. You must use \fB\-fprofile\-generate\fR both when
  10574. compiling and when linking your program.
  10575. .Sp
  10576. The following options are enabled: \fB\-fprofile\-arcs\fR, \fB\-fprofile\-values\fR, \fB\-fvpt\fR.
  10577. .Sp
  10578. If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
  10579. the profile feedback data files. See \fB\-fprofile\-dir\fR.
  10580. .Sp
  10581. To optimize the program based on the collected profile information, use
  10582. \&\fB\-fprofile\-use\fR.
  10583. .IP "\fB\-fprofile\-update=\fR\fImethod\fR" 4
  10584. .IX Item "-fprofile-update=method"
  10585. Alter the update method for an application instrumented for profile
  10586. feedback based optimization. The \fImethod\fR argument should be one of
  10587. \&\fBsingle\fR, \fBatomic\fR or \fBprefer-atomic\fR.
  10588. The first one is useful for single-threaded applications,
  10589. while the second one prevents profile corruption by emitting thread-safe code.
  10590. .Sp
  10591. \&\fBWarning:\fR When an application does not properly join all threads
  10592. (or creates an detached thread), a profile file can be still corrupted.
  10593. .Sp
  10594. Using \fBprefer-atomic\fR would be transformed either to \fBatomic\fR,
  10595. when supported by a target, or to \fBsingle\fR otherwise. The \s-1GCC\s0 driver
  10596. automatically selects \fBprefer-atomic\fR when \fB\-pthread\fR
  10597. is present in the command line.
  10598. .IP "\fB\-fsanitize=address\fR" 4
  10599. .IX Item "-fsanitize=address"
  10600. Enable AddressSanitizer, a fast memory error detector.
  10601. Memory access instructions are instrumented to detect
  10602. out-of-bounds and use-after-free bugs.
  10603. The option enables \fB\-fsanitize\-address\-use\-after\-scope\fR.
  10604. See <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizer\fR> for
  10605. more details. The run-time behavior can be influenced using the
  10606. \&\fB\s-1ASAN_OPTIONS\s0\fR environment variable. When set to \f(CW\*(C`help=1\*(C'\fR,
  10607. the available options are shown at startup of the instrumented program. See
  10608. <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizerFlags#run\-time\-flags\fR>
  10609. for a list of supported options.
  10610. The option cannot be combined with \fB\-fsanitize=thread\fR
  10611. and/or \fB\-fcheck\-pointer\-bounds\fR.
  10612. .IP "\fB\-fsanitize=kernel\-address\fR" 4
  10613. .IX Item "-fsanitize=kernel-address"
  10614. Enable AddressSanitizer for Linux kernel.
  10615. See <\fBhttps://github.com/google/kasan/wiki\fR> for more details.
  10616. The option cannot be combined with \fB\-fcheck\-pointer\-bounds\fR.
  10617. .IP "\fB\-fsanitize=pointer\-compare\fR" 4
  10618. .IX Item "-fsanitize=pointer-compare"
  10619. Instrument comparison operation (<, <=, >, >=) with pointer operands.
  10620. The option must be combined with either \fB\-fsanitize=kernel\-address\fR or
  10621. \&\fB\-fsanitize=address\fR
  10622. The option cannot be combined with \fB\-fsanitize=thread\fR
  10623. and/or \fB\-fcheck\-pointer\-bounds\fR.
  10624. Note: By default the check is disabled at run time. To enable it,
  10625. add \f(CW\*(C`detect_invalid_pointer_pairs=2\*(C'\fR to the environment variable
  10626. \&\fB\s-1ASAN_OPTIONS\s0\fR. Using \f(CW\*(C`detect_invalid_pointer_pairs=1\*(C'\fR detects
  10627. invalid operation only when both pointers are non-null.
  10628. .IP "\fB\-fsanitize=pointer\-subtract\fR" 4
  10629. .IX Item "-fsanitize=pointer-subtract"
  10630. Instrument subtraction with pointer operands.
  10631. The option must be combined with either \fB\-fsanitize=kernel\-address\fR or
  10632. \&\fB\-fsanitize=address\fR
  10633. The option cannot be combined with \fB\-fsanitize=thread\fR
  10634. and/or \fB\-fcheck\-pointer\-bounds\fR.
  10635. Note: By default the check is disabled at run time. To enable it,
  10636. add \f(CW\*(C`detect_invalid_pointer_pairs=2\*(C'\fR to the environment variable
  10637. \&\fB\s-1ASAN_OPTIONS\s0\fR. Using \f(CW\*(C`detect_invalid_pointer_pairs=1\*(C'\fR detects
  10638. invalid operation only when both pointers are non-null.
  10639. .IP "\fB\-fsanitize=thread\fR" 4
  10640. .IX Item "-fsanitize=thread"
  10641. Enable ThreadSanitizer, a fast data race detector.
  10642. Memory access instructions are instrumented to detect
  10643. data race bugs. See <\fBhttps://github.com/google/sanitizers/wiki#threadsanitizer\fR> for more
  10644. details. The run-time behavior can be influenced using the \fB\s-1TSAN_OPTIONS\s0\fR
  10645. environment variable; see
  10646. <\fBhttps://github.com/google/sanitizers/wiki/ThreadSanitizerFlags\fR> for a list of
  10647. supported options.
  10648. The option cannot be combined with \fB\-fsanitize=address\fR,
  10649. \&\fB\-fsanitize=leak\fR and/or \fB\-fcheck\-pointer\-bounds\fR.
  10650. .Sp
  10651. Note that sanitized atomic builtins cannot throw exceptions when
  10652. operating on invalid memory addresses with non-call exceptions
  10653. (\fB\-fnon\-call\-exceptions\fR).
  10654. .IP "\fB\-fsanitize=leak\fR" 4
  10655. .IX Item "-fsanitize=leak"
  10656. Enable LeakSanitizer, a memory leak detector.
  10657. This option only matters for linking of executables and
  10658. the executable is linked against a library that overrides \f(CW\*(C`malloc\*(C'\fR
  10659. and other allocator functions. See
  10660. <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer\fR> for more
  10661. details. The run-time behavior can be influenced using the
  10662. \&\fB\s-1LSAN_OPTIONS\s0\fR environment variable.
  10663. The option cannot be combined with \fB\-fsanitize=thread\fR.
  10664. .IP "\fB\-fsanitize=undefined\fR" 4
  10665. .IX Item "-fsanitize=undefined"
  10666. Enable UndefinedBehaviorSanitizer, a fast undefined behavior detector.
  10667. Various computations are instrumented to detect undefined behavior
  10668. at runtime. Current suboptions are:
  10669. .RS 4
  10670. .IP "\fB\-fsanitize=shift\fR" 4
  10671. .IX Item "-fsanitize=shift"
  10672. This option enables checking that the result of a shift operation is
  10673. not undefined. Note that what exactly is considered undefined differs
  10674. slightly between C and \*(C+, as well as between \s-1ISO C90\s0 and C99, etc.
  10675. This option has two suboptions, \fB\-fsanitize=shift\-base\fR and
  10676. \&\fB\-fsanitize=shift\-exponent\fR.
  10677. .IP "\fB\-fsanitize=shift\-exponent\fR" 4
  10678. .IX Item "-fsanitize=shift-exponent"
  10679. This option enables checking that the second argument of a shift operation
  10680. is not negative and is smaller than the precision of the promoted first
  10681. argument.
  10682. .IP "\fB\-fsanitize=shift\-base\fR" 4
  10683. .IX Item "-fsanitize=shift-base"
  10684. If the second argument of a shift operation is within range, check that the
  10685. result of a shift operation is not undefined. Note that what exactly is
  10686. considered undefined differs slightly between C and \*(C+, as well as between
  10687. \&\s-1ISO C90\s0 and C99, etc.
  10688. .IP "\fB\-fsanitize=integer\-divide\-by\-zero\fR" 4
  10689. .IX Item "-fsanitize=integer-divide-by-zero"
  10690. Detect integer division by zero as well as \f(CW\*(C`INT_MIN / \-1\*(C'\fR division.
  10691. .IP "\fB\-fsanitize=unreachable\fR" 4
  10692. .IX Item "-fsanitize=unreachable"
  10693. With this option, the compiler turns the \f(CW\*(C`_\|_builtin_unreachable\*(C'\fR
  10694. call into a diagnostics message call instead. When reaching the
  10695. \&\f(CW\*(C`_\|_builtin_unreachable\*(C'\fR call, the behavior is undefined.
  10696. .IP "\fB\-fsanitize=vla\-bound\fR" 4
  10697. .IX Item "-fsanitize=vla-bound"
  10698. This option instructs the compiler to check that the size of a variable
  10699. length array is positive.
  10700. .IP "\fB\-fsanitize=null\fR" 4
  10701. .IX Item "-fsanitize=null"
  10702. This option enables pointer checking. Particularly, the application
  10703. built with this option turned on will issue an error message when it
  10704. tries to dereference a \s-1NULL\s0 pointer, or if a reference (possibly an
  10705. rvalue reference) is bound to a \s-1NULL\s0 pointer, or if a method is invoked
  10706. on an object pointed by a \s-1NULL\s0 pointer.
  10707. .IP "\fB\-fsanitize=return\fR" 4
  10708. .IX Item "-fsanitize=return"
  10709. This option enables return statement checking. Programs
  10710. built with this option turned on will issue an error message
  10711. when the end of a non-void function is reached without actually
  10712. returning a value. This option works in \*(C+ only.
  10713. .IP "\fB\-fsanitize=signed\-integer\-overflow\fR" 4
  10714. .IX Item "-fsanitize=signed-integer-overflow"
  10715. This option enables signed integer overflow checking. We check that
  10716. the result of \f(CW\*(C`+\*(C'\fR, \f(CW\*(C`*\*(C'\fR, and both unary and binary \f(CW\*(C`\-\*(C'\fR
  10717. does not overflow in the signed arithmetics. Note, integer promotion
  10718. rules must be taken into account. That is, the following is not an
  10719. overflow:
  10720. .Sp
  10721. .Vb 2
  10722. \& signed char a = SCHAR_MAX;
  10723. \& a++;
  10724. .Ve
  10725. .IP "\fB\-fsanitize=bounds\fR" 4
  10726. .IX Item "-fsanitize=bounds"
  10727. This option enables instrumentation of array bounds. Various out of bounds
  10728. accesses are detected. Flexible array members, flexible array member-like
  10729. arrays, and initializers of variables with static storage are not instrumented.
  10730. The option cannot be combined with \fB\-fcheck\-pointer\-bounds\fR.
  10731. .IP "\fB\-fsanitize=bounds\-strict\fR" 4
  10732. .IX Item "-fsanitize=bounds-strict"
  10733. This option enables strict instrumentation of array bounds. Most out of bounds
  10734. accesses are detected, including flexible array members and flexible array
  10735. member-like arrays. Initializers of variables with static storage are not
  10736. instrumented. The option cannot be combined
  10737. with \fB\-fcheck\-pointer\-bounds\fR.
  10738. .IP "\fB\-fsanitize=alignment\fR" 4
  10739. .IX Item "-fsanitize=alignment"
  10740. This option enables checking of alignment of pointers when they are
  10741. dereferenced, or when a reference is bound to insufficiently aligned target,
  10742. or when a method or constructor is invoked on insufficiently aligned object.
  10743. .IP "\fB\-fsanitize=object\-size\fR" 4
  10744. .IX Item "-fsanitize=object-size"
  10745. This option enables instrumentation of memory references using the
  10746. \&\f(CW\*(C`_\|_builtin_object_size\*(C'\fR function. Various out of bounds pointer
  10747. accesses are detected.
  10748. .IP "\fB\-fsanitize=float\-divide\-by\-zero\fR" 4
  10749. .IX Item "-fsanitize=float-divide-by-zero"
  10750. Detect floating-point division by zero. Unlike other similar options,
  10751. \&\fB\-fsanitize=float\-divide\-by\-zero\fR is not enabled by
  10752. \&\fB\-fsanitize=undefined\fR, since floating-point division by zero can
  10753. be a legitimate way of obtaining infinities and NaNs.
  10754. .IP "\fB\-fsanitize=float\-cast\-overflow\fR" 4
  10755. .IX Item "-fsanitize=float-cast-overflow"
  10756. This option enables floating-point type to integer conversion checking.
  10757. We check that the result of the conversion does not overflow.
  10758. Unlike other similar options, \fB\-fsanitize=float\-cast\-overflow\fR is
  10759. not enabled by \fB\-fsanitize=undefined\fR.
  10760. This option does not work well with \f(CW\*(C`FE_INVALID\*(C'\fR exceptions enabled.
  10761. .IP "\fB\-fsanitize=nonnull\-attribute\fR" 4
  10762. .IX Item "-fsanitize=nonnull-attribute"
  10763. This option enables instrumentation of calls, checking whether null values
  10764. are not passed to arguments marked as requiring a non-null value by the
  10765. \&\f(CW\*(C`nonnull\*(C'\fR function attribute.
  10766. .IP "\fB\-fsanitize=returns\-nonnull\-attribute\fR" 4
  10767. .IX Item "-fsanitize=returns-nonnull-attribute"
  10768. This option enables instrumentation of return statements in functions
  10769. marked with \f(CW\*(C`returns_nonnull\*(C'\fR function attribute, to detect returning
  10770. of null values from such functions.
  10771. .IP "\fB\-fsanitize=bool\fR" 4
  10772. .IX Item "-fsanitize=bool"
  10773. This option enables instrumentation of loads from bool. If a value other
  10774. than 0/1 is loaded, a run-time error is issued.
  10775. .IP "\fB\-fsanitize=enum\fR" 4
  10776. .IX Item "-fsanitize=enum"
  10777. This option enables instrumentation of loads from an enum type. If
  10778. a value outside the range of values for the enum type is loaded,
  10779. a run-time error is issued.
  10780. .IP "\fB\-fsanitize=vptr\fR" 4
  10781. .IX Item "-fsanitize=vptr"
  10782. This option enables instrumentation of \*(C+ member function calls, member
  10783. accesses and some conversions between pointers to base and derived classes,
  10784. to verify the referenced object has the correct dynamic type.
  10785. .IP "\fB\-fsanitize=pointer\-overflow\fR" 4
  10786. .IX Item "-fsanitize=pointer-overflow"
  10787. This option enables instrumentation of pointer arithmetics. If the pointer
  10788. arithmetics overflows, a run-time error is issued.
  10789. .IP "\fB\-fsanitize=builtin\fR" 4
  10790. .IX Item "-fsanitize=builtin"
  10791. This option enables instrumentation of arguments to selected builtin
  10792. functions. If an invalid value is passed to such arguments, a run-time
  10793. error is issued. E.g. passing 0 as the argument to \f(CW\*(C`_\|_builtin_ctz\*(C'\fR
  10794. or \f(CW\*(C`_\|_builtin_clz\*(C'\fR invokes undefined behavior and is diagnosed
  10795. by this option.
  10796. .RE
  10797. .RS 4
  10798. .Sp
  10799. While \fB\-ftrapv\fR causes traps for signed overflows to be emitted,
  10800. \&\fB\-fsanitize=undefined\fR gives a diagnostic message.
  10801. This currently works only for the C family of languages.
  10802. .RE
  10803. .IP "\fB\-fno\-sanitize=all\fR" 4
  10804. .IX Item "-fno-sanitize=all"
  10805. This option disables all previously enabled sanitizers.
  10806. \&\fB\-fsanitize=all\fR is not allowed, as some sanitizers cannot be used
  10807. together.
  10808. .IP "\fB\-fasan\-shadow\-offset=\fR\fInumber\fR" 4
  10809. .IX Item "-fasan-shadow-offset=number"
  10810. This option forces \s-1GCC\s0 to use custom shadow offset in AddressSanitizer checks.
  10811. It is useful for experimenting with different shadow memory layouts in
  10812. Kernel AddressSanitizer.
  10813. .IP "\fB\-fsanitize\-sections=\fR\fIs1\fR\fB,\fR\fIs2\fR\fB,...\fR" 4
  10814. .IX Item "-fsanitize-sections=s1,s2,..."
  10815. Sanitize global variables in selected user-defined sections. \fIsi\fR may
  10816. contain wildcards.
  10817. .IP "\fB\-fsanitize\-recover\fR[\fB=\fR\fIopts\fR]" 4
  10818. .IX Item "-fsanitize-recover[=opts]"
  10819. \&\fB\-fsanitize\-recover=\fR controls error recovery mode for sanitizers
  10820. mentioned in comma-separated list of \fIopts\fR. Enabling this option
  10821. for a sanitizer component causes it to attempt to continue
  10822. running the program as if no error happened. This means multiple
  10823. runtime errors can be reported in a single program run, and the exit
  10824. code of the program may indicate success even when errors
  10825. have been reported. The \fB\-fno\-sanitize\-recover=\fR option
  10826. can be used to alter
  10827. this behavior: only the first detected error is reported
  10828. and program then exits with a non-zero exit code.
  10829. .Sp
  10830. Currently this feature only works for \fB\-fsanitize=undefined\fR (and its suboptions
  10831. except for \fB\-fsanitize=unreachable\fR and \fB\-fsanitize=return\fR),
  10832. \&\fB\-fsanitize=float\-cast\-overflow\fR, \fB\-fsanitize=float\-divide\-by\-zero\fR,
  10833. \&\fB\-fsanitize=bounds\-strict\fR,
  10834. \&\fB\-fsanitize=kernel\-address\fR and \fB\-fsanitize=address\fR.
  10835. For these sanitizers error recovery is turned on by default,
  10836. except \fB\-fsanitize=address\fR, for which this feature is experimental.
  10837. \&\fB\-fsanitize\-recover=all\fR and \fB\-fno\-sanitize\-recover=all\fR is also
  10838. accepted, the former enables recovery for all sanitizers that support it,
  10839. the latter disables recovery for all sanitizers that support it.
  10840. .Sp
  10841. Even if a recovery mode is turned on the compiler side, it needs to be also
  10842. enabled on the runtime library side, otherwise the failures are still fatal.
  10843. The runtime library defaults to \f(CW\*(C`halt_on_error=0\*(C'\fR for
  10844. ThreadSanitizer and UndefinedBehaviorSanitizer, while default value for
  10845. AddressSanitizer is \f(CW\*(C`halt_on_error=1\*(C'\fR. This can be overridden through
  10846. setting the \f(CW\*(C`halt_on_error\*(C'\fR flag in the corresponding environment variable.
  10847. .Sp
  10848. Syntax without an explicit \fIopts\fR parameter is deprecated. It is
  10849. equivalent to specifying an \fIopts\fR list of:
  10850. .Sp
  10851. .Vb 1
  10852. \& undefined,float\-cast\-overflow,float\-divide\-by\-zero,bounds\-strict
  10853. .Ve
  10854. .IP "\fB\-fsanitize\-address\-use\-after\-scope\fR" 4
  10855. .IX Item "-fsanitize-address-use-after-scope"
  10856. Enable sanitization of local variables to detect use-after-scope bugs.
  10857. The option sets \fB\-fstack\-reuse\fR to \fBnone\fR.
  10858. .IP "\fB\-fsanitize\-undefined\-trap\-on\-error\fR" 4
  10859. .IX Item "-fsanitize-undefined-trap-on-error"
  10860. The \fB\-fsanitize\-undefined\-trap\-on\-error\fR option instructs the compiler to
  10861. report undefined behavior using \f(CW\*(C`_\|_builtin_trap\*(C'\fR rather than
  10862. a \f(CW\*(C`libubsan\*(C'\fR library routine. The advantage of this is that the
  10863. \&\f(CW\*(C`libubsan\*(C'\fR library is not needed and is not linked in, so this
  10864. is usable even in freestanding environments.
  10865. .IP "\fB\-fsanitize\-coverage=trace\-pc\fR" 4
  10866. .IX Item "-fsanitize-coverage=trace-pc"
  10867. Enable coverage-guided fuzzing code instrumentation.
  10868. Inserts a call to \f(CW\*(C`_\|_sanitizer_cov_trace_pc\*(C'\fR into every basic block.
  10869. .IP "\fB\-fsanitize\-coverage=trace\-cmp\fR" 4
  10870. .IX Item "-fsanitize-coverage=trace-cmp"
  10871. Enable dataflow guided fuzzing code instrumentation.
  10872. Inserts a call to \f(CW\*(C`_\|_sanitizer_cov_trace_cmp1\*(C'\fR,
  10873. \&\f(CW\*(C`_\|_sanitizer_cov_trace_cmp2\*(C'\fR, \f(CW\*(C`_\|_sanitizer_cov_trace_cmp4\*(C'\fR or
  10874. \&\f(CW\*(C`_\|_sanitizer_cov_trace_cmp8\*(C'\fR for integral comparison with both operands
  10875. variable or \f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp1\*(C'\fR,
  10876. \&\f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp2\*(C'\fR,
  10877. \&\f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp4\*(C'\fR or
  10878. \&\f(CW\*(C`_\|_sanitizer_cov_trace_const_cmp8\*(C'\fR for integral comparison with one
  10879. operand constant, \f(CW\*(C`_\|_sanitizer_cov_trace_cmpf\*(C'\fR or
  10880. \&\f(CW\*(C`_\|_sanitizer_cov_trace_cmpd\*(C'\fR for float or double comparisons and
  10881. \&\f(CW\*(C`_\|_sanitizer_cov_trace_switch\*(C'\fR for switch statements.
  10882. .IP "\fB\-fbounds\-check\fR" 4
  10883. .IX Item "-fbounds-check"
  10884. For front ends that support it, generate additional code to check that
  10885. indices used to access arrays are within the declared range. This is
  10886. currently only supported by the Fortran front end, where this option
  10887. defaults to false.
  10888. .IP "\fB\-fcheck\-pointer\-bounds\fR" 4
  10889. .IX Item "-fcheck-pointer-bounds"
  10890. Enable Pointer Bounds Checker instrumentation. Each memory reference
  10891. is instrumented with checks of the pointer used for memory access against
  10892. bounds associated with that pointer.
  10893. .Sp
  10894. Currently there
  10895. is only an implementation for Intel \s-1MPX\s0 available, thus x86 GNU/Linux target
  10896. and \fB\-mmpx\fR are required to enable this feature.
  10897. MPX-based instrumentation requires
  10898. a runtime library to enable \s-1MPX\s0 in hardware and handle bounds
  10899. violation signals. By default when \fB\-fcheck\-pointer\-bounds\fR
  10900. and \fB\-mmpx\fR options are used to link a program, the \s-1GCC\s0 driver
  10901. links against the \fIlibmpx\fR and \fIlibmpxwrappers\fR libraries.
  10902. Bounds checking on calls to dynamic libraries requires a linker
  10903. with \fB\-z bndplt\fR support; if \s-1GCC\s0 was configured with a linker
  10904. without support for this option (including the Gold linker and older
  10905. versions of ld), a warning is given if you link with \fB\-mmpx\fR
  10906. without also specifying \fB\-static\fR, since the overall effectiveness
  10907. of the bounds checking protection is reduced.
  10908. See also \fB\-static\-libmpxwrappers\fR.
  10909. .Sp
  10910. MPX-based instrumentation
  10911. may be used for debugging and also may be included in production code
  10912. to increase program security. Depending on usage, you may
  10913. have different requirements for the runtime library. The current version
  10914. of the \s-1MPX\s0 runtime library is more oriented for use as a debugging
  10915. tool. \s-1MPX\s0 runtime library usage implies \fB\-lpthread\fR. See
  10916. also \fB\-static\-libmpx\fR. The runtime library behavior can be
  10917. influenced using various \fBCHKP_RT_*\fR environment variables. See
  10918. <\fBhttps://gcc.gnu.org/wiki/Intel%20MPX%20support%20in%20the%20GCC%20compiler\fR>
  10919. for more details.
  10920. .Sp
  10921. Generated instrumentation may be controlled by various
  10922. \&\fB\-fchkp\-*\fR options and by the \f(CW\*(C`bnd_variable_size\*(C'\fR
  10923. structure field attribute and
  10924. \&\f(CW\*(C`bnd_legacy\*(C'\fR, and \f(CW\*(C`bnd_instrument\*(C'\fR function attributes. \s-1GCC\s0 also provides a number of built-in
  10925. functions for controlling the Pointer Bounds Checker.
  10926. .IP "\fB\-fchkp\-check\-incomplete\-type\fR" 4
  10927. .IX Item "-fchkp-check-incomplete-type"
  10928. Generate pointer bounds checks for variables with incomplete type.
  10929. Enabled by default.
  10930. .IP "\fB\-fchkp\-narrow\-bounds\fR" 4
  10931. .IX Item "-fchkp-narrow-bounds"
  10932. Controls bounds used by Pointer Bounds Checker for pointers to object
  10933. fields. If narrowing is enabled then field bounds are used. Otherwise
  10934. object bounds are used. See also \fB\-fchkp\-narrow\-to\-innermost\-array\fR
  10935. and \fB\-fchkp\-first\-field\-has\-own\-bounds\fR. Enabled by default.
  10936. .IP "\fB\-fchkp\-first\-field\-has\-own\-bounds\fR" 4
  10937. .IX Item "-fchkp-first-field-has-own-bounds"
  10938. Forces Pointer Bounds Checker to use narrowed bounds for the address of the
  10939. first field in the structure. By default a pointer to the first field has
  10940. the same bounds as a pointer to the whole structure.
  10941. .IP "\fB\-fchkp\-flexible\-struct\-trailing\-arrays\fR" 4
  10942. .IX Item "-fchkp-flexible-struct-trailing-arrays"
  10943. Forces Pointer Bounds Checker to treat all trailing arrays in structures as
  10944. possibly flexible. By default only array fields with zero length or that are
  10945. marked with attribute bnd_variable_size are treated as flexible.
  10946. .IP "\fB\-fchkp\-narrow\-to\-innermost\-array\fR" 4
  10947. .IX Item "-fchkp-narrow-to-innermost-array"
  10948. Forces Pointer Bounds Checker to use bounds of the innermost arrays in
  10949. case of nested static array access. By default this option is disabled and
  10950. bounds of the outermost array are used.
  10951. .IP "\fB\-fchkp\-optimize\fR" 4
  10952. .IX Item "-fchkp-optimize"
  10953. Enables Pointer Bounds Checker optimizations. Enabled by default at
  10954. optimization levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR.
  10955. .IP "\fB\-fchkp\-use\-fast\-string\-functions\fR" 4
  10956. .IX Item "-fchkp-use-fast-string-functions"
  10957. Enables use of \f(CW*_nobnd\fR versions of string functions (not copying bounds)
  10958. by Pointer Bounds Checker. Disabled by default.
  10959. .IP "\fB\-fchkp\-use\-nochk\-string\-functions\fR" 4
  10960. .IX Item "-fchkp-use-nochk-string-functions"
  10961. Enables use of \f(CW*_nochk\fR versions of string functions (not checking bounds)
  10962. by Pointer Bounds Checker. Disabled by default.
  10963. .IP "\fB\-fchkp\-use\-static\-bounds\fR" 4
  10964. .IX Item "-fchkp-use-static-bounds"
  10965. Allow Pointer Bounds Checker to generate static bounds holding
  10966. bounds of static variables. Enabled by default.
  10967. .IP "\fB\-fchkp\-use\-static\-const\-bounds\fR" 4
  10968. .IX Item "-fchkp-use-static-const-bounds"
  10969. Use statically-initialized bounds for constant bounds instead of
  10970. generating them each time they are required. By default enabled when
  10971. \&\fB\-fchkp\-use\-static\-bounds\fR is enabled.
  10972. .IP "\fB\-fchkp\-treat\-zero\-dynamic\-size\-as\-infinite\fR" 4
  10973. .IX Item "-fchkp-treat-zero-dynamic-size-as-infinite"
  10974. With this option, objects with incomplete type whose
  10975. dynamically-obtained size is zero are treated as having infinite size
  10976. instead by Pointer Bounds
  10977. Checker. This option may be helpful if a program is linked with a library
  10978. missing size information for some symbols. Disabled by default.
  10979. .IP "\fB\-fchkp\-check\-read\fR" 4
  10980. .IX Item "-fchkp-check-read"
  10981. Instructs Pointer Bounds Checker to generate checks for all read
  10982. accesses to memory. Enabled by default.
  10983. .IP "\fB\-fchkp\-check\-write\fR" 4
  10984. .IX Item "-fchkp-check-write"
  10985. Instructs Pointer Bounds Checker to generate checks for all write
  10986. accesses to memory. Enabled by default.
  10987. .IP "\fB\-fchkp\-store\-bounds\fR" 4
  10988. .IX Item "-fchkp-store-bounds"
  10989. Instructs Pointer Bounds Checker to generate bounds stores for
  10990. pointer writes. Enabled by default.
  10991. .IP "\fB\-fchkp\-instrument\-calls\fR" 4
  10992. .IX Item "-fchkp-instrument-calls"
  10993. Instructs Pointer Bounds Checker to pass pointer bounds to calls.
  10994. Enabled by default.
  10995. .IP "\fB\-fchkp\-instrument\-marked\-only\fR" 4
  10996. .IX Item "-fchkp-instrument-marked-only"
  10997. Instructs Pointer Bounds Checker to instrument only functions
  10998. marked with the \f(CW\*(C`bnd_instrument\*(C'\fR attribute. Disabled by default.
  10999. .IP "\fB\-fchkp\-use\-wrappers\fR" 4
  11000. .IX Item "-fchkp-use-wrappers"
  11001. Allows Pointer Bounds Checker to replace calls to built-in functions
  11002. with calls to wrapper functions. When \fB\-fchkp\-use\-wrappers\fR
  11003. is used to link a program, the \s-1GCC\s0 driver automatically links
  11004. against \fIlibmpxwrappers\fR. See also \fB\-static\-libmpxwrappers\fR.
  11005. Enabled by default.
  11006. .IP "\fB\-fcf\-protection=\fR[\fBfull\fR|\fBbranch\fR|\fBreturn\fR|\fBnone\fR]" 4
  11007. .IX Item "-fcf-protection=[full|branch|return|none]"
  11008. Enable code instrumentation of control-flow transfers to increase
  11009. program security by checking that target addresses of control-flow
  11010. transfer instructions (such as indirect function call, function return,
  11011. indirect jump) are valid. This prevents diverting the flow of control
  11012. to an unexpected target. This is intended to protect against such
  11013. threats as Return-oriented Programming (\s-1ROP\s0), and similarly
  11014. call/jmp\-oriented programming (\s-1COP/JOP\s0).
  11015. .Sp
  11016. The value \f(CW\*(C`branch\*(C'\fR tells the compiler to implement checking of
  11017. validity of control-flow transfer at the point of indirect branch
  11018. instructions, i.e. call/jmp instructions. The value \f(CW\*(C`return\*(C'\fR
  11019. implements checking of validity at the point of returning from a
  11020. function. The value \f(CW\*(C`full\*(C'\fR is an alias for specifying both
  11021. \&\f(CW\*(C`branch\*(C'\fR and \f(CW\*(C`return\*(C'\fR. The value \f(CW\*(C`none\*(C'\fR turns off
  11022. instrumentation.
  11023. .Sp
  11024. The macro \f(CW\*(C`_\|_CET_\|_\*(C'\fR is defined when \fB\-fcf\-protection\fR is
  11025. used. The first bit of \f(CW\*(C`_\|_CET_\|_\*(C'\fR is set to 1 for the value
  11026. \&\f(CW\*(C`branch\*(C'\fR and the second bit of \f(CW\*(C`_\|_CET_\|_\*(C'\fR is set to 1 for
  11027. the \f(CW\*(C`return\*(C'\fR.
  11028. .Sp
  11029. You can also use the \f(CW\*(C`nocf_check\*(C'\fR attribute to identify
  11030. which functions and calls should be skipped from instrumentation.
  11031. .Sp
  11032. Currently the x86 GNU/Linux target provides an implementation based
  11033. on Intel Control-flow Enforcement Technology (\s-1CET\s0).
  11034. .IP "\fB\-fstack\-protector\fR" 4
  11035. .IX Item "-fstack-protector"
  11036. Emit extra code to check for buffer overflows, such as stack smashing
  11037. attacks. This is done by adding a guard variable to functions with
  11038. vulnerable objects. This includes functions that call \f(CW\*(C`alloca\*(C'\fR, and
  11039. functions with buffers larger than 8 bytes. The guards are initialized
  11040. when a function is entered and then checked when the function exits.
  11041. If a guard check fails, an error message is printed and the program exits.
  11042. .IP "\fB\-fstack\-protector\-all\fR" 4
  11043. .IX Item "-fstack-protector-all"
  11044. Like \fB\-fstack\-protector\fR except that all functions are protected.
  11045. .IP "\fB\-fstack\-protector\-strong\fR" 4
  11046. .IX Item "-fstack-protector-strong"
  11047. Like \fB\-fstack\-protector\fR but includes additional functions to
  11048. be protected \-\-\- those that have local array definitions, or have
  11049. references to local frame addresses.
  11050. .IP "\fB\-fstack\-protector\-explicit\fR" 4
  11051. .IX Item "-fstack-protector-explicit"
  11052. Like \fB\-fstack\-protector\fR but only protects those functions which
  11053. have the \f(CW\*(C`stack_protect\*(C'\fR attribute.
  11054. .IP "\fB\-fstack\-check\fR" 4
  11055. .IX Item "-fstack-check"
  11056. Generate code to verify that you do not go beyond the boundary of the
  11057. stack. You should specify this flag if you are running in an
  11058. environment with multiple threads, but you only rarely need to specify it in
  11059. a single-threaded environment since stack overflow is automatically
  11060. detected on nearly all systems if there is only one stack.
  11061. .Sp
  11062. Note that this switch does not actually cause checking to be done; the
  11063. operating system or the language runtime must do that. The switch causes
  11064. generation of code to ensure that they see the stack being extended.
  11065. .Sp
  11066. You can additionally specify a string parameter: \fBno\fR means no
  11067. checking, \fBgeneric\fR means force the use of old-style checking,
  11068. \&\fBspecific\fR means use the best checking method and is equivalent
  11069. to bare \fB\-fstack\-check\fR.
  11070. .Sp
  11071. Old-style checking is a generic mechanism that requires no specific
  11072. target support in the compiler but comes with the following drawbacks:
  11073. .RS 4
  11074. .IP "1." 4
  11075. .IX Item "1."
  11076. Modified allocation strategy for large objects: they are always
  11077. allocated dynamically if their size exceeds a fixed threshold. Note this
  11078. may change the semantics of some code.
  11079. .IP "2." 4
  11080. .IX Item "2."
  11081. Fixed limit on the size of the static frame of functions: when it is
  11082. topped by a particular function, stack checking is not reliable and
  11083. a warning is issued by the compiler.
  11084. .IP "3." 4
  11085. .IX Item "3."
  11086. Inefficiency: because of both the modified allocation strategy and the
  11087. generic implementation, code performance is hampered.
  11088. .RE
  11089. .RS 4
  11090. .Sp
  11091. Note that old-style stack checking is also the fallback method for
  11092. \&\fBspecific\fR if no target support has been added in the compiler.
  11093. .Sp
  11094. \&\fB\-fstack\-check=\fR is designed for Ada's needs to detect infinite recursion
  11095. and stack overflows. \fBspecific\fR is an excellent choice when compiling
  11096. Ada code. It is not generally sufficient to protect against stack-clash
  11097. attacks. To protect against those you want \fB\-fstack\-clash\-protection\fR.
  11098. .RE
  11099. .IP "\fB\-fstack\-clash\-protection\fR" 4
  11100. .IX Item "-fstack-clash-protection"
  11101. Generate code to prevent stack clash style attacks. When this option is
  11102. enabled, the compiler will only allocate one page of stack space at a time
  11103. and each page is accessed immediately after allocation. Thus, it prevents
  11104. allocations from jumping over any stack guard page provided by the
  11105. operating system.
  11106. .Sp
  11107. Most targets do not fully support stack clash protection. However, on
  11108. those targets \fB\-fstack\-clash\-protection\fR will protect dynamic stack
  11109. allocations. \fB\-fstack\-clash\-protection\fR may also provide limited
  11110. protection for static stack allocations if the target supports
  11111. \&\fB\-fstack\-check=specific\fR.
  11112. .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
  11113. .IX Item "-fstack-limit-register=reg"
  11114. .PD 0
  11115. .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
  11116. .IX Item "-fstack-limit-symbol=sym"
  11117. .IP "\fB\-fno\-stack\-limit\fR" 4
  11118. .IX Item "-fno-stack-limit"
  11119. .PD
  11120. Generate code to ensure that the stack does not grow beyond a certain value,
  11121. either the value of a register or the address of a symbol. If a larger
  11122. stack is required, a signal is raised at run time. For most targets,
  11123. the signal is raised before the stack overruns the boundary, so
  11124. it is possible to catch the signal without taking special precautions.
  11125. .Sp
  11126. For instance, if the stack starts at absolute address \fB0x80000000\fR
  11127. and grows downwards, you can use the flags
  11128. \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
  11129. \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
  11130. of 128KB. Note that this may only work with the \s-1GNU\s0 linker.
  11131. .Sp
  11132. You can locally override stack limit checking by using the
  11133. \&\f(CW\*(C`no_stack_limit\*(C'\fR function attribute.
  11134. .IP "\fB\-fsplit\-stack\fR" 4
  11135. .IX Item "-fsplit-stack"
  11136. Generate code to automatically split the stack before it overflows.
  11137. The resulting program has a discontiguous stack which can only
  11138. overflow if the program is unable to allocate any more memory. This
  11139. is most useful when running threaded programs, as it is no longer
  11140. necessary to calculate a good stack size to use for each thread. This
  11141. is currently only implemented for the x86 targets running
  11142. GNU/Linux.
  11143. .Sp
  11144. When code compiled with \fB\-fsplit\-stack\fR calls code compiled
  11145. without \fB\-fsplit\-stack\fR, there may not be much stack space
  11146. available for the latter code to run. If compiling all code,
  11147. including library code, with \fB\-fsplit\-stack\fR is not an option,
  11148. then the linker can fix up these calls so that the code compiled
  11149. without \fB\-fsplit\-stack\fR always has a large stack. Support for
  11150. this is implemented in the gold linker in \s-1GNU\s0 binutils release 2.21
  11151. and later.
  11152. .IP "\fB\-fvtable\-verify=\fR[\fBstd\fR|\fBpreinit\fR|\fBnone\fR]" 4
  11153. .IX Item "-fvtable-verify=[std|preinit|none]"
  11154. This option is only available when compiling \*(C+ code.
  11155. It turns on (or off, if using \fB\-fvtable\-verify=none\fR) the security
  11156. feature that verifies at run time, for every virtual call, that
  11157. the vtable pointer through which the call is made is valid for the type of
  11158. the object, and has not been corrupted or overwritten. If an invalid vtable
  11159. pointer is detected at run time, an error is reported and execution of the
  11160. program is immediately halted.
  11161. .Sp
  11162. This option causes run-time data structures to be built at program startup,
  11163. which are used for verifying the vtable pointers.
  11164. The options \fBstd\fR and \fBpreinit\fR
  11165. control the timing of when these data structures are built. In both cases the
  11166. data structures are built before execution reaches \f(CW\*(C`main\*(C'\fR. Using
  11167. \&\fB\-fvtable\-verify=std\fR causes the data structures to be built after
  11168. shared libraries have been loaded and initialized.
  11169. \&\fB\-fvtable\-verify=preinit\fR causes them to be built before shared
  11170. libraries have been loaded and initialized.
  11171. .Sp
  11172. If this option appears multiple times in the command line with different
  11173. values specified, \fBnone\fR takes highest priority over both \fBstd\fR and
  11174. \&\fBpreinit\fR; \fBpreinit\fR takes priority over \fBstd\fR.
  11175. .IP "\fB\-fvtv\-debug\fR" 4
  11176. .IX Item "-fvtv-debug"
  11177. When used in conjunction with \fB\-fvtable\-verify=std\fR or
  11178. \&\fB\-fvtable\-verify=preinit\fR, causes debug versions of the
  11179. runtime functions for the vtable verification feature to be called.
  11180. This flag also causes the compiler to log information about which
  11181. vtable pointers it finds for each class.
  11182. This information is written to a file named \fIvtv_set_ptr_data.log\fR
  11183. in the directory named by the environment variable \fB\s-1VTV_LOGS_DIR\s0\fR
  11184. if that is defined or the current working directory otherwise.
  11185. .Sp
  11186. Note: This feature \fIappends\fR data to the log file. If you want a fresh log
  11187. file, be sure to delete any existing one.
  11188. .IP "\fB\-fvtv\-counts\fR" 4
  11189. .IX Item "-fvtv-counts"
  11190. This is a debugging flag. When used in conjunction with
  11191. \&\fB\-fvtable\-verify=std\fR or \fB\-fvtable\-verify=preinit\fR, this
  11192. causes the compiler to keep track of the total number of virtual calls
  11193. it encounters and the number of verifications it inserts. It also
  11194. counts the number of calls to certain run-time library functions
  11195. that it inserts and logs this information for each compilation unit.
  11196. The compiler writes this information to a file named
  11197. \&\fIvtv_count_data.log\fR in the directory named by the environment
  11198. variable \fB\s-1VTV_LOGS_DIR\s0\fR if that is defined or the current working
  11199. directory otherwise. It also counts the size of the vtable pointer sets
  11200. for each class, and writes this information to \fIvtv_class_set_sizes.log\fR
  11201. in the same directory.
  11202. .Sp
  11203. Note: This feature \fIappends\fR data to the log files. To get fresh log
  11204. files, be sure to delete any existing ones.
  11205. .IP "\fB\-finstrument\-functions\fR" 4
  11206. .IX Item "-finstrument-functions"
  11207. Generate instrumentation calls for entry and exit to functions. Just
  11208. after function entry and just before function exit, the following
  11209. profiling functions are called with the address of the current
  11210. function and its call site. (On some platforms,
  11211. \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
  11212. function, so the call site information may not be available to the
  11213. profiling functions otherwise.)
  11214. .Sp
  11215. .Vb 4
  11216. \& void _\|_cyg_profile_func_enter (void *this_fn,
  11217. \& void *call_site);
  11218. \& void _\|_cyg_profile_func_exit (void *this_fn,
  11219. \& void *call_site);
  11220. .Ve
  11221. .Sp
  11222. The first argument is the address of the start of the current function,
  11223. which may be looked up exactly in the symbol table.
  11224. .Sp
  11225. This instrumentation is also done for functions expanded inline in other
  11226. functions. The profiling calls indicate where, conceptually, the
  11227. inline function is entered and exited. This means that addressable
  11228. versions of such functions must be available. If all your uses of a
  11229. function are expanded inline, this may mean an additional expansion of
  11230. code size. If you use \f(CW\*(C`extern inline\*(C'\fR in your C code, an
  11231. addressable version of such functions must be provided. (This is
  11232. normally the case anyway, but if you get lucky and the optimizer always
  11233. expands the functions inline, you might have gotten away without
  11234. providing static copies.)
  11235. .Sp
  11236. A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
  11237. which case this instrumentation is not done. This can be used, for
  11238. example, for the profiling functions listed above, high-priority
  11239. interrupt routines, and any functions from which the profiling functions
  11240. cannot safely be called (perhaps signal handlers, if the profiling
  11241. routines generate output or allocate memory).
  11242. .IP "\fB\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR" 4
  11243. .IX Item "-finstrument-functions-exclude-file-list=file,file,..."
  11244. Set the list of functions that are excluded from instrumentation (see
  11245. the description of \fB\-finstrument\-functions\fR). If the file that
  11246. contains a function definition matches with one of \fIfile\fR, then
  11247. that function is not instrumented. The match is done on substrings:
  11248. if the \fIfile\fR parameter is a substring of the file name, it is
  11249. considered to be a match.
  11250. .Sp
  11251. For example:
  11252. .Sp
  11253. .Vb 1
  11254. \& \-finstrument\-functions\-exclude\-file\-list=/bits/stl,include/sys
  11255. .Ve
  11256. .Sp
  11257. excludes any inline function defined in files whose pathnames
  11258. contain \fI/bits/stl\fR or \fIinclude/sys\fR.
  11259. .Sp
  11260. If, for some reason, you want to include letter \fB,\fR in one of
  11261. \&\fIsym\fR, write \fB,\fR. For example,
  11262. \&\fB\-finstrument\-functions\-exclude\-file\-list=',,tmp'\fR
  11263. (note the single quote surrounding the option).
  11264. .IP "\fB\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...\fR" 4
  11265. .IX Item "-finstrument-functions-exclude-function-list=sym,sym,..."
  11266. This is similar to \fB\-finstrument\-functions\-exclude\-file\-list\fR,
  11267. but this option sets the list of function names to be excluded from
  11268. instrumentation. The function name to be matched is its user-visible
  11269. name, such as \f(CW\*(C`vector<int> blah(const vector<int> &)\*(C'\fR, not the
  11270. internal mangled name (e.g., \f(CW\*(C`_Z4blahRSt6vectorIiSaIiEE\*(C'\fR). The
  11271. match is done on substrings: if the \fIsym\fR parameter is a substring
  11272. of the function name, it is considered to be a match. For C99 and \*(C+
  11273. extended identifiers, the function name must be given in \s-1UTF\-8,\s0 not
  11274. using universal character names.
  11275. .IP "\fB\-fpatchable\-function\-entry=\fR\fIN\fR\fB[,\fR\fIM\fR\fB]\fR" 4
  11276. .IX Item "-fpatchable-function-entry=N[,M]"
  11277. Generate \fIN\fR NOPs right at the beginning
  11278. of each function, with the function entry point before the \fIM\fRth \s-1NOP.\s0
  11279. If \fIM\fR is omitted, it defaults to \f(CW0\fR so the
  11280. function entry points to the address just at the first \s-1NOP.\s0
  11281. The \s-1NOP\s0 instructions reserve extra space which can be used to patch in
  11282. any desired instrumentation at run time, provided that the code segment
  11283. is writable. The amount of space is controllable indirectly via
  11284. the number of NOPs; the \s-1NOP\s0 instruction used corresponds to the instruction
  11285. emitted by the internal \s-1GCC\s0 back-end interface \f(CW\*(C`gen_nop\*(C'\fR. This behavior
  11286. is target-specific and may also depend on the architecture variant and/or
  11287. other compilation options.
  11288. .Sp
  11289. For run-time identification, the starting addresses of these areas,
  11290. which correspond to their respective function entries minus \fIM\fR,
  11291. are additionally collected in the \f(CW\*(C`_\|_patchable_function_entries\*(C'\fR
  11292. section of the resulting binary.
  11293. .Sp
  11294. Note that the value of \f(CW\*(C`_\|_attribute_\|_ ((patchable_function_entry
  11295. (N,M)))\*(C'\fR takes precedence over command-line option
  11296. \&\fB\-fpatchable\-function\-entry=N,M\fR. This can be used to increase
  11297. the area size or to remove it completely on a single function.
  11298. If \f(CW\*(C`N=0\*(C'\fR, no pad location is recorded.
  11299. .Sp
  11300. The \s-1NOP\s0 instructions are inserted at\-\-\-and maybe before, depending on
  11301. \&\fIM\fR\-\-\-the function entry address, even before the prologue.
  11302. .SS "Options Controlling the Preprocessor"
  11303. .IX Subsection "Options Controlling the Preprocessor"
  11304. These options control the C preprocessor, which is run on each C source
  11305. file before actual compilation.
  11306. .PP
  11307. If you use the \fB\-E\fR option, nothing is done except preprocessing.
  11308. Some of these options make sense only together with \fB\-E\fR because
  11309. they cause the preprocessor output to be unsuitable for actual
  11310. compilation.
  11311. .PP
  11312. In addition to the options listed here, there are a number of options
  11313. to control search paths for include files documented in
  11314. \&\fBDirectory Options\fR.
  11315. Options to control preprocessor diagnostics are listed in
  11316. \&\fBWarning Options\fR.
  11317. .IP "\fB\-D\fR \fIname\fR" 4
  11318. .IX Item "-D name"
  11319. Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
  11320. .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
  11321. .IX Item "-D name=definition"
  11322. The contents of \fIdefinition\fR are tokenized and processed as if
  11323. they appeared during translation phase three in a \fB#define\fR
  11324. directive. In particular, the definition is truncated by
  11325. embedded newline characters.
  11326. .Sp
  11327. If you are invoking the preprocessor from a shell or shell-like
  11328. program you may need to use the shell's quoting syntax to protect
  11329. characters such as spaces that have a meaning in the shell syntax.
  11330. .Sp
  11331. If you wish to define a function-like macro on the command line, write
  11332. its argument list with surrounding parentheses before the equals sign
  11333. (if any). Parentheses are meaningful to most shells, so you should
  11334. quote the option. With \fBsh\fR and \fBcsh\fR,
  11335. \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
  11336. .Sp
  11337. \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
  11338. are given on the command line. All \fB\-imacros\fR \fIfile\fR and
  11339. \&\fB\-include\fR \fIfile\fR options are processed after all
  11340. \&\fB\-D\fR and \fB\-U\fR options.
  11341. .IP "\fB\-U\fR \fIname\fR" 4
  11342. .IX Item "-U name"
  11343. Cancel any previous definition of \fIname\fR, either built in or
  11344. provided with a \fB\-D\fR option.
  11345. .IP "\fB\-include\fR \fIfile\fR" 4
  11346. .IX Item "-include file"
  11347. Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
  11348. line of the primary source file. However, the first directory searched
  11349. for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
  11350. the directory containing the main source file. If not found there, it
  11351. is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
  11352. chain as normal.
  11353. .Sp
  11354. If multiple \fB\-include\fR options are given, the files are included
  11355. in the order they appear on the command line.
  11356. .IP "\fB\-imacros\fR \fIfile\fR" 4
  11357. .IX Item "-imacros file"
  11358. Exactly like \fB\-include\fR, except that any output produced by
  11359. scanning \fIfile\fR is thrown away. Macros it defines remain defined.
  11360. This allows you to acquire all the macros from a header without also
  11361. processing its declarations.
  11362. .Sp
  11363. All files specified by \fB\-imacros\fR are processed before all files
  11364. specified by \fB\-include\fR.
  11365. .IP "\fB\-undef\fR" 4
  11366. .IX Item "-undef"
  11367. Do not predefine any system-specific or GCC-specific macros. The
  11368. standard predefined macros remain defined.
  11369. .IP "\fB\-pthread\fR" 4
  11370. .IX Item "-pthread"
  11371. Define additional macros required for using the \s-1POSIX\s0 threads library.
  11372. You should use this option consistently for both compilation and linking.
  11373. This option is supported on GNU/Linux targets, most other Unix derivatives,
  11374. and also on x86 Cygwin and MinGW targets.
  11375. .IP "\fB\-M\fR" 4
  11376. .IX Item "-M"
  11377. Instead of outputting the result of preprocessing, output a rule
  11378. suitable for \fBmake\fR describing the dependencies of the main
  11379. source file. The preprocessor outputs one \fBmake\fR rule containing
  11380. the object file name for that source file, a colon, and the names of all
  11381. the included files, including those coming from \fB\-include\fR or
  11382. \&\fB\-imacros\fR command-line options.
  11383. .Sp
  11384. Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
  11385. object file name consists of the name of the source file with any
  11386. suffix replaced with object file suffix and with any leading directory
  11387. parts removed. If there are many included files then the rule is
  11388. split into several lines using \fB\e\fR\-newline. The rule has no
  11389. commands.
  11390. .Sp
  11391. This option does not suppress the preprocessor's debug output, such as
  11392. \&\fB\-dM\fR. To avoid mixing such debug output with the dependency
  11393. rules you should explicitly specify the dependency output file with
  11394. \&\fB\-MF\fR, or use an environment variable like
  11395. \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR. Debug output
  11396. is still sent to the regular output stream as normal.
  11397. .Sp
  11398. Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
  11399. warnings with an implicit \fB\-w\fR.
  11400. .IP "\fB\-MM\fR" 4
  11401. .IX Item "-MM"
  11402. Like \fB\-M\fR but do not mention header files that are found in
  11403. system header directories, nor header files that are included,
  11404. directly or indirectly, from such a header.
  11405. .Sp
  11406. This implies that the choice of angle brackets or double quotes in an
  11407. \&\fB#include\fR directive does not in itself determine whether that
  11408. header appears in \fB\-MM\fR dependency output.
  11409. .IP "\fB\-MF\fR \fIfile\fR" 4
  11410. .IX Item "-MF file"
  11411. When used with \fB\-M\fR or \fB\-MM\fR, specifies a
  11412. file to write the dependencies to. If no \fB\-MF\fR switch is given
  11413. the preprocessor sends the rules to the same place it would send
  11414. preprocessed output.
  11415. .Sp
  11416. When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
  11417. \&\fB\-MF\fR overrides the default dependency output file.
  11418. .Sp
  11419. If \fIfile\fR is \fI\-\fR, then the dependencies are written to \fIstdout\fR.
  11420. .IP "\fB\-MG\fR" 4
  11421. .IX Item "-MG"
  11422. In conjunction with an option such as \fB\-M\fR requesting
  11423. dependency generation, \fB\-MG\fR assumes missing header files are
  11424. generated files and adds them to the dependency list without raising
  11425. an error. The dependency filename is taken directly from the
  11426. \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path. \fB\-MG\fR
  11427. also suppresses preprocessed output, as a missing header file renders
  11428. this useless.
  11429. .Sp
  11430. This feature is used in automatic updating of makefiles.
  11431. .IP "\fB\-MP\fR" 4
  11432. .IX Item "-MP"
  11433. This option instructs \s-1CPP\s0 to add a phony target for each dependency
  11434. other than the main file, causing each to depend on nothing. These
  11435. dummy rules work around errors \fBmake\fR gives if you remove header
  11436. files without updating the \fIMakefile\fR to match.
  11437. .Sp
  11438. This is typical output:
  11439. .Sp
  11440. .Vb 1
  11441. \& test.o: test.c test.h
  11442. \&
  11443. \& test.h:
  11444. .Ve
  11445. .IP "\fB\-MT\fR \fItarget\fR" 4
  11446. .IX Item "-MT target"
  11447. Change the target of the rule emitted by dependency generation. By
  11448. default \s-1CPP\s0 takes the name of the main input file, deletes any
  11449. directory components and any file suffix such as \fB.c\fR, and
  11450. appends the platform's usual object suffix. The result is the target.
  11451. .Sp
  11452. An \fB\-MT\fR option sets the target to be exactly the string you
  11453. specify. If you want multiple targets, you can specify them as a single
  11454. argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
  11455. .Sp
  11456. For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
  11457. .Sp
  11458. .Vb 1
  11459. \& $(objpfx)foo.o: foo.c
  11460. .Ve
  11461. .IP "\fB\-MQ\fR \fItarget\fR" 4
  11462. .IX Item "-MQ target"
  11463. Same as \fB\-MT\fR, but it quotes any characters which are special to
  11464. Make. \fB\-MQ\ '$(objpfx)foo.o'\fR gives
  11465. .Sp
  11466. .Vb 1
  11467. \& $$(objpfx)foo.o: foo.c
  11468. .Ve
  11469. .Sp
  11470. The default target is automatically quoted, as if it were given with
  11471. \&\fB\-MQ\fR.
  11472. .IP "\fB\-MD\fR" 4
  11473. .IX Item "-MD"
  11474. \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
  11475. \&\fB\-E\fR is not implied. The driver determines \fIfile\fR based on
  11476. whether an \fB\-o\fR option is given. If it is, the driver uses its
  11477. argument but with a suffix of \fI.d\fR, otherwise it takes the name
  11478. of the input file, removes any directory components and suffix, and
  11479. applies a \fI.d\fR suffix.
  11480. .Sp
  11481. If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
  11482. \&\fB\-o\fR switch is understood to specify the dependency output file, but if used without \fB\-E\fR, each \fB\-o\fR
  11483. is understood to specify a target object file.
  11484. .Sp
  11485. Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
  11486. a dependency output file as a side effect of the compilation process.
  11487. .IP "\fB\-MMD\fR" 4
  11488. .IX Item "-MMD"
  11489. Like \fB\-MD\fR except mention only user header files, not system
  11490. header files.
  11491. .IP "\fB\-fpreprocessed\fR" 4
  11492. .IX Item "-fpreprocessed"
  11493. Indicate to the preprocessor that the input file has already been
  11494. preprocessed. This suppresses things like macro expansion, trigraph
  11495. conversion, escaped newline splicing, and processing of most directives.
  11496. The preprocessor still recognizes and removes comments, so that you can
  11497. pass a file preprocessed with \fB\-C\fR to the compiler without
  11498. problems. In this mode the integrated preprocessor is little more than
  11499. a tokenizer for the front ends.
  11500. .Sp
  11501. \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
  11502. extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR. These are the
  11503. extensions that \s-1GCC\s0 uses for preprocessed files created by
  11504. \&\fB\-save\-temps\fR.
  11505. .IP "\fB\-fdirectives\-only\fR" 4
  11506. .IX Item "-fdirectives-only"
  11507. When preprocessing, handle directives, but do not expand macros.
  11508. .Sp
  11509. The option's behavior depends on the \fB\-E\fR and \fB\-fpreprocessed\fR
  11510. options.
  11511. .Sp
  11512. With \fB\-E\fR, preprocessing is limited to the handling of directives
  11513. such as \f(CW\*(C`#define\*(C'\fR, \f(CW\*(C`#ifdef\*(C'\fR, and \f(CW\*(C`#error\*(C'\fR. Other
  11514. preprocessor operations, such as macro expansion and trigraph
  11515. conversion are not performed. In addition, the \fB\-dD\fR option is
  11516. implicitly enabled.
  11517. .Sp
  11518. With \fB\-fpreprocessed\fR, predefinition of command line and most
  11519. builtin macros is disabled. Macros such as \f(CW\*(C`_\|_LINE_\|_\*(C'\fR, which are
  11520. contextually dependent, are handled normally. This enables compilation of
  11521. files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
  11522. .Sp
  11523. With both \fB\-E\fR and \fB\-fpreprocessed\fR, the rules for
  11524. \&\fB\-fpreprocessed\fR take precedence. This enables full preprocessing of
  11525. files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
  11526. .IP "\fB\-fdollars\-in\-identifiers\fR" 4
  11527. .IX Item "-fdollars-in-identifiers"
  11528. Accept \fB$\fR in identifiers.
  11529. .IP "\fB\-fextended\-identifiers\fR" 4
  11530. .IX Item "-fextended-identifiers"
  11531. Accept universal character names in identifiers. This option is
  11532. enabled by default for C99 (and later C standard versions) and \*(C+.
  11533. .IP "\fB\-fno\-canonical\-system\-headers\fR" 4
  11534. .IX Item "-fno-canonical-system-headers"
  11535. When preprocessing, do not shorten system header paths with canonicalization.
  11536. .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
  11537. .IX Item "-ftabstop=width"
  11538. Set the distance between tab stops. This helps the preprocessor report
  11539. correct column numbers in warnings or errors, even if tabs appear on the
  11540. line. If the value is less than 1 or greater than 100, the option is
  11541. ignored. The default is 8.
  11542. .IP "\fB\-ftrack\-macro\-expansion\fR[\fB=\fR\fIlevel\fR]" 4
  11543. .IX Item "-ftrack-macro-expansion[=level]"
  11544. Track locations of tokens across macro expansions. This allows the
  11545. compiler to emit diagnostic about the current macro expansion stack
  11546. when a compilation error occurs in a macro expansion. Using this
  11547. option makes the preprocessor and the compiler consume more
  11548. memory. The \fIlevel\fR parameter can be used to choose the level of
  11549. precision of token location tracking thus decreasing the memory
  11550. consumption if necessary. Value \fB0\fR of \fIlevel\fR de-activates
  11551. this option. Value \fB1\fR tracks tokens locations in a
  11552. degraded mode for the sake of minimal memory overhead. In this mode
  11553. all tokens resulting from the expansion of an argument of a
  11554. function-like macro have the same location. Value \fB2\fR tracks
  11555. tokens locations completely. This value is the most memory hungry.
  11556. When this option is given no argument, the default parameter value is
  11557. \&\fB2\fR.
  11558. .Sp
  11559. Note that \f(CW\*(C`\-ftrack\-macro\-expansion=2\*(C'\fR is activated by default.
  11560. .IP "\fB\-fmacro\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
  11561. .IX Item "-fmacro-prefix-map=old=new"
  11562. When preprocessing files residing in directory \fI\fIold\fI\fR,
  11563. expand the \f(CW\*(C`_\|_FILE_\|_\*(C'\fR and \f(CW\*(C`_\|_BASE_FILE_\|_\*(C'\fR macros as if the
  11564. files resided in directory \fI\fInew\fI\fR instead. This can be used
  11565. to change an absolute path to a relative path by using \fI.\fR for
  11566. \&\fInew\fR which can result in more reproducible builds that are
  11567. location independent. This option also affects
  11568. \&\f(CW\*(C`_\|_builtin_FILE()\*(C'\fR during compilation. See also
  11569. \&\fB\-ffile\-prefix\-map\fR.
  11570. .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
  11571. .IX Item "-fexec-charset=charset"
  11572. Set the execution character set, used for string and character
  11573. constants. The default is \s-1UTF\-8.\s0 \fIcharset\fR can be any encoding
  11574. supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
  11575. .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
  11576. .IX Item "-fwide-exec-charset=charset"
  11577. Set the wide execution character set, used for wide string and
  11578. character constants. The default is \s-1UTF\-32\s0 or \s-1UTF\-16,\s0 whichever
  11579. corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR. As with
  11580. \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
  11581. by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
  11582. problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
  11583. .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
  11584. .IX Item "-finput-charset=charset"
  11585. Set the input character set, used for translation from the character
  11586. set of the input file to the source character set used by \s-1GCC.\s0 If the
  11587. locale does not specify, or \s-1GCC\s0 cannot get this information from the
  11588. locale, the default is \s-1UTF\-8.\s0 This can be overridden by either the locale
  11589. or this command-line option. Currently the command-line option takes
  11590. precedence if there's a conflict. \fIcharset\fR can be any encoding
  11591. supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
  11592. .IP "\fB\-fpch\-deps\fR" 4
  11593. .IX Item "-fpch-deps"
  11594. When using precompiled headers, this flag
  11595. causes the dependency-output flags to also list the files from the
  11596. precompiled header's dependencies. If not specified, only the
  11597. precompiled header are listed and not the files that were used to
  11598. create it, because those files are not consulted when a precompiled
  11599. header is used.
  11600. .IP "\fB\-fpch\-preprocess\fR" 4
  11601. .IX Item "-fpch-preprocess"
  11602. This option allows use of a precompiled header together with \fB\-E\fR. It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
  11603. \&\f(CW\*(C`#pragma GCC pch_preprocess "\f(CIfilename\f(CW"\*(C'\fR in the output to mark
  11604. the place where the precompiled header was found, and its \fIfilename\fR.
  11605. When \fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR
  11606. and loads the \s-1PCH.\s0
  11607. .Sp
  11608. This option is off by default, because the resulting preprocessed output
  11609. is only really suitable as input to \s-1GCC.\s0 It is switched on by
  11610. \&\fB\-save\-temps\fR.
  11611. .Sp
  11612. You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
  11613. safe to edit the filename if the \s-1PCH\s0 file is available in a different
  11614. location. The filename may be absolute or it may be relative to \s-1GCC\s0's
  11615. current directory.
  11616. .IP "\fB\-fworking\-directory\fR" 4
  11617. .IX Item "-fworking-directory"
  11618. Enable generation of linemarkers in the preprocessor output that
  11619. let the compiler know the current working directory at the time of
  11620. preprocessing. When this option is enabled, the preprocessor
  11621. emits, after the initial linemarker, a second linemarker with the
  11622. current working directory followed by two slashes. \s-1GCC\s0 uses this
  11623. directory, when it's present in the preprocessed input, as the
  11624. directory emitted as the current working directory in some debugging
  11625. information formats. This option is implicitly enabled if debugging
  11626. information is enabled, but this can be inhibited with the negated
  11627. form \fB\-fno\-working\-directory\fR. If the \fB\-P\fR flag is
  11628. present in the command line, this option has no effect, since no
  11629. \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
  11630. .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
  11631. .IX Item "-A predicate=answer"
  11632. Make an assertion with the predicate \fIpredicate\fR and answer
  11633. \&\fIanswer\fR. This form is preferred to the older form \fB\-A\fR
  11634. \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
  11635. it does not use shell special characters.
  11636. .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
  11637. .IX Item "-A -predicate=answer"
  11638. Cancel an assertion with the predicate \fIpredicate\fR and answer
  11639. \&\fIanswer\fR.
  11640. .IP "\fB\-C\fR" 4
  11641. .IX Item "-C"
  11642. Do not discard comments. All comments are passed through to the output
  11643. file, except for comments in processed directives, which are deleted
  11644. along with the directive.
  11645. .Sp
  11646. You should be prepared for side effects when using \fB\-C\fR; it
  11647. causes the preprocessor to treat comments as tokens in their own right.
  11648. For example, comments appearing at the start of what would be a
  11649. directive line have the effect of turning that line into an ordinary
  11650. source line, since the first token on the line is no longer a \fB#\fR.
  11651. .IP "\fB\-CC\fR" 4
  11652. .IX Item "-CC"
  11653. Do not discard comments, including during macro expansion. This is
  11654. like \fB\-C\fR, except that comments contained within macros are
  11655. also passed through to the output file where the macro is expanded.
  11656. .Sp
  11657. In addition to the side effects of the \fB\-C\fR option, the
  11658. \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
  11659. to be converted to C\-style comments. This is to prevent later use
  11660. of that macro from inadvertently commenting out the remainder of
  11661. the source line.
  11662. .Sp
  11663. The \fB\-CC\fR option is generally used to support lint comments.
  11664. .IP "\fB\-P\fR" 4
  11665. .IX Item "-P"
  11666. Inhibit generation of linemarkers in the output from the preprocessor.
  11667. This might be useful when running the preprocessor on something that is
  11668. not C code, and will be sent to a program which might be confused by the
  11669. linemarkers.
  11670. .IP "\fB\-traditional\fR" 4
  11671. .IX Item "-traditional"
  11672. .PD 0
  11673. .IP "\fB\-traditional\-cpp\fR" 4
  11674. .IX Item "-traditional-cpp"
  11675. .PD
  11676. Try to imitate the behavior of pre-standard C preprocessors, as
  11677. opposed to \s-1ISO C\s0 preprocessors.
  11678. See the \s-1GNU CPP\s0 manual for details.
  11679. .Sp
  11680. Note that \s-1GCC\s0 does not otherwise attempt to emulate a pre-standard
  11681. C compiler, and these options are only supported with the \fB\-E\fR
  11682. switch, or when invoking \s-1CPP\s0 explicitly.
  11683. .IP "\fB\-trigraphs\fR" 4
  11684. .IX Item "-trigraphs"
  11685. Support \s-1ISO C\s0 trigraphs.
  11686. These are three-character sequences, all starting with \fB??\fR, that
  11687. are defined by \s-1ISO C\s0 to stand for single characters. For example,
  11688. \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
  11689. constant for a newline.
  11690. .Sp
  11691. The nine trigraphs and their replacements are
  11692. .Sp
  11693. .Vb 2
  11694. \& Trigraph: ??( ??) ??< ??> ??= ??/ ??\*(Aq ??! ??\-
  11695. \& Replacement: [ ] { } # \e ^ | ~
  11696. .Ve
  11697. .Sp
  11698. By default, \s-1GCC\s0 ignores trigraphs, but in
  11699. standard-conforming modes it converts them. See the \fB\-std\fR and
  11700. \&\fB\-ansi\fR options.
  11701. .IP "\fB\-remap\fR" 4
  11702. .IX Item "-remap"
  11703. Enable special code to work around file systems which only permit very
  11704. short file names, such as MS-DOS.
  11705. .IP "\fB\-H\fR" 4
  11706. .IX Item "-H"
  11707. Print the name of each header file used, in addition to other normal
  11708. activities. Each name is indented to show how deep in the
  11709. \&\fB#include\fR stack it is. Precompiled header files are also
  11710. printed, even if they are found to be invalid; an invalid precompiled
  11711. header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
  11712. .IP "\fB\-d\fR\fIletters\fR" 4
  11713. .IX Item "-dletters"
  11714. Says to make debugging dumps during compilation as specified by
  11715. \&\fIletters\fR. The flags documented here are those relevant to the
  11716. preprocessor. Other \fIletters\fR are interpreted
  11717. by the compiler proper, or reserved for future versions of \s-1GCC,\s0 and so
  11718. are silently ignored. If you specify \fIletters\fR whose behavior
  11719. conflicts, the result is undefined.
  11720. .RS 4
  11721. .IP "\fB\-dM\fR" 4
  11722. .IX Item "-dM"
  11723. Instead of the normal output, generate a list of \fB#define\fR
  11724. directives for all the macros defined during the execution of the
  11725. preprocessor, including predefined macros. This gives you a way of
  11726. finding out what is predefined in your version of the preprocessor.
  11727. Assuming you have no file \fIfoo.h\fR, the command
  11728. .Sp
  11729. .Vb 1
  11730. \& touch foo.h; cpp \-dM foo.h
  11731. .Ve
  11732. .Sp
  11733. shows all the predefined macros.
  11734. .Sp
  11735. If you use \fB\-dM\fR without the \fB\-E\fR option, \fB\-dM\fR is
  11736. interpreted as a synonym for \fB\-fdump\-rtl\-mach\fR.
  11737. .IP "\fB\-dD\fR" 4
  11738. .IX Item "-dD"
  11739. Like \fB\-dM\fR except in two respects: it does \fInot\fR include the
  11740. predefined macros, and it outputs \fIboth\fR the \fB#define\fR
  11741. directives and the result of preprocessing. Both kinds of output go to
  11742. the standard output file.
  11743. .IP "\fB\-dN\fR" 4
  11744. .IX Item "-dN"
  11745. Like \fB\-dD\fR, but emit only the macro names, not their expansions.
  11746. .IP "\fB\-dI\fR" 4
  11747. .IX Item "-dI"
  11748. Output \fB#include\fR directives in addition to the result of
  11749. preprocessing.
  11750. .IP "\fB\-dU\fR" 4
  11751. .IX Item "-dU"
  11752. Like \fB\-dD\fR except that only macros that are expanded, or whose
  11753. definedness is tested in preprocessor directives, are output; the
  11754. output is delayed until the use or test of the macro; and
  11755. \&\fB#undef\fR directives are also output for macros tested but
  11756. undefined at the time.
  11757. .RE
  11758. .RS 4
  11759. .RE
  11760. .IP "\fB\-fdebug\-cpp\fR" 4
  11761. .IX Item "-fdebug-cpp"
  11762. This option is only useful for debugging \s-1GCC.\s0 When used from \s-1CPP\s0 or with
  11763. \&\fB\-E\fR, it dumps debugging information about location maps. Every
  11764. token in the output is preceded by the dump of the map its location
  11765. belongs to.
  11766. .Sp
  11767. When used from \s-1GCC\s0 without \fB\-E\fR, this option has no effect.
  11768. .IP "\fB\-Wp,\fR\fIoption\fR" 4
  11769. .IX Item "-Wp,option"
  11770. You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
  11771. and pass \fIoption\fR directly through to the preprocessor. If
  11772. \&\fIoption\fR contains commas, it is split into multiple options at the
  11773. commas. However, many options are modified, translated or interpreted
  11774. by the compiler driver before being passed to the preprocessor, and
  11775. \&\fB\-Wp\fR forcibly bypasses this phase. The preprocessor's direct
  11776. interface is undocumented and subject to change, so whenever possible
  11777. you should avoid using \fB\-Wp\fR and let the driver handle the
  11778. options instead.
  11779. .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
  11780. .IX Item "-Xpreprocessor option"
  11781. Pass \fIoption\fR as an option to the preprocessor. You can use this to
  11782. supply system-specific preprocessor options that \s-1GCC\s0 does not
  11783. recognize.
  11784. .Sp
  11785. If you want to pass an option that takes an argument, you must use
  11786. \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
  11787. .IP "\fB\-no\-integrated\-cpp\fR" 4
  11788. .IX Item "-no-integrated-cpp"
  11789. Perform preprocessing as a separate pass before compilation.
  11790. By default, \s-1GCC\s0 performs preprocessing as an integrated part of
  11791. input tokenization and parsing.
  11792. If this option is provided, the appropriate language front end
  11793. (\fBcc1\fR, \fBcc1plus\fR, or \fBcc1obj\fR for C, \*(C+,
  11794. and Objective-C, respectively) is instead invoked twice,
  11795. once for preprocessing only and once for actual compilation
  11796. of the preprocessed input.
  11797. This option may be useful in conjunction with the \fB\-B\fR or
  11798. \&\fB\-wrapper\fR options to specify an alternate preprocessor or
  11799. perform additional processing of the program source between
  11800. normal preprocessing and compilation.
  11801. .SS "Passing Options to the Assembler"
  11802. .IX Subsection "Passing Options to the Assembler"
  11803. You can pass options to the assembler.
  11804. .IP "\fB\-Wa,\fR\fIoption\fR" 4
  11805. .IX Item "-Wa,option"
  11806. Pass \fIoption\fR as an option to the assembler. If \fIoption\fR
  11807. contains commas, it is split into multiple options at the commas.
  11808. .IP "\fB\-Xassembler\fR \fIoption\fR" 4
  11809. .IX Item "-Xassembler option"
  11810. Pass \fIoption\fR as an option to the assembler. You can use this to
  11811. supply system-specific assembler options that \s-1GCC\s0 does not
  11812. recognize.
  11813. .Sp
  11814. If you want to pass an option that takes an argument, you must use
  11815. \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
  11816. .SS "Options for Linking"
  11817. .IX Subsection "Options for Linking"
  11818. These options come into play when the compiler links object files into
  11819. an executable output file. They are meaningless if the compiler is
  11820. not doing a link step.
  11821. .IP "\fIobject-file-name\fR" 4
  11822. .IX Item "object-file-name"
  11823. A file name that does not end in a special recognized suffix is
  11824. considered to name an object file or library. (Object files are
  11825. distinguished from libraries by the linker according to the file
  11826. contents.) If linking is done, these object files are used as input
  11827. to the linker.
  11828. .IP "\fB\-c\fR" 4
  11829. .IX Item "-c"
  11830. .PD 0
  11831. .IP "\fB\-S\fR" 4
  11832. .IX Item "-S"
  11833. .IP "\fB\-E\fR" 4
  11834. .IX Item "-E"
  11835. .PD
  11836. If any of these options is used, then the linker is not run, and
  11837. object file names should not be used as arguments.
  11838. .IP "\fB\-fuse\-ld=bfd\fR" 4
  11839. .IX Item "-fuse-ld=bfd"
  11840. Use the \fBbfd\fR linker instead of the default linker.
  11841. .IP "\fB\-fuse\-ld=gold\fR" 4
  11842. .IX Item "-fuse-ld=gold"
  11843. Use the \fBgold\fR linker instead of the default linker.
  11844. .IP "\fB\-l\fR\fIlibrary\fR" 4
  11845. .IX Item "-llibrary"
  11846. .PD 0
  11847. .IP "\fB\-l\fR \fIlibrary\fR" 4
  11848. .IX Item "-l library"
  11849. .PD
  11850. Search the library named \fIlibrary\fR when linking. (The second
  11851. alternative with the library as a separate argument is only for
  11852. \&\s-1POSIX\s0 compliance and is not recommended.)
  11853. .Sp
  11854. It makes a difference where in the command you write this option; the
  11855. linker searches and processes libraries and object files in the order they
  11856. are specified. Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
  11857. after file \fIfoo.o\fR but before \fIbar.o\fR. If \fIbar.o\fR refers
  11858. to functions in \fBz\fR, those functions may not be loaded.
  11859. .Sp
  11860. The linker searches a standard list of directories for the library,
  11861. which is actually a file named \fIlib\fIlibrary\fI.a\fR. The linker
  11862. then uses this file as if it had been specified precisely by name.
  11863. .Sp
  11864. The directories searched include several standard system directories
  11865. plus any that you specify with \fB\-L\fR.
  11866. .Sp
  11867. Normally the files found this way are library files\-\-\-archive files
  11868. whose members are object files. The linker handles an archive file by
  11869. scanning through it for members which define symbols that have so far
  11870. been referenced but not defined. But if the file that is found is an
  11871. ordinary object file, it is linked in the usual fashion. The only
  11872. difference between using an \fB\-l\fR option and specifying a file name
  11873. is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
  11874. and searches several directories.
  11875. .IP "\fB\-lobjc\fR" 4
  11876. .IX Item "-lobjc"
  11877. You need this special case of the \fB\-l\fR option in order to
  11878. link an Objective-C or Objective\-\*(C+ program.
  11879. .IP "\fB\-nostartfiles\fR" 4
  11880. .IX Item "-nostartfiles"
  11881. Do not use the standard system startup files when linking.
  11882. The standard system libraries are used normally, unless \fB\-nostdlib\fR
  11883. or \fB\-nodefaultlibs\fR is used.
  11884. .IP "\fB\-nodefaultlibs\fR" 4
  11885. .IX Item "-nodefaultlibs"
  11886. Do not use the standard system libraries when linking.
  11887. Only the libraries you specify are passed to the linker, and options
  11888. specifying linkage of the system libraries, such as \fB\-static\-libgcc\fR
  11889. or \fB\-shared\-libgcc\fR, are ignored.
  11890. The standard startup files are used normally, unless \fB\-nostartfiles\fR
  11891. is used.
  11892. .Sp
  11893. The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
  11894. \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
  11895. These entries are usually resolved by entries in
  11896. libc. These entry points should be supplied through some other
  11897. mechanism when this option is specified.
  11898. .IP "\fB\-nostdlib\fR" 4
  11899. .IX Item "-nostdlib"
  11900. Do not use the standard system startup files or libraries when linking.
  11901. No startup files and only the libraries you specify are passed to
  11902. the linker, and options specifying linkage of the system libraries, such as
  11903. \&\fB\-static\-libgcc\fR or \fB\-shared\-libgcc\fR, are ignored.
  11904. .Sp
  11905. The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
  11906. \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
  11907. These entries are usually resolved by entries in
  11908. libc. These entry points should be supplied through some other
  11909. mechanism when this option is specified.
  11910. .Sp
  11911. One of the standard libraries bypassed by \fB\-nostdlib\fR and
  11912. \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
  11913. which \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
  11914. needs for some languages.
  11915. .Sp
  11916. In most cases, you need \fIlibgcc.a\fR even when you want to avoid
  11917. other standard libraries. In other words, when you specify \fB\-nostdlib\fR
  11918. or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
  11919. This ensures that you have no unresolved references to internal \s-1GCC\s0
  11920. library subroutines.
  11921. (An example of such an internal subroutine is \f(CW\*(C`_\|_main\*(C'\fR, used to ensure \*(C+
  11922. constructors are called.)
  11923. .IP "\fB\-pie\fR" 4
  11924. .IX Item "-pie"
  11925. Produce a dynamically linked position independent executable on targets
  11926. that support it. For predictable results, you must also specify the same
  11927. set of options used for compilation (\fB\-fpie\fR, \fB\-fPIE\fR,
  11928. or model suboptions) when you specify this linker option.
  11929. .IP "\fB\-no\-pie\fR" 4
  11930. .IX Item "-no-pie"
  11931. Don't produce a dynamically linked position independent executable.
  11932. .IP "\fB\-static\-pie\fR" 4
  11933. .IX Item "-static-pie"
  11934. Produce a static position independent executable on targets that support
  11935. it. A static position independent executable is similar to a static
  11936. executable, but can be loaded at any address without a dynamic linker.
  11937. For predictable results, you must also specify the same set of options
  11938. used for compilation (\fB\-fpie\fR, \fB\-fPIE\fR, or model
  11939. suboptions) when you specify this linker option.
  11940. .IP "\fB\-pthread\fR" 4
  11941. .IX Item "-pthread"
  11942. Link with the \s-1POSIX\s0 threads library. This option is supported on
  11943. GNU/Linux targets, most other Unix derivatives, and also on
  11944. x86 Cygwin and MinGW targets. On some targets this option also sets
  11945. flags for the preprocessor, so it should be used consistently for both
  11946. compilation and linking.
  11947. .IP "\fB\-rdynamic\fR" 4
  11948. .IX Item "-rdynamic"
  11949. Pass the flag \fB\-export\-dynamic\fR to the \s-1ELF\s0 linker, on targets
  11950. that support it. This instructs the linker to add all symbols, not
  11951. only used ones, to the dynamic symbol table. This option is needed
  11952. for some uses of \f(CW\*(C`dlopen\*(C'\fR or to allow obtaining backtraces
  11953. from within a program.
  11954. .IP "\fB\-s\fR" 4
  11955. .IX Item "-s"
  11956. Remove all symbol table and relocation information from the executable.
  11957. .IP "\fB\-static\fR" 4
  11958. .IX Item "-static"
  11959. On systems that support dynamic linking, this overrides \fB\-pie\fR
  11960. and prevents linking with the shared libraries. On other systems, this
  11961. option has no effect.
  11962. .IP "\fB\-shared\fR" 4
  11963. .IX Item "-shared"
  11964. Produce a shared object which can then be linked with other objects to
  11965. form an executable. Not all systems support this option. For predictable
  11966. results, you must also specify the same set of options used for compilation
  11967. (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions) when
  11968. you specify this linker option.[1]
  11969. .IP "\fB\-shared\-libgcc\fR" 4
  11970. .IX Item "-shared-libgcc"
  11971. .PD 0
  11972. .IP "\fB\-static\-libgcc\fR" 4
  11973. .IX Item "-static-libgcc"
  11974. .PD
  11975. On systems that provide \fIlibgcc\fR as a shared library, these options
  11976. force the use of either the shared or static version, respectively.
  11977. If no shared version of \fIlibgcc\fR was built when the compiler was
  11978. configured, these options have no effect.
  11979. .Sp
  11980. There are several situations in which an application should use the
  11981. shared \fIlibgcc\fR instead of the static version. The most common
  11982. of these is when the application wishes to throw and catch exceptions
  11983. across different shared libraries. In that case, each of the libraries
  11984. as well as the application itself should use the shared \fIlibgcc\fR.
  11985. .Sp
  11986. Therefore, the G++ driver automatically adds \fB\-shared\-libgcc\fR
  11987. whenever you build a shared library or a main executable, because \*(C+
  11988. programs typically use exceptions, so this is the right thing to do.
  11989. .Sp
  11990. If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
  11991. find that they are not always linked with the shared \fIlibgcc\fR.
  11992. If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
  11993. or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
  11994. it links the shared version of \fIlibgcc\fR into shared libraries
  11995. by default. Otherwise, it takes advantage of the linker and optimizes
  11996. away the linking with the shared version of \fIlibgcc\fR, linking with
  11997. the static version of libgcc by default. This allows exceptions to
  11998. propagate through such shared libraries, without incurring relocation
  11999. costs at library load time.
  12000. .Sp
  12001. However, if a library or main executable is supposed to throw or catch
  12002. exceptions, you must link it using the G++ driver, or using the option
  12003. \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
  12004. \&\fIlibgcc\fR.
  12005. .IP "\fB\-static\-libasan\fR" 4
  12006. .IX Item "-static-libasan"
  12007. When the \fB\-fsanitize=address\fR option is used to link a program,
  12008. the \s-1GCC\s0 driver automatically links against \fBlibasan\fR. If
  12009. \&\fIlibasan\fR is available as a shared library, and the \fB\-static\fR
  12010. option is not used, then this links against the shared version of
  12011. \&\fIlibasan\fR. The \fB\-static\-libasan\fR option directs the \s-1GCC\s0
  12012. driver to link \fIlibasan\fR statically, without necessarily linking
  12013. other libraries statically.
  12014. .IP "\fB\-static\-libtsan\fR" 4
  12015. .IX Item "-static-libtsan"
  12016. When the \fB\-fsanitize=thread\fR option is used to link a program,
  12017. the \s-1GCC\s0 driver automatically links against \fBlibtsan\fR. If
  12018. \&\fIlibtsan\fR is available as a shared library, and the \fB\-static\fR
  12019. option is not used, then this links against the shared version of
  12020. \&\fIlibtsan\fR. The \fB\-static\-libtsan\fR option directs the \s-1GCC\s0
  12021. driver to link \fIlibtsan\fR statically, without necessarily linking
  12022. other libraries statically.
  12023. .IP "\fB\-static\-liblsan\fR" 4
  12024. .IX Item "-static-liblsan"
  12025. When the \fB\-fsanitize=leak\fR option is used to link a program,
  12026. the \s-1GCC\s0 driver automatically links against \fBliblsan\fR. If
  12027. \&\fIliblsan\fR is available as a shared library, and the \fB\-static\fR
  12028. option is not used, then this links against the shared version of
  12029. \&\fIliblsan\fR. The \fB\-static\-liblsan\fR option directs the \s-1GCC\s0
  12030. driver to link \fIliblsan\fR statically, without necessarily linking
  12031. other libraries statically.
  12032. .IP "\fB\-static\-libubsan\fR" 4
  12033. .IX Item "-static-libubsan"
  12034. When the \fB\-fsanitize=undefined\fR option is used to link a program,
  12035. the \s-1GCC\s0 driver automatically links against \fBlibubsan\fR. If
  12036. \&\fIlibubsan\fR is available as a shared library, and the \fB\-static\fR
  12037. option is not used, then this links against the shared version of
  12038. \&\fIlibubsan\fR. The \fB\-static\-libubsan\fR option directs the \s-1GCC\s0
  12039. driver to link \fIlibubsan\fR statically, without necessarily linking
  12040. other libraries statically.
  12041. .IP "\fB\-static\-libmpx\fR" 4
  12042. .IX Item "-static-libmpx"
  12043. When the \fB\-fcheck\-pointer bounds\fR and \fB\-mmpx\fR options are
  12044. used to link a program, the \s-1GCC\s0 driver automatically links against
  12045. \&\fIlibmpx\fR. If \fIlibmpx\fR is available as a shared library,
  12046. and the \fB\-static\fR option is not used, then this links against
  12047. the shared version of \fIlibmpx\fR. The \fB\-static\-libmpx\fR
  12048. option directs the \s-1GCC\s0 driver to link \fIlibmpx\fR statically,
  12049. without necessarily linking other libraries statically.
  12050. .IP "\fB\-static\-libmpxwrappers\fR" 4
  12051. .IX Item "-static-libmpxwrappers"
  12052. When the \fB\-fcheck\-pointer bounds\fR and \fB\-mmpx\fR options are used
  12053. to link a program without also using \fB\-fno\-chkp\-use\-wrappers\fR, the
  12054. \&\s-1GCC\s0 driver automatically links against \fIlibmpxwrappers\fR. If
  12055. \&\fIlibmpxwrappers\fR is available as a shared library, and the
  12056. \&\fB\-static\fR option is not used, then this links against the shared
  12057. version of \fIlibmpxwrappers\fR. The \fB\-static\-libmpxwrappers\fR
  12058. option directs the \s-1GCC\s0 driver to link \fIlibmpxwrappers\fR statically,
  12059. without necessarily linking other libraries statically.
  12060. .IP "\fB\-static\-libstdc++\fR" 4
  12061. .IX Item "-static-libstdc++"
  12062. When the \fBg++\fR program is used to link a \*(C+ program, it
  12063. normally automatically links against \fBlibstdc++\fR. If
  12064. \&\fIlibstdc++\fR is available as a shared library, and the
  12065. \&\fB\-static\fR option is not used, then this links against the
  12066. shared version of \fIlibstdc++\fR. That is normally fine. However, it
  12067. is sometimes useful to freeze the version of \fIlibstdc++\fR used by
  12068. the program without going all the way to a fully static link. The
  12069. \&\fB\-static\-libstdc++\fR option directs the \fBg++\fR driver to
  12070. link \fIlibstdc++\fR statically, without necessarily linking other
  12071. libraries statically.
  12072. .IP "\fB\-symbolic\fR" 4
  12073. .IX Item "-symbolic"
  12074. Bind references to global symbols when building a shared object. Warn
  12075. about any unresolved references (unless overridden by the link editor
  12076. option \fB\-Xlinker \-z \-Xlinker defs\fR). Only a few systems support
  12077. this option.
  12078. .IP "\fB\-T\fR \fIscript\fR" 4
  12079. .IX Item "-T script"
  12080. Use \fIscript\fR as the linker script. This option is supported by most
  12081. systems using the \s-1GNU\s0 linker. On some targets, such as bare-board
  12082. targets without an operating system, the \fB\-T\fR option may be required
  12083. when linking to avoid references to undefined symbols.
  12084. .IP "\fB\-Xlinker\fR \fIoption\fR" 4
  12085. .IX Item "-Xlinker option"
  12086. Pass \fIoption\fR as an option to the linker. You can use this to
  12087. supply system-specific linker options that \s-1GCC\s0 does not recognize.
  12088. .Sp
  12089. If you want to pass an option that takes a separate argument, you must use
  12090. \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
  12091. For example, to pass \fB\-assert definitions\fR, you must write
  12092. \&\fB\-Xlinker \-assert \-Xlinker definitions\fR. It does not work to write
  12093. \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
  12094. string as a single argument, which is not what the linker expects.
  12095. .Sp
  12096. When using the \s-1GNU\s0 linker, it is usually more convenient to pass
  12097. arguments to linker options using the \fIoption\fR\fB=\fR\fIvalue\fR
  12098. syntax than as separate arguments. For example, you can specify
  12099. \&\fB\-Xlinker \-Map=output.map\fR rather than
  12100. \&\fB\-Xlinker \-Map \-Xlinker output.map\fR. Other linkers may not support
  12101. this syntax for command-line options.
  12102. .IP "\fB\-Wl,\fR\fIoption\fR" 4
  12103. .IX Item "-Wl,option"
  12104. Pass \fIoption\fR as an option to the linker. If \fIoption\fR contains
  12105. commas, it is split into multiple options at the commas. You can use this
  12106. syntax to pass an argument to the option.
  12107. For example, \fB\-Wl,\-Map,output.map\fR passes \fB\-Map output.map\fR to the
  12108. linker. When using the \s-1GNU\s0 linker, you can also get the same effect with
  12109. \&\fB\-Wl,\-Map=output.map\fR.
  12110. .IP "\fB\-u\fR \fIsymbol\fR" 4
  12111. .IX Item "-u symbol"
  12112. Pretend the symbol \fIsymbol\fR is undefined, to force linking of
  12113. library modules to define it. You can use \fB\-u\fR multiple times with
  12114. different symbols to force loading of additional library modules.
  12115. .IP "\fB\-z\fR \fIkeyword\fR" 4
  12116. .IX Item "-z keyword"
  12117. \&\fB\-z\fR is passed directly on to the linker along with the keyword
  12118. \&\fIkeyword\fR. See the section in the documentation of your linker for
  12119. permitted values and their meanings.
  12120. .SS "Options for Directory Search"
  12121. .IX Subsection "Options for Directory Search"
  12122. These options specify directories to search for header files, for
  12123. libraries and for parts of the compiler:
  12124. .IP "\fB\-I\fR \fIdir\fR" 4
  12125. .IX Item "-I dir"
  12126. .PD 0
  12127. .IP "\fB\-iquote\fR \fIdir\fR" 4
  12128. .IX Item "-iquote dir"
  12129. .IP "\fB\-isystem\fR \fIdir\fR" 4
  12130. .IX Item "-isystem dir"
  12131. .IP "\fB\-idirafter\fR \fIdir\fR" 4
  12132. .IX Item "-idirafter dir"
  12133. .PD
  12134. Add the directory \fIdir\fR to the list of directories to be searched
  12135. for header files during preprocessing.
  12136. If \fIdir\fR begins with \fB=\fR or \f(CW$SYSROOT\fR, then the \fB=\fR
  12137. or \f(CW$SYSROOT\fR is replaced by the sysroot prefix; see
  12138. \&\fB\-\-sysroot\fR and \fB\-isysroot\fR.
  12139. .Sp
  12140. Directories specified with \fB\-iquote\fR apply only to the quote
  12141. form of the directive, \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
  12142. Directories specified with \fB\-I\fR, \fB\-isystem\fR,
  12143. or \fB\-idirafter\fR apply to lookup for both the
  12144. \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR and
  12145. \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR directives.
  12146. .Sp
  12147. You can specify any number or combination of these options on the
  12148. command line to search for header files in several directories.
  12149. The lookup order is as follows:
  12150. .RS 4
  12151. .IP "1." 4
  12152. .IX Item "1."
  12153. For the quote form of the include directive, the directory of the current
  12154. file is searched first.
  12155. .IP "2." 4
  12156. .IX Item "2."
  12157. For the quote form of the include directive, the directories specified
  12158. by \fB\-iquote\fR options are searched in left-to-right order,
  12159. as they appear on the command line.
  12160. .IP "3." 4
  12161. .IX Item "3."
  12162. Directories specified with \fB\-I\fR options are scanned in
  12163. left-to-right order.
  12164. .IP "4." 4
  12165. .IX Item "4."
  12166. Directories specified with \fB\-isystem\fR options are scanned in
  12167. left-to-right order.
  12168. .IP "5." 4
  12169. .IX Item "5."
  12170. Standard system directories are scanned.
  12171. .IP "6." 4
  12172. .IX Item "6."
  12173. Directories specified with \fB\-idirafter\fR options are scanned in
  12174. left-to-right order.
  12175. .RE
  12176. .RS 4
  12177. .Sp
  12178. You can use \fB\-I\fR to override a system header
  12179. file, substituting your own version, since these directories are
  12180. searched before the standard system header file directories.
  12181. However, you should
  12182. not use this option to add directories that contain vendor-supplied
  12183. system header files; use \fB\-isystem\fR for that.
  12184. .Sp
  12185. The \fB\-isystem\fR and \fB\-idirafter\fR options also mark the directory
  12186. as a system directory, so that it gets the same special treatment that
  12187. is applied to the standard system directories.
  12188. .Sp
  12189. If a standard system include directory, or a directory specified with
  12190. \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
  12191. option is ignored. The directory is still searched but as a
  12192. system directory at its normal position in the system include chain.
  12193. This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
  12194. the ordering for the \f(CW\*(C`#include_next\*(C'\fR directive are not inadvertently
  12195. changed.
  12196. If you really need to change the search order for system directories,
  12197. use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
  12198. .RE
  12199. .IP "\fB\-I\-\fR" 4
  12200. .IX Item "-I-"
  12201. Split the include path.
  12202. This option has been deprecated. Please use \fB\-iquote\fR instead for
  12203. \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR
  12204. option.
  12205. .Sp
  12206. Any directories specified with \fB\-I\fR
  12207. options before \fB\-I\-\fR are searched only for headers requested with
  12208. \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
  12209. \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR. If additional directories are
  12210. specified with \fB\-I\fR options after the \fB\-I\-\fR, those
  12211. directories are searched for all \fB#include\fR directives.
  12212. .Sp
  12213. In addition, \fB\-I\-\fR inhibits the use of the directory of the current
  12214. 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.
  12215. .IP "\fB\-iprefix\fR \fIprefix\fR" 4
  12216. .IX Item "-iprefix prefix"
  12217. Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
  12218. options. If the prefix represents a directory, you should include the
  12219. final \fB/\fR.
  12220. .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
  12221. .IX Item "-iwithprefix dir"
  12222. .PD 0
  12223. .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
  12224. .IX Item "-iwithprefixbefore dir"
  12225. .PD
  12226. Append \fIdir\fR to the prefix specified previously with
  12227. \&\fB\-iprefix\fR, and add the resulting directory to the include search
  12228. path. \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
  12229. would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
  12230. .IP "\fB\-isysroot\fR \fIdir\fR" 4
  12231. .IX Item "-isysroot dir"
  12232. This option is like the \fB\-\-sysroot\fR option, but applies only to
  12233. header files (except for Darwin targets, where it applies to both header
  12234. files and libraries). See the \fB\-\-sysroot\fR option for more
  12235. information.
  12236. .IP "\fB\-imultilib\fR \fIdir\fR" 4
  12237. .IX Item "-imultilib dir"
  12238. Use \fIdir\fR as a subdirectory of the directory containing
  12239. target-specific \*(C+ headers.
  12240. .IP "\fB\-nostdinc\fR" 4
  12241. .IX Item "-nostdinc"
  12242. Do not search the standard system directories for header files.
  12243. Only the directories explicitly specified with \fB\-I\fR,
  12244. \&\fB\-iquote\fR, \fB\-isystem\fR, and/or \fB\-idirafter\fR
  12245. options (and the directory of the current file, if appropriate)
  12246. are searched.
  12247. .IP "\fB\-nostdinc++\fR" 4
  12248. .IX Item "-nostdinc++"
  12249. Do not search for header files in the \*(C+\-specific standard directories,
  12250. but do still search the other standard directories. (This option is
  12251. used when building the \*(C+ library.)
  12252. .IP "\fB\-iplugindir=\fR\fIdir\fR" 4
  12253. .IX Item "-iplugindir=dir"
  12254. Set the directory to search for plugins that are passed
  12255. by \fB\-fplugin=\fR\fIname\fR instead of
  12256. \&\fB\-fplugin=\fR\fIpath\fR\fB/\fR\fIname\fR\fB.so\fR. This option is not meant
  12257. to be used by the user, but only passed by the driver.
  12258. .IP "\fB\-L\fR\fIdir\fR" 4
  12259. .IX Item "-Ldir"
  12260. Add directory \fIdir\fR to the list of directories to be searched
  12261. for \fB\-l\fR.
  12262. .IP "\fB\-B\fR\fIprefix\fR" 4
  12263. .IX Item "-Bprefix"
  12264. This option specifies where to find the executables, libraries,
  12265. include files, and data files of the compiler itself.
  12266. .Sp
  12267. The compiler driver program runs one or more of the subprograms
  12268. \&\fBcpp\fR, \fBcc1\fR, \fBas\fR and \fBld\fR. It tries
  12269. \&\fIprefix\fR as a prefix for each program it tries to run, both with and
  12270. without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR for the corresponding target
  12271. machine and compiler version.
  12272. .Sp
  12273. For each subprogram to be run, the compiler driver first tries the
  12274. \&\fB\-B\fR prefix, if any. If that name is not found, or if \fB\-B\fR
  12275. is not specified, the driver tries two standard prefixes,
  12276. \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR. If neither of
  12277. those results in a file name that is found, the unmodified program
  12278. name is searched for using the directories specified in your
  12279. \&\fB\s-1PATH\s0\fR environment variable.
  12280. .Sp
  12281. The compiler checks to see if the path provided by \fB\-B\fR
  12282. refers to a directory, and if necessary it adds a directory
  12283. separator character at the end of the path.
  12284. .Sp
  12285. \&\fB\-B\fR prefixes that effectively specify directory names also apply
  12286. to libraries in the linker, because the compiler translates these
  12287. options into \fB\-L\fR options for the linker. They also apply to
  12288. include files in the preprocessor, because the compiler translates these
  12289. options into \fB\-isystem\fR options for the preprocessor. In this case,
  12290. the compiler appends \fBinclude\fR to the prefix.
  12291. .Sp
  12292. The runtime support file \fIlibgcc.a\fR can also be searched for using
  12293. the \fB\-B\fR prefix, if needed. If it is not found there, the two
  12294. standard prefixes above are tried, and that is all. The file is left
  12295. out of the link if it is not found by those means.
  12296. .Sp
  12297. Another way to specify a prefix much like the \fB\-B\fR prefix is to use
  12298. the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.
  12299. .Sp
  12300. As a special kludge, if the path provided by \fB\-B\fR is
  12301. \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
  12302. 9, then it is replaced by \fI[dir/]include\fR. This is to help
  12303. with boot-strapping the compiler.
  12304. .IP "\fB\-no\-canonical\-prefixes\fR" 4
  12305. .IX Item "-no-canonical-prefixes"
  12306. Do not expand any symbolic links, resolve references to \fB/../\fR
  12307. or \fB/./\fR, or make the path absolute when generating a relative
  12308. prefix.
  12309. .IP "\fB\-\-sysroot=\fR\fIdir\fR" 4
  12310. .IX Item "--sysroot=dir"
  12311. Use \fIdir\fR as the logical root directory for headers and libraries.
  12312. For example, if the compiler normally searches for headers in
  12313. \&\fI/usr/include\fR and libraries in \fI/usr/lib\fR, it instead
  12314. searches \fI\fIdir\fI/usr/include\fR and \fI\fIdir\fI/usr/lib\fR.
  12315. .Sp
  12316. If you use both this option and the \fB\-isysroot\fR option, then
  12317. the \fB\-\-sysroot\fR option applies to libraries, but the
  12318. \&\fB\-isysroot\fR option applies to header files.
  12319. .Sp
  12320. The \s-1GNU\s0 linker (beginning with version 2.16) has the necessary support
  12321. for this option. If your linker does not support this option, the
  12322. header file aspect of \fB\-\-sysroot\fR still works, but the
  12323. library aspect does not.
  12324. .IP "\fB\-\-no\-sysroot\-suffix\fR" 4
  12325. .IX Item "--no-sysroot-suffix"
  12326. For some targets, a suffix is added to the root directory specified
  12327. with \fB\-\-sysroot\fR, depending on the other options used, so that
  12328. headers may for example be found in
  12329. \&\fI\fIdir\fI/\fIsuffix\fI/usr/include\fR instead of
  12330. \&\fI\fIdir\fI/usr/include\fR. This option disables the addition of
  12331. such a suffix.
  12332. .SS "Options for Code Generation Conventions"
  12333. .IX Subsection "Options for Code Generation Conventions"
  12334. These machine-independent options control the interface conventions
  12335. used in code generation.
  12336. .PP
  12337. Most of them have both positive and negative forms; the negative form
  12338. of \fB\-ffoo\fR is \fB\-fno\-foo\fR. In the table below, only
  12339. one of the forms is listed\-\-\-the one that is not the default. You
  12340. can figure out the other form by either removing \fBno\-\fR or adding
  12341. it.
  12342. .IP "\fB\-fstack\-reuse=\fR\fIreuse-level\fR" 4
  12343. .IX Item "-fstack-reuse=reuse-level"
  12344. This option controls stack space reuse for user declared local/auto variables
  12345. and compiler generated temporaries. \fIreuse_level\fR can be \fBall\fR,
  12346. \&\fBnamed_vars\fR, or \fBnone\fR. \fBall\fR enables stack reuse for all
  12347. local variables and temporaries, \fBnamed_vars\fR enables the reuse only for
  12348. user defined local variables with names, and \fBnone\fR disables stack reuse
  12349. completely. The default value is \fBall\fR. The option is needed when the
  12350. program extends the lifetime of a scoped local variable or a compiler generated
  12351. temporary beyond the end point defined by the language. When a lifetime of
  12352. a variable ends, and if the variable lives in memory, the optimizing compiler
  12353. has the freedom to reuse its stack space with other temporaries or scoped
  12354. local variables whose live range does not overlap with it. Legacy code extending
  12355. local lifetime is likely to break with the stack reuse optimization.
  12356. .Sp
  12357. For example,
  12358. .Sp
  12359. .Vb 3
  12360. \& int *p;
  12361. \& {
  12362. \& int local1;
  12363. \&
  12364. \& p = &local1;
  12365. \& local1 = 10;
  12366. \& ....
  12367. \& }
  12368. \& {
  12369. \& int local2;
  12370. \& local2 = 20;
  12371. \& ...
  12372. \& }
  12373. \&
  12374. \& if (*p == 10) // out of scope use of local1
  12375. \& {
  12376. \&
  12377. \& }
  12378. .Ve
  12379. .Sp
  12380. Another example:
  12381. .Sp
  12382. .Vb 6
  12383. \& struct A
  12384. \& {
  12385. \& A(int k) : i(k), j(k) { }
  12386. \& int i;
  12387. \& int j;
  12388. \& };
  12389. \&
  12390. \& A *ap;
  12391. \&
  12392. \& void foo(const A& ar)
  12393. \& {
  12394. \& ap = &ar;
  12395. \& }
  12396. \&
  12397. \& void bar()
  12398. \& {
  12399. \& foo(A(10)); // temp object\*(Aqs lifetime ends when foo returns
  12400. \&
  12401. \& {
  12402. \& A a(20);
  12403. \& ....
  12404. \& }
  12405. \& ap\->i+= 10; // ap references out of scope temp whose space
  12406. \& // is reused with a. What is the value of ap\->i?
  12407. \& }
  12408. .Ve
  12409. .Sp
  12410. The lifetime of a compiler generated temporary is well defined by the \*(C+
  12411. standard. When a lifetime of a temporary ends, and if the temporary lives
  12412. in memory, the optimizing compiler has the freedom to reuse its stack
  12413. space with other temporaries or scoped local variables whose live range
  12414. does not overlap with it. However some of the legacy code relies on
  12415. the behavior of older compilers in which temporaries' stack space is
  12416. not reused, the aggressive stack reuse can lead to runtime errors. This
  12417. option is used to control the temporary stack reuse optimization.
  12418. .IP "\fB\-ftrapv\fR" 4
  12419. .IX Item "-ftrapv"
  12420. This option generates traps for signed overflow on addition, subtraction,
  12421. multiplication operations.
  12422. The options \fB\-ftrapv\fR and \fB\-fwrapv\fR override each other, so using
  12423. \&\fB\-ftrapv\fR \fB\-fwrapv\fR on the command-line results in
  12424. \&\fB\-fwrapv\fR being effective. Note that only active options override, so
  12425. using \fB\-ftrapv\fR \fB\-fwrapv\fR \fB\-fno\-wrapv\fR on the command-line
  12426. results in \fB\-ftrapv\fR being effective.
  12427. .IP "\fB\-fwrapv\fR" 4
  12428. .IX Item "-fwrapv"
  12429. This option instructs the compiler to assume that signed arithmetic
  12430. overflow of addition, subtraction and multiplication wraps around
  12431. using twos-complement representation. This flag enables some optimizations
  12432. and disables others.
  12433. The options \fB\-ftrapv\fR and \fB\-fwrapv\fR override each other, so using
  12434. \&\fB\-ftrapv\fR \fB\-fwrapv\fR on the command-line results in
  12435. \&\fB\-fwrapv\fR being effective. Note that only active options override, so
  12436. using \fB\-ftrapv\fR \fB\-fwrapv\fR \fB\-fno\-wrapv\fR on the command-line
  12437. results in \fB\-ftrapv\fR being effective.
  12438. .IP "\fB\-fwrapv\-pointer\fR" 4
  12439. .IX Item "-fwrapv-pointer"
  12440. This option instructs the compiler to assume that pointer arithmetic
  12441. overflow on addition and subtraction wraps around using twos-complement
  12442. representation. This flag disables some optimizations which assume
  12443. pointer overflow is invalid.
  12444. .IP "\fB\-fstrict\-overflow\fR" 4
  12445. .IX Item "-fstrict-overflow"
  12446. This option implies \fB\-fno\-wrapv\fR \fB\-fno\-wrapv\-pointer\fR and when
  12447. negated implies \fB\-fwrapv\fR \fB\-fwrapv\-pointer\fR.
  12448. .IP "\fB\-fexceptions\fR" 4
  12449. .IX Item "-fexceptions"
  12450. Enable exception handling. Generates extra code needed to propagate
  12451. exceptions. For some targets, this implies \s-1GCC\s0 generates frame
  12452. unwind information for all functions, which can produce significant data
  12453. size overhead, although it does not affect execution. If you do not
  12454. specify this option, \s-1GCC\s0 enables it by default for languages like
  12455. \&\*(C+ that normally require exception handling, and disables it for
  12456. languages like C that do not normally require it. However, you may need
  12457. to enable this option when compiling C code that needs to interoperate
  12458. properly with exception handlers written in \*(C+. You may also wish to
  12459. disable this option if you are compiling older \*(C+ programs that don't
  12460. use exception handling.
  12461. .IP "\fB\-fnon\-call\-exceptions\fR" 4
  12462. .IX Item "-fnon-call-exceptions"
  12463. Generate code that allows trapping instructions to throw exceptions.
  12464. Note that this requires platform-specific runtime support that does
  12465. not exist everywhere. Moreover, it only allows \fItrapping\fR
  12466. instructions to throw exceptions, i.e. memory references or floating-point
  12467. instructions. It does not allow exceptions to be thrown from
  12468. arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
  12469. .IP "\fB\-fdelete\-dead\-exceptions\fR" 4
  12470. .IX Item "-fdelete-dead-exceptions"
  12471. Consider that instructions that may throw exceptions but don't otherwise
  12472. contribute to the execution of the program can be optimized away.
  12473. This option is enabled by default for the Ada front end, as permitted by
  12474. the Ada language specification.
  12475. Optimization passes that cause dead exceptions to be removed are enabled independently at different optimization levels.
  12476. .IP "\fB\-funwind\-tables\fR" 4
  12477. .IX Item "-funwind-tables"
  12478. Similar to \fB\-fexceptions\fR, except that it just generates any needed
  12479. static data, but does not affect the generated code in any other way.
  12480. You normally do not need to enable this option; instead, a language processor
  12481. that needs this handling enables it on your behalf.
  12482. .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
  12483. .IX Item "-fasynchronous-unwind-tables"
  12484. Generate unwind table in \s-1DWARF\s0 format, if supported by target machine. The
  12485. table is exact at each instruction boundary, so it can be used for stack
  12486. unwinding from asynchronous events (such as debugger or garbage collector).
  12487. .IP "\fB\-fno\-gnu\-unique\fR" 4
  12488. .IX Item "-fno-gnu-unique"
  12489. On systems with recent \s-1GNU\s0 assembler and C library, the \*(C+ compiler
  12490. uses the \f(CW\*(C`STB_GNU_UNIQUE\*(C'\fR binding to make sure that definitions
  12491. of template static data members and static local variables in inline
  12492. functions are unique even in the presence of \f(CW\*(C`RTLD_LOCAL\*(C'\fR; this
  12493. is necessary to avoid problems with a library used by two different
  12494. \&\f(CW\*(C`RTLD_LOCAL\*(C'\fR plugins depending on a definition in one of them and
  12495. therefore disagreeing with the other one about the binding of the
  12496. symbol. But this causes \f(CW\*(C`dlclose\*(C'\fR to be ignored for affected
  12497. DSOs; if your program relies on reinitialization of a \s-1DSO\s0 via
  12498. \&\f(CW\*(C`dlclose\*(C'\fR and \f(CW\*(C`dlopen\*(C'\fR, you can use
  12499. \&\fB\-fno\-gnu\-unique\fR.
  12500. .IP "\fB\-fpcc\-struct\-return\fR" 4
  12501. .IX Item "-fpcc-struct-return"
  12502. Return \*(L"short\*(R" \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
  12503. longer ones, rather than in registers. This convention is less
  12504. efficient, but it has the advantage of allowing intercallability between
  12505. GCC-compiled files and files compiled with other compilers, particularly
  12506. the Portable C Compiler (pcc).
  12507. .Sp
  12508. The precise convention for returning structures in memory depends
  12509. on the target configuration macros.
  12510. .Sp
  12511. Short structures and unions are those whose size and alignment match
  12512. that of some integer type.
  12513. .Sp
  12514. \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
  12515. switch is not binary compatible with code compiled with the
  12516. \&\fB\-freg\-struct\-return\fR switch.
  12517. Use it to conform to a non-default application binary interface.
  12518. .IP "\fB\-freg\-struct\-return\fR" 4
  12519. .IX Item "-freg-struct-return"
  12520. Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
  12521. This is more efficient for small structures than
  12522. \&\fB\-fpcc\-struct\-return\fR.
  12523. .Sp
  12524. If you specify neither \fB\-fpcc\-struct\-return\fR nor
  12525. \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
  12526. standard for the target. If there is no standard convention, \s-1GCC\s0
  12527. defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
  12528. the principal compiler. In those cases, we can choose the standard, and
  12529. we chose the more efficient register return alternative.
  12530. .Sp
  12531. \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
  12532. switch is not binary compatible with code compiled with the
  12533. \&\fB\-fpcc\-struct\-return\fR switch.
  12534. Use it to conform to a non-default application binary interface.
  12535. .IP "\fB\-fshort\-enums\fR" 4
  12536. .IX Item "-fshort-enums"
  12537. Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
  12538. declared range of possible values. Specifically, the \f(CW\*(C`enum\*(C'\fR type
  12539. is equivalent to the smallest integer type that has enough room.
  12540. .Sp
  12541. \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
  12542. code that is not binary compatible with code generated without that switch.
  12543. Use it to conform to a non-default application binary interface.
  12544. .IP "\fB\-fshort\-wchar\fR" 4
  12545. .IX Item "-fshort-wchar"
  12546. Override the underlying type for \f(CW\*(C`wchar_t\*(C'\fR to be \f(CW\*(C`short
  12547. unsigned int\*(C'\fR instead of the default for the target. This option is
  12548. useful for building programs to run under \s-1WINE.\s0
  12549. .Sp
  12550. \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
  12551. code that is not binary compatible with code generated without that switch.
  12552. Use it to conform to a non-default application binary interface.
  12553. .IP "\fB\-fno\-common\fR" 4
  12554. .IX Item "-fno-common"
  12555. In C code, this option controls the placement of global variables
  12556. defined without an initializer, known as \fItentative definitions\fR
  12557. in the C standard. Tentative definitions are distinct from declarations
  12558. of a variable with the \f(CW\*(C`extern\*(C'\fR keyword, which do not allocate storage.
  12559. .Sp
  12560. Unix C compilers have traditionally allocated storage for
  12561. uninitialized global variables in a common block. This allows the
  12562. linker to resolve all tentative definitions of the same variable
  12563. in different compilation units to the same object, or to a non-tentative
  12564. definition.
  12565. This is the behavior specified by \fB\-fcommon\fR, and is the default for
  12566. \&\s-1GCC\s0 on most targets.
  12567. On the other hand, this behavior is not required by \s-1ISO
  12568. C,\s0 and on some targets may carry a speed or code size penalty on
  12569. variable references.
  12570. .Sp
  12571. The \fB\-fno\-common\fR option specifies that the compiler should instead
  12572. place uninitialized global variables in the data section of the object file.
  12573. This inhibits the merging of tentative definitions by the linker so
  12574. you get a multiple-definition error if the same
  12575. variable is defined in more than one compilation unit.
  12576. Compiling with \fB\-fno\-common\fR is useful on targets for which
  12577. it provides better performance, or if you wish to verify that the
  12578. program will work on other systems that always treat uninitialized
  12579. variable definitions this way.
  12580. .IP "\fB\-fno\-ident\fR" 4
  12581. .IX Item "-fno-ident"
  12582. Ignore the \f(CW\*(C`#ident\*(C'\fR directive.
  12583. .IP "\fB\-finhibit\-size\-directive\fR" 4
  12584. .IX Item "-finhibit-size-directive"
  12585. Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
  12586. would cause trouble if the function is split in the middle, and the
  12587. two halves are placed at locations far apart in memory. This option is
  12588. used when compiling \fIcrtstuff.c\fR; you should not need to use it
  12589. for anything else.
  12590. .IP "\fB\-fverbose\-asm\fR" 4
  12591. .IX Item "-fverbose-asm"
  12592. Put extra commentary information in the generated assembly code to
  12593. make it more readable. This option is generally only of use to those
  12594. who actually need to read the generated assembly code (perhaps while
  12595. debugging the compiler itself).
  12596. .Sp
  12597. \&\fB\-fno\-verbose\-asm\fR, the default, causes the
  12598. extra information to be omitted and is useful when comparing two assembler
  12599. files.
  12600. .Sp
  12601. The added comments include:
  12602. .RS 4
  12603. .IP "*" 4
  12604. information on the compiler version and command-line options,
  12605. .IP "*" 4
  12606. the source code lines associated with the assembly instructions,
  12607. in the form \s-1FILENAME:LINENUMBER:CONTENT OF LINE,\s0
  12608. .IP "*" 4
  12609. hints on which high-level expressions correspond to
  12610. the various assembly instruction operands.
  12611. .RE
  12612. .RS 4
  12613. .Sp
  12614. For example, given this C source file:
  12615. .Sp
  12616. .Vb 4
  12617. \& int test (int n)
  12618. \& {
  12619. \& int i;
  12620. \& int total = 0;
  12621. \&
  12622. \& for (i = 0; i < n; i++)
  12623. \& total += i * i;
  12624. \&
  12625. \& return total;
  12626. \& }
  12627. .Ve
  12628. .Sp
  12629. compiling to (x86_64) assembly via \fB\-S\fR and emitting the result
  12630. direct to stdout via \fB\-o\fR \fB\-\fR
  12631. .Sp
  12632. .Vb 1
  12633. \& gcc \-S test.c \-fverbose\-asm \-Os \-o \-
  12634. .Ve
  12635. .Sp
  12636. gives output similar to this:
  12637. .Sp
  12638. .Vb 5
  12639. \& .file "test.c"
  12640. \& # GNU C11 (GCC) version 7.0.0 20160809 (experimental) (x86_64\-pc\-linux\-gnu)
  12641. \& [...snip...]
  12642. \& # options passed:
  12643. \& [...snip...]
  12644. \&
  12645. \& .text
  12646. \& .globl test
  12647. \& .type test, @function
  12648. \& test:
  12649. \& .LFB0:
  12650. \& .cfi_startproc
  12651. \& # test.c:4: int total = 0;
  12652. \& xorl %eax, %eax # <retval>
  12653. \& # test.c:6: for (i = 0; i < n; i++)
  12654. \& xorl %edx, %edx # i
  12655. \& .L2:
  12656. \& # test.c:6: for (i = 0; i < n; i++)
  12657. \& cmpl %edi, %edx # n, i
  12658. \& jge .L5 #,
  12659. \& # test.c:7: total += i * i;
  12660. \& movl %edx, %ecx # i, tmp92
  12661. \& imull %edx, %ecx # i, tmp92
  12662. \& # test.c:6: for (i = 0; i < n; i++)
  12663. \& incl %edx # i
  12664. \& # test.c:7: total += i * i;
  12665. \& addl %ecx, %eax # tmp92, <retval>
  12666. \& jmp .L2 #
  12667. \& .L5:
  12668. \& # test.c:10: }
  12669. \& ret
  12670. \& .cfi_endproc
  12671. \& .LFE0:
  12672. \& .size test, .\-test
  12673. \& .ident "GCC: (GNU) 7.0.0 20160809 (experimental)"
  12674. \& .section .note.GNU\-stack,"",@progbits
  12675. .Ve
  12676. .Sp
  12677. The comments are intended for humans rather than machines and hence the
  12678. precise format of the comments is subject to change.
  12679. .RE
  12680. .IP "\fB\-frecord\-gcc\-switches\fR" 4
  12681. .IX Item "-frecord-gcc-switches"
  12682. This switch causes the command line used to invoke the
  12683. compiler to be recorded into the object file that is being created.
  12684. This switch is only implemented on some targets and the exact format
  12685. of the recording is target and binary file format dependent, but it
  12686. usually takes the form of a section containing \s-1ASCII\s0 text. This
  12687. switch is related to the \fB\-fverbose\-asm\fR switch, but that
  12688. switch only records information in the assembler output file as
  12689. comments, so it never reaches the object file.
  12690. See also \fB\-grecord\-gcc\-switches\fR for another
  12691. way of storing compiler options into the object file.
  12692. .IP "\fB\-fpic\fR" 4
  12693. .IX Item "-fpic"
  12694. Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
  12695. library, if supported for the target machine. Such code accesses all
  12696. constant addresses through a global offset table (\s-1GOT\s0). The dynamic
  12697. loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
  12698. loader is not part of \s-1GCC\s0; it is part of the operating system). If
  12699. the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
  12700. maximum size, you get an error message from the linker indicating that
  12701. \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
  12702. instead. (These maximums are 8k on the \s-1SPARC,\s0 28k on AArch64 and 32k
  12703. on the m68k and \s-1RS/6000.\s0 The x86 has no such limit.)
  12704. .Sp
  12705. Position-independent code requires special support, and therefore works
  12706. only on certain machines. For the x86, \s-1GCC\s0 supports \s-1PIC\s0 for System V
  12707. but not for the Sun 386i. Code generated for the \s-1IBM RS/6000\s0 is always
  12708. position-independent.
  12709. .Sp
  12710. When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
  12711. are defined to 1.
  12712. .IP "\fB\-fPIC\fR" 4
  12713. .IX Item "-fPIC"
  12714. If supported for the target machine, emit position-independent code,
  12715. suitable for dynamic linking and avoiding any limit on the size of the
  12716. global offset table. This option makes a difference on AArch64, m68k,
  12717. PowerPC and \s-1SPARC.\s0
  12718. .Sp
  12719. Position-independent code requires special support, and therefore works
  12720. only on certain machines.
  12721. .Sp
  12722. When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
  12723. are defined to 2.
  12724. .IP "\fB\-fpie\fR" 4
  12725. .IX Item "-fpie"
  12726. .PD 0
  12727. .IP "\fB\-fPIE\fR" 4
  12728. .IX Item "-fPIE"
  12729. .PD
  12730. These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
  12731. generated position independent code can be only linked into executables.
  12732. Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option is
  12733. used during linking.
  12734. .Sp
  12735. \&\fB\-fpie\fR and \fB\-fPIE\fR both define the macros
  12736. \&\f(CW\*(C`_\|_pie_\|_\*(C'\fR and \f(CW\*(C`_\|_PIE_\|_\*(C'\fR. The macros have the value 1
  12737. for \fB\-fpie\fR and 2 for \fB\-fPIE\fR.
  12738. .IP "\fB\-fno\-plt\fR" 4
  12739. .IX Item "-fno-plt"
  12740. Do not use the \s-1PLT\s0 for external function calls in position-independent code.
  12741. Instead, load the callee address at call sites from the \s-1GOT\s0 and branch to it.
  12742. This leads to more efficient code by eliminating \s-1PLT\s0 stubs and exposing
  12743. \&\s-1GOT\s0 loads to optimizations. On architectures such as 32\-bit x86 where
  12744. \&\s-1PLT\s0 stubs expect the \s-1GOT\s0 pointer in a specific register, this gives more
  12745. register allocation freedom to the compiler.
  12746. Lazy binding requires use of the \s-1PLT\s0;
  12747. with \fB\-fno\-plt\fR all external symbols are resolved at load time.
  12748. .Sp
  12749. Alternatively, the function attribute \f(CW\*(C`noplt\*(C'\fR can be used to avoid calls
  12750. through the \s-1PLT\s0 for specific external functions.
  12751. .Sp
  12752. In position-dependent code, a few targets also convert calls to
  12753. functions that are marked to not use the \s-1PLT\s0 to use the \s-1GOT\s0 instead.
  12754. .IP "\fB\-fno\-jump\-tables\fR" 4
  12755. .IX Item "-fno-jump-tables"
  12756. Do not use jump tables for switch statements even where it would be
  12757. more efficient than other code generation strategies. This option is
  12758. of use in conjunction with \fB\-fpic\fR or \fB\-fPIC\fR for
  12759. building code that forms part of a dynamic linker and cannot
  12760. reference the address of a jump table. On some targets, jump tables
  12761. do not require a \s-1GOT\s0 and this option is not needed.
  12762. .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
  12763. .IX Item "-ffixed-reg"
  12764. Treat the register named \fIreg\fR as a fixed register; generated code
  12765. should never refer to it (except perhaps as a stack pointer, frame
  12766. pointer or in some other fixed role).
  12767. .Sp
  12768. \&\fIreg\fR must be the name of a register. The register names accepted
  12769. are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
  12770. macro in the machine description macro file.
  12771. .Sp
  12772. This flag does not have a negative form, because it specifies a
  12773. three-way choice.
  12774. .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
  12775. .IX Item "-fcall-used-reg"
  12776. Treat the register named \fIreg\fR as an allocable register that is
  12777. clobbered by function calls. It may be allocated for temporaries or
  12778. variables that do not live across a call. Functions compiled this way
  12779. do not save and restore the register \fIreg\fR.
  12780. .Sp
  12781. It is an error to use this flag with the frame pointer or stack pointer.
  12782. Use of this flag for other registers that have fixed pervasive roles in
  12783. the machine's execution model produces disastrous results.
  12784. .Sp
  12785. This flag does not have a negative form, because it specifies a
  12786. three-way choice.
  12787. .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
  12788. .IX Item "-fcall-saved-reg"
  12789. Treat the register named \fIreg\fR as an allocable register saved by
  12790. functions. It may be allocated even for temporaries or variables that
  12791. live across a call. Functions compiled this way save and restore
  12792. the register \fIreg\fR if they use it.
  12793. .Sp
  12794. It is an error to use this flag with the frame pointer or stack pointer.
  12795. Use of this flag for other registers that have fixed pervasive roles in
  12796. the machine's execution model produces disastrous results.
  12797. .Sp
  12798. A different sort of disaster results from the use of this flag for
  12799. a register in which function values may be returned.
  12800. .Sp
  12801. This flag does not have a negative form, because it specifies a
  12802. three-way choice.
  12803. .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
  12804. .IX Item "-fpack-struct[=n]"
  12805. Without a value specified, pack all structure members together without
  12806. holes. When a value is specified (which must be a small power of two), pack
  12807. structure members according to this value, representing the maximum
  12808. alignment (that is, objects with default alignment requirements larger than
  12809. this are output potentially unaligned at the next fitting location.
  12810. .Sp
  12811. \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
  12812. code that is not binary compatible with code generated without that switch.
  12813. Additionally, it makes the code suboptimal.
  12814. Use it to conform to a non-default application binary interface.
  12815. .IP "\fB\-fleading\-underscore\fR" 4
  12816. .IX Item "-fleading-underscore"
  12817. This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
  12818. change the way C symbols are represented in the object file. One use
  12819. is to help link with legacy assembly code.
  12820. .Sp
  12821. \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
  12822. generate code that is not binary compatible with code generated without that
  12823. switch. Use it to conform to a non-default application binary interface.
  12824. Not all targets provide complete support for this switch.
  12825. .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
  12826. .IX Item "-ftls-model=model"
  12827. Alter the thread-local storage model to be used.
  12828. The \fImodel\fR argument should be one of \fBglobal-dynamic\fR,
  12829. \&\fBlocal-dynamic\fR, \fBinitial-exec\fR or \fBlocal-exec\fR.
  12830. Note that the choice is subject to optimization: the compiler may use
  12831. a more efficient model for symbols not visible outside of the translation
  12832. unit, or if \fB\-fpic\fR is not given on the command line.
  12833. .Sp
  12834. The default without \fB\-fpic\fR is \fBinitial-exec\fR; with
  12835. \&\fB\-fpic\fR the default is \fBglobal-dynamic\fR.
  12836. .IP "\fB\-ftrampolines\fR" 4
  12837. .IX Item "-ftrampolines"
  12838. For targets that normally need trampolines for nested functions, always
  12839. generate them instead of using descriptors. Otherwise, for targets that
  12840. do not need them, like for example HP-PA or \s-1IA\-64,\s0 do nothing.
  12841. .Sp
  12842. A trampoline is a small piece of code that is created at run time on the
  12843. stack when the address of a nested function is taken, and is used to call
  12844. the nested function indirectly. Therefore, it requires the stack to be
  12845. made executable in order for the program to work properly.
  12846. .Sp
  12847. \&\fB\-fno\-trampolines\fR is enabled by default on a language by language
  12848. basis to let the compiler avoid generating them, if it computes that this
  12849. is safe, and replace them with descriptors. Descriptors are made up of data
  12850. only, but the generated code must be prepared to deal with them. As of this
  12851. writing, \fB\-fno\-trampolines\fR is enabled by default only for Ada.
  12852. .Sp
  12853. Moreover, code compiled with \fB\-ftrampolines\fR and code compiled with
  12854. \&\fB\-fno\-trampolines\fR are not binary compatible if nested functions are
  12855. present. This option must therefore be used on a program-wide basis and be
  12856. manipulated with extreme care.
  12857. .IP "\fB\-fvisibility=\fR[\fBdefault\fR|\fBinternal\fR|\fBhidden\fR|\fBprotected\fR]" 4
  12858. .IX Item "-fvisibility=[default|internal|hidden|protected]"
  12859. Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
  12860. symbols are marked with this unless overridden within the code.
  12861. Using this feature can very substantially improve linking and
  12862. load times of shared object libraries, produce more optimized
  12863. code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
  12864. It is \fBstrongly\fR recommended that you use this in any shared objects
  12865. you distribute.
  12866. .Sp
  12867. Despite the nomenclature, \fBdefault\fR always means public; i.e.,
  12868. available to be linked against from outside the shared object.
  12869. \&\fBprotected\fR and \fBinternal\fR are pretty useless in real-world
  12870. usage so the only other commonly used option is \fBhidden\fR.
  12871. The default if \fB\-fvisibility\fR isn't specified is
  12872. \&\fBdefault\fR, i.e., make every symbol public.
  12873. .Sp
  12874. A good explanation of the benefits offered by ensuring \s-1ELF\s0
  12875. symbols have the correct visibility is given by \*(L"How To Write
  12876. Shared Libraries\*(R" by Ulrich Drepper (which can be found at
  12877. <\fBhttps://www.akkadia.org/drepper/\fR>)\-\-\-however a superior
  12878. solution made possible by this option to marking things hidden when
  12879. the default is public is to make the default hidden and mark things
  12880. public. This is the norm with DLLs on Windows and with \fB\-fvisibility=hidden\fR
  12881. and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
  12882. \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
  12883. identical syntax. This is a great boon to those working with
  12884. cross-platform projects.
  12885. .Sp
  12886. For those adding visibility support to existing code, you may find
  12887. \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR of use. This works by you enclosing
  12888. the declarations you wish to set visibility for with (for example)
  12889. \&\f(CW\*(C`#pragma GCC visibility push(hidden)\*(C'\fR and
  12890. \&\f(CW\*(C`#pragma GCC visibility pop\*(C'\fR.
  12891. Bear in mind that symbol visibility should be viewed \fBas
  12892. part of the \s-1API\s0 interface contract\fR and thus all new code should
  12893. always specify visibility when it is not the default; i.e., declarations
  12894. only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
  12895. as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
  12896. abundantly clear also aids readability and self-documentation of the code.
  12897. Note that due to \s-1ISO \*(C+\s0 specification requirements, \f(CW\*(C`operator new\*(C'\fR and
  12898. \&\f(CW\*(C`operator delete\*(C'\fR must always be of default visibility.
  12899. .Sp
  12900. Be aware that headers from outside your project, in particular system
  12901. headers and headers from any other library you use, may not be
  12902. expecting to be compiled with visibility other than the default. You
  12903. may need to explicitly say \f(CW\*(C`#pragma GCC visibility push(default)\*(C'\fR
  12904. before including any such headers.
  12905. .Sp
  12906. \&\f(CW\*(C`extern\*(C'\fR declarations are not affected by \fB\-fvisibility\fR, so
  12907. a lot of code can be recompiled with \fB\-fvisibility=hidden\fR with
  12908. no modifications. However, this means that calls to \f(CW\*(C`extern\*(C'\fR
  12909. functions with no explicit visibility use the \s-1PLT,\s0 so it is more
  12910. effective to use \f(CW\*(C`_\|_attribute ((visibility))\*(C'\fR and/or
  12911. \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR to tell the compiler which \f(CW\*(C`extern\*(C'\fR
  12912. declarations should be treated as hidden.
  12913. .Sp
  12914. Note that \fB\-fvisibility\fR does affect \*(C+ vague linkage
  12915. entities. This means that, for instance, an exception class that is
  12916. be thrown between DSOs must be explicitly marked with default
  12917. visibility so that the \fBtype_info\fR nodes are unified between
  12918. the DSOs.
  12919. .Sp
  12920. An overview of these techniques, their benefits and how to use them
  12921. is at <\fBhttp://gcc.gnu.org/wiki/Visibility\fR>.
  12922. .IP "\fB\-fstrict\-volatile\-bitfields\fR" 4
  12923. .IX Item "-fstrict-volatile-bitfields"
  12924. This option should be used if accesses to volatile bit-fields (or other
  12925. structure fields, although the compiler usually honors those types
  12926. anyway) should use a single access of the width of the
  12927. field's type, aligned to a natural alignment if possible. For
  12928. example, targets with memory-mapped peripheral registers might require
  12929. all such accesses to be 16 bits wide; with this flag you can
  12930. declare all peripheral bit-fields as \f(CW\*(C`unsigned short\*(C'\fR (assuming short
  12931. is 16 bits on these targets) to force \s-1GCC\s0 to use 16\-bit accesses
  12932. instead of, perhaps, a more efficient 32\-bit access.
  12933. .Sp
  12934. If this option is disabled, the compiler uses the most efficient
  12935. instruction. In the previous example, that might be a 32\-bit load
  12936. instruction, even though that accesses bytes that do not contain
  12937. any portion of the bit-field, or memory-mapped registers unrelated to
  12938. the one being updated.
  12939. .Sp
  12940. In some cases, such as when the \f(CW\*(C`packed\*(C'\fR attribute is applied to a
  12941. structure field, it may not be possible to access the field with a single
  12942. read or write that is correctly aligned for the target machine. In this
  12943. case \s-1GCC\s0 falls back to generating multiple accesses rather than code that
  12944. will fault or truncate the result at run time.
  12945. .Sp
  12946. Note: Due to restrictions of the C/\*(C+11 memory model, write accesses are
  12947. not allowed to touch non bit-field members. It is therefore recommended
  12948. to define all bits of the field's type as bit-field members.
  12949. .Sp
  12950. The default value of this option is determined by the application binary
  12951. interface for the target processor.
  12952. .IP "\fB\-fsync\-libcalls\fR" 4
  12953. .IX Item "-fsync-libcalls"
  12954. This option controls whether any out-of-line instance of the \f(CW\*(C`_\|_sync\*(C'\fR
  12955. family of functions may be used to implement the \*(C+11 \f(CW\*(C`_\|_atomic\*(C'\fR
  12956. family of functions.
  12957. .Sp
  12958. The default value of this option is enabled, thus the only useful form
  12959. of the option is \fB\-fno\-sync\-libcalls\fR. This option is used in
  12960. the implementation of the \fIlibatomic\fR runtime library.
  12961. .SS "\s-1GCC\s0 Developer Options"
  12962. .IX Subsection "GCC Developer Options"
  12963. This section describes command-line options that are primarily of
  12964. interest to \s-1GCC\s0 developers, including options to support compiler
  12965. testing and investigation of compiler bugs and compile-time
  12966. performance problems. This includes options that produce debug dumps
  12967. at various points in the compilation; that print statistics such as
  12968. memory use and execution time; and that print information about \s-1GCC\s0's
  12969. configuration, such as where it searches for libraries. You should
  12970. rarely need to use any of these options for ordinary compilation and
  12971. linking tasks.
  12972. .IP "\fB\-d\fR\fIletters\fR" 4
  12973. .IX Item "-dletters"
  12974. .PD 0
  12975. .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
  12976. .IX Item "-fdump-rtl-pass"
  12977. .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR\fB=\fR\fIfilename\fR" 4
  12978. .IX Item "-fdump-rtl-pass=filename"
  12979. .PD
  12980. Says to make debugging dumps during compilation at times specified by
  12981. \&\fIletters\fR. This is used for debugging the RTL-based passes of the
  12982. compiler. The file names for most of the dumps are made by appending
  12983. a pass number and a word to the \fIdumpname\fR, and the files are
  12984. created in the directory of the output file. In case of
  12985. \&\fB=\fR\fIfilename\fR option, the dump is output on the given file
  12986. instead of the pass numbered dump files. Note that the pass number is
  12987. assigned as passes are registered into the pass manager. Most passes
  12988. are registered in the order that they will execute and for these passes
  12989. the number corresponds to the pass execution order. However, passes
  12990. registered by plugins, passes specific to compilation targets, or
  12991. passes that are otherwise registered after all the other passes are
  12992. numbered higher than a pass named \*(L"final\*(R", even if they are executed
  12993. earlier. \fIdumpname\fR is generated from the name of the output
  12994. file if explicitly specified and not an executable, otherwise it is
  12995. the basename of the source file.
  12996. .Sp
  12997. Some \fB\-d\fR\fIletters\fR switches have different meaning when
  12998. \&\fB\-E\fR is used for preprocessing.
  12999. .Sp
  13000. Debug dumps can be enabled with a \fB\-fdump\-rtl\fR switch or some
  13001. \&\fB\-d\fR option \fIletters\fR. Here are the possible
  13002. letters for use in \fIpass\fR and \fIletters\fR, and their meanings:
  13003. .RS 4
  13004. .IP "\fB\-fdump\-rtl\-alignments\fR" 4
  13005. .IX Item "-fdump-rtl-alignments"
  13006. Dump after branch alignments have been computed.
  13007. .IP "\fB\-fdump\-rtl\-asmcons\fR" 4
  13008. .IX Item "-fdump-rtl-asmcons"
  13009. Dump after fixing rtl statements that have unsatisfied in/out constraints.
  13010. .IP "\fB\-fdump\-rtl\-auto_inc_dec\fR" 4
  13011. .IX Item "-fdump-rtl-auto_inc_dec"
  13012. Dump after auto-inc-dec discovery. This pass is only run on
  13013. architectures that have auto inc or auto dec instructions.
  13014. .IP "\fB\-fdump\-rtl\-barriers\fR" 4
  13015. .IX Item "-fdump-rtl-barriers"
  13016. Dump after cleaning up the barrier instructions.
  13017. .IP "\fB\-fdump\-rtl\-bbpart\fR" 4
  13018. .IX Item "-fdump-rtl-bbpart"
  13019. Dump after partitioning hot and cold basic blocks.
  13020. .IP "\fB\-fdump\-rtl\-bbro\fR" 4
  13021. .IX Item "-fdump-rtl-bbro"
  13022. Dump after block reordering.
  13023. .IP "\fB\-fdump\-rtl\-btl1\fR" 4
  13024. .IX Item "-fdump-rtl-btl1"
  13025. .PD 0
  13026. .IP "\fB\-fdump\-rtl\-btl2\fR" 4
  13027. .IX Item "-fdump-rtl-btl2"
  13028. .PD
  13029. \&\fB\-fdump\-rtl\-btl1\fR and \fB\-fdump\-rtl\-btl2\fR enable dumping
  13030. after the two branch
  13031. target load optimization passes.
  13032. .IP "\fB\-fdump\-rtl\-bypass\fR" 4
  13033. .IX Item "-fdump-rtl-bypass"
  13034. Dump after jump bypassing and control flow optimizations.
  13035. .IP "\fB\-fdump\-rtl\-combine\fR" 4
  13036. .IX Item "-fdump-rtl-combine"
  13037. Dump after the \s-1RTL\s0 instruction combination pass.
  13038. .IP "\fB\-fdump\-rtl\-compgotos\fR" 4
  13039. .IX Item "-fdump-rtl-compgotos"
  13040. Dump after duplicating the computed gotos.
  13041. .IP "\fB\-fdump\-rtl\-ce1\fR" 4
  13042. .IX Item "-fdump-rtl-ce1"
  13043. .PD 0
  13044. .IP "\fB\-fdump\-rtl\-ce2\fR" 4
  13045. .IX Item "-fdump-rtl-ce2"
  13046. .IP "\fB\-fdump\-rtl\-ce3\fR" 4
  13047. .IX Item "-fdump-rtl-ce3"
  13048. .PD
  13049. \&\fB\-fdump\-rtl\-ce1\fR, \fB\-fdump\-rtl\-ce2\fR, and
  13050. \&\fB\-fdump\-rtl\-ce3\fR enable dumping after the three
  13051. if conversion passes.
  13052. .IP "\fB\-fdump\-rtl\-cprop_hardreg\fR" 4
  13053. .IX Item "-fdump-rtl-cprop_hardreg"
  13054. Dump after hard register copy propagation.
  13055. .IP "\fB\-fdump\-rtl\-csa\fR" 4
  13056. .IX Item "-fdump-rtl-csa"
  13057. Dump after combining stack adjustments.
  13058. .IP "\fB\-fdump\-rtl\-cse1\fR" 4
  13059. .IX Item "-fdump-rtl-cse1"
  13060. .PD 0
  13061. .IP "\fB\-fdump\-rtl\-cse2\fR" 4
  13062. .IX Item "-fdump-rtl-cse2"
  13063. .PD
  13064. \&\fB\-fdump\-rtl\-cse1\fR and \fB\-fdump\-rtl\-cse2\fR enable dumping after
  13065. the two common subexpression elimination passes.
  13066. .IP "\fB\-fdump\-rtl\-dce\fR" 4
  13067. .IX Item "-fdump-rtl-dce"
  13068. Dump after the standalone dead code elimination passes.
  13069. .IP "\fB\-fdump\-rtl\-dbr\fR" 4
  13070. .IX Item "-fdump-rtl-dbr"
  13071. Dump after delayed branch scheduling.
  13072. .IP "\fB\-fdump\-rtl\-dce1\fR" 4
  13073. .IX Item "-fdump-rtl-dce1"
  13074. .PD 0
  13075. .IP "\fB\-fdump\-rtl\-dce2\fR" 4
  13076. .IX Item "-fdump-rtl-dce2"
  13077. .PD
  13078. \&\fB\-fdump\-rtl\-dce1\fR and \fB\-fdump\-rtl\-dce2\fR enable dumping after
  13079. the two dead store elimination passes.
  13080. .IP "\fB\-fdump\-rtl\-eh\fR" 4
  13081. .IX Item "-fdump-rtl-eh"
  13082. Dump after finalization of \s-1EH\s0 handling code.
  13083. .IP "\fB\-fdump\-rtl\-eh_ranges\fR" 4
  13084. .IX Item "-fdump-rtl-eh_ranges"
  13085. Dump after conversion of \s-1EH\s0 handling range regions.
  13086. .IP "\fB\-fdump\-rtl\-expand\fR" 4
  13087. .IX Item "-fdump-rtl-expand"
  13088. Dump after \s-1RTL\s0 generation.
  13089. .IP "\fB\-fdump\-rtl\-fwprop1\fR" 4
  13090. .IX Item "-fdump-rtl-fwprop1"
  13091. .PD 0
  13092. .IP "\fB\-fdump\-rtl\-fwprop2\fR" 4
  13093. .IX Item "-fdump-rtl-fwprop2"
  13094. .PD
  13095. \&\fB\-fdump\-rtl\-fwprop1\fR and \fB\-fdump\-rtl\-fwprop2\fR enable
  13096. dumping after the two forward propagation passes.
  13097. .IP "\fB\-fdump\-rtl\-gcse1\fR" 4
  13098. .IX Item "-fdump-rtl-gcse1"
  13099. .PD 0
  13100. .IP "\fB\-fdump\-rtl\-gcse2\fR" 4
  13101. .IX Item "-fdump-rtl-gcse2"
  13102. .PD
  13103. \&\fB\-fdump\-rtl\-gcse1\fR and \fB\-fdump\-rtl\-gcse2\fR enable dumping
  13104. after global common subexpression elimination.
  13105. .IP "\fB\-fdump\-rtl\-init\-regs\fR" 4
  13106. .IX Item "-fdump-rtl-init-regs"
  13107. Dump after the initialization of the registers.
  13108. .IP "\fB\-fdump\-rtl\-initvals\fR" 4
  13109. .IX Item "-fdump-rtl-initvals"
  13110. Dump after the computation of the initial value sets.
  13111. .IP "\fB\-fdump\-rtl\-into_cfglayout\fR" 4
  13112. .IX Item "-fdump-rtl-into_cfglayout"
  13113. Dump after converting to cfglayout mode.
  13114. .IP "\fB\-fdump\-rtl\-ira\fR" 4
  13115. .IX Item "-fdump-rtl-ira"
  13116. Dump after iterated register allocation.
  13117. .IP "\fB\-fdump\-rtl\-jump\fR" 4
  13118. .IX Item "-fdump-rtl-jump"
  13119. Dump after the second jump optimization.
  13120. .IP "\fB\-fdump\-rtl\-loop2\fR" 4
  13121. .IX Item "-fdump-rtl-loop2"
  13122. \&\fB\-fdump\-rtl\-loop2\fR enables dumping after the rtl
  13123. loop optimization passes.
  13124. .IP "\fB\-fdump\-rtl\-mach\fR" 4
  13125. .IX Item "-fdump-rtl-mach"
  13126. Dump after performing the machine dependent reorganization pass, if that
  13127. pass exists.
  13128. .IP "\fB\-fdump\-rtl\-mode_sw\fR" 4
  13129. .IX Item "-fdump-rtl-mode_sw"
  13130. Dump after removing redundant mode switches.
  13131. .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
  13132. .IX Item "-fdump-rtl-rnreg"
  13133. Dump after register renumbering.
  13134. .IP "\fB\-fdump\-rtl\-outof_cfglayout\fR" 4
  13135. .IX Item "-fdump-rtl-outof_cfglayout"
  13136. Dump after converting from cfglayout mode.
  13137. .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
  13138. .IX Item "-fdump-rtl-peephole2"
  13139. Dump after the peephole pass.
  13140. .IP "\fB\-fdump\-rtl\-postreload\fR" 4
  13141. .IX Item "-fdump-rtl-postreload"
  13142. Dump after post-reload optimizations.
  13143. .IP "\fB\-fdump\-rtl\-pro_and_epilogue\fR" 4
  13144. .IX Item "-fdump-rtl-pro_and_epilogue"
  13145. Dump after generating the function prologues and epilogues.
  13146. .IP "\fB\-fdump\-rtl\-sched1\fR" 4
  13147. .IX Item "-fdump-rtl-sched1"
  13148. .PD 0
  13149. .IP "\fB\-fdump\-rtl\-sched2\fR" 4
  13150. .IX Item "-fdump-rtl-sched2"
  13151. .PD
  13152. \&\fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR enable dumping
  13153. after the basic block scheduling passes.
  13154. .IP "\fB\-fdump\-rtl\-ree\fR" 4
  13155. .IX Item "-fdump-rtl-ree"
  13156. Dump after sign/zero extension elimination.
  13157. .IP "\fB\-fdump\-rtl\-seqabstr\fR" 4
  13158. .IX Item "-fdump-rtl-seqabstr"
  13159. Dump after common sequence discovery.
  13160. .IP "\fB\-fdump\-rtl\-shorten\fR" 4
  13161. .IX Item "-fdump-rtl-shorten"
  13162. Dump after shortening branches.
  13163. .IP "\fB\-fdump\-rtl\-sibling\fR" 4
  13164. .IX Item "-fdump-rtl-sibling"
  13165. Dump after sibling call optimizations.
  13166. .IP "\fB\-fdump\-rtl\-split1\fR" 4
  13167. .IX Item "-fdump-rtl-split1"
  13168. .PD 0
  13169. .IP "\fB\-fdump\-rtl\-split2\fR" 4
  13170. .IX Item "-fdump-rtl-split2"
  13171. .IP "\fB\-fdump\-rtl\-split3\fR" 4
  13172. .IX Item "-fdump-rtl-split3"
  13173. .IP "\fB\-fdump\-rtl\-split4\fR" 4
  13174. .IX Item "-fdump-rtl-split4"
  13175. .IP "\fB\-fdump\-rtl\-split5\fR" 4
  13176. .IX Item "-fdump-rtl-split5"
  13177. .PD
  13178. These options enable dumping after five rounds of
  13179. instruction splitting.
  13180. .IP "\fB\-fdump\-rtl\-sms\fR" 4
  13181. .IX Item "-fdump-rtl-sms"
  13182. Dump after modulo scheduling. This pass is only run on some
  13183. architectures.
  13184. .IP "\fB\-fdump\-rtl\-stack\fR" 4
  13185. .IX Item "-fdump-rtl-stack"
  13186. Dump after conversion from \s-1GCC\s0's \*(L"flat register file\*(R" registers to the
  13187. x87's stack-like registers. This pass is only run on x86 variants.
  13188. .IP "\fB\-fdump\-rtl\-subreg1\fR" 4
  13189. .IX Item "-fdump-rtl-subreg1"
  13190. .PD 0
  13191. .IP "\fB\-fdump\-rtl\-subreg2\fR" 4
  13192. .IX Item "-fdump-rtl-subreg2"
  13193. .PD
  13194. \&\fB\-fdump\-rtl\-subreg1\fR and \fB\-fdump\-rtl\-subreg2\fR enable dumping after
  13195. the two subreg expansion passes.
  13196. .IP "\fB\-fdump\-rtl\-unshare\fR" 4
  13197. .IX Item "-fdump-rtl-unshare"
  13198. Dump after all rtl has been unshared.
  13199. .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
  13200. .IX Item "-fdump-rtl-vartrack"
  13201. Dump after variable tracking.
  13202. .IP "\fB\-fdump\-rtl\-vregs\fR" 4
  13203. .IX Item "-fdump-rtl-vregs"
  13204. Dump after converting virtual registers to hard registers.
  13205. .IP "\fB\-fdump\-rtl\-web\fR" 4
  13206. .IX Item "-fdump-rtl-web"
  13207. Dump after live range splitting.
  13208. .IP "\fB\-fdump\-rtl\-regclass\fR" 4
  13209. .IX Item "-fdump-rtl-regclass"
  13210. .PD 0
  13211. .IP "\fB\-fdump\-rtl\-subregs_of_mode_init\fR" 4
  13212. .IX Item "-fdump-rtl-subregs_of_mode_init"
  13213. .IP "\fB\-fdump\-rtl\-subregs_of_mode_finish\fR" 4
  13214. .IX Item "-fdump-rtl-subregs_of_mode_finish"
  13215. .IP "\fB\-fdump\-rtl\-dfinit\fR" 4
  13216. .IX Item "-fdump-rtl-dfinit"
  13217. .IP "\fB\-fdump\-rtl\-dfinish\fR" 4
  13218. .IX Item "-fdump-rtl-dfinish"
  13219. .PD
  13220. These dumps are defined but always produce empty files.
  13221. .IP "\fB\-da\fR" 4
  13222. .IX Item "-da"
  13223. .PD 0
  13224. .IP "\fB\-fdump\-rtl\-all\fR" 4
  13225. .IX Item "-fdump-rtl-all"
  13226. .PD
  13227. Produce all the dumps listed above.
  13228. .IP "\fB\-dA\fR" 4
  13229. .IX Item "-dA"
  13230. Annotate the assembler output with miscellaneous debugging information.
  13231. .IP "\fB\-dD\fR" 4
  13232. .IX Item "-dD"
  13233. Dump all macro definitions, at the end of preprocessing, in addition to
  13234. normal output.
  13235. .IP "\fB\-dH\fR" 4
  13236. .IX Item "-dH"
  13237. Produce a core dump whenever an error occurs.
  13238. .IP "\fB\-dp\fR" 4
  13239. .IX Item "-dp"
  13240. Annotate the assembler output with a comment indicating which
  13241. pattern and alternative is used. The length and cost of each instruction are
  13242. also printed.
  13243. .IP "\fB\-dP\fR" 4
  13244. .IX Item "-dP"
  13245. Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
  13246. Also turns on \fB\-dp\fR annotation.
  13247. .IP "\fB\-dx\fR" 4
  13248. .IX Item "-dx"
  13249. Just generate \s-1RTL\s0 for a function instead of compiling it. Usually used
  13250. with \fB\-fdump\-rtl\-expand\fR.
  13251. .RE
  13252. .RS 4
  13253. .RE
  13254. .IP "\fB\-fdump\-noaddr\fR" 4
  13255. .IX Item "-fdump-noaddr"
  13256. When doing debugging dumps, suppress address output. This makes it more
  13257. feasible to use diff on debugging dumps for compiler invocations with
  13258. different compiler binaries and/or different
  13259. text / bss / data / heap / stack / dso start locations.
  13260. .IP "\fB\-freport\-bug\fR" 4
  13261. .IX Item "-freport-bug"
  13262. Collect and dump debug information into a temporary file if an
  13263. internal compiler error (\s-1ICE\s0) occurs.
  13264. .IP "\fB\-fdump\-unnumbered\fR" 4
  13265. .IX Item "-fdump-unnumbered"
  13266. When doing debugging dumps, suppress instruction numbers and address output.
  13267. This makes it more feasible to use diff on debugging dumps for compiler
  13268. invocations with different options, in particular with and without
  13269. \&\fB\-g\fR.
  13270. .IP "\fB\-fdump\-unnumbered\-links\fR" 4
  13271. .IX Item "-fdump-unnumbered-links"
  13272. When doing debugging dumps (see \fB\-d\fR option above), suppress
  13273. instruction numbers for the links to the previous and next instructions
  13274. in a sequence.
  13275. .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
  13276. .IX Item "-fdump-ipa-switch"
  13277. Control the dumping at various stages of inter-procedural analysis
  13278. language tree to a file. The file name is generated by appending a
  13279. switch specific suffix to the source file name, and the file is created
  13280. in the same directory as the output file. The following dumps are
  13281. possible:
  13282. .RS 4
  13283. .IP "\fBall\fR" 4
  13284. .IX Item "all"
  13285. Enables all inter-procedural analysis dumps.
  13286. .IP "\fBcgraph\fR" 4
  13287. .IX Item "cgraph"
  13288. Dumps information about call-graph optimization, unused function removal,
  13289. and inlining decisions.
  13290. .IP "\fBinline\fR" 4
  13291. .IX Item "inline"
  13292. Dump after function inlining.
  13293. .RE
  13294. .RS 4
  13295. .RE
  13296. .IP "\fB\-fdump\-lang\-all\fR" 4
  13297. .IX Item "-fdump-lang-all"
  13298. .PD 0
  13299. .IP "\fB\-fdump\-lang\-\fR\fIswitch\fR" 4
  13300. .IX Item "-fdump-lang-switch"
  13301. .IP "\fB\-fdump\-lang\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
  13302. .IX Item "-fdump-lang-switch-options"
  13303. .IP "\fB\-fdump\-lang\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
  13304. .IX Item "-fdump-lang-switch-options=filename"
  13305. .PD
  13306. Control the dumping of language-specific information. The \fIoptions\fR
  13307. and \fIfilename\fR portions behave as described in the
  13308. \&\fB\-fdump\-tree\fR option. The following \fIswitch\fR values are
  13309. accepted:
  13310. .RS 4
  13311. .IP "\fBall\fR" 4
  13312. .IX Item "all"
  13313. Enable all language-specific dumps.
  13314. .IP "\fBclass\fR" 4
  13315. .IX Item "class"
  13316. Dump class hierarchy information. Virtual table information is emitted
  13317. unless '\fBslim\fR' is specified. This option is applicable to \*(C+ only.
  13318. .IP "\fBraw\fR" 4
  13319. .IX Item "raw"
  13320. Dump the raw internal tree data. This option is applicable to \*(C+ only.
  13321. .RE
  13322. .RS 4
  13323. .RE
  13324. .IP "\fB\-fdump\-passes\fR" 4
  13325. .IX Item "-fdump-passes"
  13326. Print on \fIstderr\fR the list of optimization passes that are turned
  13327. on and off by the current command-line options.
  13328. .IP "\fB\-fdump\-statistics\-\fR\fIoption\fR" 4
  13329. .IX Item "-fdump-statistics-option"
  13330. Enable and control dumping of pass statistics in a separate file. The
  13331. file name is generated by appending a suffix ending in
  13332. \&\fB.statistics\fR to the source file name, and the file is created in
  13333. the same directory as the output file. If the \fB\-\fR\fIoption\fR
  13334. form is used, \fB\-stats\fR causes counters to be summed over the
  13335. whole compilation unit while \fB\-details\fR dumps every event as
  13336. the passes generate them. The default with no option is to sum
  13337. counters for each function compiled.
  13338. .IP "\fB\-fdump\-tree\-all\fR" 4
  13339. .IX Item "-fdump-tree-all"
  13340. .PD 0
  13341. .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR" 4
  13342. .IX Item "-fdump-tree-switch"
  13343. .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
  13344. .IX Item "-fdump-tree-switch-options"
  13345. .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
  13346. .IX Item "-fdump-tree-switch-options=filename"
  13347. .PD
  13348. Control the dumping at various stages of processing the intermediate
  13349. language tree to a file. The file name is generated by appending a
  13350. switch-specific suffix to the source file name, and the file is
  13351. created in the same directory as the output file. In case of
  13352. \&\fB=\fR\fIfilename\fR option, the dump is output on the given file
  13353. instead of the auto named dump files. If the \fB\-\fR\fIoptions\fR
  13354. form is used, \fIoptions\fR is a list of \fB\-\fR separated options
  13355. which control the details of the dump. Not all options are applicable
  13356. to all dumps; those that are not meaningful are ignored. The
  13357. following options are available
  13358. .RS 4
  13359. .IP "\fBaddress\fR" 4
  13360. .IX Item "address"
  13361. Print the address of each node. Usually this is not meaningful as it
  13362. changes according to the environment and source file. Its primary use
  13363. is for tying up a dump file with a debug environment.
  13364. .IP "\fBasmname\fR" 4
  13365. .IX Item "asmname"
  13366. If \f(CW\*(C`DECL_ASSEMBLER_NAME\*(C'\fR has been set for a given decl, use that
  13367. in the dump instead of \f(CW\*(C`DECL_NAME\*(C'\fR. Its primary use is ease of
  13368. use working backward from mangled names in the assembly file.
  13369. .IP "\fBslim\fR" 4
  13370. .IX Item "slim"
  13371. When dumping front-end intermediate representations, inhibit dumping
  13372. of members of a scope or body of a function merely because that scope
  13373. has been reached. Only dump such items when they are directly reachable
  13374. by some other path.
  13375. .Sp
  13376. When dumping pretty-printed trees, this option inhibits dumping the
  13377. bodies of control structures.
  13378. .Sp
  13379. When dumping \s-1RTL,\s0 print the \s-1RTL\s0 in slim (condensed) form instead of
  13380. the default LISP-like representation.
  13381. .IP "\fBraw\fR" 4
  13382. .IX Item "raw"
  13383. Print a raw representation of the tree. By default, trees are
  13384. pretty-printed into a C\-like representation.
  13385. .IP "\fBdetails\fR" 4
  13386. .IX Item "details"
  13387. Enable more detailed dumps (not honored by every dump option). Also
  13388. include information from the optimization passes.
  13389. .IP "\fBstats\fR" 4
  13390. .IX Item "stats"
  13391. Enable dumping various statistics about the pass (not honored by every dump
  13392. option).
  13393. .IP "\fBblocks\fR" 4
  13394. .IX Item "blocks"
  13395. Enable showing basic block boundaries (disabled in raw dumps).
  13396. .IP "\fBgraph\fR" 4
  13397. .IX Item "graph"
  13398. For each of the other indicated dump files (\fB\-fdump\-rtl\-\fR\fIpass\fR),
  13399. dump a representation of the control flow graph suitable for viewing with
  13400. GraphViz to \fI\fIfile\fI.\fIpassid\fI.\fIpass\fI.dot\fR. Each function in
  13401. the file is pretty-printed as a subgraph, so that GraphViz can render them
  13402. all in a single plot.
  13403. .Sp
  13404. This option currently only works for \s-1RTL\s0 dumps, and the \s-1RTL\s0 is always
  13405. dumped in slim form.
  13406. .IP "\fBvops\fR" 4
  13407. .IX Item "vops"
  13408. Enable showing virtual operands for every statement.
  13409. .IP "\fBlineno\fR" 4
  13410. .IX Item "lineno"
  13411. Enable showing line numbers for statements.
  13412. .IP "\fBuid\fR" 4
  13413. .IX Item "uid"
  13414. Enable showing the unique \s-1ID\s0 (\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
  13415. .IP "\fBverbose\fR" 4
  13416. .IX Item "verbose"
  13417. Enable showing the tree dump for each statement.
  13418. .IP "\fBeh\fR" 4
  13419. .IX Item "eh"
  13420. Enable showing the \s-1EH\s0 region number holding each statement.
  13421. .IP "\fBscev\fR" 4
  13422. .IX Item "scev"
  13423. Enable showing scalar evolution analysis details.
  13424. .IP "\fBoptimized\fR" 4
  13425. .IX Item "optimized"
  13426. Enable showing optimization information (only available in certain
  13427. passes).
  13428. .IP "\fBmissed\fR" 4
  13429. .IX Item "missed"
  13430. Enable showing missed optimization information (only available in certain
  13431. passes).
  13432. .IP "\fBnote\fR" 4
  13433. .IX Item "note"
  13434. Enable other detailed optimization information (only available in
  13435. certain passes).
  13436. .IP "\fB=\fR\fIfilename\fR" 4
  13437. .IX Item "=filename"
  13438. Instead of an auto named dump file, output into the given file
  13439. name. The file names \fIstdout\fR and \fIstderr\fR are treated
  13440. specially and are considered already open standard streams. For
  13441. example,
  13442. .Sp
  13443. .Vb 2
  13444. \& gcc \-O2 \-ftree\-vectorize \-fdump\-tree\-vect\-blocks=foo.dump
  13445. \& \-fdump\-tree\-pre=/dev/stderr file.c
  13446. .Ve
  13447. .Sp
  13448. outputs vectorizer dump into \fIfoo.dump\fR, while the \s-1PRE\s0 dump is
  13449. output on to \fIstderr\fR. If two conflicting dump filenames are
  13450. given for the same pass, then the latter option overrides the earlier
  13451. one.
  13452. .IP "\fBall\fR" 4
  13453. .IX Item "all"
  13454. Turn on all options, except \fBraw\fR, \fBslim\fR, \fBverbose\fR
  13455. and \fBlineno\fR.
  13456. .IP "\fBoptall\fR" 4
  13457. .IX Item "optall"
  13458. Turn on all optimization options, i.e., \fBoptimized\fR,
  13459. \&\fBmissed\fR, and \fBnote\fR.
  13460. .RE
  13461. .RS 4
  13462. .Sp
  13463. To determine what tree dumps are available or find the dump for a pass
  13464. of interest follow the steps below.
  13465. .IP "1." 4
  13466. .IX Item "1."
  13467. Invoke \s-1GCC\s0 with \fB\-fdump\-passes\fR and in the \fIstderr\fR output
  13468. look for a code that corresponds to the pass you are interested in.
  13469. For example, the codes \f(CW\*(C`tree\-evrp\*(C'\fR, \f(CW\*(C`tree\-vrp1\*(C'\fR, and
  13470. \&\f(CW\*(C`tree\-vrp2\*(C'\fR correspond to the three Value Range Propagation passes.
  13471. The number at the end distinguishes distinct invocations of the same pass.
  13472. .IP "2." 4
  13473. .IX Item "2."
  13474. To enable the creation of the dump file, append the pass code to
  13475. the \fB\-fdump\-\fR option prefix and invoke \s-1GCC\s0 with it. For example,
  13476. to enable the dump from the Early Value Range Propagation pass, invoke
  13477. \&\s-1GCC\s0 with the \fB\-fdump\-tree\-evrp\fR option. Optionally, you may
  13478. specify the name of the dump file. If you don't specify one, \s-1GCC\s0
  13479. creates as described below.
  13480. .IP "3." 4
  13481. .IX Item "3."
  13482. Find the pass dump in a file whose name is composed of three components
  13483. separated by a period: the name of the source file \s-1GCC\s0 was invoked to
  13484. compile, a numeric suffix indicating the pass number followed by the
  13485. letter \fBt\fR for tree passes (and the letter \fBr\fR for \s-1RTL\s0 passes),
  13486. and finally the pass code. For example, the Early \s-1VRP\s0 pass dump might
  13487. be in a file named \fImyfile.c.038t.evrp\fR in the current working
  13488. directory. Note that the numeric codes are not stable and may change
  13489. from one version of \s-1GCC\s0 to another.
  13490. .RE
  13491. .RS 4
  13492. .RE
  13493. .IP "\fB\-fopt\-info\fR" 4
  13494. .IX Item "-fopt-info"
  13495. .PD 0
  13496. .IP "\fB\-fopt\-info\-\fR\fIoptions\fR" 4
  13497. .IX Item "-fopt-info-options"
  13498. .IP "\fB\-fopt\-info\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
  13499. .IX Item "-fopt-info-options=filename"
  13500. .PD
  13501. Controls optimization dumps from various optimization passes. If the
  13502. \&\fB\-\fR\fIoptions\fR form is used, \fIoptions\fR is a list of
  13503. \&\fB\-\fR separated option keywords to select the dump details and
  13504. optimizations.
  13505. .Sp
  13506. The \fIoptions\fR can be divided into two groups: options describing the
  13507. verbosity of the dump, and options describing which optimizations
  13508. should be included. The options from both the groups can be freely
  13509. mixed as they are non-overlapping. However, in case of any conflicts,
  13510. the later options override the earlier options on the command
  13511. line.
  13512. .Sp
  13513. The following options control the dump verbosity:
  13514. .RS 4
  13515. .IP "\fBoptimized\fR" 4
  13516. .IX Item "optimized"
  13517. Print information when an optimization is successfully applied. It is
  13518. up to a pass to decide which information is relevant. For example, the
  13519. vectorizer passes print the source location of loops which are
  13520. successfully vectorized.
  13521. .IP "\fBmissed\fR" 4
  13522. .IX Item "missed"
  13523. Print information about missed optimizations. Individual passes
  13524. control which information to include in the output.
  13525. .IP "\fBnote\fR" 4
  13526. .IX Item "note"
  13527. Print verbose information about optimizations, such as certain
  13528. transformations, more detailed messages about decisions etc.
  13529. .IP "\fBall\fR" 4
  13530. .IX Item "all"
  13531. Print detailed optimization information. This includes
  13532. \&\fBoptimized\fR, \fBmissed\fR, and \fBnote\fR.
  13533. .RE
  13534. .RS 4
  13535. .Sp
  13536. One or more of the following option keywords can be used to describe a
  13537. group of optimizations:
  13538. .IP "\fBipa\fR" 4
  13539. .IX Item "ipa"
  13540. Enable dumps from all interprocedural optimizations.
  13541. .IP "\fBloop\fR" 4
  13542. .IX Item "loop"
  13543. Enable dumps from all loop optimizations.
  13544. .IP "\fBinline\fR" 4
  13545. .IX Item "inline"
  13546. Enable dumps from all inlining optimizations.
  13547. .IP "\fBomp\fR" 4
  13548. .IX Item "omp"
  13549. Enable dumps from all \s-1OMP\s0 (Offloading and Multi Processing) optimizations.
  13550. .IP "\fBvec\fR" 4
  13551. .IX Item "vec"
  13552. Enable dumps from all vectorization optimizations.
  13553. .IP "\fBoptall\fR" 4
  13554. .IX Item "optall"
  13555. Enable dumps from all optimizations. This is a superset of
  13556. the optimization groups listed above.
  13557. .RE
  13558. .RS 4
  13559. .Sp
  13560. If \fIoptions\fR is
  13561. omitted, it defaults to \fBoptimized-optall\fR, which means to dump all
  13562. info about successful optimizations from all the passes.
  13563. .Sp
  13564. If the \fIfilename\fR is provided, then the dumps from all the
  13565. applicable optimizations are concatenated into the \fIfilename\fR.
  13566. Otherwise the dump is output onto \fIstderr\fR. Though multiple
  13567. \&\fB\-fopt\-info\fR options are accepted, only one of them can include
  13568. a \fIfilename\fR. If other filenames are provided then all but the
  13569. first such option are ignored.
  13570. .Sp
  13571. Note that the output \fIfilename\fR is overwritten
  13572. in case of multiple translation units. If a combined output from
  13573. multiple translation units is desired, \fIstderr\fR should be used
  13574. instead.
  13575. .Sp
  13576. In the following example, the optimization info is output to
  13577. \&\fIstderr\fR:
  13578. .Sp
  13579. .Vb 1
  13580. \& gcc \-O3 \-fopt\-info
  13581. .Ve
  13582. .Sp
  13583. This example:
  13584. .Sp
  13585. .Vb 1
  13586. \& gcc \-O3 \-fopt\-info\-missed=missed.all
  13587. .Ve
  13588. .Sp
  13589. outputs missed optimization report from all the passes into
  13590. \&\fImissed.all\fR, and this one:
  13591. .Sp
  13592. .Vb 1
  13593. \& gcc \-O2 \-ftree\-vectorize \-fopt\-info\-vec\-missed
  13594. .Ve
  13595. .Sp
  13596. prints information about missed optimization opportunities from
  13597. vectorization passes on \fIstderr\fR.
  13598. Note that \fB\-fopt\-info\-vec\-missed\fR is equivalent to
  13599. \&\fB\-fopt\-info\-missed\-vec\fR. The order of the optimization group
  13600. names and message types listed after \fB\-fopt\-info\fR does not matter.
  13601. .Sp
  13602. As another example,
  13603. .Sp
  13604. .Vb 1
  13605. \& gcc \-O3 \-fopt\-info\-inline\-optimized\-missed=inline.txt
  13606. .Ve
  13607. .Sp
  13608. outputs information about missed optimizations as well as
  13609. optimized locations from all the inlining passes into
  13610. \&\fIinline.txt\fR.
  13611. .Sp
  13612. Finally, consider:
  13613. .Sp
  13614. .Vb 1
  13615. \& gcc \-fopt\-info\-vec\-missed=vec.miss \-fopt\-info\-loop\-optimized=loop.opt
  13616. .Ve
  13617. .Sp
  13618. Here the two output filenames \fIvec.miss\fR and \fIloop.opt\fR are
  13619. in conflict since only one output file is allowed. In this case, only
  13620. the first option takes effect and the subsequent options are
  13621. ignored. Thus only \fIvec.miss\fR is produced which contains
  13622. dumps from the vectorizer about missed opportunities.
  13623. .RE
  13624. .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
  13625. .IX Item "-fsched-verbose=n"
  13626. On targets that use instruction scheduling, this option controls the
  13627. amount of debugging output the scheduler prints to the dump files.
  13628. .Sp
  13629. For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
  13630. same information as \fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR.
  13631. For \fIn\fR greater than one, it also output basic block probabilities,
  13632. detailed ready list information and unit/insn info. For \fIn\fR greater
  13633. than two, it includes \s-1RTL\s0 at abort point, control-flow and regions info.
  13634. And for \fIn\fR over four, \fB\-fsched\-verbose\fR also includes
  13635. dependence info.
  13636. .IP "\fB\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR" 4
  13637. .IX Item "-fenable-kind-pass"
  13638. .PD 0
  13639. .IP "\fB\-fdisable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  13640. .IX Item "-fdisable-kind-pass=range-list"
  13641. .PD
  13642. This is a set of options that are used to explicitly disable/enable
  13643. optimization passes. These options are intended for use for debugging \s-1GCC.\s0
  13644. Compiler users should use regular options for enabling/disabling
  13645. passes instead.
  13646. .RS 4
  13647. .IP "\fB\-fdisable\-ipa\-\fR\fIpass\fR" 4
  13648. .IX Item "-fdisable-ipa-pass"
  13649. Disable \s-1IPA\s0 pass \fIpass\fR. \fIpass\fR is the pass name. If the same pass is
  13650. statically invoked in the compiler multiple times, the pass name should be
  13651. appended with a sequential number starting from 1.
  13652. .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR" 4
  13653. .IX Item "-fdisable-rtl-pass"
  13654. .PD 0
  13655. .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  13656. .IX Item "-fdisable-rtl-pass=range-list"
  13657. .PD
  13658. Disable \s-1RTL\s0 pass \fIpass\fR. \fIpass\fR is the pass name. If the same pass is
  13659. statically invoked in the compiler multiple times, the pass name should be
  13660. appended with a sequential number starting from 1. \fIrange-list\fR is a
  13661. comma-separated list of function ranges or assembler names. Each range is a number
  13662. pair separated by a colon. The range is inclusive in both ends. If the range
  13663. is trivial, the number pair can be simplified as a single number. If the
  13664. function's call graph node's \fIuid\fR falls within one of the specified ranges,
  13665. the \fIpass\fR is disabled for that function. The \fIuid\fR is shown in the
  13666. function header of a dump file, and the pass names can be dumped by using
  13667. option \fB\-fdump\-passes\fR.
  13668. .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR" 4
  13669. .IX Item "-fdisable-tree-pass"
  13670. .PD 0
  13671. .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  13672. .IX Item "-fdisable-tree-pass=range-list"
  13673. .PD
  13674. Disable tree pass \fIpass\fR. See \fB\-fdisable\-rtl\fR for the description of
  13675. option arguments.
  13676. .IP "\fB\-fenable\-ipa\-\fR\fIpass\fR" 4
  13677. .IX Item "-fenable-ipa-pass"
  13678. Enable \s-1IPA\s0 pass \fIpass\fR. \fIpass\fR is the pass name. If the same pass is
  13679. statically invoked in the compiler multiple times, the pass name should be
  13680. appended with a sequential number starting from 1.
  13681. .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR" 4
  13682. .IX Item "-fenable-rtl-pass"
  13683. .PD 0
  13684. .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  13685. .IX Item "-fenable-rtl-pass=range-list"
  13686. .PD
  13687. Enable \s-1RTL\s0 pass \fIpass\fR. See \fB\-fdisable\-rtl\fR for option argument
  13688. description and examples.
  13689. .IP "\fB\-fenable\-tree\-\fR\fIpass\fR" 4
  13690. .IX Item "-fenable-tree-pass"
  13691. .PD 0
  13692. .IP "\fB\-fenable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  13693. .IX Item "-fenable-tree-pass=range-list"
  13694. .PD
  13695. Enable tree pass \fIpass\fR. See \fB\-fdisable\-rtl\fR for the description
  13696. of option arguments.
  13697. .RE
  13698. .RS 4
  13699. .Sp
  13700. Here are some examples showing uses of these options.
  13701. .Sp
  13702. .Vb 10
  13703. \& # disable ccp1 for all functions
  13704. \& \-fdisable\-tree\-ccp1
  13705. \& # disable complete unroll for function whose cgraph node uid is 1
  13706. \& \-fenable\-tree\-cunroll=1
  13707. \& # disable gcse2 for functions at the following ranges [1,1],
  13708. \& # [300,400], and [400,1000]
  13709. \& # disable gcse2 for functions foo and foo2
  13710. \& \-fdisable\-rtl\-gcse2=foo,foo2
  13711. \& # disable early inlining
  13712. \& \-fdisable\-tree\-einline
  13713. \& # disable ipa inlining
  13714. \& \-fdisable\-ipa\-inline
  13715. \& # enable tree full unroll
  13716. \& \-fenable\-tree\-unroll
  13717. .Ve
  13718. .RE
  13719. .IP "\fB\-fchecking\fR" 4
  13720. .IX Item "-fchecking"
  13721. .PD 0
  13722. .IP "\fB\-fchecking=\fR\fIn\fR" 4
  13723. .IX Item "-fchecking=n"
  13724. .PD
  13725. Enable internal consistency checking. The default depends on
  13726. the compiler configuration. \fB\-fchecking=2\fR enables further
  13727. internal consistency checking that might affect code generation.
  13728. .IP "\fB\-frandom\-seed=\fR\fIstring\fR" 4
  13729. .IX Item "-frandom-seed=string"
  13730. This option provides a seed that \s-1GCC\s0 uses in place of
  13731. random numbers in generating certain symbol names
  13732. that have to be different in every compiled file. It is also used to
  13733. place unique stamps in coverage data files and the object files that
  13734. produce them. You can use the \fB\-frandom\-seed\fR option to produce
  13735. reproducibly identical object files.
  13736. .Sp
  13737. The \fIstring\fR can either be a number (decimal, octal or hex) or an
  13738. arbitrary string (in which case it's converted to a number by
  13739. computing \s-1CRC32\s0).
  13740. .Sp
  13741. The \fIstring\fR should be different for every file you compile.
  13742. .IP "\fB\-save\-temps\fR" 4
  13743. .IX Item "-save-temps"
  13744. .PD 0
  13745. .IP "\fB\-save\-temps=cwd\fR" 4
  13746. .IX Item "-save-temps=cwd"
  13747. .PD
  13748. Store the usual \*(L"temporary\*(R" intermediate files permanently; place them
  13749. in the current directory and name them based on the source file. Thus,
  13750. compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR produces files
  13751. \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR. This creates a
  13752. preprocessed \fIfoo.i\fR output file even though the compiler now
  13753. normally uses an integrated preprocessor.
  13754. .Sp
  13755. When used in combination with the \fB\-x\fR command-line option,
  13756. \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
  13757. input source file with the same extension as an intermediate file.
  13758. The corresponding intermediate file may be obtained by renaming the
  13759. source file before using \fB\-save\-temps\fR.
  13760. .Sp
  13761. If you invoke \s-1GCC\s0 in parallel, compiling several different source
  13762. files that share a common base name in different subdirectories or the
  13763. same source file compiled for multiple output destinations, it is
  13764. likely that the different parallel compilers will interfere with each
  13765. other, and overwrite the temporary files. For instance:
  13766. .Sp
  13767. .Vb 2
  13768. \& gcc \-save\-temps \-o outdir1/foo.o indir1/foo.c&
  13769. \& gcc \-save\-temps \-o outdir2/foo.o indir2/foo.c&
  13770. .Ve
  13771. .Sp
  13772. may result in \fIfoo.i\fR and \fIfoo.o\fR being written to
  13773. simultaneously by both compilers.
  13774. .IP "\fB\-save\-temps=obj\fR" 4
  13775. .IX Item "-save-temps=obj"
  13776. Store the usual \*(L"temporary\*(R" intermediate files permanently. If the
  13777. \&\fB\-o\fR option is used, the temporary files are based on the
  13778. object file. If the \fB\-o\fR option is not used, the
  13779. \&\fB\-save\-temps=obj\fR switch behaves like \fB\-save\-temps\fR.
  13780. .Sp
  13781. For example:
  13782. .Sp
  13783. .Vb 3
  13784. \& gcc \-save\-temps=obj \-c foo.c
  13785. \& gcc \-save\-temps=obj \-c bar.c \-o dir/xbar.o
  13786. \& gcc \-save\-temps=obj foobar.c \-o dir2/yfoobar
  13787. .Ve
  13788. .Sp
  13789. creates \fIfoo.i\fR, \fIfoo.s\fR, \fIdir/xbar.i\fR,
  13790. \&\fIdir/xbar.s\fR, \fIdir2/yfoobar.i\fR, \fIdir2/yfoobar.s\fR, and
  13791. \&\fIdir2/yfoobar.o\fR.
  13792. .IP "\fB\-time\fR[\fB=\fR\fIfile\fR]" 4
  13793. .IX Item "-time[=file]"
  13794. Report the \s-1CPU\s0 time taken by each subprocess in the compilation
  13795. sequence. For C source files, this is the compiler proper and assembler
  13796. (plus the linker if linking is done).
  13797. .Sp
  13798. Without the specification of an output file, the output looks like this:
  13799. .Sp
  13800. .Vb 2
  13801. \& # cc1 0.12 0.01
  13802. \& # as 0.00 0.01
  13803. .Ve
  13804. .Sp
  13805. The first number on each line is the \*(L"user time\*(R", that is time spent
  13806. executing the program itself. The second number is \*(L"system time\*(R",
  13807. time spent executing operating system routines on behalf of the program.
  13808. Both numbers are in seconds.
  13809. .Sp
  13810. With the specification of an output file, the output is appended to the
  13811. named file, and it looks like this:
  13812. .Sp
  13813. .Vb 2
  13814. \& 0.12 0.01 cc1 <options>
  13815. \& 0.00 0.01 as <options>
  13816. .Ve
  13817. .Sp
  13818. The \*(L"user time\*(R" and the \*(L"system time\*(R" are moved before the program
  13819. name, and the options passed to the program are displayed, so that one
  13820. can later tell what file was being compiled, and with which options.
  13821. .IP "\fB\-fdump\-final\-insns\fR[\fB=\fR\fIfile\fR]" 4
  13822. .IX Item "-fdump-final-insns[=file]"
  13823. Dump the final internal representation (\s-1RTL\s0) to \fIfile\fR. If the
  13824. optional argument is omitted (or if \fIfile\fR is \f(CW\*(C`.\*(C'\fR), the name
  13825. of the dump file is determined by appending \f(CW\*(C`.gkd\*(C'\fR to the
  13826. compilation output file name.
  13827. .IP "\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR]" 4
  13828. .IX Item "-fcompare-debug[=opts]"
  13829. If no error occurs during compilation, run the compiler a second time,
  13830. adding \fIopts\fR and \fB\-fcompare\-debug\-second\fR to the arguments
  13831. passed to the second compilation. Dump the final internal
  13832. representation in both compilations, and print an error if they differ.
  13833. .Sp
  13834. If the equal sign is omitted, the default \fB\-gtoggle\fR is used.
  13835. .Sp
  13836. The environment variable \fB\s-1GCC_COMPARE_DEBUG\s0\fR, if defined, non-empty
  13837. and nonzero, implicitly enables \fB\-fcompare\-debug\fR. If
  13838. \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR is defined to a string starting with a dash,
  13839. then it is used for \fIopts\fR, otherwise the default \fB\-gtoggle\fR
  13840. is used.
  13841. .Sp
  13842. \&\fB\-fcompare\-debug=\fR, with the equal sign but without \fIopts\fR,
  13843. is equivalent to \fB\-fno\-compare\-debug\fR, which disables the dumping
  13844. of the final representation and the second compilation, preventing even
  13845. \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR from taking effect.
  13846. .Sp
  13847. To verify full coverage during \fB\-fcompare\-debug\fR testing, set
  13848. \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR to say \fB\-fcompare\-debug\-not\-overridden\fR,
  13849. which \s-1GCC\s0 rejects as an invalid option in any actual compilation
  13850. (rather than preprocessing, assembly or linking). To get just a
  13851. warning, setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR to \fB\-w%n\-fcompare\-debug
  13852. not overridden\fR will do.
  13853. .IP "\fB\-fcompare\-debug\-second\fR" 4
  13854. .IX Item "-fcompare-debug-second"
  13855. This option is implicitly passed to the compiler for the second
  13856. compilation requested by \fB\-fcompare\-debug\fR, along with options to
  13857. silence warnings, and omitting other options that would cause the compiler
  13858. to produce output to files or to standard output as a side effect. Dump
  13859. files and preserved temporary files are renamed so as to contain the
  13860. \&\f(CW\*(C`.gk\*(C'\fR additional extension during the second compilation, to avoid
  13861. overwriting those generated by the first.
  13862. .Sp
  13863. When this option is passed to the compiler driver, it causes the
  13864. \&\fIfirst\fR compilation to be skipped, which makes it useful for little
  13865. other than debugging the compiler proper.
  13866. .IP "\fB\-gtoggle\fR" 4
  13867. .IX Item "-gtoggle"
  13868. Turn off generation of debug info, if leaving out this option
  13869. generates it, or turn it on at level 2 otherwise. The position of this
  13870. argument in the command line does not matter; it takes effect after all
  13871. other options are processed, and it does so only once, no matter how
  13872. many times it is given. This is mainly intended to be used with
  13873. \&\fB\-fcompare\-debug\fR.
  13874. .IP "\fB\-fvar\-tracking\-assignments\-toggle\fR" 4
  13875. .IX Item "-fvar-tracking-assignments-toggle"
  13876. Toggle \fB\-fvar\-tracking\-assignments\fR, in the same way that
  13877. \&\fB\-gtoggle\fR toggles \fB\-g\fR.
  13878. .IP "\fB\-Q\fR" 4
  13879. .IX Item "-Q"
  13880. Makes the compiler print out each function name as it is compiled, and
  13881. print some statistics about each pass when it finishes.
  13882. .IP "\fB\-ftime\-report\fR" 4
  13883. .IX Item "-ftime-report"
  13884. Makes the compiler print some statistics about the time consumed by each
  13885. pass when it finishes.
  13886. .IP "\fB\-ftime\-report\-details\fR" 4
  13887. .IX Item "-ftime-report-details"
  13888. Record the time consumed by infrastructure parts separately for each pass.
  13889. .IP "\fB\-fira\-verbose=\fR\fIn\fR" 4
  13890. .IX Item "-fira-verbose=n"
  13891. Control the verbosity of the dump file for the integrated register allocator.
  13892. The default value is 5. If the value \fIn\fR is greater or equal to 10,
  13893. the dump output is sent to stderr using the same format as \fIn\fR minus 10.
  13894. .IP "\fB\-flto\-report\fR" 4
  13895. .IX Item "-flto-report"
  13896. Prints a report with internal details on the workings of the link-time
  13897. optimizer. The contents of this report vary from version to version.
  13898. It is meant to be useful to \s-1GCC\s0 developers when processing object
  13899. files in \s-1LTO\s0 mode (via \fB\-flto\fR).
  13900. .Sp
  13901. Disabled by default.
  13902. .IP "\fB\-flto\-report\-wpa\fR" 4
  13903. .IX Item "-flto-report-wpa"
  13904. Like \fB\-flto\-report\fR, but only print for the \s-1WPA\s0 phase of Link
  13905. Time Optimization.
  13906. .IP "\fB\-fmem\-report\fR" 4
  13907. .IX Item "-fmem-report"
  13908. Makes the compiler print some statistics about permanent memory
  13909. allocation when it finishes.
  13910. .IP "\fB\-fmem\-report\-wpa\fR" 4
  13911. .IX Item "-fmem-report-wpa"
  13912. Makes the compiler print some statistics about permanent memory
  13913. allocation for the \s-1WPA\s0 phase only.
  13914. .IP "\fB\-fpre\-ipa\-mem\-report\fR" 4
  13915. .IX Item "-fpre-ipa-mem-report"
  13916. .PD 0
  13917. .IP "\fB\-fpost\-ipa\-mem\-report\fR" 4
  13918. .IX Item "-fpost-ipa-mem-report"
  13919. .PD
  13920. Makes the compiler print some statistics about permanent memory
  13921. allocation before or after interprocedural optimization.
  13922. .IP "\fB\-fprofile\-report\fR" 4
  13923. .IX Item "-fprofile-report"
  13924. Makes the compiler print some statistics about consistency of the
  13925. (estimated) profile and effect of individual passes.
  13926. .IP "\fB\-fstack\-usage\fR" 4
  13927. .IX Item "-fstack-usage"
  13928. Makes the compiler output stack usage information for the program, on a
  13929. per-function basis. The filename for the dump is made by appending
  13930. \&\fI.su\fR to the \fIauxname\fR. \fIauxname\fR is generated from the name of
  13931. the output file, if explicitly specified and it is not an executable,
  13932. otherwise it is the basename of the source file. An entry is made up
  13933. of three fields:
  13934. .RS 4
  13935. .IP "*" 4
  13936. The name of the function.
  13937. .IP "*" 4
  13938. A number of bytes.
  13939. .IP "*" 4
  13940. One or more qualifiers: \f(CW\*(C`static\*(C'\fR, \f(CW\*(C`dynamic\*(C'\fR, \f(CW\*(C`bounded\*(C'\fR.
  13941. .RE
  13942. .RS 4
  13943. .Sp
  13944. The qualifier \f(CW\*(C`static\*(C'\fR means that the function manipulates the stack
  13945. statically: a fixed number of bytes are allocated for the frame on function
  13946. entry and released on function exit; no stack adjustments are otherwise made
  13947. in the function. The second field is this fixed number of bytes.
  13948. .Sp
  13949. The qualifier \f(CW\*(C`dynamic\*(C'\fR means that the function manipulates the stack
  13950. dynamically: in addition to the static allocation described above, stack
  13951. adjustments are made in the body of the function, for example to push/pop
  13952. arguments around function calls. If the qualifier \f(CW\*(C`bounded\*(C'\fR is also
  13953. present, the amount of these adjustments is bounded at compile time and
  13954. the second field is an upper bound of the total amount of stack used by
  13955. the function. If it is not present, the amount of these adjustments is
  13956. not bounded at compile time and the second field only represents the
  13957. bounded part.
  13958. .RE
  13959. .IP "\fB\-fstats\fR" 4
  13960. .IX Item "-fstats"
  13961. Emit statistics about front-end processing at the end of the compilation.
  13962. This option is supported only by the \*(C+ front end, and
  13963. the information is generally only useful to the G++ development team.
  13964. .IP "\fB\-fdbg\-cnt\-list\fR" 4
  13965. .IX Item "-fdbg-cnt-list"
  13966. Print the name and the counter upper bound for all debug counters.
  13967. .IP "\fB\-fdbg\-cnt=\fR\fIcounter-value-list\fR" 4
  13968. .IX Item "-fdbg-cnt=counter-value-list"
  13969. Set the internal debug counter upper bound. \fIcounter-value-list\fR
  13970. is a comma-separated list of \fIname\fR:\fIvalue\fR pairs
  13971. which sets the upper bound of each debug counter \fIname\fR to \fIvalue\fR.
  13972. All debug counters have the initial upper bound of \f(CW\*(C`UINT_MAX\*(C'\fR;
  13973. thus \f(CW\*(C`dbg_cnt\*(C'\fR returns true always unless the upper bound
  13974. is set by this option.
  13975. For example, with \fB\-fdbg\-cnt=dce:10,tail_call:0\fR,
  13976. \&\f(CW\*(C`dbg_cnt(dce)\*(C'\fR returns true only for first 10 invocations.
  13977. .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
  13978. .IX Item "-print-file-name=library"
  13979. Print the full absolute name of the library file \fIlibrary\fR that
  13980. would be used when linking\-\-\-and don't do anything else. With this
  13981. option, \s-1GCC\s0 does not compile or link anything; it just prints the
  13982. file name.
  13983. .IP "\fB\-print\-multi\-directory\fR" 4
  13984. .IX Item "-print-multi-directory"
  13985. Print the directory name corresponding to the multilib selected by any
  13986. other switches present in the command line. This directory is supposed
  13987. to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
  13988. .IP "\fB\-print\-multi\-lib\fR" 4
  13989. .IX Item "-print-multi-lib"
  13990. Print the mapping from multilib directory names to compiler switches
  13991. that enable them. The directory name is separated from the switches by
  13992. \&\fB;\fR, and each switch starts with an \fB@\fR instead of the
  13993. \&\fB\-\fR, without spaces between multiple switches. This is supposed to
  13994. ease shell processing.
  13995. .IP "\fB\-print\-multi\-os\-directory\fR" 4
  13996. .IX Item "-print-multi-os-directory"
  13997. Print the path to \s-1OS\s0 libraries for the selected
  13998. multilib, relative to some \fIlib\fR subdirectory. If \s-1OS\s0 libraries are
  13999. present in the \fIlib\fR subdirectory and no multilibs are used, this is
  14000. usually just \fI.\fR, if \s-1OS\s0 libraries are present in \fIlib\fIsuffix\fI\fR
  14001. sibling directories this prints e.g. \fI../lib64\fR, \fI../lib\fR or
  14002. \&\fI../lib32\fR, or if \s-1OS\s0 libraries are present in \fIlib/\fIsubdir\fI\fR
  14003. subdirectories it prints e.g. \fIamd64\fR, \fIsparcv9\fR or \fIev6\fR.
  14004. .IP "\fB\-print\-multiarch\fR" 4
  14005. .IX Item "-print-multiarch"
  14006. Print the path to \s-1OS\s0 libraries for the selected multiarch,
  14007. relative to some \fIlib\fR subdirectory.
  14008. .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
  14009. .IX Item "-print-prog-name=program"
  14010. Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
  14011. .IP "\fB\-print\-libgcc\-file\-name\fR" 4
  14012. .IX Item "-print-libgcc-file-name"
  14013. Same as \fB\-print\-file\-name=libgcc.a\fR.
  14014. .Sp
  14015. This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
  14016. but you do want to link with \fIlibgcc.a\fR. You can do:
  14017. .Sp
  14018. .Vb 1
  14019. \& gcc \-nostdlib <files>... \`gcc \-print\-libgcc\-file\-name\`
  14020. .Ve
  14021. .IP "\fB\-print\-search\-dirs\fR" 4
  14022. .IX Item "-print-search-dirs"
  14023. Print the name of the configured installation directory and a list of
  14024. program and library directories \fBgcc\fR searches\-\-\-and don't do anything else.
  14025. .Sp
  14026. This is useful when \fBgcc\fR prints the error message
  14027. \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
  14028. To resolve this you either need to put \fIcpp0\fR and the other compiler
  14029. components where \fBgcc\fR expects to find them, or you can set the environment
  14030. variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
  14031. Don't forget the trailing \fB/\fR.
  14032. .IP "\fB\-print\-sysroot\fR" 4
  14033. .IX Item "-print-sysroot"
  14034. Print the target sysroot directory that is used during
  14035. compilation. This is the target sysroot specified either at configure
  14036. time or using the \fB\-\-sysroot\fR option, possibly with an extra
  14037. suffix that depends on compilation options. If no target sysroot is
  14038. specified, the option prints nothing.
  14039. .IP "\fB\-print\-sysroot\-headers\-suffix\fR" 4
  14040. .IX Item "-print-sysroot-headers-suffix"
  14041. Print the suffix added to the target sysroot when searching for
  14042. headers, or give an error if the compiler is not configured with such
  14043. a suffix\-\-\-and don't do anything else.
  14044. .IP "\fB\-dumpmachine\fR" 4
  14045. .IX Item "-dumpmachine"
  14046. Print the compiler's target machine (for example,
  14047. \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
  14048. .IP "\fB\-dumpversion\fR" 4
  14049. .IX Item "-dumpversion"
  14050. Print the compiler version (for example, \f(CW3.0\fR, \f(CW6.3.0\fR or \f(CW7\fR)\-\-\-and don't do
  14051. anything else. This is the compiler version used in filesystem paths,
  14052. specs, can be depending on how the compiler has been configured just
  14053. a single number (major version), two numbers separated by dot (major and
  14054. minor version) or three numbers separated by dots (major, minor and patchlevel
  14055. version).
  14056. .IP "\fB\-dumpfullversion\fR" 4
  14057. .IX Item "-dumpfullversion"
  14058. Print the full compiler version, always 3 numbers separated by dots,
  14059. major, minor and patchlevel version.
  14060. .IP "\fB\-dumpspecs\fR" 4
  14061. .IX Item "-dumpspecs"
  14062. Print the compiler's built-in specs\-\-\-and don't do anything else. (This
  14063. is used when \s-1GCC\s0 itself is being built.)
  14064. .SS "Machine-Dependent Options"
  14065. .IX Subsection "Machine-Dependent Options"
  14066. Each target machine supported by \s-1GCC\s0 can have its own options\-\-\-for
  14067. example, to allow you to compile for a particular processor variant or
  14068. \&\s-1ABI,\s0 or to control optimizations specific to that machine. By
  14069. convention, the names of machine-specific options start with
  14070. \&\fB\-m\fR.
  14071. .PP
  14072. Some configurations of the compiler also support additional target-specific
  14073. options, usually for compatibility with other compilers on the same
  14074. platform.
  14075. .PP
  14076. \fIAArch64 Options\fR
  14077. .IX Subsection "AArch64 Options"
  14078. .PP
  14079. These options are defined for AArch64 implementations:
  14080. .IP "\fB\-mabi=\fR\fIname\fR" 4
  14081. .IX Item "-mabi=name"
  14082. Generate code for the specified data model. Permissible values
  14083. are \fBilp32\fR for SysV-like data model where int, long int and pointers
  14084. are 32 bits, and \fBlp64\fR for SysV-like data model where int is 32 bits,
  14085. but long int and pointers are 64 bits.
  14086. .Sp
  14087. The default depends on the specific target configuration. Note that
  14088. the \s-1LP64\s0 and \s-1ILP32\s0 ABIs are not link-compatible; you must compile your
  14089. entire program with the same \s-1ABI,\s0 and link with a compatible set of libraries.
  14090. .IP "\fB\-mbig\-endian\fR" 4
  14091. .IX Item "-mbig-endian"
  14092. Generate big-endian code. This is the default when \s-1GCC\s0 is configured for an
  14093. \&\fBaarch64_be\-*\-*\fR target.
  14094. .IP "\fB\-mgeneral\-regs\-only\fR" 4
  14095. .IX Item "-mgeneral-regs-only"
  14096. Generate code which uses only the general-purpose registers. This will prevent
  14097. the compiler from using floating-point and Advanced \s-1SIMD\s0 registers but will not
  14098. impose any restrictions on the assembler.
  14099. .IP "\fB\-mlittle\-endian\fR" 4
  14100. .IX Item "-mlittle-endian"
  14101. Generate little-endian code. This is the default when \s-1GCC\s0 is configured for an
  14102. \&\fBaarch64\-*\-*\fR but not an \fBaarch64_be\-*\-*\fR target.
  14103. .IP "\fB\-mcmodel=tiny\fR" 4
  14104. .IX Item "-mcmodel=tiny"
  14105. Generate code for the tiny code model. The program and its statically defined
  14106. symbols must be within 1MB of each other. Programs can be statically or
  14107. dynamically linked.
  14108. .IP "\fB\-mcmodel=small\fR" 4
  14109. .IX Item "-mcmodel=small"
  14110. Generate code for the small code model. The program and its statically defined
  14111. symbols must be within 4GB of each other. Programs can be statically or
  14112. dynamically linked. This is the default code model.
  14113. .IP "\fB\-mcmodel=large\fR" 4
  14114. .IX Item "-mcmodel=large"
  14115. Generate code for the large code model. This makes no assumptions about
  14116. addresses and sizes of sections. Programs can be statically linked only.
  14117. .IP "\fB\-mstrict\-align\fR" 4
  14118. .IX Item "-mstrict-align"
  14119. Avoid generating memory accesses that may not be aligned on a natural object
  14120. boundary as described in the architecture specification.
  14121. .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
  14122. .IX Item "-momit-leaf-frame-pointer"
  14123. .PD 0
  14124. .IP "\fB\-mno\-omit\-leaf\-frame\-pointer\fR" 4
  14125. .IX Item "-mno-omit-leaf-frame-pointer"
  14126. .PD
  14127. Omit or keep the frame pointer in leaf functions. The former behavior is the
  14128. default.
  14129. .IP "\fB\-mtls\-dialect=desc\fR" 4
  14130. .IX Item "-mtls-dialect=desc"
  14131. Use \s-1TLS\s0 descriptors as the thread-local storage mechanism for dynamic accesses
  14132. of \s-1TLS\s0 variables. This is the default.
  14133. .IP "\fB\-mtls\-dialect=traditional\fR" 4
  14134. .IX Item "-mtls-dialect=traditional"
  14135. Use traditional \s-1TLS\s0 as the thread-local storage mechanism for dynamic accesses
  14136. of \s-1TLS\s0 variables.
  14137. .IP "\fB\-mtls\-size=\fR\fIsize\fR" 4
  14138. .IX Item "-mtls-size=size"
  14139. Specify bit size of immediate \s-1TLS\s0 offsets. Valid values are 12, 24, 32, 48.
  14140. This option requires binutils 2.26 or newer.
  14141. .IP "\fB\-mfix\-cortex\-a53\-835769\fR" 4
  14142. .IX Item "-mfix-cortex-a53-835769"
  14143. .PD 0
  14144. .IP "\fB\-mno\-fix\-cortex\-a53\-835769\fR" 4
  14145. .IX Item "-mno-fix-cortex-a53-835769"
  14146. .PD
  14147. Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 835769.
  14148. This involves inserting a \s-1NOP\s0 instruction between memory instructions and
  14149. 64\-bit integer multiply-accumulate instructions.
  14150. .IP "\fB\-mfix\-cortex\-a53\-843419\fR" 4
  14151. .IX Item "-mfix-cortex-a53-843419"
  14152. .PD 0
  14153. .IP "\fB\-mno\-fix\-cortex\-a53\-843419\fR" 4
  14154. .IX Item "-mno-fix-cortex-a53-843419"
  14155. .PD
  14156. Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 843419.
  14157. This erratum workaround is made at link time and this will only pass the
  14158. corresponding flag to the linker.
  14159. .IP "\fB\-mlow\-precision\-recip\-sqrt\fR" 4
  14160. .IX Item "-mlow-precision-recip-sqrt"
  14161. .PD 0
  14162. .IP "\fB\-mno\-low\-precision\-recip\-sqrt\fR" 4
  14163. .IX Item "-mno-low-precision-recip-sqrt"
  14164. .PD
  14165. Enable or disable the reciprocal square root approximation.
  14166. This option only has an effect if \fB\-ffast\-math\fR or
  14167. \&\fB\-funsafe\-math\-optimizations\fR is used as well. Enabling this reduces
  14168. precision of reciprocal square root results to about 16 bits for
  14169. single precision and to 32 bits for double precision.
  14170. .IP "\fB\-mlow\-precision\-sqrt\fR" 4
  14171. .IX Item "-mlow-precision-sqrt"
  14172. .PD 0
  14173. .IP "\fB\-mno\-low\-precision\-sqrt\fR" 4
  14174. .IX Item "-mno-low-precision-sqrt"
  14175. .PD
  14176. Enable or disable the square root approximation.
  14177. This option only has an effect if \fB\-ffast\-math\fR or
  14178. \&\fB\-funsafe\-math\-optimizations\fR is used as well. Enabling this reduces
  14179. precision of square root results to about 16 bits for
  14180. single precision and to 32 bits for double precision.
  14181. If enabled, it implies \fB\-mlow\-precision\-recip\-sqrt\fR.
  14182. .IP "\fB\-mlow\-precision\-div\fR" 4
  14183. .IX Item "-mlow-precision-div"
  14184. .PD 0
  14185. .IP "\fB\-mno\-low\-precision\-div\fR" 4
  14186. .IX Item "-mno-low-precision-div"
  14187. .PD
  14188. Enable or disable the division approximation.
  14189. This option only has an effect if \fB\-ffast\-math\fR or
  14190. \&\fB\-funsafe\-math\-optimizations\fR is used as well. Enabling this reduces
  14191. precision of division results to about 16 bits for
  14192. single precision and to 32 bits for double precision.
  14193. .IP "\fB\-march=\fR\fIname\fR" 4
  14194. .IX Item "-march=name"
  14195. Specify the name of the target architecture and, optionally, one or
  14196. more feature modifiers. This option has the form
  14197. \&\fB\-march=\fR\fIarch\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*.
  14198. .Sp
  14199. The permissible values for \fIarch\fR are \fBarmv8\-a\fR,
  14200. \&\fBarmv8.1\-a\fR, \fBarmv8.2\-a\fR, \fBarmv8.3\-a\fR or \fBarmv8.4\-a\fR
  14201. or \fInative\fR.
  14202. .Sp
  14203. The value \fBarmv8.4\-a\fR implies \fBarmv8.3\-a\fR and enables compiler
  14204. support for the ARMv8.4\-A architecture extensions.
  14205. .Sp
  14206. The value \fBarmv8.3\-a\fR implies \fBarmv8.2\-a\fR and enables compiler
  14207. support for the ARMv8.3\-A architecture extensions.
  14208. .Sp
  14209. The value \fBarmv8.2\-a\fR implies \fBarmv8.1\-a\fR and enables compiler
  14210. support for the ARMv8.2\-A architecture extensions.
  14211. .Sp
  14212. The value \fBarmv8.1\-a\fR implies \fBarmv8\-a\fR and enables compiler
  14213. support for the ARMv8.1\-A architecture extension. In particular, it
  14214. enables the \fB+crc\fR, \fB+lse\fR, and \fB+rdma\fR features.
  14215. .Sp
  14216. The value \fBnative\fR is available on native AArch64 GNU/Linux and
  14217. causes the compiler to pick the architecture of the host system. This
  14218. option has no effect if the compiler is unable to recognize the
  14219. architecture of the host system,
  14220. .Sp
  14221. The permissible values for \fIfeature\fR are listed in the sub-section
  14222. on \fBaarch64\-feature\-modifiers,,\fR\fB\-march\fR \fBand\fR \fB\-mcpu\fR
  14223. \&\fBFeature Modifiers\fR. Where conflicting feature modifiers are
  14224. specified, the right-most feature is used.
  14225. .Sp
  14226. \&\s-1GCC\s0 uses \fIname\fR to determine what kind of instructions it can emit
  14227. when generating assembly code. If \fB\-march\fR is specified
  14228. without either of \fB\-mtune\fR or \fB\-mcpu\fR also being
  14229. specified, the code is tuned to perform well across a range of target
  14230. processors implementing the target architecture.
  14231. .IP "\fB\-mtune=\fR\fIname\fR" 4
  14232. .IX Item "-mtune=name"
  14233. Specify the name of the target processor for which \s-1GCC\s0 should tune the
  14234. performance of the code. Permissible values for this option are:
  14235. \&\fBgeneric\fR, \fBcortex\-a35\fR, \fBcortex\-a53\fR, \fBcortex\-a55\fR,
  14236. \&\fBcortex\-a57\fR, \fBcortex\-a72\fR, \fBcortex\-a73\fR, \fBcortex\-a75\fR,
  14237. \&\fBexynos\-m1\fR, \fBfalkor\fR, \fBqdf24xx\fR, \fBsaphira\fR,
  14238. \&\fBxgene1\fR, \fBvulcan\fR, \fBthunderx\fR,
  14239. \&\fBthunderxt88\fR, \fBthunderxt88p1\fR, \fBthunderxt81\fR,
  14240. \&\fBthunderxt83\fR, \fBthunderx2t99\fR, \fBcortex\-a57.cortex\-a53\fR,
  14241. \&\fBcortex\-a72.cortex\-a53\fR, \fBcortex\-a73.cortex\-a35\fR,
  14242. \&\fBcortex\-a73.cortex\-a53\fR, \fBcortex\-a75.cortex\-a55\fR,
  14243. \&\fBnative\fR.
  14244. .Sp
  14245. The values \fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
  14246. \&\fBcortex\-a73.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR,
  14247. \&\fBcortex\-a75.cortex\-a55\fR specify that \s-1GCC\s0 should tune for a
  14248. big.LITTLE system.
  14249. .Sp
  14250. Additionally on native AArch64 GNU/Linux systems the value
  14251. \&\fBnative\fR tunes performance to the host system. This option has no effect
  14252. if the compiler is unable to recognize the processor of the host system.
  14253. .Sp
  14254. Where none of \fB\-mtune=\fR, \fB\-mcpu=\fR or \fB\-march=\fR
  14255. are specified, the code is tuned to perform well across a range
  14256. of target processors.
  14257. .Sp
  14258. This option cannot be suffixed by feature modifiers.
  14259. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  14260. .IX Item "-mcpu=name"
  14261. Specify the name of the target processor, optionally suffixed by one
  14262. or more feature modifiers. This option has the form
  14263. \&\fB\-mcpu=\fR\fIcpu\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*, where
  14264. the permissible values for \fIcpu\fR are the same as those available
  14265. for \fB\-mtune\fR. The permissible values for \fIfeature\fR are
  14266. documented in the sub-section on
  14267. \&\fBaarch64\-feature\-modifiers,,\fR\fB\-march\fR \fBand\fR \fB\-mcpu\fR
  14268. \&\fBFeature Modifiers\fR. Where conflicting feature modifiers are
  14269. specified, the right-most feature is used.
  14270. .Sp
  14271. \&\s-1GCC\s0 uses \fIname\fR to determine what kind of instructions it can emit when
  14272. generating assembly code (as if by \fB\-march\fR) and to determine
  14273. the target processor for which to tune for performance (as if
  14274. by \fB\-mtune\fR). Where this option is used in conjunction
  14275. with \fB\-march\fR or \fB\-mtune\fR, those options take precedence
  14276. over the appropriate part of this option.
  14277. .IP "\fB\-moverride=\fR\fIstring\fR" 4
  14278. .IX Item "-moverride=string"
  14279. Override tuning decisions made by the back-end in response to a
  14280. \&\fB\-mtune=\fR switch. The syntax, semantics, and accepted values
  14281. for \fIstring\fR in this option are not guaranteed to be consistent
  14282. across releases.
  14283. .Sp
  14284. This option is only intended to be useful when developing \s-1GCC.\s0
  14285. .IP "\fB\-mverbose\-cost\-dump\fR" 4
  14286. .IX Item "-mverbose-cost-dump"
  14287. Enable verbose cost model dumping in the debug dump files. This option is
  14288. provided for use in debugging the compiler.
  14289. .IP "\fB\-mpc\-relative\-literal\-loads\fR" 4
  14290. .IX Item "-mpc-relative-literal-loads"
  14291. .PD 0
  14292. .IP "\fB\-mno\-pc\-relative\-literal\-loads\fR" 4
  14293. .IX Item "-mno-pc-relative-literal-loads"
  14294. .PD
  14295. Enable or disable PC-relative literal loads. With this option literal pools are
  14296. accessed using a single instruction and emitted after each function. This
  14297. limits the maximum size of functions to 1MB. This is enabled by default for
  14298. \&\fB\-mcmodel=tiny\fR.
  14299. .IP "\fB\-msign\-return\-address=\fR\fIscope\fR" 4
  14300. .IX Item "-msign-return-address=scope"
  14301. Select the function scope on which return address signing will be applied.
  14302. Permissible values are \fBnone\fR, which disables return address signing,
  14303. \&\fBnon-leaf\fR, which enables pointer signing for functions which are not leaf
  14304. functions, and \fBall\fR, which enables pointer signing for all functions. The
  14305. default value is \fBnone\fR.
  14306. .IP "\fB\-msve\-vector\-bits=\fR\fIbits\fR" 4
  14307. .IX Item "-msve-vector-bits=bits"
  14308. Specify the number of bits in an \s-1SVE\s0 vector register. This option only has
  14309. an effect when \s-1SVE\s0 is enabled.
  14310. .Sp
  14311. \&\s-1GCC\s0 supports two forms of \s-1SVE\s0 code generation: \*(L"vector-length
  14312. agnostic\*(R" output that works with any size of vector register and
  14313. \&\*(L"vector-length specific\*(R" output that allows \s-1GCC\s0 to make assumptions
  14314. about the vector length when it is useful for optimization reasons.
  14315. The possible values of \fBbits\fR are: \fBscalable\fR, \fB128\fR,
  14316. \&\fB256\fR, \fB512\fR, \fB1024\fR and \fB2048\fR.
  14317. Specifying \fBscalable\fR selects vector-length agnostic
  14318. output. At present \fB\-msve\-vector\-bits=128\fR also generates vector-length
  14319. agnostic output. All other values generate vector-length specific code.
  14320. The behavior of these values may change in future releases and no value except
  14321. \&\fBscalable\fR should be relied on for producing code that is portable across
  14322. different hardware \s-1SVE\s0 vector lengths.
  14323. .Sp
  14324. The default is \fB\-msve\-vector\-bits=scalable\fR, which produces
  14325. vector-length agnostic code.
  14326. .PP
  14327. \fB\-march\fR and \fB\-mcpu\fR Feature Modifiers
  14328. .IX Subsection "-march and -mcpu Feature Modifiers"
  14329. .PP
  14330. Feature modifiers used with \fB\-march\fR and \fB\-mcpu\fR can be any of
  14331. the following and their inverses \fBno\fR\fIfeature\fR:
  14332. .IP "\fBcrc\fR" 4
  14333. .IX Item "crc"
  14334. Enable \s-1CRC\s0 extension. This is on by default for
  14335. \&\fB\-march=armv8.1\-a\fR.
  14336. .IP "\fBcrypto\fR" 4
  14337. .IX Item "crypto"
  14338. Enable Crypto extension. This also enables Advanced \s-1SIMD\s0 and floating-point
  14339. instructions.
  14340. .IP "\fBfp\fR" 4
  14341. .IX Item "fp"
  14342. Enable floating-point instructions. This is on by default for all possible
  14343. values for options \fB\-march\fR and \fB\-mcpu\fR.
  14344. .IP "\fBsimd\fR" 4
  14345. .IX Item "simd"
  14346. Enable Advanced \s-1SIMD\s0 instructions. This also enables floating-point
  14347. instructions. This is on by default for all possible values for options
  14348. \&\fB\-march\fR and \fB\-mcpu\fR.
  14349. .IP "\fBsve\fR" 4
  14350. .IX Item "sve"
  14351. Enable Scalable Vector Extension instructions. This also enables Advanced
  14352. \&\s-1SIMD\s0 and floating-point instructions.
  14353. .IP "\fBlse\fR" 4
  14354. .IX Item "lse"
  14355. Enable Large System Extension instructions. This is on by default for
  14356. \&\fB\-march=armv8.1\-a\fR.
  14357. .IP "\fBrdma\fR" 4
  14358. .IX Item "rdma"
  14359. Enable Round Double Multiply Accumulate instructions. This is on by default
  14360. for \fB\-march=armv8.1\-a\fR.
  14361. .IP "\fBfp16\fR" 4
  14362. .IX Item "fp16"
  14363. Enable \s-1FP16\s0 extension. This also enables floating-point instructions.
  14364. .IP "\fBfp16fml\fR" 4
  14365. .IX Item "fp16fml"
  14366. Enable \s-1FP16\s0 fmla extension. This also enables \s-1FP16\s0 extensions and
  14367. 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.
  14368. .IP "\fBrcpc\fR" 4
  14369. .IX Item "rcpc"
  14370. Enable the RcPc extension. This does not change code generation from \s-1GCC,\s0
  14371. but is passed on to the assembler, enabling inline asm statements to use
  14372. instructions from the RcPc extension.
  14373. .IP "\fBdotprod\fR" 4
  14374. .IX Item "dotprod"
  14375. Enable the Dot Product extension. This also enables Advanced \s-1SIMD\s0 instructions.
  14376. .IP "\fBaes\fR" 4
  14377. .IX Item "aes"
  14378. Enable the Armv8\-a aes and pmull crypto extension. This also enables Advanced
  14379. \&\s-1SIMD\s0 instructions.
  14380. .IP "\fBsha2\fR" 4
  14381. .IX Item "sha2"
  14382. Enable the Armv8\-a sha2 crypto extension. This also enables Advanced \s-1SIMD\s0 instructions.
  14383. .IP "\fBsha3\fR" 4
  14384. .IX Item "sha3"
  14385. Enable the sha512 and sha3 crypto extension. This also enables Advanced \s-1SIMD\s0
  14386. instructions. Use of this option with architectures prior to Armv8.2\-A is not supported.
  14387. .IP "\fBsm4\fR" 4
  14388. .IX Item "sm4"
  14389. Enable the sm3 and sm4 crypto extension. This also enables Advanced \s-1SIMD\s0 instructions.
  14390. Use of this option with architectures prior to Armv8.2\-A is not supported.
  14391. .PP
  14392. Feature \fBcrypto\fR implies \fBaes\fR, \fBsha2\fR, and \fBsimd\fR,
  14393. which implies \fBfp\fR.
  14394. Conversely, \fBnofp\fR implies \fBnosimd\fR, which implies
  14395. \&\fBnocrypto\fR, \fBnoaes\fR and \fBnosha2\fR.
  14396. .PP
  14397. \fIAdapteva Epiphany Options\fR
  14398. .IX Subsection "Adapteva Epiphany Options"
  14399. .PP
  14400. These \fB\-m\fR options are defined for Adapteva Epiphany:
  14401. .IP "\fB\-mhalf\-reg\-file\fR" 4
  14402. .IX Item "-mhalf-reg-file"
  14403. Don't allocate any register in the range \f(CW\*(C`r32\*(C'\fR...\f(CW\*(C`r63\*(C'\fR.
  14404. That allows code to run on hardware variants that lack these registers.
  14405. .IP "\fB\-mprefer\-short\-insn\-regs\fR" 4
  14406. .IX Item "-mprefer-short-insn-regs"
  14407. Preferentially allocate registers that allow short instruction generation.
  14408. This can result in increased instruction count, so this may either reduce or
  14409. increase overall code size.
  14410. .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
  14411. .IX Item "-mbranch-cost=num"
  14412. Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
  14413. This cost is only a heuristic and is not guaranteed to produce
  14414. consistent results across releases.
  14415. .IP "\fB\-mcmove\fR" 4
  14416. .IX Item "-mcmove"
  14417. Enable the generation of conditional moves.
  14418. .IP "\fB\-mnops=\fR\fInum\fR" 4
  14419. .IX Item "-mnops=num"
  14420. Emit \fInum\fR NOPs before every other generated instruction.
  14421. .IP "\fB\-mno\-soft\-cmpsf\fR" 4
  14422. .IX Item "-mno-soft-cmpsf"
  14423. For single-precision floating-point comparisons, emit an \f(CW\*(C`fsub\*(C'\fR instruction
  14424. and test the flags. This is faster than a software comparison, but can
  14425. get incorrect results in the presence of NaNs, or when two different small
  14426. numbers are compared such that their difference is calculated as zero.
  14427. The default is \fB\-msoft\-cmpsf\fR, which uses slower, but IEEE-compliant,
  14428. software comparisons.
  14429. .IP "\fB\-mstack\-offset=\fR\fInum\fR" 4
  14430. .IX Item "-mstack-offset=num"
  14431. Set the offset between the top of the stack and the stack pointer.
  14432. E.g., a value of 8 means that the eight bytes in the range \f(CW\*(C`sp+0...sp+7\*(C'\fR
  14433. can be used by leaf functions without stack allocation.
  14434. Values other than \fB8\fR or \fB16\fR are untested and unlikely to work.
  14435. Note also that this option changes the \s-1ABI\s0; compiling a program with a
  14436. different stack offset than the libraries have been compiled with
  14437. generally does not work.
  14438. This option can be useful if you want to evaluate if a different stack
  14439. offset would give you better code, but to actually use a different stack
  14440. offset to build working programs, it is recommended to configure the
  14441. toolchain with the appropriate \fB\-\-with\-stack\-offset=\fR\fInum\fR option.
  14442. .IP "\fB\-mno\-round\-nearest\fR" 4
  14443. .IX Item "-mno-round-nearest"
  14444. Make the scheduler assume that the rounding mode has been set to
  14445. truncating. The default is \fB\-mround\-nearest\fR.
  14446. .IP "\fB\-mlong\-calls\fR" 4
  14447. .IX Item "-mlong-calls"
  14448. If not otherwise specified by an attribute, assume all calls might be beyond
  14449. the offset range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, and therefore load the
  14450. function address into a register before performing a (otherwise direct) call.
  14451. This is the default.
  14452. .IP "\fB\-mshort\-calls\fR" 4
  14453. .IX Item "-mshort-calls"
  14454. If not otherwise specified by an attribute, assume all direct calls are
  14455. in the range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, so use these instructions
  14456. for direct calls. The default is \fB\-mlong\-calls\fR.
  14457. .IP "\fB\-msmall16\fR" 4
  14458. .IX Item "-msmall16"
  14459. Assume addresses can be loaded as 16\-bit unsigned values. This does not
  14460. apply to function addresses for which \fB\-mlong\-calls\fR semantics
  14461. are in effect.
  14462. .IP "\fB\-mfp\-mode=\fR\fImode\fR" 4
  14463. .IX Item "-mfp-mode=mode"
  14464. Set the prevailing mode of the floating-point unit.
  14465. This determines the floating-point mode that is provided and expected
  14466. at function call and return time. Making this mode match the mode you
  14467. predominantly need at function start can make your programs smaller and
  14468. faster by avoiding unnecessary mode switches.
  14469. .Sp
  14470. \&\fImode\fR can be set to one the following values:
  14471. .RS 4
  14472. .IP "\fBcaller\fR" 4
  14473. .IX Item "caller"
  14474. Any mode at function entry is valid, and retained or restored when
  14475. the function returns, and when it calls other functions.
  14476. This mode is useful for compiling libraries or other compilation units
  14477. you might want to incorporate into different programs with different
  14478. prevailing \s-1FPU\s0 modes, and the convenience of being able to use a single
  14479. object file outweighs the size and speed overhead for any extra
  14480. mode switching that might be needed, compared with what would be needed
  14481. with a more specific choice of prevailing \s-1FPU\s0 mode.
  14482. .IP "\fBtruncate\fR" 4
  14483. .IX Item "truncate"
  14484. This is the mode used for floating-point calculations with
  14485. truncating (i.e. round towards zero) rounding mode. That includes
  14486. conversion from floating point to integer.
  14487. .IP "\fBround-nearest\fR" 4
  14488. .IX Item "round-nearest"
  14489. This is the mode used for floating-point calculations with
  14490. round-to-nearest-or-even rounding mode.
  14491. .IP "\fBint\fR" 4
  14492. .IX Item "int"
  14493. This is the mode used to perform integer calculations in the \s-1FPU,\s0 e.g.
  14494. integer multiply, or integer multiply-and-accumulate.
  14495. .RE
  14496. .RS 4
  14497. .Sp
  14498. The default is \fB\-mfp\-mode=caller\fR
  14499. .RE
  14500. .IP "\fB\-mnosplit\-lohi\fR" 4
  14501. .IX Item "-mnosplit-lohi"
  14502. .PD 0
  14503. .IP "\fB\-mno\-postinc\fR" 4
  14504. .IX Item "-mno-postinc"
  14505. .IP "\fB\-mno\-postmodify\fR" 4
  14506. .IX Item "-mno-postmodify"
  14507. .PD
  14508. Code generation tweaks that disable, respectively, splitting of 32\-bit
  14509. loads, generation of post-increment addresses, and generation of
  14510. post-modify addresses. The defaults are \fBmsplit-lohi\fR,
  14511. \&\fB\-mpost\-inc\fR, and \fB\-mpost\-modify\fR.
  14512. .IP "\fB\-mnovect\-double\fR" 4
  14513. .IX Item "-mnovect-double"
  14514. Change the preferred \s-1SIMD\s0 mode to SImode. The default is
  14515. \&\fB\-mvect\-double\fR, which uses DImode as preferred \s-1SIMD\s0 mode.
  14516. .IP "\fB\-max\-vect\-align=\fR\fInum\fR" 4
  14517. .IX Item "-max-vect-align=num"
  14518. The maximum alignment for \s-1SIMD\s0 vector mode types.
  14519. \&\fInum\fR may be 4 or 8. The default is 8.
  14520. Note that this is an \s-1ABI\s0 change, even though many library function
  14521. interfaces are unaffected if they don't use \s-1SIMD\s0 vector modes
  14522. in places that affect size and/or alignment of relevant types.
  14523. .IP "\fB\-msplit\-vecmove\-early\fR" 4
  14524. .IX Item "-msplit-vecmove-early"
  14525. Split vector moves into single word moves before reload. In theory this
  14526. can give better register allocation, but so far the reverse seems to be
  14527. generally the case.
  14528. .IP "\fB\-m1reg\-\fR\fIreg\fR" 4
  14529. .IX Item "-m1reg-reg"
  14530. Specify a register to hold the constant \-1, which makes loading small negative
  14531. constants and certain bitmasks faster.
  14532. Allowable values for \fIreg\fR are \fBr43\fR and \fBr63\fR,
  14533. which specify use of that register as a fixed register,
  14534. and \fBnone\fR, which means that no register is used for this
  14535. purpose. The default is \fB\-m1reg\-none\fR.
  14536. .PP
  14537. \fI\s-1ARC\s0 Options\fR
  14538. .IX Subsection "ARC Options"
  14539. .PP
  14540. The following options control the architecture variant for which code
  14541. is being compiled:
  14542. .IP "\fB\-mbarrel\-shifter\fR" 4
  14543. .IX Item "-mbarrel-shifter"
  14544. Generate instructions supported by barrel shifter. This is the default
  14545. unless \fB\-mcpu=ARC601\fR or \fB\-mcpu=ARCEM\fR is in effect.
  14546. .IP "\fB\-mjli\-always\fR" 4
  14547. .IX Item "-mjli-always"
  14548. Force to call a function using jli_s instruction. This option is
  14549. valid only for ARCv2 architecture.
  14550. .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
  14551. .IX Item "-mcpu=cpu"
  14552. Set architecture type, register usage, and instruction scheduling
  14553. parameters for \fIcpu\fR. There are also shortcut alias options
  14554. available for backward compatibility and convenience. Supported
  14555. values for \fIcpu\fR are
  14556. .RS 4
  14557. .IP "\fBarc600\fR" 4
  14558. .IX Item "arc600"
  14559. Compile for \s-1ARC600.\s0 Aliases: \fB\-mA6\fR, \fB\-mARC600\fR.
  14560. .IP "\fBarc601\fR" 4
  14561. .IX Item "arc601"
  14562. Compile for \s-1ARC601.\s0 Alias: \fB\-mARC601\fR.
  14563. .IP "\fBarc700\fR" 4
  14564. .IX Item "arc700"
  14565. Compile for \s-1ARC700.\s0 Aliases: \fB\-mA7\fR, \fB\-mARC700\fR.
  14566. This is the default when configured with \fB\-\-with\-cpu=arc700\fR.
  14567. .IP "\fBarcem\fR" 4
  14568. .IX Item "arcem"
  14569. Compile for \s-1ARC EM.\s0
  14570. .IP "\fBarchs\fR" 4
  14571. .IX Item "archs"
  14572. Compile for \s-1ARC HS.\s0
  14573. .IP "\fBem\fR" 4
  14574. .IX Item "em"
  14575. Compile for \s-1ARC EM CPU\s0 with no hardware extensions.
  14576. .IP "\fBem4\fR" 4
  14577. .IX Item "em4"
  14578. Compile for \s-1ARC EM4 CPU.\s0
  14579. .IP "\fBem4_dmips\fR" 4
  14580. .IX Item "em4_dmips"
  14581. Compile for \s-1ARC EM4 DMIPS CPU.\s0
  14582. .IP "\fBem4_fpus\fR" 4
  14583. .IX Item "em4_fpus"
  14584. Compile for \s-1ARC EM4 DMIPS CPU\s0 with the single-precision floating-point
  14585. extension.
  14586. .IP "\fBem4_fpuda\fR" 4
  14587. .IX Item "em4_fpuda"
  14588. Compile for \s-1ARC EM4 DMIPS CPU\s0 with single-precision floating-point and
  14589. double assist instructions.
  14590. .IP "\fBhs\fR" 4
  14591. .IX Item "hs"
  14592. Compile for \s-1ARC HS CPU\s0 with no hardware extensions except the atomic
  14593. instructions.
  14594. .IP "\fBhs34\fR" 4
  14595. .IX Item "hs34"
  14596. Compile for \s-1ARC HS34 CPU.\s0
  14597. .IP "\fBhs38\fR" 4
  14598. .IX Item "hs38"
  14599. Compile for \s-1ARC HS38 CPU.\s0
  14600. .IP "\fBhs38_linux\fR" 4
  14601. .IX Item "hs38_linux"
  14602. Compile for \s-1ARC HS38 CPU\s0 with all hardware extensions on.
  14603. .IP "\fBarc600_norm\fR" 4
  14604. .IX Item "arc600_norm"
  14605. Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR instructions enabled.
  14606. .IP "\fBarc600_mul32x16\fR" 4
  14607. .IX Item "arc600_mul32x16"
  14608. Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and 32x16\-bit multiply
  14609. instructions enabled.
  14610. .IP "\fBarc600_mul64\fR" 4
  14611. .IX Item "arc600_mul64"
  14612. Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and \f(CW\*(C`mul64\*(C'\fR\-family
  14613. instructions enabled.
  14614. .IP "\fBarc601_norm\fR" 4
  14615. .IX Item "arc601_norm"
  14616. Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR instructions enabled.
  14617. .IP "\fBarc601_mul32x16\fR" 4
  14618. .IX Item "arc601_mul32x16"
  14619. Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and 32x16\-bit multiply
  14620. instructions enabled.
  14621. .IP "\fBarc601_mul64\fR" 4
  14622. .IX Item "arc601_mul64"
  14623. Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and \f(CW\*(C`mul64\*(C'\fR\-family
  14624. instructions enabled.
  14625. .IP "\fBnps400\fR" 4
  14626. .IX Item "nps400"
  14627. Compile for \s-1ARC 700\s0 on \s-1NPS400\s0 chip.
  14628. .IP "\fBem_mini\fR" 4
  14629. .IX Item "em_mini"
  14630. Compile for \s-1ARC EM\s0 minimalist configuration featuring reduced register
  14631. set.
  14632. .RE
  14633. .RS 4
  14634. .RE
  14635. .IP "\fB\-mdpfp\fR" 4
  14636. .IX Item "-mdpfp"
  14637. .PD 0
  14638. .IP "\fB\-mdpfp\-compact\fR" 4
  14639. .IX Item "-mdpfp-compact"
  14640. .PD
  14641. Generate double-precision \s-1FPX\s0 instructions, tuned for the compact
  14642. implementation.
  14643. .IP "\fB\-mdpfp\-fast\fR" 4
  14644. .IX Item "-mdpfp-fast"
  14645. Generate double-precision \s-1FPX\s0 instructions, tuned for the fast
  14646. implementation.
  14647. .IP "\fB\-mno\-dpfp\-lrsr\fR" 4
  14648. .IX Item "-mno-dpfp-lrsr"
  14649. Disable \f(CW\*(C`lr\*(C'\fR and \f(CW\*(C`sr\*(C'\fR instructions from using \s-1FPX\s0 extension
  14650. aux registers.
  14651. .IP "\fB\-mea\fR" 4
  14652. .IX Item "-mea"
  14653. Generate extended arithmetic instructions. Currently only
  14654. \&\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
  14655. supported. This is always enabled for \fB\-mcpu=ARC700\fR.
  14656. .IP "\fB\-mno\-mpy\fR" 4
  14657. .IX Item "-mno-mpy"
  14658. Do not generate \f(CW\*(C`mpy\*(C'\fR\-family instructions for \s-1ARC700.\s0 This option is
  14659. deprecated.
  14660. .IP "\fB\-mmul32x16\fR" 4
  14661. .IX Item "-mmul32x16"
  14662. Generate 32x16\-bit multiply and multiply-accumulate instructions.
  14663. .IP "\fB\-mmul64\fR" 4
  14664. .IX Item "-mmul64"
  14665. Generate \f(CW\*(C`mul64\*(C'\fR and \f(CW\*(C`mulu64\*(C'\fR instructions.
  14666. Only valid for \fB\-mcpu=ARC600\fR.
  14667. .IP "\fB\-mnorm\fR" 4
  14668. .IX Item "-mnorm"
  14669. Generate \f(CW\*(C`norm\*(C'\fR instructions. This is the default if \fB\-mcpu=ARC700\fR
  14670. is in effect.
  14671. .IP "\fB\-mspfp\fR" 4
  14672. .IX Item "-mspfp"
  14673. .PD 0
  14674. .IP "\fB\-mspfp\-compact\fR" 4
  14675. .IX Item "-mspfp-compact"
  14676. .PD
  14677. Generate single-precision \s-1FPX\s0 instructions, tuned for the compact
  14678. implementation.
  14679. .IP "\fB\-mspfp\-fast\fR" 4
  14680. .IX Item "-mspfp-fast"
  14681. Generate single-precision \s-1FPX\s0 instructions, tuned for the fast
  14682. implementation.
  14683. .IP "\fB\-msimd\fR" 4
  14684. .IX Item "-msimd"
  14685. Enable generation of \s-1ARC SIMD\s0 instructions via target-specific
  14686. builtins. Only valid for \fB\-mcpu=ARC700\fR.
  14687. .IP "\fB\-msoft\-float\fR" 4
  14688. .IX Item "-msoft-float"
  14689. This option ignored; it is provided for compatibility purposes only.
  14690. Software floating-point code is emitted by default, and this default
  14691. can overridden by \s-1FPX\s0 options; \fB\-mspfp\fR, \fB\-mspfp\-compact\fR, or
  14692. \&\fB\-mspfp\-fast\fR for single precision, and \fB\-mdpfp\fR,
  14693. \&\fB\-mdpfp\-compact\fR, or \fB\-mdpfp\-fast\fR for double precision.
  14694. .IP "\fB\-mswap\fR" 4
  14695. .IX Item "-mswap"
  14696. Generate \f(CW\*(C`swap\*(C'\fR instructions.
  14697. .IP "\fB\-matomic\fR" 4
  14698. .IX Item "-matomic"
  14699. This enables use of the locked load/store conditional extension to implement
  14700. atomic memory built-in functions. Not available for \s-1ARC\s0 6xx or \s-1ARC
  14701. EM\s0 cores.
  14702. .IP "\fB\-mdiv\-rem\fR" 4
  14703. .IX Item "-mdiv-rem"
  14704. Enable \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`rem\*(C'\fR instructions for ARCv2 cores.
  14705. .IP "\fB\-mcode\-density\fR" 4
  14706. .IX Item "-mcode-density"
  14707. Enable code density instructions for \s-1ARC EM.\s0
  14708. This option is on by default for \s-1ARC HS.\s0
  14709. .IP "\fB\-mll64\fR" 4
  14710. .IX Item "-mll64"
  14711. Enable double load/store operations for \s-1ARC HS\s0 cores.
  14712. .IP "\fB\-mtp\-regno=\fR\fIregno\fR" 4
  14713. .IX Item "-mtp-regno=regno"
  14714. Specify thread pointer register number.
  14715. .IP "\fB\-mmpy\-option=\fR\fImulto\fR" 4
  14716. .IX Item "-mmpy-option=multo"
  14717. Compile ARCv2 code with a multiplier design option. You can specify
  14718. the option using either a string or numeric value for \fImulto\fR.
  14719. \&\fBwlh1\fR is the default value. The recognized values are:
  14720. .RS 4
  14721. .IP "\fB0\fR" 4
  14722. .IX Item "0"
  14723. .PD 0
  14724. .IP "\fBnone\fR" 4
  14725. .IX Item "none"
  14726. .PD
  14727. No multiplier available.
  14728. .IP "\fB1\fR" 4
  14729. .IX Item "1"
  14730. .PD 0
  14731. .IP "\fBw\fR" 4
  14732. .IX Item "w"
  14733. .PD
  14734. 16x16 multiplier, fully pipelined.
  14735. The following instructions are enabled: \f(CW\*(C`mpyw\*(C'\fR and \f(CW\*(C`mpyuw\*(C'\fR.
  14736. .IP "\fB2\fR" 4
  14737. .IX Item "2"
  14738. .PD 0
  14739. .IP "\fBwlh1\fR" 4
  14740. .IX Item "wlh1"
  14741. .PD
  14742. 32x32 multiplier, fully
  14743. pipelined (1 stage). The following instructions are additionally
  14744. 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.
  14745. .IP "\fB3\fR" 4
  14746. .IX Item "3"
  14747. .PD 0
  14748. .IP "\fBwlh2\fR" 4
  14749. .IX Item "wlh2"
  14750. .PD
  14751. 32x32 multiplier, fully pipelined
  14752. (2 stages). The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
  14753. \&\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.
  14754. .IP "\fB4\fR" 4
  14755. .IX Item "4"
  14756. .PD 0
  14757. .IP "\fBwlh3\fR" 4
  14758. .IX Item "wlh3"
  14759. .PD
  14760. Two 16x16 multipliers, blocking,
  14761. sequential. The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
  14762. \&\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.
  14763. .IP "\fB5\fR" 4
  14764. .IX Item "5"
  14765. .PD 0
  14766. .IP "\fBwlh4\fR" 4
  14767. .IX Item "wlh4"
  14768. .PD
  14769. One 16x16 multiplier, blocking,
  14770. sequential. The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
  14771. \&\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.
  14772. .IP "\fB6\fR" 4
  14773. .IX Item "6"
  14774. .PD 0
  14775. .IP "\fBwlh5\fR" 4
  14776. .IX Item "wlh5"
  14777. .PD
  14778. One 32x4 multiplier, blocking,
  14779. sequential. The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
  14780. \&\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.
  14781. .IP "\fB7\fR" 4
  14782. .IX Item "7"
  14783. .PD 0
  14784. .IP "\fBplus_dmpy\fR" 4
  14785. .IX Item "plus_dmpy"
  14786. .PD
  14787. \&\s-1ARC HS SIMD\s0 support.
  14788. .IP "\fB8\fR" 4
  14789. .IX Item "8"
  14790. .PD 0
  14791. .IP "\fBplus_macd\fR" 4
  14792. .IX Item "plus_macd"
  14793. .PD
  14794. \&\s-1ARC HS SIMD\s0 support.
  14795. .IP "\fB9\fR" 4
  14796. .IX Item "9"
  14797. .PD 0
  14798. .IP "\fBplus_qmacw\fR" 4
  14799. .IX Item "plus_qmacw"
  14800. .PD
  14801. \&\s-1ARC HS SIMD\s0 support.
  14802. .RE
  14803. .RS 4
  14804. .Sp
  14805. This option is only available for ARCv2 cores.
  14806. .RE
  14807. .IP "\fB\-mfpu=\fR\fIfpu\fR" 4
  14808. .IX Item "-mfpu=fpu"
  14809. Enables support for specific floating-point hardware extensions for ARCv2
  14810. cores. Supported values for \fIfpu\fR are:
  14811. .RS 4
  14812. .IP "\fBfpus\fR" 4
  14813. .IX Item "fpus"
  14814. Enables support for single-precision floating-point hardware
  14815. extensions.
  14816. .IP "\fBfpud\fR" 4
  14817. .IX Item "fpud"
  14818. Enables support for double-precision floating-point hardware
  14819. extensions. The single-precision floating-point extension is also
  14820. enabled. Not available for \s-1ARC EM.\s0
  14821. .IP "\fBfpuda\fR" 4
  14822. .IX Item "fpuda"
  14823. Enables support for double-precision floating-point hardware
  14824. extensions using double-precision assist instructions. The single-precision
  14825. floating-point extension is also enabled. This option is
  14826. only available for \s-1ARC EM.\s0
  14827. .IP "\fBfpuda_div\fR" 4
  14828. .IX Item "fpuda_div"
  14829. Enables support for double-precision floating-point hardware
  14830. extensions using double-precision assist instructions.
  14831. The single-precision floating-point, square-root, and divide
  14832. extensions are also enabled. This option is
  14833. only available for \s-1ARC EM.\s0
  14834. .IP "\fBfpuda_fma\fR" 4
  14835. .IX Item "fpuda_fma"
  14836. Enables support for double-precision floating-point hardware
  14837. extensions using double-precision assist instructions.
  14838. The single-precision floating-point and fused multiply and add
  14839. hardware extensions are also enabled. This option is
  14840. only available for \s-1ARC EM.\s0
  14841. .IP "\fBfpuda_all\fR" 4
  14842. .IX Item "fpuda_all"
  14843. Enables support for double-precision floating-point hardware
  14844. extensions using double-precision assist instructions.
  14845. All single-precision floating-point hardware extensions are also
  14846. enabled. This option is only available for \s-1ARC EM.\s0
  14847. .IP "\fBfpus_div\fR" 4
  14848. .IX Item "fpus_div"
  14849. Enables support for single-precision floating-point, square-root and divide
  14850. hardware extensions.
  14851. .IP "\fBfpud_div\fR" 4
  14852. .IX Item "fpud_div"
  14853. Enables support for double-precision floating-point, square-root and divide
  14854. hardware extensions. This option
  14855. includes option \fBfpus_div\fR. Not available for \s-1ARC EM.\s0
  14856. .IP "\fBfpus_fma\fR" 4
  14857. .IX Item "fpus_fma"
  14858. Enables support for single-precision floating-point and
  14859. fused multiply and add hardware extensions.
  14860. .IP "\fBfpud_fma\fR" 4
  14861. .IX Item "fpud_fma"
  14862. Enables support for double-precision floating-point and
  14863. fused multiply and add hardware extensions. This option
  14864. includes option \fBfpus_fma\fR. Not available for \s-1ARC EM.\s0
  14865. .IP "\fBfpus_all\fR" 4
  14866. .IX Item "fpus_all"
  14867. Enables support for all single-precision floating-point hardware
  14868. extensions.
  14869. .IP "\fBfpud_all\fR" 4
  14870. .IX Item "fpud_all"
  14871. Enables support for all single\- and double-precision floating-point
  14872. hardware extensions. Not available for \s-1ARC EM.\s0
  14873. .RE
  14874. .RS 4
  14875. .RE
  14876. .IP "\fB\-mirq\-ctrl\-saved=\fR\fIregister-range\fR\fB,\fR \fIblink\fR\fB,\fR \fIlp_count\fR" 4
  14877. .IX Item "-mirq-ctrl-saved=register-range, blink, lp_count"
  14878. Specifies general-purposes registers that the processor automatically
  14879. saves/restores on interrupt entry and exit. \fIregister-range\fR is
  14880. specified as two registers separated by a dash. The register range
  14881. always starts with \f(CW\*(C`r0\*(C'\fR, the upper limit is \f(CW\*(C`fp\*(C'\fR register.
  14882. \&\fIblink\fR and \fIlp_count\fR are optional. This option is only
  14883. valid for \s-1ARC EM\s0 and \s-1ARC HS\s0 cores.
  14884. .IP "\fB\-mrgf\-banked\-regs=\fR\fInumber\fR" 4
  14885. .IX Item "-mrgf-banked-regs=number"
  14886. Specifies the number of registers replicated in second register bank
  14887. on entry to fast interrupt. Fast interrupts are interrupts with the
  14888. highest priority level P0. These interrupts save only \s-1PC\s0 and \s-1STATUS32\s0
  14889. registers to avoid memory transactions during interrupt entry and exit
  14890. sequences. Use this option when you are using fast interrupts in an
  14891. \&\s-1ARC V2\s0 family processor. Permitted values are 4, 8, 16, and 32.
  14892. .IP "\fB\-mlpc\-width=\fR\fIwidth\fR" 4
  14893. .IX Item "-mlpc-width=width"
  14894. Specify the width of the \f(CW\*(C`lp_count\*(C'\fR register. Valid values for
  14895. \&\fIwidth\fR are 8, 16, 20, 24, 28 and 32 bits. The default width is
  14896. fixed to 32 bits. If the width is less than 32, the compiler does not
  14897. attempt to transform loops in your program to use the zero-delay loop
  14898. mechanism unless it is known that the \f(CW\*(C`lp_count\*(C'\fR register can
  14899. hold the required loop-counter value. Depending on the width
  14900. specified, the compiler and run-time library might continue to use the
  14901. loop mechanism for various needs. This option defines macro
  14902. \&\f(CW\*(C`_\|_ARC_LPC_WIDTH_\|_\*(C'\fR with the value of \fIwidth\fR.
  14903. .IP "\fB\-mrf16\fR" 4
  14904. .IX Item "-mrf16"
  14905. This option instructs the compiler to generate code for a 16\-entry
  14906. register file. This option defines the \f(CW\*(C`_\|_ARC_RF16_\|_\*(C'\fR
  14907. preprocessor macro.
  14908. .PP
  14909. The following options are passed through to the assembler, and also
  14910. define preprocessor macro symbols.
  14911. .IP "\fB\-mdsp\-packa\fR" 4
  14912. .IX Item "-mdsp-packa"
  14913. Passed down to the assembler to enable the \s-1DSP\s0 Pack A extensions.
  14914. Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdsp_packa\*(C'\fR. This option is
  14915. deprecated.
  14916. .IP "\fB\-mdvbf\fR" 4
  14917. .IX Item "-mdvbf"
  14918. Passed down to the assembler to enable the dual Viterbi butterfly
  14919. extension. Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdvbf\*(C'\fR. This
  14920. option is deprecated.
  14921. .IP "\fB\-mlock\fR" 4
  14922. .IX Item "-mlock"
  14923. Passed down to the assembler to enable the locked load/store
  14924. conditional extension. Also sets the preprocessor symbol
  14925. \&\f(CW\*(C`_\|_Xlock\*(C'\fR.
  14926. .IP "\fB\-mmac\-d16\fR" 4
  14927. .IX Item "-mmac-d16"
  14928. Passed down to the assembler. Also sets the preprocessor symbol
  14929. \&\f(CW\*(C`_\|_Xxmac_d16\*(C'\fR. This option is deprecated.
  14930. .IP "\fB\-mmac\-24\fR" 4
  14931. .IX Item "-mmac-24"
  14932. Passed down to the assembler. Also sets the preprocessor symbol
  14933. \&\f(CW\*(C`_\|_Xxmac_24\*(C'\fR. This option is deprecated.
  14934. .IP "\fB\-mrtsc\fR" 4
  14935. .IX Item "-mrtsc"
  14936. Passed down to the assembler to enable the 64\-bit time-stamp counter
  14937. extension instruction. Also sets the preprocessor symbol
  14938. \&\f(CW\*(C`_\|_Xrtsc\*(C'\fR. This option is deprecated.
  14939. .IP "\fB\-mswape\fR" 4
  14940. .IX Item "-mswape"
  14941. Passed down to the assembler to enable the swap byte ordering
  14942. extension instruction. Also sets the preprocessor symbol
  14943. \&\f(CW\*(C`_\|_Xswape\*(C'\fR.
  14944. .IP "\fB\-mtelephony\fR" 4
  14945. .IX Item "-mtelephony"
  14946. Passed down to the assembler to enable dual\- and single-operand
  14947. instructions for telephony. Also sets the preprocessor symbol
  14948. \&\f(CW\*(C`_\|_Xtelephony\*(C'\fR. This option is deprecated.
  14949. .IP "\fB\-mxy\fR" 4
  14950. .IX Item "-mxy"
  14951. Passed down to the assembler to enable the \s-1XY\s0 memory extension. Also
  14952. sets the preprocessor symbol \f(CW\*(C`_\|_Xxy\*(C'\fR.
  14953. .PP
  14954. The following options control how the assembly code is annotated:
  14955. .IP "\fB\-misize\fR" 4
  14956. .IX Item "-misize"
  14957. Annotate assembler instructions with estimated addresses.
  14958. .IP "\fB\-mannotate\-align\fR" 4
  14959. .IX Item "-mannotate-align"
  14960. Explain what alignment considerations lead to the decision to make an
  14961. instruction short or long.
  14962. .PP
  14963. The following options are passed through to the linker:
  14964. .IP "\fB\-marclinux\fR" 4
  14965. .IX Item "-marclinux"
  14966. Passed through to the linker, to specify use of the \f(CW\*(C`arclinux\*(C'\fR emulation.
  14967. This option is enabled by default in tool chains built for
  14968. \&\f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets
  14969. when profiling is not requested.
  14970. .IP "\fB\-marclinux_prof\fR" 4
  14971. .IX Item "-marclinux_prof"
  14972. Passed through to the linker, to specify use of the
  14973. \&\f(CW\*(C`arclinux_prof\*(C'\fR emulation. This option is enabled by default in
  14974. tool chains built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and
  14975. \&\f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets when profiling is requested.
  14976. .PP
  14977. The following options control the semantics of generated code:
  14978. .IP "\fB\-mlong\-calls\fR" 4
  14979. .IX Item "-mlong-calls"
  14980. Generate calls as register indirect calls, thus providing access
  14981. to the full 32\-bit address range.
  14982. .IP "\fB\-mmedium\-calls\fR" 4
  14983. .IX Item "-mmedium-calls"
  14984. Don't use less than 25\-bit addressing range for calls, which is the
  14985. offset available for an unconditional branch-and-link
  14986. instruction. Conditional execution of function calls is suppressed, to
  14987. allow use of the 25\-bit range, rather than the 21\-bit range with
  14988. conditional branch-and-link. This is the default for tool chains built
  14989. for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets.
  14990. .IP "\fB\-G\fR \fInum\fR" 4
  14991. .IX Item "-G num"
  14992. Put definitions of externally-visible data in a small data section if
  14993. that data is no bigger than \fInum\fR bytes. The default value of
  14994. \&\fInum\fR is 4 for any \s-1ARC\s0 configuration, or 8 when we have double
  14995. load/store operations.
  14996. .IP "\fB\-mno\-sdata\fR" 4
  14997. .IX Item "-mno-sdata"
  14998. Do not generate sdata references. This is the default for tool chains
  14999. built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR
  15000. targets.
  15001. .IP "\fB\-mvolatile\-cache\fR" 4
  15002. .IX Item "-mvolatile-cache"
  15003. Use ordinarily cached memory accesses for volatile references. This is the
  15004. default.
  15005. .IP "\fB\-mno\-volatile\-cache\fR" 4
  15006. .IX Item "-mno-volatile-cache"
  15007. Enable cache bypass for volatile references.
  15008. .PP
  15009. The following options fine tune code generation:
  15010. .IP "\fB\-malign\-call\fR" 4
  15011. .IX Item "-malign-call"
  15012. Do alignment optimizations for call instructions.
  15013. .IP "\fB\-mauto\-modify\-reg\fR" 4
  15014. .IX Item "-mauto-modify-reg"
  15015. Enable the use of pre/post modify with register displacement.
  15016. .IP "\fB\-mbbit\-peephole\fR" 4
  15017. .IX Item "-mbbit-peephole"
  15018. Enable bbit peephole2.
  15019. .IP "\fB\-mno\-brcc\fR" 4
  15020. .IX Item "-mno-brcc"
  15021. This option disables a target-specific pass in \fIarc_reorg\fR to
  15022. generate compare-and-branch (\f(CW\*(C`br\f(CIcc\f(CW\*(C'\fR) instructions.
  15023. It has no effect on
  15024. generation of these instructions driven by the combiner pass.
  15025. .IP "\fB\-mcase\-vector\-pcrel\fR" 4
  15026. .IX Item "-mcase-vector-pcrel"
  15027. Use PC-relative switch case tables to enable case table shortening.
  15028. This is the default for \fB\-Os\fR.
  15029. .IP "\fB\-mcompact\-casesi\fR" 4
  15030. .IX Item "-mcompact-casesi"
  15031. Enable compact \f(CW\*(C`casesi\*(C'\fR pattern. This is the default for \fB\-Os\fR,
  15032. and only available for ARCv1 cores.
  15033. .IP "\fB\-mno\-cond\-exec\fR" 4
  15034. .IX Item "-mno-cond-exec"
  15035. Disable the ARCompact-specific pass to generate conditional
  15036. execution instructions.
  15037. .Sp
  15038. Due to delay slot scheduling and interactions between operand numbers,
  15039. literal sizes, instruction lengths, and the support for conditional execution,
  15040. the target-independent pass to generate conditional execution is often lacking,
  15041. so the \s-1ARC\s0 port has kept a special pass around that tries to find more
  15042. conditional execution generation opportunities after register allocation,
  15043. branch shortening, and delay slot scheduling have been done. This pass
  15044. generally, but not always, improves performance and code size, at the cost of
  15045. extra compilation time, which is why there is an option to switch it off.
  15046. If you have a problem with call instructions exceeding their allowable
  15047. offset range because they are conditionalized, you should consider using
  15048. \&\fB\-mmedium\-calls\fR instead.
  15049. .IP "\fB\-mearly\-cbranchsi\fR" 4
  15050. .IX Item "-mearly-cbranchsi"
  15051. Enable pre-reload use of the \f(CW\*(C`cbranchsi\*(C'\fR pattern.
  15052. .IP "\fB\-mexpand\-adddi\fR" 4
  15053. .IX Item "-mexpand-adddi"
  15054. Expand \f(CW\*(C`adddi3\*(C'\fR and \f(CW\*(C`subdi3\*(C'\fR at \s-1RTL\s0 generation time into
  15055. \&\f(CW\*(C`add.f\*(C'\fR, \f(CW\*(C`adc\*(C'\fR etc. This option is deprecated.
  15056. .IP "\fB\-mindexed\-loads\fR" 4
  15057. .IX Item "-mindexed-loads"
  15058. Enable the use of indexed loads. This can be problematic because some
  15059. optimizers then assume that indexed stores exist, which is not
  15060. the case.
  15061. .IP "\fB\-mlra\fR" 4
  15062. .IX Item "-mlra"
  15063. Enable Local Register Allocation. This is still experimental for \s-1ARC,\s0
  15064. so by default the compiler uses standard reload
  15065. (i.e. \fB\-mno\-lra\fR).
  15066. .IP "\fB\-mlra\-priority\-none\fR" 4
  15067. .IX Item "-mlra-priority-none"
  15068. Don't indicate any priority for target registers.
  15069. .IP "\fB\-mlra\-priority\-compact\fR" 4
  15070. .IX Item "-mlra-priority-compact"
  15071. Indicate target register priority for r0..r3 / r12..r15.
  15072. .IP "\fB\-mlra\-priority\-noncompact\fR" 4
  15073. .IX Item "-mlra-priority-noncompact"
  15074. Reduce target register priority for r0..r3 / r12..r15.
  15075. .IP "\fB\-mno\-millicode\fR" 4
  15076. .IX Item "-mno-millicode"
  15077. When optimizing for size (using \fB\-Os\fR), prologues and epilogues
  15078. that have to save or restore a large number of registers are often
  15079. shortened by using call to a special function in libgcc; this is
  15080. referred to as a \fImillicode\fR call. As these calls can pose
  15081. performance issues, and/or cause linking issues when linking in a
  15082. nonstandard way, this option is provided to turn off millicode call
  15083. generation.
  15084. .IP "\fB\-mmixed\-code\fR" 4
  15085. .IX Item "-mmixed-code"
  15086. Tweak register allocation to help 16\-bit instruction generation.
  15087. This generally has the effect of decreasing the average instruction size
  15088. while increasing the instruction count.
  15089. .IP "\fB\-mq\-class\fR" 4
  15090. .IX Item "-mq-class"
  15091. Enable \fBq\fR instruction alternatives.
  15092. This is the default for \fB\-Os\fR.
  15093. .IP "\fB\-mRcq\fR" 4
  15094. .IX Item "-mRcq"
  15095. Enable \fBRcq\fR constraint handling.
  15096. Most short code generation depends on this.
  15097. This is the default.
  15098. .IP "\fB\-mRcw\fR" 4
  15099. .IX Item "-mRcw"
  15100. Enable \fBRcw\fR constraint handling.
  15101. Most ccfsm condexec mostly depends on this.
  15102. This is the default.
  15103. .IP "\fB\-msize\-level=\fR\fIlevel\fR" 4
  15104. .IX Item "-msize-level=level"
  15105. Fine-tune size optimization with regards to instruction lengths and alignment.
  15106. The recognized values for \fIlevel\fR are:
  15107. .RS 4
  15108. .IP "\fB0\fR" 4
  15109. .IX Item "0"
  15110. No size optimization. This level is deprecated and treated like \fB1\fR.
  15111. .IP "\fB1\fR" 4
  15112. .IX Item "1"
  15113. Short instructions are used opportunistically.
  15114. .IP "\fB2\fR" 4
  15115. .IX Item "2"
  15116. In addition, alignment of loops and of code after barriers are dropped.
  15117. .IP "\fB3\fR" 4
  15118. .IX Item "3"
  15119. In addition, optional data alignment is dropped, and the option \fBOs\fR is enabled.
  15120. .RE
  15121. .RS 4
  15122. .Sp
  15123. This defaults to \fB3\fR when \fB\-Os\fR is in effect. Otherwise,
  15124. the behavior when this is not set is equivalent to level \fB1\fR.
  15125. .RE
  15126. .IP "\fB\-mtune=\fR\fIcpu\fR" 4
  15127. .IX Item "-mtune=cpu"
  15128. Set instruction scheduling parameters for \fIcpu\fR, overriding any implied
  15129. by \fB\-mcpu=\fR.
  15130. .Sp
  15131. Supported values for \fIcpu\fR are
  15132. .RS 4
  15133. .IP "\fB\s-1ARC600\s0\fR" 4
  15134. .IX Item "ARC600"
  15135. Tune for \s-1ARC600 CPU.\s0
  15136. .IP "\fB\s-1ARC601\s0\fR" 4
  15137. .IX Item "ARC601"
  15138. Tune for \s-1ARC601 CPU.\s0
  15139. .IP "\fB\s-1ARC700\s0\fR" 4
  15140. .IX Item "ARC700"
  15141. Tune for \s-1ARC700 CPU\s0 with standard multiplier block.
  15142. .IP "\fBARC700\-xmac\fR" 4
  15143. .IX Item "ARC700-xmac"
  15144. Tune for \s-1ARC700 CPU\s0 with \s-1XMAC\s0 block.
  15145. .IP "\fB\s-1ARC725D\s0\fR" 4
  15146. .IX Item "ARC725D"
  15147. Tune for \s-1ARC725D CPU.\s0
  15148. .IP "\fB\s-1ARC750D\s0\fR" 4
  15149. .IX Item "ARC750D"
  15150. Tune for \s-1ARC750D CPU.\s0
  15151. .RE
  15152. .RS 4
  15153. .RE
  15154. .IP "\fB\-mmultcost=\fR\fInum\fR" 4
  15155. .IX Item "-mmultcost=num"
  15156. Cost to assume for a multiply instruction, with \fB4\fR being equal to a
  15157. normal instruction.
  15158. .IP "\fB\-munalign\-prob\-threshold=\fR\fIprobability\fR" 4
  15159. .IX Item "-munalign-prob-threshold=probability"
  15160. Set probability threshold for unaligning branches.
  15161. When tuning for \fB\s-1ARC700\s0\fR and optimizing for speed, branches without
  15162. filled delay slot are preferably emitted unaligned and long, unless
  15163. profiling indicates that the probability for the branch to be taken
  15164. is below \fIprobability\fR.
  15165. The default is (\s-1REG_BR_PROB_BASE/2\s0), i.e. 5000.
  15166. .PP
  15167. The following options are maintained for backward compatibility, but
  15168. are now deprecated and will be removed in a future release:
  15169. .IP "\fB\-margonaut\fR" 4
  15170. .IX Item "-margonaut"
  15171. Obsolete \s-1FPX.\s0
  15172. .IP "\fB\-mbig\-endian\fR" 4
  15173. .IX Item "-mbig-endian"
  15174. .PD 0
  15175. .IP "\fB\-EB\fR" 4
  15176. .IX Item "-EB"
  15177. .PD
  15178. Compile code for big-endian targets. Use of these options is now
  15179. deprecated. Big-endian code is supported by configuring \s-1GCC\s0 to build
  15180. \&\f(CW\*(C`arceb\-elf32\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets,
  15181. for which big endian is the default.
  15182. .IP "\fB\-mlittle\-endian\fR" 4
  15183. .IX Item "-mlittle-endian"
  15184. .PD 0
  15185. .IP "\fB\-EL\fR" 4
  15186. .IX Item "-EL"
  15187. .PD
  15188. Compile code for little-endian targets. Use of these options is now
  15189. deprecated. Little-endian code is supported by configuring \s-1GCC\s0 to build
  15190. \&\f(CW\*(C`arc\-elf32\*(C'\fR and \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR targets,
  15191. for which little endian is the default.
  15192. .IP "\fB\-mbarrel_shifter\fR" 4
  15193. .IX Item "-mbarrel_shifter"
  15194. Replaced by \fB\-mbarrel\-shifter\fR.
  15195. .IP "\fB\-mdpfp_compact\fR" 4
  15196. .IX Item "-mdpfp_compact"
  15197. Replaced by \fB\-mdpfp\-compact\fR.
  15198. .IP "\fB\-mdpfp_fast\fR" 4
  15199. .IX Item "-mdpfp_fast"
  15200. Replaced by \fB\-mdpfp\-fast\fR.
  15201. .IP "\fB\-mdsp_packa\fR" 4
  15202. .IX Item "-mdsp_packa"
  15203. Replaced by \fB\-mdsp\-packa\fR.
  15204. .IP "\fB\-mEA\fR" 4
  15205. .IX Item "-mEA"
  15206. Replaced by \fB\-mea\fR.
  15207. .IP "\fB\-mmac_24\fR" 4
  15208. .IX Item "-mmac_24"
  15209. Replaced by \fB\-mmac\-24\fR.
  15210. .IP "\fB\-mmac_d16\fR" 4
  15211. .IX Item "-mmac_d16"
  15212. Replaced by \fB\-mmac\-d16\fR.
  15213. .IP "\fB\-mspfp_compact\fR" 4
  15214. .IX Item "-mspfp_compact"
  15215. Replaced by \fB\-mspfp\-compact\fR.
  15216. .IP "\fB\-mspfp_fast\fR" 4
  15217. .IX Item "-mspfp_fast"
  15218. Replaced by \fB\-mspfp\-fast\fR.
  15219. .IP "\fB\-mtune=\fR\fIcpu\fR" 4
  15220. .IX Item "-mtune=cpu"
  15221. Values \fBarc600\fR, \fBarc601\fR, \fBarc700\fR and
  15222. \&\fBarc700\-xmac\fR for \fIcpu\fR are replaced by \fB\s-1ARC600\s0\fR,
  15223. \&\fB\s-1ARC601\s0\fR, \fB\s-1ARC700\s0\fR and \fBARC700\-xmac\fR respectively.
  15224. .IP "\fB\-multcost=\fR\fInum\fR" 4
  15225. .IX Item "-multcost=num"
  15226. Replaced by \fB\-mmultcost\fR.
  15227. .PP
  15228. \fI\s-1ARM\s0 Options\fR
  15229. .IX Subsection "ARM Options"
  15230. .PP
  15231. These \fB\-m\fR options are defined for the \s-1ARM\s0 port:
  15232. .IP "\fB\-mabi=\fR\fIname\fR" 4
  15233. .IX Item "-mabi=name"
  15234. Generate code for the specified \s-1ABI.\s0 Permissible values are: \fBapcs-gnu\fR,
  15235. \&\fBatpcs\fR, \fBaapcs\fR, \fBaapcs-linux\fR and \fBiwmmxt\fR.
  15236. .IP "\fB\-mapcs\-frame\fR" 4
  15237. .IX Item "-mapcs-frame"
  15238. Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
  15239. Standard for all functions, even if this is not strictly necessary for
  15240. correct execution of the code. Specifying \fB\-fomit\-frame\-pointer\fR
  15241. with this option causes the stack frames not to be generated for
  15242. leaf functions. The default is \fB\-mno\-apcs\-frame\fR.
  15243. This option is deprecated.
  15244. .IP "\fB\-mapcs\fR" 4
  15245. .IX Item "-mapcs"
  15246. This is a synonym for \fB\-mapcs\-frame\fR and is deprecated.
  15247. .IP "\fB\-mthumb\-interwork\fR" 4
  15248. .IX Item "-mthumb-interwork"
  15249. Generate code that supports calling between the \s-1ARM\s0 and Thumb
  15250. instruction sets. Without this option, on pre\-v5 architectures, the
  15251. two instruction sets cannot be reliably used inside one program. The
  15252. default is \fB\-mno\-thumb\-interwork\fR, since slightly larger code
  15253. is generated when \fB\-mthumb\-interwork\fR is specified. In \s-1AAPCS\s0
  15254. configurations this option is meaningless.
  15255. .IP "\fB\-mno\-sched\-prolog\fR" 4
  15256. .IX Item "-mno-sched-prolog"
  15257. Prevent the reordering of instructions in the function prologue, or the
  15258. merging of those instruction with the instructions in the function's
  15259. body. This means that all functions start with a recognizable set
  15260. of instructions (or in fact one of a choice from a small set of
  15261. different function prologues), and this information can be used to
  15262. locate the start of functions inside an executable piece of code. The
  15263. default is \fB\-msched\-prolog\fR.
  15264. .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
  15265. .IX Item "-mfloat-abi=name"
  15266. Specifies which floating-point \s-1ABI\s0 to use. Permissible values
  15267. are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
  15268. .Sp
  15269. Specifying \fBsoft\fR causes \s-1GCC\s0 to generate output containing
  15270. library calls for floating-point operations.
  15271. \&\fBsoftfp\fR allows the generation of code using hardware floating-point
  15272. instructions, but still uses the soft-float calling conventions.
  15273. \&\fBhard\fR allows generation of floating-point instructions
  15274. and uses FPU-specific calling conventions.
  15275. .Sp
  15276. The default depends on the specific target configuration. Note that
  15277. the hard-float and soft-float ABIs are not link-compatible; you must
  15278. compile your entire program with the same \s-1ABI,\s0 and link with a
  15279. compatible set of libraries.
  15280. .IP "\fB\-mlittle\-endian\fR" 4
  15281. .IX Item "-mlittle-endian"
  15282. Generate code for a processor running in little-endian mode. This is
  15283. the default for all standard configurations.
  15284. .IP "\fB\-mbig\-endian\fR" 4
  15285. .IX Item "-mbig-endian"
  15286. Generate code for a processor running in big-endian mode; the default is
  15287. to compile code for a little-endian processor.
  15288. .IP "\fB\-mbe8\fR" 4
  15289. .IX Item "-mbe8"
  15290. .PD 0
  15291. .IP "\fB\-mbe32\fR" 4
  15292. .IX Item "-mbe32"
  15293. .PD
  15294. When linking a big-endian image select between \s-1BE8\s0 and \s-1BE32\s0 formats.
  15295. The option has no effect for little-endian images and is ignored. The
  15296. default is dependent on the selected target architecture. For ARMv6
  15297. and later architectures the default is \s-1BE8,\s0 for older architectures
  15298. the default is \s-1BE32.\s0 \s-1BE32\s0 format has been deprecated by \s-1ARM.\s0
  15299. .IP "\fB\-march=\fR\fIname\fR[\fB+extension...\fR]" 4
  15300. .IX Item "-march=name[+extension...]"
  15301. This specifies the name of the target \s-1ARM\s0 architecture. \s-1GCC\s0 uses this
  15302. name to determine what kind of instructions it can emit when generating
  15303. assembly code. This option can be used in conjunction with or instead
  15304. of the \fB\-mcpu=\fR option.
  15305. .Sp
  15306. Permissible names are:
  15307. \&\fBarmv4t\fR,
  15308. \&\fBarmv5t\fR, \fBarmv5te\fR,
  15309. \&\fBarmv6\fR, \fBarmv6j\fR, \fBarmv6k\fR, \fBarmv6kz\fR, \fBarmv6t2\fR,
  15310. \&\fBarmv6z\fR, \fBarmv6zk\fR,
  15311. \&\fBarmv7\fR, \fBarmv7\-a\fR, \fBarmv7ve\fR,
  15312. \&\fBarmv8\-a\fR, \fBarmv8.1\-a\fR, \fBarmv8.2\-a\fR, \fBarmv8.3\-a\fR,
  15313. \&\fBarmv8.4\-a\fR,
  15314. \&\fBarmv7\-r\fR,
  15315. \&\fBarmv8\-r\fR,
  15316. \&\fBarmv6\-m\fR, \fBarmv6s\-m\fR,
  15317. \&\fBarmv7\-m\fR, \fBarmv7e\-m\fR,
  15318. \&\fBarmv8\-m.base\fR, \fBarmv8\-m.main\fR,
  15319. \&\fBiwmmxt\fR and \fBiwmmxt2\fR.
  15320. .Sp
  15321. Additionally, the following architectures, which lack support for the
  15322. Thumb execution state, are recognized but support is deprecated:
  15323. \&\fBarmv2\fR, \fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR,
  15324. \&\fBarmv4\fR, \fBarmv5\fR and \fBarmv5e\fR.
  15325. .Sp
  15326. Many of the architectures support extensions. These can be added by
  15327. appending \fB+\fR\fIextension\fR to the architecture name. Extension
  15328. options are processed in order and capabilities accumulate. An extension
  15329. will also enable any necessary base extensions
  15330. upon which it depends. For example, the \fB+crypto\fR extension
  15331. will always enable the \fB+simd\fR extension. The exception to the
  15332. additive construction is for extensions that are prefixed with
  15333. \&\fB+no...\fR: these extensions disable the specified option and
  15334. any other extensions that may depend on the presence of that
  15335. extension.
  15336. .Sp
  15337. For example, \fB\-march=armv7\-a+simd+nofp+vfpv4\fR is equivalent to
  15338. writing \fB\-march=armv7\-a+vfpv4\fR since the \fB+simd\fR option is
  15339. entirely disabled by the \fB+nofp\fR option that follows it.
  15340. .Sp
  15341. Most extension names are generically named, but have an effect that is
  15342. dependent upon the architecture to which it is applied. For example,
  15343. the \fB+simd\fR option can be applied to both \fBarmv7\-a\fR and
  15344. \&\fBarmv8\-a\fR architectures, but will enable the original ARMv7\-A
  15345. Advanced \s-1SIMD\s0 (Neon) extensions for \fBarmv7\-a\fR and the ARMv8\-A
  15346. variant for \fBarmv8\-a\fR.
  15347. .Sp
  15348. The table below lists the supported extensions for each architecture.
  15349. Architectures not mentioned do not support any extensions.
  15350. .RS 4
  15351. .IP "\fBarmv5e\fR" 4
  15352. .IX Item "armv5e"
  15353. .PD 0
  15354. .IP "\fBarmv5te\fR" 4
  15355. .IX Item "armv5te"
  15356. .IP "\fBarmv6\fR" 4
  15357. .IX Item "armv6"
  15358. .IP "\fBarmv6j\fR" 4
  15359. .IX Item "armv6j"
  15360. .IP "\fBarmv6k\fR" 4
  15361. .IX Item "armv6k"
  15362. .IP "\fBarmv6kz\fR" 4
  15363. .IX Item "armv6kz"
  15364. .IP "\fBarmv6t2\fR" 4
  15365. .IX Item "armv6t2"
  15366. .IP "\fBarmv6z\fR" 4
  15367. .IX Item "armv6z"
  15368. .IP "\fBarmv6zk\fR" 4
  15369. .IX Item "armv6zk"
  15370. .RS 4
  15371. .IP "\fB+fp\fR" 4
  15372. .IX Item "+fp"
  15373. .PD
  15374. The VFPv2 floating-point instructions. The extension \fB+vfpv2\fR can be
  15375. used as an alias for this extension.
  15376. .IP "\fB+nofp\fR" 4
  15377. .IX Item "+nofp"
  15378. Disable the floating-point instructions.
  15379. .RE
  15380. .RS 4
  15381. .RE
  15382. .IP "\fBarmv7\fR" 4
  15383. .IX Item "armv7"
  15384. The common subset of the ARMv7\-A, ARMv7\-R and ARMv7\-M architectures.
  15385. .RS 4
  15386. .IP "\fB+fp\fR" 4
  15387. .IX Item "+fp"
  15388. The VFPv3 floating-point instructions, with 16 double-precision
  15389. registers. The extension \fB+vfpv3\-d16\fR can be used as an alias
  15390. for this extension. Note that floating-point is not supported by the
  15391. base ARMv7\-M architecture, but is compatible with both the ARMv7\-A and
  15392. ARMv7\-R architectures.
  15393. .IP "\fB+nofp\fR" 4
  15394. .IX Item "+nofp"
  15395. Disable the floating-point instructions.
  15396. .RE
  15397. .RS 4
  15398. .RE
  15399. .IP "\fBarmv7\-a\fR" 4
  15400. .IX Item "armv7-a"
  15401. .RS 4
  15402. .PD 0
  15403. .IP "\fB+mp\fR" 4
  15404. .IX Item "+mp"
  15405. .PD
  15406. The multiprocessing extension.
  15407. .IP "\fB+sec\fR" 4
  15408. .IX Item "+sec"
  15409. The security extension.
  15410. .IP "\fB+fp\fR" 4
  15411. .IX Item "+fp"
  15412. The VFPv3 floating-point instructions, with 16 double-precision
  15413. registers. The extension \fB+vfpv3\-d16\fR can be used as an alias
  15414. for this extension.
  15415. .IP "\fB+simd\fR" 4
  15416. .IX Item "+simd"
  15417. The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions.
  15418. The extensions \fB+neon\fR and \fB+neon\-vfpv3\fR can be used as aliases
  15419. for this extension.
  15420. .IP "\fB+vfpv3\fR" 4
  15421. .IX Item "+vfpv3"
  15422. The VFPv3 floating-point instructions, with 32 double-precision
  15423. registers.
  15424. .IP "\fB+vfpv3\-d16\-fp16\fR" 4
  15425. .IX Item "+vfpv3-d16-fp16"
  15426. The VFPv3 floating-point instructions, with 16 double-precision
  15427. registers and the half-precision floating-point conversion operations.
  15428. .IP "\fB+vfpv3\-fp16\fR" 4
  15429. .IX Item "+vfpv3-fp16"
  15430. The VFPv3 floating-point instructions, with 32 double-precision
  15431. registers and the half-precision floating-point conversion operations.
  15432. .IP "\fB+vfpv4\-d16\fR" 4
  15433. .IX Item "+vfpv4-d16"
  15434. The VFPv4 floating-point instructions, with 16 double-precision
  15435. registers.
  15436. .IP "\fB+vfpv4\fR" 4
  15437. .IX Item "+vfpv4"
  15438. The VFPv4 floating-point instructions, with 32 double-precision
  15439. registers.
  15440. .IP "\fB+neon\-fp16\fR" 4
  15441. .IX Item "+neon-fp16"
  15442. The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions, with
  15443. the half-precision floating-point conversion operations.
  15444. .IP "\fB+neon\-vfpv4\fR" 4
  15445. .IX Item "+neon-vfpv4"
  15446. The Advanced \s-1SIMD\s0 (Neon) v2 and the VFPv4 floating-point instructions.
  15447. .IP "\fB+nosimd\fR" 4
  15448. .IX Item "+nosimd"
  15449. Disable the Advanced \s-1SIMD\s0 instructions (does not disable floating point).
  15450. .IP "\fB+nofp\fR" 4
  15451. .IX Item "+nofp"
  15452. Disable the floating-point and Advanced \s-1SIMD\s0 instructions.
  15453. .RE
  15454. .RS 4
  15455. .RE
  15456. .IP "\fBarmv7ve\fR" 4
  15457. .IX Item "armv7ve"
  15458. The extended version of the ARMv7\-A architecture with support for
  15459. virtualization.
  15460. .RS 4
  15461. .IP "\fB+fp\fR" 4
  15462. .IX Item "+fp"
  15463. The VFPv4 floating-point instructions, with 16 double-precision registers.
  15464. The extension \fB+vfpv4\-d16\fR can be used as an alias for this extension.
  15465. .IP "\fB+simd\fR" 4
  15466. .IX Item "+simd"
  15467. The Advanced \s-1SIMD\s0 (Neon) v2 and the VFPv4 floating-point instructions. The
  15468. extension \fB+neon\-vfpv4\fR can be used as an alias for this extension.
  15469. .IP "\fB+vfpv3\-d16\fR" 4
  15470. .IX Item "+vfpv3-d16"
  15471. The VFPv3 floating-point instructions, with 16 double-precision
  15472. registers.
  15473. .IP "\fB+vfpv3\fR" 4
  15474. .IX Item "+vfpv3"
  15475. The VFPv3 floating-point instructions, with 32 double-precision
  15476. registers.
  15477. .IP "\fB+vfpv3\-d16\-fp16\fR" 4
  15478. .IX Item "+vfpv3-d16-fp16"
  15479. The VFPv3 floating-point instructions, with 16 double-precision
  15480. registers and the half-precision floating-point conversion operations.
  15481. .IP "\fB+vfpv3\-fp16\fR" 4
  15482. .IX Item "+vfpv3-fp16"
  15483. The VFPv3 floating-point instructions, with 32 double-precision
  15484. registers and the half-precision floating-point conversion operations.
  15485. .IP "\fB+vfpv4\-d16\fR" 4
  15486. .IX Item "+vfpv4-d16"
  15487. The VFPv4 floating-point instructions, with 16 double-precision
  15488. registers.
  15489. .IP "\fB+vfpv4\fR" 4
  15490. .IX Item "+vfpv4"
  15491. The VFPv4 floating-point instructions, with 32 double-precision
  15492. registers.
  15493. .IP "\fB+neon\fR" 4
  15494. .IX Item "+neon"
  15495. The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions.
  15496. The extension \fB+neon\-vfpv3\fR can be used as an alias for this extension.
  15497. .IP "\fB+neon\-fp16\fR" 4
  15498. .IX Item "+neon-fp16"
  15499. The Advanced \s-1SIMD\s0 (Neon) v1 and the VFPv3 floating-point instructions, with
  15500. the half-precision floating-point conversion operations.
  15501. .IP "\fB+nosimd\fR" 4
  15502. .IX Item "+nosimd"
  15503. Disable the Advanced \s-1SIMD\s0 instructions (does not disable floating point).
  15504. .IP "\fB+nofp\fR" 4
  15505. .IX Item "+nofp"
  15506. Disable the floating-point and Advanced \s-1SIMD\s0 instructions.
  15507. .RE
  15508. .RS 4
  15509. .RE
  15510. .IP "\fBarmv8\-a\fR" 4
  15511. .IX Item "armv8-a"
  15512. .RS 4
  15513. .PD 0
  15514. .IP "\fB+crc\fR" 4
  15515. .IX Item "+crc"
  15516. .PD
  15517. The Cyclic Redundancy Check (\s-1CRC\s0) instructions.
  15518. .IP "\fB+simd\fR" 4
  15519. .IX Item "+simd"
  15520. The ARMv8\-A Advanced \s-1SIMD\s0 and floating-point instructions.
  15521. .IP "\fB+crypto\fR" 4
  15522. .IX Item "+crypto"
  15523. The cryptographic instructions.
  15524. .IP "\fB+nocrypto\fR" 4
  15525. .IX Item "+nocrypto"
  15526. Disable the cryptographic instructions.
  15527. .IP "\fB+nofp\fR" 4
  15528. .IX Item "+nofp"
  15529. Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
  15530. .RE
  15531. .RS 4
  15532. .RE
  15533. .IP "\fBarmv8.1\-a\fR" 4
  15534. .IX Item "armv8.1-a"
  15535. .RS 4
  15536. .PD 0
  15537. .IP "\fB+simd\fR" 4
  15538. .IX Item "+simd"
  15539. .PD
  15540. The ARMv8.1\-A Advanced \s-1SIMD\s0 and floating-point instructions.
  15541. .IP "\fB+crypto\fR" 4
  15542. .IX Item "+crypto"
  15543. The cryptographic instructions. This also enables the Advanced \s-1SIMD\s0 and
  15544. floating-point instructions.
  15545. .IP "\fB+nocrypto\fR" 4
  15546. .IX Item "+nocrypto"
  15547. Disable the cryptographic instructions.
  15548. .IP "\fB+nofp\fR" 4
  15549. .IX Item "+nofp"
  15550. Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
  15551. .RE
  15552. .RS 4
  15553. .RE
  15554. .IP "\fBarmv8.2\-a\fR" 4
  15555. .IX Item "armv8.2-a"
  15556. .PD 0
  15557. .IP "\fBarmv8.3\-a\fR" 4
  15558. .IX Item "armv8.3-a"
  15559. .RS 4
  15560. .IP "\fB+fp16\fR" 4
  15561. .IX Item "+fp16"
  15562. .PD
  15563. The half-precision floating-point data processing instructions.
  15564. This also enables the Advanced \s-1SIMD\s0 and floating-point instructions.
  15565. .IP "\fB+fp16fml\fR" 4
  15566. .IX Item "+fp16fml"
  15567. The half-precision floating-point fmla extension. This also enables
  15568. the half-precision floating-point extension and Advanced \s-1SIMD\s0 and
  15569. floating-point instructions.
  15570. .IP "\fB+simd\fR" 4
  15571. .IX Item "+simd"
  15572. The ARMv8.1\-A Advanced \s-1SIMD\s0 and floating-point instructions.
  15573. .IP "\fB+crypto\fR" 4
  15574. .IX Item "+crypto"
  15575. The cryptographic instructions. This also enables the Advanced \s-1SIMD\s0 and
  15576. floating-point instructions.
  15577. .IP "\fB+dotprod\fR" 4
  15578. .IX Item "+dotprod"
  15579. Enable the Dot Product extension. This also enables Advanced \s-1SIMD\s0 instructions.
  15580. .IP "\fB+nocrypto\fR" 4
  15581. .IX Item "+nocrypto"
  15582. Disable the cryptographic extension.
  15583. .IP "\fB+nofp\fR" 4
  15584. .IX Item "+nofp"
  15585. Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
  15586. .RE
  15587. .RS 4
  15588. .RE
  15589. .IP "\fBarmv8.4\-a\fR" 4
  15590. .IX Item "armv8.4-a"
  15591. .RS 4
  15592. .PD 0
  15593. .IP "\fB+fp16\fR" 4
  15594. .IX Item "+fp16"
  15595. .PD
  15596. The half-precision floating-point data processing instructions.
  15597. This also enables the Advanced \s-1SIMD\s0 and floating-point instructions as well
  15598. as the Dot Product extension and the half-precision floating-point fmla
  15599. extension.
  15600. .IP "\fB+simd\fR" 4
  15601. .IX Item "+simd"
  15602. The ARMv8.3\-A Advanced \s-1SIMD\s0 and floating-point instructions as well as the
  15603. Dot Product extension.
  15604. .IP "\fB+crypto\fR" 4
  15605. .IX Item "+crypto"
  15606. The cryptographic instructions. This also enables the Advanced \s-1SIMD\s0 and
  15607. floating-point instructions as well as the Dot Product extension.
  15608. .IP "\fB+nocrypto\fR" 4
  15609. .IX Item "+nocrypto"
  15610. Disable the cryptographic extension.
  15611. .IP "\fB+nofp\fR" 4
  15612. .IX Item "+nofp"
  15613. Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
  15614. .RE
  15615. .RS 4
  15616. .RE
  15617. .IP "\fBarmv7\-r\fR" 4
  15618. .IX Item "armv7-r"
  15619. .RS 4
  15620. .PD 0
  15621. .IP "\fB+fp.sp\fR" 4
  15622. .IX Item "+fp.sp"
  15623. .PD
  15624. The single-precision VFPv3 floating-point instructions. The extension
  15625. \&\fB+vfpv3xd\fR can be used as an alias for this extension.
  15626. .IP "\fB+fp\fR" 4
  15627. .IX Item "+fp"
  15628. The VFPv3 floating-point instructions with 16 double-precision registers.
  15629. The extension +vfpv3\-d16 can be used as an alias for this extension.
  15630. .IP "\fB+vfpv3xd\-d16\-fp16\fR" 4
  15631. .IX Item "+vfpv3xd-d16-fp16"
  15632. The single-precision VFPv3 floating-point instructions with 16 double-precision
  15633. registers and the half-precision floating-point conversion operations.
  15634. .IP "\fB+vfpv3\-d16\-fp16\fR" 4
  15635. .IX Item "+vfpv3-d16-fp16"
  15636. The VFPv3 floating-point instructions, with 16 double-precision
  15637. registers and the half-precision floating-point conversion operations.
  15638. .IP "\fB+nofp\fR" 4
  15639. .IX Item "+nofp"
  15640. Disable the floating-point extension.
  15641. .IP "\fB+idiv\fR" 4
  15642. .IX Item "+idiv"
  15643. The ARM-state integer division instructions.
  15644. .IP "\fB+noidiv\fR" 4
  15645. .IX Item "+noidiv"
  15646. Disable the ARM-state integer division extension.
  15647. .RE
  15648. .RS 4
  15649. .RE
  15650. .IP "\fBarmv7e\-m\fR" 4
  15651. .IX Item "armv7e-m"
  15652. .RS 4
  15653. .PD 0
  15654. .IP "\fB+fp\fR" 4
  15655. .IX Item "+fp"
  15656. .PD
  15657. The single-precision VFPv4 floating-point instructions.
  15658. .IP "\fB+fpv5\fR" 4
  15659. .IX Item "+fpv5"
  15660. The single-precision FPv5 floating-point instructions.
  15661. .IP "\fB+fp.dp\fR" 4
  15662. .IX Item "+fp.dp"
  15663. The single\- and double-precision FPv5 floating-point instructions.
  15664. .IP "\fB+nofp\fR" 4
  15665. .IX Item "+nofp"
  15666. Disable the floating-point extensions.
  15667. .RE
  15668. .RS 4
  15669. .RE
  15670. .IP "\fBarmv8\-m.main\fR" 4
  15671. .IX Item "armv8-m.main"
  15672. .RS 4
  15673. .PD 0
  15674. .IP "\fB+dsp\fR" 4
  15675. .IX Item "+dsp"
  15676. .PD
  15677. The \s-1DSP\s0 instructions.
  15678. .IP "\fB+nodsp\fR" 4
  15679. .IX Item "+nodsp"
  15680. Disable the \s-1DSP\s0 extension.
  15681. .IP "\fB+fp\fR" 4
  15682. .IX Item "+fp"
  15683. The single-precision floating-point instructions.
  15684. .IP "\fB+fp.dp\fR" 4
  15685. .IX Item "+fp.dp"
  15686. The single\- and double-precision floating-point instructions.
  15687. .IP "\fB+nofp\fR" 4
  15688. .IX Item "+nofp"
  15689. Disable the floating-point extension.
  15690. .RE
  15691. .RS 4
  15692. .RE
  15693. .IP "\fBarmv8\-r\fR" 4
  15694. .IX Item "armv8-r"
  15695. .RS 4
  15696. .PD 0
  15697. .IP "\fB+crc\fR" 4
  15698. .IX Item "+crc"
  15699. .PD
  15700. The Cyclic Redundancy Check (\s-1CRC\s0) instructions.
  15701. .IP "\fB+fp.sp\fR" 4
  15702. .IX Item "+fp.sp"
  15703. The single-precision FPv5 floating-point instructions.
  15704. .IP "\fB+simd\fR" 4
  15705. .IX Item "+simd"
  15706. The ARMv8\-A Advanced \s-1SIMD\s0 and floating-point instructions.
  15707. .IP "\fB+crypto\fR" 4
  15708. .IX Item "+crypto"
  15709. The cryptographic instructions.
  15710. .IP "\fB+nocrypto\fR" 4
  15711. .IX Item "+nocrypto"
  15712. Disable the cryptographic instructions.
  15713. .IP "\fB+nofp\fR" 4
  15714. .IX Item "+nofp"
  15715. Disable the floating-point, Advanced \s-1SIMD\s0 and cryptographic instructions.
  15716. .RE
  15717. .RS 4
  15718. .RE
  15719. .RE
  15720. .RS 4
  15721. .Sp
  15722. \&\fB\-march=native\fR causes the compiler to auto-detect the architecture
  15723. of the build computer. At present, this feature is only supported on
  15724. GNU/Linux, and not all architectures are recognized. If the auto-detect
  15725. is unsuccessful the option has no effect.
  15726. .RE
  15727. .IP "\fB\-mtune=\fR\fIname\fR" 4
  15728. .IX Item "-mtune=name"
  15729. This option specifies the name of the target \s-1ARM\s0 processor for
  15730. which \s-1GCC\s0 should tune the performance of the code.
  15731. For some \s-1ARM\s0 implementations better performance can be obtained by using
  15732. this option.
  15733. Permissible names are: \fBarm2\fR, \fBarm250\fR,
  15734. \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
  15735. \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
  15736. \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
  15737. \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
  15738. \&\fBarm720\fR,
  15739. \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
  15740. \&\fBarm710t\fR, \fBarm720t\fR, \fBarm740t\fR,
  15741. \&\fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
  15742. \&\fBstrongarm1110\fR,
  15743. \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
  15744. \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
  15745. \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
  15746. \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
  15747. \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
  15748. \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
  15749. \&\fBarm1156t2\-s\fR, \fBarm1156t2f\-s\fR, \fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR,
  15750. \&\fBgeneric\-armv7\-a\fR, \fBcortex\-a5\fR, \fBcortex\-a7\fR, \fBcortex\-a8\fR,
  15751. \&\fBcortex\-a9\fR, \fBcortex\-a12\fR, \fBcortex\-a15\fR, \fBcortex\-a17\fR,
  15752. \&\fBcortex\-a32\fR, \fBcortex\-a35\fR, \fBcortex\-a53\fR, \fBcortex\-a55\fR,
  15753. \&\fBcortex\-a57\fR, \fBcortex\-a72\fR, \fBcortex\-a73\fR, \fBcortex\-a75\fR,
  15754. \&\fBcortex\-r4\fR, \fBcortex\-r4f\fR, \fBcortex\-r5\fR, \fBcortex\-r7\fR,
  15755. \&\fBcortex\-r8\fR, \fBcortex\-r52\fR,
  15756. \&\fBcortex\-m33\fR,
  15757. \&\fBcortex\-m23\fR,
  15758. \&\fBcortex\-m7\fR,
  15759. \&\fBcortex\-m4\fR,
  15760. \&\fBcortex\-m3\fR,
  15761. \&\fBcortex\-m1\fR,
  15762. \&\fBcortex\-m0\fR,
  15763. \&\fBcortex\-m0plus\fR,
  15764. \&\fBcortex\-m1.small\-multiply\fR,
  15765. \&\fBcortex\-m0.small\-multiply\fR,
  15766. \&\fBcortex\-m0plus.small\-multiply\fR,
  15767. \&\fBexynos\-m1\fR,
  15768. \&\fBmarvell\-pj4\fR,
  15769. \&\fBxscale\fR, \fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR,
  15770. \&\fBfa526\fR, \fBfa626\fR,
  15771. \&\fBfa606te\fR, \fBfa626te\fR, \fBfmp626\fR, \fBfa726te\fR,
  15772. \&\fBxgene1\fR.
  15773. .Sp
  15774. Additionally, this option can specify that \s-1GCC\s0 should tune the performance
  15775. of the code for a big.LITTLE system. Permissible names are:
  15776. \&\fBcortex\-a15.cortex\-a7\fR, \fBcortex\-a17.cortex\-a7\fR,
  15777. \&\fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
  15778. \&\fBcortex\-a72.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR,
  15779. \&\fBcortex\-a75.cortex\-a55\fR.
  15780. .Sp
  15781. \&\fB\-mtune=generic\-\fR\fIarch\fR specifies that \s-1GCC\s0 should tune the
  15782. performance for a blend of processors within architecture \fIarch\fR.
  15783. The aim is to generate code that run well on the current most popular
  15784. processors, balancing between optimizations that benefit some CPUs in the
  15785. range, and avoiding performance pitfalls of other CPUs. The effects of
  15786. this option may change in future \s-1GCC\s0 versions as \s-1CPU\s0 models come and go.
  15787. .Sp
  15788. \&\fB\-mtune\fR permits the same extension options as \fB\-mcpu\fR, but
  15789. the extension options do not affect the tuning of the generated code.
  15790. .Sp
  15791. \&\fB\-mtune=native\fR causes the compiler to auto-detect the \s-1CPU\s0
  15792. of the build computer. At present, this feature is only supported on
  15793. GNU/Linux, and not all architectures are recognized. If the auto-detect is
  15794. unsuccessful the option has no effect.
  15795. .IP "\fB\-mcpu=\fR\fIname\fR[\fB+extension...\fR]" 4
  15796. .IX Item "-mcpu=name[+extension...]"
  15797. This specifies the name of the target \s-1ARM\s0 processor. \s-1GCC\s0 uses this name
  15798. to derive the name of the target \s-1ARM\s0 architecture (as if specified
  15799. by \fB\-march\fR) and the \s-1ARM\s0 processor type for which to tune for
  15800. performance (as if specified by \fB\-mtune\fR). Where this option
  15801. is used in conjunction with \fB\-march\fR or \fB\-mtune\fR,
  15802. those options take precedence over the appropriate part of this option.
  15803. .Sp
  15804. Many of the supported CPUs implement optional architectural
  15805. extensions. Where this is so the architectural extensions are
  15806. normally enabled by default. If implementations that lack the
  15807. extension exist, then the extension syntax can be used to disable
  15808. those extensions that have been omitted. For floating-point and
  15809. Advanced \s-1SIMD\s0 (Neon) instructions, the settings of the options
  15810. \&\fB\-mfloat\-abi\fR and \fB\-mfpu\fR must also be considered:
  15811. floating-point and Advanced \s-1SIMD\s0 instructions will only be used if
  15812. \&\fB\-mfloat\-abi\fR is not set to \fBsoft\fR; and any setting of
  15813. \&\fB\-mfpu\fR other than \fBauto\fR will override the available
  15814. floating-point and \s-1SIMD\s0 extension instructions.
  15815. .Sp
  15816. For example, \fBcortex\-a9\fR can be found in three major
  15817. configurations: integer only, with just a floating-point unit or with
  15818. floating-point and Advanced \s-1SIMD.\s0 The default is to enable all the
  15819. instructions, but the extensions \fB+nosimd\fR and \fB+nofp\fR can
  15820. be used to disable just the \s-1SIMD\s0 or both the \s-1SIMD\s0 and floating-point
  15821. instructions respectively.
  15822. .Sp
  15823. Permissible names for this option are the same as those for
  15824. \&\fB\-mtune\fR.
  15825. .Sp
  15826. The following extension options are common to the listed CPUs:
  15827. .RS 4
  15828. .IP "\fB+nodsp\fR" 4
  15829. .IX Item "+nodsp"
  15830. Disable the \s-1DSP\s0 instructions on \fBcortex\-m33\fR.
  15831. .IP "\fB+nofp\fR" 4
  15832. .IX Item "+nofp"
  15833. Disables the floating-point instructions on \fBarm9e\fR,
  15834. \&\fBarm946e\-s\fR, \fBarm966e\-s\fR, \fBarm968e\-s\fR, \fBarm10e\fR,
  15835. \&\fBarm1020e\fR, \fBarm1022e\fR, \fBarm926ej\-s\fR,
  15836. \&\fBarm1026ej\-s\fR, \fBcortex\-r5\fR, \fBcortex\-r7\fR, \fBcortex\-r8\fR,
  15837. \&\fBcortex\-m4\fR, \fBcortex\-m7\fR and \fBcortex\-m33\fR.
  15838. Disables the floating-point and \s-1SIMD\s0 instructions on
  15839. \&\fBgeneric\-armv7\-a\fR, \fBcortex\-a5\fR, \fBcortex\-a7\fR,
  15840. \&\fBcortex\-a8\fR, \fBcortex\-a9\fR, \fBcortex\-a12\fR,
  15841. \&\fBcortex\-a15\fR, \fBcortex\-a17\fR, \fBcortex\-a15.cortex\-a7\fR,
  15842. \&\fBcortex\-a17.cortex\-a7\fR, \fBcortex\-a32\fR, \fBcortex\-a35\fR,
  15843. \&\fBcortex\-a53\fR and \fBcortex\-a55\fR.
  15844. .IP "\fB+nofp.dp\fR" 4
  15845. .IX Item "+nofp.dp"
  15846. Disables the double-precision component of the floating-point instructions
  15847. on \fBcortex\-r5\fR, \fBcortex\-r7\fR, \fBcortex\-r8\fR, \fBcortex\-r52\fR and
  15848. \&\fBcortex\-m7\fR.
  15849. .IP "\fB+nosimd\fR" 4
  15850. .IX Item "+nosimd"
  15851. Disables the \s-1SIMD\s0 (but not floating-point) instructions on
  15852. \&\fBgeneric\-armv7\-a\fR, \fBcortex\-a5\fR, \fBcortex\-a7\fR
  15853. and \fBcortex\-a9\fR.
  15854. .IP "\fB+crypto\fR" 4
  15855. .IX Item "+crypto"
  15856. Enables the cryptographic instructions on \fBcortex\-a32\fR,
  15857. \&\fBcortex\-a35\fR, \fBcortex\-a53\fR, \fBcortex\-a55\fR, \fBcortex\-a57\fR,
  15858. \&\fBcortex\-a72\fR, \fBcortex\-a73\fR, \fBcortex\-a75\fR, \fBexynos\-m1\fR,
  15859. \&\fBxgene1\fR, \fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
  15860. \&\fBcortex\-a73.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR and
  15861. \&\fBcortex\-a75.cortex\-a55\fR.
  15862. .RE
  15863. .RS 4
  15864. .Sp
  15865. Additionally the \fBgeneric\-armv7\-a\fR pseudo target defaults to
  15866. VFPv3 with 16 double-precision registers. It supports the following
  15867. extension options: \fBmp\fR, \fBsec\fR, \fBvfpv3\-d16\fR,
  15868. \&\fBvfpv3\fR, \fBvfpv3\-d16\-fp16\fR, \fBvfpv3\-fp16\fR,
  15869. \&\fBvfpv4\-d16\fR, \fBvfpv4\fR, \fBneon\fR, \fBneon\-vfpv3\fR,
  15870. \&\fBneon\-fp16\fR, \fBneon\-vfpv4\fR. The meanings are the same as for
  15871. the extensions to \fB\-march=armv7\-a\fR.
  15872. .Sp
  15873. \&\fB\-mcpu=generic\-\fR\fIarch\fR is also permissible, and is
  15874. equivalent to \fB\-march=\fR\fIarch\fR \fB\-mtune=generic\-\fR\fIarch\fR.
  15875. See \fB\-mtune\fR for more information.
  15876. .Sp
  15877. \&\fB\-mcpu=native\fR causes the compiler to auto-detect the \s-1CPU\s0
  15878. of the build computer. At present, this feature is only supported on
  15879. GNU/Linux, and not all architectures are recognized. If the auto-detect
  15880. is unsuccessful the option has no effect.
  15881. .RE
  15882. .IP "\fB\-mfpu=\fR\fIname\fR" 4
  15883. .IX Item "-mfpu=name"
  15884. This specifies what floating-point hardware (or hardware emulation) is
  15885. available on the target. Permissible names are: \fBauto\fR, \fBvfpv2\fR,
  15886. \&\fBvfpv3\fR,
  15887. \&\fBvfpv3\-fp16\fR, \fBvfpv3\-d16\fR, \fBvfpv3\-d16\-fp16\fR, \fBvfpv3xd\fR,
  15888. \&\fBvfpv3xd\-fp16\fR, \fBneon\-vfpv3\fR, \fBneon\-fp16\fR, \fBvfpv4\fR,
  15889. \&\fBvfpv4\-d16\fR, \fBfpv4\-sp\-d16\fR, \fBneon\-vfpv4\fR,
  15890. \&\fBfpv5\-d16\fR, \fBfpv5\-sp\-d16\fR,
  15891. \&\fBfp\-armv8\fR, \fBneon\-fp\-armv8\fR and \fBcrypto\-neon\-fp\-armv8\fR.
  15892. Note that \fBneon\fR is an alias for \fBneon\-vfpv3\fR and \fBvfp\fR
  15893. is an alias for \fBvfpv2\fR.
  15894. .Sp
  15895. The setting \fBauto\fR is the default and is special. It causes the
  15896. compiler to select the floating-point and Advanced \s-1SIMD\s0 instructions
  15897. based on the settings of \fB\-mcpu\fR and \fB\-march\fR.
  15898. .Sp
  15899. If the selected floating-point hardware includes the \s-1NEON\s0 extension
  15900. (e.g. \fB\-mfpu=neon\fR), note that floating-point
  15901. operations are not generated by \s-1GCC\s0's auto-vectorization pass unless
  15902. \&\fB\-funsafe\-math\-optimizations\fR is also specified. This is
  15903. because \s-1NEON\s0 hardware does not fully implement the \s-1IEEE 754\s0 standard for
  15904. floating-point arithmetic (in particular denormal values are treated as
  15905. zero), so the use of \s-1NEON\s0 instructions may lead to a loss of precision.
  15906. .Sp
  15907. You can also set the fpu name at function level by using the \f(CW\*(C`target("fpu=")\*(C'\fR function attributes or pragmas.
  15908. .IP "\fB\-mfp16\-format=\fR\fIname\fR" 4
  15909. .IX Item "-mfp16-format=name"
  15910. Specify the format of the \f(CW\*(C`_\|_fp16\*(C'\fR half-precision floating-point type.
  15911. Permissible names are \fBnone\fR, \fBieee\fR, and \fBalternative\fR;
  15912. the default is \fBnone\fR, in which case the \f(CW\*(C`_\|_fp16\*(C'\fR type is not
  15913. defined.
  15914. .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
  15915. .IX Item "-mstructure-size-boundary=n"
  15916. The sizes of all structures and unions are rounded up to a multiple
  15917. of the number of bits set by this option. Permissible values are 8, 32
  15918. and 64. The default value varies for different toolchains. For the \s-1COFF\s0
  15919. targeted toolchain the default value is 8. A value of 64 is only allowed
  15920. if the underlying \s-1ABI\s0 supports it.
  15921. .Sp
  15922. Specifying a larger number can produce faster, more efficient code, but
  15923. can also increase the size of the program. Different values are potentially
  15924. incompatible. Code compiled with one value cannot necessarily expect to
  15925. work with code or libraries compiled with another value, if they exchange
  15926. information using structures or unions.
  15927. .Sp
  15928. This option is deprecated.
  15929. .IP "\fB\-mabort\-on\-noreturn\fR" 4
  15930. .IX Item "-mabort-on-noreturn"
  15931. Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
  15932. \&\f(CW\*(C`noreturn\*(C'\fR function. It is executed if the function tries to
  15933. return.
  15934. .IP "\fB\-mlong\-calls\fR" 4
  15935. .IX Item "-mlong-calls"
  15936. .PD 0
  15937. .IP "\fB\-mno\-long\-calls\fR" 4
  15938. .IX Item "-mno-long-calls"
  15939. .PD
  15940. Tells the compiler to perform function calls by first loading the
  15941. address of the function into a register and then performing a subroutine
  15942. call on this register. This switch is needed if the target function
  15943. lies outside of the 64\-megabyte addressing range of the offset-based
  15944. version of subroutine call instruction.
  15945. .Sp
  15946. Even if this switch is enabled, not all function calls are turned
  15947. into long calls. The heuristic is that static functions, functions
  15948. that have the \f(CW\*(C`short_call\*(C'\fR attribute, functions that are inside
  15949. the scope of a \f(CW\*(C`#pragma no_long_calls\*(C'\fR directive, and functions whose
  15950. definitions have already been compiled within the current compilation
  15951. unit are not turned into long calls. The exceptions to this rule are
  15952. that weak function definitions, functions with the \f(CW\*(C`long_call\*(C'\fR
  15953. attribute or the \f(CW\*(C`section\*(C'\fR attribute, and functions that are within
  15954. the scope of a \f(CW\*(C`#pragma long_calls\*(C'\fR directive are always
  15955. turned into long calls.
  15956. .Sp
  15957. This feature is not enabled by default. Specifying
  15958. \&\fB\-mno\-long\-calls\fR restores the default behavior, as does
  15959. placing the function calls within the scope of a \f(CW\*(C`#pragma
  15960. long_calls_off\*(C'\fR directive. Note these switches have no effect on how
  15961. the compiler generates code to handle function calls via function
  15962. pointers.
  15963. .IP "\fB\-msingle\-pic\-base\fR" 4
  15964. .IX Item "-msingle-pic-base"
  15965. Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
  15966. loading it in the prologue for each function. The runtime system is
  15967. responsible for initializing this register with an appropriate value
  15968. before execution begins.
  15969. .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
  15970. .IX Item "-mpic-register=reg"
  15971. Specify the register to be used for \s-1PIC\s0 addressing.
  15972. For standard \s-1PIC\s0 base case, the default is any suitable register
  15973. determined by compiler. For single \s-1PIC\s0 base case, the default is
  15974. \&\fBR9\fR if target is \s-1EABI\s0 based or stack-checking is enabled,
  15975. otherwise the default is \fBR10\fR.
  15976. .IP "\fB\-mpic\-data\-is\-text\-relative\fR" 4
  15977. .IX Item "-mpic-data-is-text-relative"
  15978. Assume that the displacement between the text and data segments is fixed
  15979. at static link time. This permits using PC-relative addressing
  15980. operations to access data known to be in the data segment. For
  15981. non-VxWorks \s-1RTP\s0 targets, this option is enabled by default. When
  15982. disabled on such targets, it will enable \fB\-msingle\-pic\-base\fR by
  15983. default.
  15984. .IP "\fB\-mpoke\-function\-name\fR" 4
  15985. .IX Item "-mpoke-function-name"
  15986. Write the name of each function into the text section, directly
  15987. preceding the function prologue. The generated code is similar to this:
  15988. .Sp
  15989. .Vb 9
  15990. \& t0
  15991. \& .ascii "arm_poke_function_name", 0
  15992. \& .align
  15993. \& t1
  15994. \& .word 0xff000000 + (t1 \- t0)
  15995. \& arm_poke_function_name
  15996. \& mov ip, sp
  15997. \& stmfd sp!, {fp, ip, lr, pc}
  15998. \& sub fp, ip, #4
  15999. .Ve
  16000. .Sp
  16001. When performing a stack backtrace, code can inspect the value of
  16002. \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR. If the trace function then looks at
  16003. location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
  16004. there is a function name embedded immediately preceding this location
  16005. and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
  16006. .IP "\fB\-mthumb\fR" 4
  16007. .IX Item "-mthumb"
  16008. .PD 0
  16009. .IP "\fB\-marm\fR" 4
  16010. .IX Item "-marm"
  16011. .PD
  16012. Select between generating code that executes in \s-1ARM\s0 and Thumb
  16013. states. The default for most configurations is to generate code
  16014. that executes in \s-1ARM\s0 state, but the default can be changed by
  16015. configuring \s-1GCC\s0 with the \fB\-\-with\-mode=\fR\fIstate\fR
  16016. configure option.
  16017. .Sp
  16018. You can also override the \s-1ARM\s0 and Thumb mode for each function
  16019. by using the \f(CW\*(C`target("thumb")\*(C'\fR and \f(CW\*(C`target("arm")\*(C'\fR function attributes or pragmas.
  16020. .IP "\fB\-mflip\-thumb\fR" 4
  16021. .IX Item "-mflip-thumb"
  16022. Switch ARM/Thumb modes on alternating functions.
  16023. This option is provided for regression testing of mixed Thumb/ARM code
  16024. generation, and is not intended for ordinary use in compiling code.
  16025. .IP "\fB\-mtpcs\-frame\fR" 4
  16026. .IX Item "-mtpcs-frame"
  16027. Generate a stack frame that is compliant with the Thumb Procedure Call
  16028. Standard for all non-leaf functions. (A leaf function is one that does
  16029. not call any other functions.) The default is \fB\-mno\-tpcs\-frame\fR.
  16030. .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
  16031. .IX Item "-mtpcs-leaf-frame"
  16032. Generate a stack frame that is compliant with the Thumb Procedure Call
  16033. Standard for all leaf functions. (A leaf function is one that does
  16034. not call any other functions.) The default is \fB\-mno\-apcs\-leaf\-frame\fR.
  16035. .IP "\fB\-mcallee\-super\-interworking\fR" 4
  16036. .IX Item "-mcallee-super-interworking"
  16037. Gives all externally visible functions in the file being compiled an \s-1ARM\s0
  16038. instruction set header which switches to Thumb mode before executing the
  16039. rest of the function. This allows these functions to be called from
  16040. non-interworking code. This option is not valid in \s-1AAPCS\s0 configurations
  16041. because interworking is enabled by default.
  16042. .IP "\fB\-mcaller\-super\-interworking\fR" 4
  16043. .IX Item "-mcaller-super-interworking"
  16044. Allows calls via function pointers (including virtual functions) to
  16045. execute correctly regardless of whether the target code has been
  16046. compiled for interworking or not. There is a small overhead in the cost
  16047. of executing a function pointer if this option is enabled. This option
  16048. is not valid in \s-1AAPCS\s0 configurations because interworking is enabled
  16049. by default.
  16050. .IP "\fB\-mtp=\fR\fIname\fR" 4
  16051. .IX Item "-mtp=name"
  16052. Specify the access model for the thread local storage pointer. The valid
  16053. models are \fBsoft\fR, which generates calls to \f(CW\*(C`_\|_aeabi_read_tp\*(C'\fR,
  16054. \&\fBcp15\fR, which fetches the thread pointer from \f(CW\*(C`cp15\*(C'\fR directly
  16055. (supported in the arm6k architecture), and \fBauto\fR, which uses the
  16056. best available method for the selected processor. The default setting is
  16057. \&\fBauto\fR.
  16058. .IP "\fB\-mtls\-dialect=\fR\fIdialect\fR" 4
  16059. .IX Item "-mtls-dialect=dialect"
  16060. Specify the dialect to use for accessing thread local storage. Two
  16061. \&\fIdialect\fRs are supported\-\-\-\fBgnu\fR and \fBgnu2\fR. The
  16062. \&\fBgnu\fR dialect selects the original \s-1GNU\s0 scheme for supporting
  16063. local and global dynamic \s-1TLS\s0 models. The \fBgnu2\fR dialect
  16064. selects the \s-1GNU\s0 descriptor scheme, which provides better performance
  16065. for shared libraries. The \s-1GNU\s0 descriptor scheme is compatible with
  16066. the original scheme, but does require new assembler, linker and
  16067. library support. Initial and local exec \s-1TLS\s0 models are unaffected by
  16068. this option and always use the original scheme.
  16069. .IP "\fB\-mword\-relocations\fR" 4
  16070. .IX Item "-mword-relocations"
  16071. Only generate absolute relocations on word-sized values (i.e. R_ARM_ABS32).
  16072. This is enabled by default on targets (uClinux, SymbianOS) where the runtime
  16073. loader imposes this restriction, and when \fB\-fpic\fR or \fB\-fPIC\fR
  16074. is specified.
  16075. .IP "\fB\-mfix\-cortex\-m3\-ldrd\fR" 4
  16076. .IX Item "-mfix-cortex-m3-ldrd"
  16077. Some Cortex\-M3 cores can cause data corruption when \f(CW\*(C`ldrd\*(C'\fR instructions
  16078. with overlapping destination and base registers are used. This option avoids
  16079. generating these instructions. This option is enabled by default when
  16080. \&\fB\-mcpu=cortex\-m3\fR is specified.
  16081. .IP "\fB\-munaligned\-access\fR" 4
  16082. .IX Item "-munaligned-access"
  16083. .PD 0
  16084. .IP "\fB\-mno\-unaligned\-access\fR" 4
  16085. .IX Item "-mno-unaligned-access"
  16086. .PD
  16087. Enables (or disables) reading and writing of 16\- and 32\- bit values
  16088. from addresses that are not 16\- or 32\- bit aligned. By default
  16089. unaligned access is disabled for all pre\-ARMv6, all ARMv6\-M and for
  16090. ARMv8\-M Baseline architectures, and enabled for all other
  16091. architectures. If unaligned access is not enabled then words in packed
  16092. data structures are accessed a byte at a time.
  16093. .Sp
  16094. The \s-1ARM\s0 attribute \f(CW\*(C`Tag_CPU_unaligned_access\*(C'\fR is set in the
  16095. generated object file to either true or false, depending upon the
  16096. setting of this option. If unaligned access is enabled then the
  16097. preprocessor symbol \f(CW\*(C`_\|_ARM_FEATURE_UNALIGNED\*(C'\fR is also
  16098. defined.
  16099. .IP "\fB\-mneon\-for\-64bits\fR" 4
  16100. .IX Item "-mneon-for-64bits"
  16101. Enables using Neon to handle scalar 64\-bits operations. This is
  16102. disabled by default since the cost of moving data from core registers
  16103. to Neon is high.
  16104. .IP "\fB\-mslow\-flash\-data\fR" 4
  16105. .IX Item "-mslow-flash-data"
  16106. Assume loading data from flash is slower than fetching instruction.
  16107. Therefore literal load is minimized for better performance.
  16108. This option is only supported when compiling for ARMv7 M\-profile and
  16109. off by default.
  16110. .IP "\fB\-masm\-syntax\-unified\fR" 4
  16111. .IX Item "-masm-syntax-unified"
  16112. Assume inline assembler is using unified asm syntax. The default is
  16113. currently off which implies divided syntax. This option has no impact
  16114. on Thumb2. However, this may change in future releases of \s-1GCC.\s0
  16115. Divided syntax should be considered deprecated.
  16116. .IP "\fB\-mrestrict\-it\fR" 4
  16117. .IX Item "-mrestrict-it"
  16118. Restricts generation of \s-1IT\s0 blocks to conform to the rules of ARMv8\-A.
  16119. \&\s-1IT\s0 blocks can only contain a single 16\-bit instruction from a select
  16120. set of instructions. This option is on by default for ARMv8\-A Thumb mode.
  16121. .IP "\fB\-mprint\-tune\-info\fR" 4
  16122. .IX Item "-mprint-tune-info"
  16123. Print \s-1CPU\s0 tuning information as comment in assembler file. This is
  16124. an option used only for regression testing of the compiler and not
  16125. intended for ordinary use in compiling code. This option is disabled
  16126. by default.
  16127. .IP "\fB\-mverbose\-cost\-dump\fR" 4
  16128. .IX Item "-mverbose-cost-dump"
  16129. Enable verbose cost model dumping in the debug dump files. This option is
  16130. provided for use in debugging the compiler.
  16131. .IP "\fB\-mpure\-code\fR" 4
  16132. .IX Item "-mpure-code"
  16133. Do not allow constant data to be placed in code sections.
  16134. Additionally, when compiling for \s-1ELF\s0 object format give all text sections the
  16135. \&\s-1ELF\s0 processor-specific section attribute \f(CW\*(C`SHF_ARM_PURECODE\*(C'\fR. This option
  16136. is only available when generating non-pic code for M\-profile targets with the
  16137. \&\s-1MOVT\s0 instruction.
  16138. .IP "\fB\-mcmse\fR" 4
  16139. .IX Item "-mcmse"
  16140. Generate secure code as per the \*(L"ARMv8\-M Security Extensions: Requirements on
  16141. Development Tools Engineering Specification\*(R", which can be found on
  16142. <\fBhttp://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/ECM0359818_armv8m_security_extensions_reqs_on_dev_tools_1_0.pdf\fR>.
  16143. .PP
  16144. \fI\s-1AVR\s0 Options\fR
  16145. .IX Subsection "AVR Options"
  16146. .PP
  16147. These options are defined for \s-1AVR\s0 implementations:
  16148. .IP "\fB\-mmcu=\fR\fImcu\fR" 4
  16149. .IX Item "-mmcu=mcu"
  16150. Specify Atmel \s-1AVR\s0 instruction set architectures (\s-1ISA\s0) or \s-1MCU\s0 type.
  16151. .Sp
  16152. The default for this option is@tie{}\fBavr2\fR.
  16153. .Sp
  16154. \&\s-1GCC\s0 supports the following \s-1AVR\s0 devices and ISAs:
  16155. .RS 4
  16156. .ie n .IP """avr2""" 4
  16157. .el .IP "\f(CWavr2\fR" 4
  16158. .IX Item "avr2"
  16159. \&\*(L"Classic\*(R" devices with up to 8@tie{}KiB of program memory.
  16160. \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`attiny22\*(C'\fR, \f(CW\*(C`attiny26\*(C'\fR, \f(CW\*(C`at90c8534\*(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`at90s8515\*(C'\fR, \f(CW\*(C`at90s8535\*(C'\fR.
  16161. .ie n .IP """avr25""" 4
  16162. .el .IP "\f(CWavr25\fR" 4
  16163. .IX Item "avr25"
  16164. \&\*(L"Classic\*(R" devices with up to 8@tie{}KiB of program memory and with the \f(CW\*(C`MOVW\*(C'\fR instruction.
  16165. \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`ata5272\*(C'\fR, \f(CW\*(C`ata6616c\*(C'\fR, \f(CW\*(C`attiny13\*(C'\fR, \f(CW\*(C`attiny13a\*(C'\fR, \f(CW\*(C`attiny2313\*(C'\fR, \f(CW\*(C`attiny2313a\*(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`attiny43u\*(C'\fR, \f(CW\*(C`attiny4313\*(C'\fR, \f(CW\*(C`attiny44\*(C'\fR, \f(CW\*(C`attiny44a\*(C'\fR, \f(CW\*(C`attiny441\*(C'\fR, \f(CW\*(C`attiny45\*(C'\fR, \f(CW\*(C`attiny461\*(C'\fR, \f(CW\*(C`attiny461a\*(C'\fR, \f(CW\*(C`attiny48\*(C'\fR, \f(CW\*(C`attiny828\*(C'\fR, \f(CW\*(C`attiny84\*(C'\fR, \f(CW\*(C`attiny84a\*(C'\fR, \f(CW\*(C`attiny841\*(C'\fR, \f(CW\*(C`attiny85\*(C'\fR, \f(CW\*(C`attiny861\*(C'\fR, \f(CW\*(C`attiny861a\*(C'\fR, \f(CW\*(C`attiny87\*(C'\fR, \f(CW\*(C`attiny88\*(C'\fR, \f(CW\*(C`at86rf401\*(C'\fR.
  16166. .ie n .IP """avr3""" 4
  16167. .el .IP "\f(CWavr3\fR" 4
  16168. .IX Item "avr3"
  16169. \&\*(L"Classic\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of program memory.
  16170. \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`at43usb355\*(C'\fR, \f(CW\*(C`at76c711\*(C'\fR.
  16171. .ie n .IP """avr31""" 4
  16172. .el .IP "\f(CWavr31\fR" 4
  16173. .IX Item "avr31"
  16174. \&\*(L"Classic\*(R" devices with 128@tie{}KiB of program memory.
  16175. \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atmega103\*(C'\fR, \f(CW\*(C`at43usb320\*(C'\fR.
  16176. .ie n .IP """avr35""" 4
  16177. .el .IP "\f(CWavr35\fR" 4
  16178. .IX Item "avr35"
  16179. \&\*(L"Classic\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of program memory and with the \f(CW\*(C`MOVW\*(C'\fR instruction.
  16180. \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`ata5505\*(C'\fR, \f(CW\*(C`ata6617c\*(C'\fR, \f(CW\*(C`ata664251\*(C'\fR, \f(CW\*(C`atmega16u2\*(C'\fR, \f(CW\*(C`atmega32u2\*(C'\fR, \f(CW\*(C`atmega8u2\*(C'\fR, \f(CW\*(C`attiny1634\*(C'\fR, \f(CW\*(C`attiny167\*(C'\fR, \f(CW\*(C`at90usb162\*(C'\fR, \f(CW\*(C`at90usb82\*(C'\fR.
  16181. .ie n .IP """avr4""" 4
  16182. .el .IP "\f(CWavr4\fR" 4
  16183. .IX Item "avr4"
  16184. \&\*(L"Enhanced\*(R" devices with up to 8@tie{}KiB of program memory.
  16185. \&\fImcu\fR\f(CW@tie\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`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`atmega8515\*(C'\fR, \f(CW\*(C`atmega8535\*(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`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.
  16186. .ie n .IP """avr5""" 4
  16187. .el .IP "\f(CWavr5\fR" 4
  16188. .IX Item "avr5"
  16189. \&\*(L"Enhanced\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of program memory.
  16190. \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`ata5702m322\*(C'\fR, \f(CW\*(C`ata5782\*(C'\fR, \f(CW\*(C`ata5790\*(C'\fR, \f(CW\*(C`ata5790n\*(C'\fR, \f(CW\*(C`ata5791\*(C'\fR, \f(CW\*(C`ata5795\*(C'\fR, \f(CW\*(C`ata5831\*(C'\fR, \f(CW\*(C`ata6613c\*(C'\fR, \f(CW\*(C`ata6614q\*(C'\fR, \f(CW\*(C`ata8210\*(C'\fR, \f(CW\*(C`ata8510\*(C'\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`atmega3250\*(C'\fR, \f(CW\*(C`atmega3250a\*(C'\fR, \f(CW\*(C`atmega3250p\*(C'\fR, \f(CW\*(C`atmega3250pa\*(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`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`atmega6450\*(C'\fR, \f(CW\*(C`atmega6450a\*(C'\fR, \f(CW\*(C`atmega6450p\*(C'\fR, \f(CW\*(C`atmega649\*(C'\fR, \f(CW\*(C`atmega649a\*(C'\fR, \f(CW\*(C`atmega649p\*(C'\fR, \f(CW\*(C`atmega6490\*(C'\fR, \f(CW\*(C`atmega6490a\*(C'\fR, \f(CW\*(C`atmega6490p\*(C'\fR, \f(CW\*(C`at90can32\*(C'\fR, \f(CW\*(C`at90can64\*(C'\fR, \f(CW\*(C`at90pwm161\*(C'\fR, \f(CW\*(C`at90pwm216\*(C'\fR, \f(CW\*(C`at90pwm316\*(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.
  16191. .ie n .IP """avr51""" 4
  16192. .el .IP "\f(CWavr51\fR" 4
  16193. .IX Item "avr51"
  16194. \&\*(L"Enhanced\*(R" devices with 128@tie{}KiB of program memory.
  16195. \&\fImcu\fR\f(CW@tie\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.
  16196. .ie n .IP """avr6""" 4
  16197. .el .IP "\f(CWavr6\fR" 4
  16198. .IX Item "avr6"
  16199. \&\*(L"Enhanced\*(R" devices with 3\-byte \s-1PC,\s0 i.e. with more than 128@tie{}KiB of program memory.
  16200. \&\fImcu\fR\f(CW@tie\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.
  16201. .ie n .IP """avrxmega2""" 4
  16202. .el .IP "\f(CWavrxmega2\fR" 4
  16203. .IX Item "avrxmega2"
  16204. \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 8@tie{}KiB and up to 64@tie{}KiB of program memory.
  16205. \&\fImcu\fR\f(CW@tie\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, \f(CW\*(C`atxmega8e5\*(C'\fR.
  16206. .ie n .IP """avrxmega3""" 4
  16207. .el .IP "\f(CWavrxmega3\fR" 4
  16208. .IX Item "avrxmega3"
  16209. \&\*(L"\s-1XMEGA\*(R"\s0 devices with up to 64@tie{}KiB of combined program memory and \s-1RAM,\s0 and with program memory visible in the \s-1RAM\s0 address space.
  16210. \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`attiny1614\*(C'\fR, \f(CW\*(C`attiny1616\*(C'\fR, \f(CW\*(C`attiny1617\*(C'\fR, \f(CW\*(C`attiny212\*(C'\fR, \f(CW\*(C`attiny214\*(C'\fR, \f(CW\*(C`attiny3214\*(C'\fR, \f(CW\*(C`attiny3216\*(C'\fR, \f(CW\*(C`attiny3217\*(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`attiny814\*(C'\fR, \f(CW\*(C`attiny816\*(C'\fR, \f(CW\*(C`attiny817\*(C'\fR.
  16211. .ie n .IP """avrxmega4""" 4
  16212. .el .IP "\f(CWavrxmega4\fR" 4
  16213. .IX Item "avrxmega4"
  16214. \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 64@tie{}KiB and up to 128@tie{}KiB of program memory.
  16215. \&\fImcu\fR\f(CW@tie\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.
  16216. .ie n .IP """avrxmega5""" 4
  16217. .el .IP "\f(CWavrxmega5\fR" 4
  16218. .IX Item "avrxmega5"
  16219. \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 64@tie{}KiB and up to 128@tie{}KiB of program memory and more than 64@tie{}KiB of \s-1RAM.\s0
  16220. \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega64a1\*(C'\fR, \f(CW\*(C`atxmega64a1u\*(C'\fR.
  16221. .ie n .IP """avrxmega6""" 4
  16222. .el .IP "\f(CWavrxmega6\fR" 4
  16223. .IX Item "avrxmega6"
  16224. \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 128@tie{}KiB of program memory.
  16225. \&\fImcu\fR\f(CW@tie\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.
  16226. .ie n .IP """avrxmega7""" 4
  16227. .el .IP "\f(CWavrxmega7\fR" 4
  16228. .IX Item "avrxmega7"
  16229. \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 128@tie{}KiB of program memory and more than 64@tie{}KiB of \s-1RAM.\s0
  16230. \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega128a1\*(C'\fR, \f(CW\*(C`atxmega128a1u\*(C'\fR, \f(CW\*(C`atxmega128a4u\*(C'\fR.
  16231. .ie n .IP """avrtiny""" 4
  16232. .el .IP "\f(CWavrtiny\fR" 4
  16233. .IX Item "avrtiny"
  16234. \&\*(L"\s-1TINY\*(R"\s0 Tiny core devices with 512@tie{}B up to 4@tie{}KiB of program memory.
  16235. \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`attiny10\*(C'\fR, \f(CW\*(C`attiny20\*(C'\fR, \f(CW\*(C`attiny4\*(C'\fR, \f(CW\*(C`attiny40\*(C'\fR, \f(CW\*(C`attiny5\*(C'\fR, \f(CW\*(C`attiny9\*(C'\fR.
  16236. .ie n .IP """avr1""" 4
  16237. .el .IP "\f(CWavr1\fR" 4
  16238. .IX Item "avr1"
  16239. This \s-1ISA\s0 is implemented by the minimal \s-1AVR\s0 core and supported for assembler only.
  16240. \&\fImcu\fR\f(CW@tie\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.
  16241. .RE
  16242. .RS 4
  16243. .RE
  16244. .IP "\fB\-mabsdata\fR" 4
  16245. .IX Item "-mabsdata"
  16246. Assume that all data in static storage can be accessed by \s-1LDS / STS\s0
  16247. instructions. This option has only an effect on reduced Tiny devices like
  16248. ATtiny40. See also the \f(CW\*(C`absdata\*(C'\fR
  16249. \&\fB\s-1AVR\s0 Variable Attributes,variable attribute\fR.
  16250. .IP "\fB\-maccumulate\-args\fR" 4
  16251. .IX Item "-maccumulate-args"
  16252. Accumulate outgoing function arguments and acquire/release the needed
  16253. stack space for outgoing function arguments once in function
  16254. prologue/epilogue. Without this option, outgoing arguments are pushed
  16255. before calling a function and popped afterwards.
  16256. .Sp
  16257. Popping the arguments after the function call can be expensive on
  16258. \&\s-1AVR\s0 so that accumulating the stack space might lead to smaller
  16259. executables because arguments need not be removed from the
  16260. stack after such a function call.
  16261. .Sp
  16262. This option can lead to reduced code size for functions that perform
  16263. several calls to functions that get their arguments on the stack like
  16264. calls to printf-like functions.
  16265. .IP "\fB\-mbranch\-cost=\fR\fIcost\fR" 4
  16266. .IX Item "-mbranch-cost=cost"
  16267. Set the branch costs for conditional branch instructions to
  16268. \&\fIcost\fR. Reasonable values for \fIcost\fR are small, non-negative
  16269. integers. The default branch cost is 0.
  16270. .IP "\fB\-mcall\-prologues\fR" 4
  16271. .IX Item "-mcall-prologues"
  16272. Functions prologues/epilogues are expanded as calls to appropriate
  16273. subroutines. Code size is smaller.
  16274. .IP "\fB\-mgas\-isr\-prologues\fR" 4
  16275. .IX Item "-mgas-isr-prologues"
  16276. Interrupt service routines (ISRs) may use the \f(CW\*(C`_\|_gcc_isr\*(C'\fR pseudo
  16277. instruction supported by \s-1GNU\s0 Binutils.
  16278. If this option is on, the feature can still be disabled for individual
  16279. ISRs by means of the \fB\s-1AVR\s0 Function Attributes,,\f(CB\*(C`no_gccisr\*(C'\fB\fR
  16280. function attribute. This feature is activated per default
  16281. if optimization is on (but not with \fB\-Og\fR, \f(CW@pxref\fR{Optimize Options}),
  16282. and if \s-1GNU\s0 Binutils support \s-1PR21683\s0 (\f(CW\*(C`https://sourceware.org/PR21683\*(C'\fR).
  16283. .IP "\fB\-mint8\fR" 4
  16284. .IX Item "-mint8"
  16285. Assume \f(CW\*(C`int\*(C'\fR to be 8\-bit integer. This affects the sizes of all types: a
  16286. \&\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,
  16287. and \f(CW\*(C`long long\*(C'\fR is 4 bytes. Please note that this option does not
  16288. conform to the C standards, but it results in smaller code
  16289. size.
  16290. .IP "\fB\-mmain\-is\-OS_task\fR" 4
  16291. .IX Item "-mmain-is-OS_task"
  16292. Do not save registers in \f(CW\*(C`main\*(C'\fR. The effect is the same like
  16293. attaching attribute \fB\s-1AVR\s0 Function Attributes,,\f(CB\*(C`OS_task\*(C'\fB\fR
  16294. to \f(CW\*(C`main\*(C'\fR. It is activated per default if optimization is on.
  16295. .IP "\fB\-mn\-flash=\fR\fInum\fR" 4
  16296. .IX Item "-mn-flash=num"
  16297. Assume that the flash memory has a size of
  16298. \&\fInum\fR times 64@tie{}KiB.
  16299. .IP "\fB\-mno\-interrupts\fR" 4
  16300. .IX Item "-mno-interrupts"
  16301. Generated code is not compatible with hardware interrupts.
  16302. Code size is smaller.
  16303. .IP "\fB\-mrelax\fR" 4
  16304. .IX Item "-mrelax"
  16305. Try to replace \f(CW\*(C`CALL\*(C'\fR resp. \f(CW\*(C`JMP\*(C'\fR instruction by the shorter
  16306. \&\f(CW\*(C`RCALL\*(C'\fR resp. \f(CW\*(C`RJMP\*(C'\fR instruction if applicable.
  16307. Setting \fB\-mrelax\fR just adds the \fB\-\-mlink\-relax\fR option to
  16308. the assembler's command line and the \fB\-\-relax\fR option to the
  16309. linker's command line.
  16310. .Sp
  16311. Jump relaxing is performed by the linker because jump offsets are not
  16312. known before code is located. Therefore, the assembler code generated by the
  16313. compiler is the same, but the instructions in the executable may
  16314. differ from instructions in the assembler code.
  16315. .Sp
  16316. Relaxing must be turned on if linker stubs are needed, see the
  16317. section on \f(CW\*(C`EIND\*(C'\fR and linker stubs below.
  16318. .IP "\fB\-mrmw\fR" 4
  16319. .IX Item "-mrmw"
  16320. Assume that the device supports the Read-Modify-Write
  16321. 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.
  16322. .IP "\fB\-mshort\-calls\fR" 4
  16323. .IX Item "-mshort-calls"
  16324. Assume that \f(CW\*(C`RJMP\*(C'\fR and \f(CW\*(C`RCALL\*(C'\fR can target the whole
  16325. program memory.
  16326. .Sp
  16327. This option is used internally for multilib selection. It is
  16328. not an optimization option, and you don't need to set it by hand.
  16329. .IP "\fB\-msp8\fR" 4
  16330. .IX Item "-msp8"
  16331. Treat the stack pointer register as an 8\-bit register,
  16332. i.e. assume the high byte of the stack pointer is zero.
  16333. In general, you don't need to set this option by hand.
  16334. .Sp
  16335. This option is used internally by the compiler to select and
  16336. build multilibs for architectures \f(CW\*(C`avr2\*(C'\fR and \f(CW\*(C`avr25\*(C'\fR.
  16337. These architectures mix devices with and without \f(CW\*(C`SPH\*(C'\fR.
  16338. For any setting other than \fB\-mmcu=avr2\fR or \fB\-mmcu=avr25\fR
  16339. the compiler driver adds or removes this option from the compiler
  16340. proper's command line, because the compiler then knows if the device
  16341. or architecture has an 8\-bit stack pointer and thus no \f(CW\*(C`SPH\*(C'\fR
  16342. register or not.
  16343. .IP "\fB\-mstrict\-X\fR" 4
  16344. .IX Item "-mstrict-X"
  16345. Use address register \f(CW\*(C`X\*(C'\fR in a way proposed by the hardware. This means
  16346. that \f(CW\*(C`X\*(C'\fR is only used in indirect, post-increment or
  16347. pre-decrement addressing.
  16348. .Sp
  16349. Without this option, the \f(CW\*(C`X\*(C'\fR register may be used in the same way
  16350. as \f(CW\*(C`Y\*(C'\fR or \f(CW\*(C`Z\*(C'\fR which then is emulated by additional
  16351. instructions.
  16352. For example, loading a value with \f(CW\*(C`X+const\*(C'\fR addressing with a
  16353. small non-negative \f(CW\*(C`const < 64\*(C'\fR to a register \fIRn\fR is
  16354. performed as
  16355. .Sp
  16356. .Vb 3
  16357. \& adiw r26, const ; X += const
  16358. \& ld <Rn>, X ; <Rn> = *X
  16359. \& sbiw r26, const ; X \-= const
  16360. .Ve
  16361. .IP "\fB\-mtiny\-stack\fR" 4
  16362. .IX Item "-mtiny-stack"
  16363. Only change the lower 8@tie{}bits of the stack pointer.
  16364. .IP "\fB\-mfract\-convert\-truncate\fR" 4
  16365. .IX Item "-mfract-convert-truncate"
  16366. Allow to use truncation instead of rounding towards zero for fractional fixed-point types.
  16367. .IP "\fB\-nodevicelib\fR" 4
  16368. .IX Item "-nodevicelib"
  16369. Don't link against AVR-LibC's device specific library \f(CW\*(C`lib<mcu>.a\*(C'\fR.
  16370. .IP "\fB\-Waddr\-space\-convert\fR" 4
  16371. .IX Item "-Waddr-space-convert"
  16372. Warn about conversions between address spaces in the case where the
  16373. resulting address space is not contained in the incoming address space.
  16374. .IP "\fB\-Wmisspelled\-isr\fR" 4
  16375. .IX Item "-Wmisspelled-isr"
  16376. Warn if the \s-1ISR\s0 is misspelled, i.e. without _\|_vector prefix.
  16377. Enabled by default.
  16378. .PP
  16379. \f(CW\*(C`EIND\*(C'\fR and Devices with More Than 128 Ki Bytes of Flash
  16380. .IX Subsection "EIND and Devices with More Than 128 Ki Bytes of Flash"
  16381. .PP
  16382. Pointers in the implementation are 16@tie{}bits wide.
  16383. The address of a function or label is represented as word address so
  16384. that indirect jumps and calls can target any code address in the
  16385. range of 64@tie{}Ki words.
  16386. .PP
  16387. In order to facilitate indirect jump on devices with more than 128@tie{}Ki
  16388. bytes of program memory space, there is a special function register called
  16389. \&\f(CW\*(C`EIND\*(C'\fR that serves as most significant part of the target address
  16390. when \f(CW\*(C`EICALL\*(C'\fR or \f(CW\*(C`EIJMP\*(C'\fR instructions are used.
  16391. .PP
  16392. Indirect jumps and calls on these devices are handled as follows by
  16393. the compiler and are subject to some limitations:
  16394. .IP "*" 4
  16395. The compiler never sets \f(CW\*(C`EIND\*(C'\fR.
  16396. .IP "*" 4
  16397. The compiler uses \f(CW\*(C`EIND\*(C'\fR implicitly in \f(CW\*(C`EICALL\*(C'\fR/\f(CW\*(C`EIJMP\*(C'\fR
  16398. instructions or might read \f(CW\*(C`EIND\*(C'\fR directly in order to emulate an
  16399. indirect call/jump by means of a \f(CW\*(C`RET\*(C'\fR instruction.
  16400. .IP "*" 4
  16401. The compiler assumes that \f(CW\*(C`EIND\*(C'\fR never changes during the startup
  16402. code or during the application. In particular, \f(CW\*(C`EIND\*(C'\fR is not
  16403. saved/restored in function or interrupt service routine
  16404. prologue/epilogue.
  16405. .IP "*" 4
  16406. For indirect calls to functions and computed goto, the linker
  16407. generates \fIstubs\fR. Stubs are jump pads sometimes also called
  16408. \&\fItrampolines\fR. Thus, the indirect call/jump jumps to such a stub.
  16409. The stub contains a direct jump to the desired address.
  16410. .IP "*" 4
  16411. Linker relaxation must be turned on so that the linker generates
  16412. the stubs correctly in all situations. See the compiler option
  16413. \&\fB\-mrelax\fR and the linker option \fB\-\-relax\fR.
  16414. There are corner cases where the linker is supposed to generate stubs
  16415. but aborts without relaxation and without a helpful error message.
  16416. .IP "*" 4
  16417. The default linker script is arranged for code with \f(CW\*(C`EIND = 0\*(C'\fR.
  16418. If code is supposed to work for a setup with \f(CW\*(C`EIND != 0\*(C'\fR, a custom
  16419. linker script has to be used in order to place the sections whose
  16420. name start with \f(CW\*(C`.trampolines\*(C'\fR into the segment where \f(CW\*(C`EIND\*(C'\fR
  16421. points to.
  16422. .IP "*" 4
  16423. The startup code from libgcc never sets \f(CW\*(C`EIND\*(C'\fR.
  16424. Notice that startup code is a blend of code from libgcc and AVR-LibC.
  16425. For the impact of AVR-LibC on \f(CW\*(C`EIND\*(C'\fR, see the
  16426. AVR-LibC\ user\ manual (\f(CW\*(C`http://nongnu.org/avr\-libc/user\-manual/\*(C'\fR).
  16427. .IP "*" 4
  16428. It is legitimate for user-specific startup code to set up \f(CW\*(C`EIND\*(C'\fR
  16429. early, for example by means of initialization code located in
  16430. section \f(CW\*(C`.init3\*(C'\fR. Such code runs prior to general startup code
  16431. that initializes \s-1RAM\s0 and calls constructors, but after the bit
  16432. of startup code from AVR-LibC that sets \f(CW\*(C`EIND\*(C'\fR to the segment
  16433. where the vector table is located.
  16434. .Sp
  16435. .Vb 1
  16436. \& #include <avr/io.h>
  16437. \&
  16438. \& static void
  16439. \& _\|_attribute_\|_((section(".init3"),naked,used,no_instrument_function))
  16440. \& init3_set_eind (void)
  16441. \& {
  16442. \& _\|_asm volatile ("ldi r24,pm_hh8(_\|_trampolines_start)\en\et"
  16443. \& "out %i0,r24" :: "n" (&EIND) : "r24","memory");
  16444. \& }
  16445. .Ve
  16446. .Sp
  16447. The \f(CW\*(C`_\|_trampolines_start\*(C'\fR symbol is defined in the linker script.
  16448. .IP "*" 4
  16449. Stubs are generated automatically by the linker if
  16450. the following two conditions are met:
  16451. .RS 4
  16452. .ie n .IP "\-<The address of a label is taken by means of the ""gs"" modifier>" 4
  16453. .el .IP "\-<The address of a label is taken by means of the \f(CWgs\fR modifier>" 4
  16454. .IX Item "-<The address of a label is taken by means of the gs modifier>"
  16455. (short for \fIgenerate stubs\fR) like so:
  16456. .Sp
  16457. .Vb 2
  16458. \& LDI r24, lo8(gs(<func>))
  16459. \& LDI r25, hi8(gs(<func>))
  16460. .Ve
  16461. .IP "\-<The final location of that label is in a code segment>" 4
  16462. .IX Item "-<The final location of that label is in a code segment>"
  16463. \&\fIoutside\fR the segment where the stubs are located.
  16464. .RE
  16465. .RS 4
  16466. .RE
  16467. .IP "*" 4
  16468. The compiler emits such \f(CW\*(C`gs\*(C'\fR modifiers for code labels in the
  16469. following situations:
  16470. .RS 4
  16471. .IP "\-<Taking address of a function or code label.>" 4
  16472. .IX Item "-<Taking address of a function or code label.>"
  16473. .PD 0
  16474. .IP "\-<Computed goto.>" 4
  16475. .IX Item "-<Computed goto.>"
  16476. .IP "\-<If prologue-save function is used, see \fB\-mcall\-prologues\fR>" 4
  16477. .IX Item "-<If prologue-save function is used, see -mcall-prologues>"
  16478. .PD
  16479. command-line option.
  16480. .IP "\-<Switch/case dispatch tables. If you do not want such dispatch>" 4
  16481. .IX Item "-<Switch/case dispatch tables. If you do not want such dispatch>"
  16482. tables you can specify the \fB\-fno\-jump\-tables\fR command-line option.
  16483. .IP "\-<C and \*(C+ constructors/destructors called during startup/shutdown.>" 4
  16484. .IX Item "-<C and constructors/destructors called during startup/shutdown.>"
  16485. .PD 0
  16486. .ie n .IP "\-<If the tools hit a ""gs()"" modifier explained above.>" 4
  16487. .el .IP "\-<If the tools hit a \f(CWgs()\fR modifier explained above.>" 4
  16488. .IX Item "-<If the tools hit a gs() modifier explained above.>"
  16489. .RE
  16490. .RS 4
  16491. .RE
  16492. .IP "*" 4
  16493. .PD
  16494. Jumping to non-symbolic addresses like so is \fInot\fR supported:
  16495. .Sp
  16496. .Vb 5
  16497. \& int main (void)
  16498. \& {
  16499. \& /* Call function at word address 0x2 */
  16500. \& return ((int(*)(void)) 0x2)();
  16501. \& }
  16502. .Ve
  16503. .Sp
  16504. Instead, a stub has to be set up, i.e. the function has to be called
  16505. through a symbol (\f(CW\*(C`func_4\*(C'\fR in the example):
  16506. .Sp
  16507. .Vb 3
  16508. \& int main (void)
  16509. \& {
  16510. \& extern int func_4 (void);
  16511. \&
  16512. \& /* Call function at byte address 0x4 */
  16513. \& return func_4();
  16514. \& }
  16515. .Ve
  16516. .Sp
  16517. and the application be linked with \fB\-Wl,\-\-defsym,func_4=0x4\fR.
  16518. Alternatively, \f(CW\*(C`func_4\*(C'\fR can be defined in the linker script.
  16519. .PP
  16520. 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
  16521. .IX Subsection "Handling of the RAMPD, RAMPX, RAMPY and RAMPZ Special Function Registers"
  16522. .PP
  16523. Some \s-1AVR\s0 devices support memories larger than the 64@tie{}KiB range
  16524. that can be accessed with 16\-bit pointers. To access memory locations
  16525. outside this 64@tie{}KiB range, the content of a \f(CW\*(C`RAMP\*(C'\fR
  16526. register is used as high part of the address:
  16527. The \f(CW\*(C`X\*(C'\fR, \f(CW\*(C`Y\*(C'\fR, \f(CW\*(C`Z\*(C'\fR address register is concatenated
  16528. with the \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR, \f(CW\*(C`RAMPZ\*(C'\fR special function
  16529. register, respectively, to get a wide address. Similarly,
  16530. \&\f(CW\*(C`RAMPD\*(C'\fR is used together with direct addressing.
  16531. .IP "*" 4
  16532. The startup code initializes the \f(CW\*(C`RAMP\*(C'\fR special function
  16533. registers with zero.
  16534. .IP "*" 4
  16535. If a \fB\s-1AVR\s0 Named Address Spaces,named address space\fR other than
  16536. generic or \f(CW\*(C`_\|_flash\*(C'\fR is used, then \f(CW\*(C`RAMPZ\*(C'\fR is set
  16537. as needed before the operation.
  16538. .IP "*" 4
  16539. If the device supports \s-1RAM\s0 larger than 64@tie{}KiB and the compiler
  16540. needs to change \f(CW\*(C`RAMPZ\*(C'\fR to accomplish an operation, \f(CW\*(C`RAMPZ\*(C'\fR
  16541. is reset to zero after the operation.
  16542. .IP "*" 4
  16543. If the device comes with a specific \f(CW\*(C`RAMP\*(C'\fR register, the \s-1ISR\s0
  16544. prologue/epilogue saves/restores that \s-1SFR\s0 and initializes it with
  16545. zero in case the \s-1ISR\s0 code might (implicitly) use it.
  16546. .IP "*" 4
  16547. \&\s-1RAM\s0 larger than 64@tie{}KiB is not supported by \s-1GCC\s0 for \s-1AVR\s0 targets.
  16548. If you use inline assembler to read from locations outside the
  16549. 16\-bit address range and change one of the \f(CW\*(C`RAMP\*(C'\fR registers,
  16550. you must reset it to zero after the access.
  16551. .PP
  16552. \s-1AVR\s0 Built-in Macros
  16553. .IX Subsection "AVR Built-in Macros"
  16554. .PP
  16555. \&\s-1GCC\s0 defines several built-in macros so that the user code can test
  16556. for the presence or absence of features. Almost any of the following
  16557. built-in macros are deduced from device capabilities and thus
  16558. triggered by the \fB\-mmcu=\fR command-line option.
  16559. .PP
  16560. For even more AVR-specific built-in macros see
  16561. \&\fB\s-1AVR\s0 Named Address Spaces\fR and \fB\s-1AVR\s0 Built-in Functions\fR.
  16562. .ie n .IP """_\|_AVR_ARCH_\|_""" 4
  16563. .el .IP "\f(CW_\|_AVR_ARCH_\|_\fR" 4
  16564. .IX Item "__AVR_ARCH__"
  16565. Build-in macro that resolves to a decimal number that identifies the
  16566. architecture and depends on the \fB\-mmcu=\fR\fImcu\fR option.
  16567. Possible values are:
  16568. .Sp
  16569. \&\f(CW2\fR, \f(CW25\fR, \f(CW3\fR, \f(CW31\fR, \f(CW35\fR,
  16570. \&\f(CW4\fR, \f(CW5\fR, \f(CW51\fR, \f(CW6\fR
  16571. .Sp
  16572. 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,
  16573. \&\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,
  16574. .Sp
  16575. respectively and
  16576. .Sp
  16577. \&\f(CW100\fR,
  16578. \&\f(CW102\fR, \f(CW103\fR, \f(CW104\fR,
  16579. \&\f(CW105\fR, \f(CW106\fR, \f(CW107\fR
  16580. .Sp
  16581. for \fImcu\fR=\f(CW\*(C`avrtiny\*(C'\fR,
  16582. \&\f(CW\*(C`avrxmega2\*(C'\fR, \f(CW\*(C`avrxmega3\*(C'\fR, \f(CW\*(C`avrxmega4\*(C'\fR,
  16583. \&\f(CW\*(C`avrxmega5\*(C'\fR, \f(CW\*(C`avrxmega6\*(C'\fR, \f(CW\*(C`avrxmega7\*(C'\fR, respectively.
  16584. If \fImcu\fR specifies a device, this built-in macro is set
  16585. accordingly. For example, with \fB\-mmcu=atmega8\fR the macro is
  16586. defined to \f(CW4\fR.
  16587. .ie n .IP """_\|_AVR_\fIDevice\fP_\|_""" 4
  16588. .el .IP "\f(CW_\|_AVR_\f(CIDevice\f(CW_\|_\fR" 4
  16589. .IX Item "__AVR_Device__"
  16590. Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro which reflects
  16591. the device's name. For example, \fB\-mmcu=atmega8\fR defines the
  16592. built-in macro \f(CW\*(C`_\|_AVR_ATmega8_\|_\*(C'\fR, \fB\-mmcu=attiny261a\fR defines
  16593. \&\f(CW\*(C`_\|_AVR_ATtiny261A_\|_\*(C'\fR, etc.
  16594. .Sp
  16595. The built-in macros' names follow
  16596. the scheme \f(CW\*(C`_\|_AVR_\f(CIDevice\f(CW_\|_\*(C'\fR where \fIDevice\fR is
  16597. the device name as from the \s-1AVR\s0 user manual. The difference between
  16598. \&\fIDevice\fR in the built-in macro and \fIdevice\fR in
  16599. \&\fB\-mmcu=\fR\fIdevice\fR is that the latter is always lowercase.
  16600. .Sp
  16601. If \fIdevice\fR is not a device but only a core architecture like
  16602. \&\fBavr51\fR, this macro is not defined.
  16603. .ie n .IP """_\|_AVR_DEVICE_NAME_\|_""" 4
  16604. .el .IP "\f(CW_\|_AVR_DEVICE_NAME_\|_\fR" 4
  16605. .IX Item "__AVR_DEVICE_NAME__"
  16606. Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro to
  16607. the device's name. For example, with \fB\-mmcu=atmega8\fR the macro
  16608. is defined to \f(CW\*(C`atmega8\*(C'\fR.
  16609. .Sp
  16610. If \fIdevice\fR is not a device but only a core architecture like
  16611. \&\fBavr51\fR, this macro is not defined.
  16612. .ie n .IP """_\|_AVR_XMEGA_\|_""" 4
  16613. .el .IP "\f(CW_\|_AVR_XMEGA_\|_\fR" 4
  16614. .IX Item "__AVR_XMEGA__"
  16615. The device / architecture belongs to the \s-1XMEGA\s0 family of devices.
  16616. .ie n .IP """_\|_AVR_HAVE_ELPM_\|_""" 4
  16617. .el .IP "\f(CW_\|_AVR_HAVE_ELPM_\|_\fR" 4
  16618. .IX Item "__AVR_HAVE_ELPM__"
  16619. The device has the \f(CW\*(C`ELPM\*(C'\fR instruction.
  16620. .ie n .IP """_\|_AVR_HAVE_ELPMX_\|_""" 4
  16621. .el .IP "\f(CW_\|_AVR_HAVE_ELPMX_\|_\fR" 4
  16622. .IX Item "__AVR_HAVE_ELPMX__"
  16623. The device has the \f(CW\*(C`ELPM R\f(CIn\f(CW,Z\*(C'\fR and \f(CW\*(C`ELPM
  16624. R\f(CIn\f(CW,Z+\*(C'\fR instructions.
  16625. .ie n .IP """_\|_AVR_HAVE_MOVW_\|_""" 4
  16626. .el .IP "\f(CW_\|_AVR_HAVE_MOVW_\|_\fR" 4
  16627. .IX Item "__AVR_HAVE_MOVW__"
  16628. The device has the \f(CW\*(C`MOVW\*(C'\fR instruction to perform 16\-bit
  16629. register-register moves.
  16630. .ie n .IP """_\|_AVR_HAVE_LPMX_\|_""" 4
  16631. .el .IP "\f(CW_\|_AVR_HAVE_LPMX_\|_\fR" 4
  16632. .IX Item "__AVR_HAVE_LPMX__"
  16633. The device has the \f(CW\*(C`LPM R\f(CIn\f(CW,Z\*(C'\fR and
  16634. \&\f(CW\*(C`LPM R\f(CIn\f(CW,Z+\*(C'\fR instructions.
  16635. .ie n .IP """_\|_AVR_HAVE_MUL_\|_""" 4
  16636. .el .IP "\f(CW_\|_AVR_HAVE_MUL_\|_\fR" 4
  16637. .IX Item "__AVR_HAVE_MUL__"
  16638. The device has a hardware multiplier.
  16639. .ie n .IP """_\|_AVR_HAVE_JMP_CALL_\|_""" 4
  16640. .el .IP "\f(CW_\|_AVR_HAVE_JMP_CALL_\|_\fR" 4
  16641. .IX Item "__AVR_HAVE_JMP_CALL__"
  16642. The device has the \f(CW\*(C`JMP\*(C'\fR and \f(CW\*(C`CALL\*(C'\fR instructions.
  16643. This is the case for devices with more than 8@tie{}KiB of program
  16644. memory.
  16645. .ie n .IP """_\|_AVR_HAVE_EIJMP_EICALL_\|_""" 4
  16646. .el .IP "\f(CW_\|_AVR_HAVE_EIJMP_EICALL_\|_\fR" 4
  16647. .IX Item "__AVR_HAVE_EIJMP_EICALL__"
  16648. .PD 0
  16649. .ie n .IP """_\|_AVR_3_BYTE_PC_\|_""" 4
  16650. .el .IP "\f(CW_\|_AVR_3_BYTE_PC_\|_\fR" 4
  16651. .IX Item "__AVR_3_BYTE_PC__"
  16652. .PD
  16653. The device has the \f(CW\*(C`EIJMP\*(C'\fR and \f(CW\*(C`EICALL\*(C'\fR instructions.
  16654. This is the case for devices with more than 128@tie{}KiB of program memory.
  16655. This also means that the program counter
  16656. (\s-1PC\s0) is 3@tie{}bytes wide.
  16657. .ie n .IP """_\|_AVR_2_BYTE_PC_\|_""" 4
  16658. .el .IP "\f(CW_\|_AVR_2_BYTE_PC_\|_\fR" 4
  16659. .IX Item "__AVR_2_BYTE_PC__"
  16660. The program counter (\s-1PC\s0) is 2@tie{}bytes wide. This is the case for devices
  16661. with up to 128@tie{}KiB of program memory.
  16662. .ie n .IP """_\|_AVR_HAVE_8BIT_SP_\|_""" 4
  16663. .el .IP "\f(CW_\|_AVR_HAVE_8BIT_SP_\|_\fR" 4
  16664. .IX Item "__AVR_HAVE_8BIT_SP__"
  16665. .PD 0
  16666. .ie n .IP """_\|_AVR_HAVE_16BIT_SP_\|_""" 4
  16667. .el .IP "\f(CW_\|_AVR_HAVE_16BIT_SP_\|_\fR" 4
  16668. .IX Item "__AVR_HAVE_16BIT_SP__"
  16669. .PD
  16670. The stack pointer (\s-1SP\s0) register is treated as 8\-bit respectively
  16671. 16\-bit register by the compiler.
  16672. The definition of these macros is affected by \fB\-mtiny\-stack\fR.
  16673. .ie n .IP """_\|_AVR_HAVE_SPH_\|_""" 4
  16674. .el .IP "\f(CW_\|_AVR_HAVE_SPH_\|_\fR" 4
  16675. .IX Item "__AVR_HAVE_SPH__"
  16676. .PD 0
  16677. .ie n .IP """_\|_AVR_SP8_\|_""" 4
  16678. .el .IP "\f(CW_\|_AVR_SP8_\|_\fR" 4
  16679. .IX Item "__AVR_SP8__"
  16680. .PD
  16681. The device has the \s-1SPH\s0 (high part of stack pointer) special function
  16682. register or has an 8\-bit stack pointer, respectively.
  16683. The definition of these macros is affected by \fB\-mmcu=\fR and
  16684. in the cases of \fB\-mmcu=avr2\fR and \fB\-mmcu=avr25\fR also
  16685. by \fB\-msp8\fR.
  16686. .ie n .IP """_\|_AVR_HAVE_RAMPD_\|_""" 4
  16687. .el .IP "\f(CW_\|_AVR_HAVE_RAMPD_\|_\fR" 4
  16688. .IX Item "__AVR_HAVE_RAMPD__"
  16689. .PD 0
  16690. .ie n .IP """_\|_AVR_HAVE_RAMPX_\|_""" 4
  16691. .el .IP "\f(CW_\|_AVR_HAVE_RAMPX_\|_\fR" 4
  16692. .IX Item "__AVR_HAVE_RAMPX__"
  16693. .ie n .IP """_\|_AVR_HAVE_RAMPY_\|_""" 4
  16694. .el .IP "\f(CW_\|_AVR_HAVE_RAMPY_\|_\fR" 4
  16695. .IX Item "__AVR_HAVE_RAMPY__"
  16696. .ie n .IP """_\|_AVR_HAVE_RAMPZ_\|_""" 4
  16697. .el .IP "\f(CW_\|_AVR_HAVE_RAMPZ_\|_\fR" 4
  16698. .IX Item "__AVR_HAVE_RAMPZ__"
  16699. .PD
  16700. The device has the \f(CW\*(C`RAMPD\*(C'\fR, \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR,
  16701. \&\f(CW\*(C`RAMPZ\*(C'\fR special function register, respectively.
  16702. .ie n .IP """_\|_NO_INTERRUPTS_\|_""" 4
  16703. .el .IP "\f(CW_\|_NO_INTERRUPTS_\|_\fR" 4
  16704. .IX Item "__NO_INTERRUPTS__"
  16705. This macro reflects the \fB\-mno\-interrupts\fR command-line option.
  16706. .ie n .IP """_\|_AVR_ERRATA_SKIP_\|_""" 4
  16707. .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_\|_\fR" 4
  16708. .IX Item "__AVR_ERRATA_SKIP__"
  16709. .PD 0
  16710. .ie n .IP """_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_""" 4
  16711. .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_\fR" 4
  16712. .IX Item "__AVR_ERRATA_SKIP_JMP_CALL__"
  16713. .PD
  16714. Some \s-1AVR\s0 devices (\s-1AT90S8515,\s0 ATmega103) must not skip 32\-bit
  16715. instructions because of a hardware erratum. Skip instructions are
  16716. \&\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.
  16717. The second macro is only defined if \f(CW\*(C`_\|_AVR_HAVE_JMP_CALL_\|_\*(C'\fR is also
  16718. set.
  16719. .ie n .IP """_\|_AVR_ISA_RMW_\|_""" 4
  16720. .el .IP "\f(CW_\|_AVR_ISA_RMW_\|_\fR" 4
  16721. .IX Item "__AVR_ISA_RMW__"
  16722. The device has Read-Modify-Write instructions (\s-1XCH, LAC, LAS\s0 and \s-1LAT\s0).
  16723. .ie n .IP """_\|_AVR_SFR_OFFSET_\|_=\fIoffset\fP""" 4
  16724. .el .IP "\f(CW_\|_AVR_SFR_OFFSET_\|_=\f(CIoffset\f(CW\fR" 4
  16725. .IX Item "__AVR_SFR_OFFSET__=offset"
  16726. Instructions that can address I/O special function registers directly
  16727. like \f(CW\*(C`IN\*(C'\fR, \f(CW\*(C`OUT\*(C'\fR, \f(CW\*(C`SBI\*(C'\fR, etc. may use a different
  16728. address as if addressed by an instruction to access \s-1RAM\s0 like \f(CW\*(C`LD\*(C'\fR
  16729. or \f(CW\*(C`STS\*(C'\fR. This offset depends on the device architecture and has
  16730. to be subtracted from the \s-1RAM\s0 address in order to get the
  16731. respective I/O@tie{}address.
  16732. .ie n .IP """_\|_AVR_SHORT_CALLS_\|_""" 4
  16733. .el .IP "\f(CW_\|_AVR_SHORT_CALLS_\|_\fR" 4
  16734. .IX Item "__AVR_SHORT_CALLS__"
  16735. The \fB\-mshort\-calls\fR command line option is set.
  16736. .ie n .IP """_\|_AVR_PM_BASE_ADDRESS_\|_=\fIaddr\fP""" 4
  16737. .el .IP "\f(CW_\|_AVR_PM_BASE_ADDRESS_\|_=\f(CIaddr\f(CW\fR" 4
  16738. .IX Item "__AVR_PM_BASE_ADDRESS__=addr"
  16739. Some devices support reading from flash memory by means of \f(CW\*(C`LD*\*(C'\fR
  16740. instructions. The flash memory is seen in the data address space
  16741. at an offset of \f(CW\*(C`_\|_AVR_PM_BASE_ADDRESS_\|_\*(C'\fR. If this macro
  16742. is not defined, this feature is not available. If defined,
  16743. the address space is linear and there is no need to put
  16744. \&\f(CW\*(C`.rodata\*(C'\fR into \s-1RAM.\s0 This is handled by the default linker
  16745. description file, and is currently available for
  16746. \&\f(CW\*(C`avrtiny\*(C'\fR and \f(CW\*(C`avrxmega3\*(C'\fR. Even more convenient,
  16747. there is no need to use address spaces like \f(CW\*(C`_\|_flash\*(C'\fR or
  16748. features like attribute \f(CW\*(C`progmem\*(C'\fR and \f(CW\*(C`pgm_read_*\*(C'\fR.
  16749. .ie n .IP """_\|_WITH_AVRLIBC_\|_""" 4
  16750. .el .IP "\f(CW_\|_WITH_AVRLIBC_\|_\fR" 4
  16751. .IX Item "__WITH_AVRLIBC__"
  16752. The compiler is configured to be used together with AVR-Libc.
  16753. See the \fB\-\-with\-avrlibc\fR configure option.
  16754. .PP
  16755. \fIBlackfin Options\fR
  16756. .IX Subsection "Blackfin Options"
  16757. .IP "\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]" 4
  16758. .IX Item "-mcpu=cpu[-sirevision]"
  16759. Specifies the name of the target Blackfin processor. Currently, \fIcpu\fR
  16760. can be one of \fBbf512\fR, \fBbf514\fR, \fBbf516\fR, \fBbf518\fR,
  16761. \&\fBbf522\fR, \fBbf523\fR, \fBbf524\fR, \fBbf525\fR, \fBbf526\fR,
  16762. \&\fBbf527\fR, \fBbf531\fR, \fBbf532\fR, \fBbf533\fR,
  16763. \&\fBbf534\fR, \fBbf536\fR, \fBbf537\fR, \fBbf538\fR, \fBbf539\fR,
  16764. \&\fBbf542\fR, \fBbf544\fR, \fBbf547\fR, \fBbf548\fR, \fBbf549\fR,
  16765. \&\fBbf542m\fR, \fBbf544m\fR, \fBbf547m\fR, \fBbf548m\fR, \fBbf549m\fR,
  16766. \&\fBbf561\fR, \fBbf592\fR.
  16767. .Sp
  16768. The optional \fIsirevision\fR specifies the silicon revision of the target
  16769. Blackfin processor. Any workarounds available for the targeted silicon revision
  16770. are enabled. If \fIsirevision\fR is \fBnone\fR, no workarounds are enabled.
  16771. If \fIsirevision\fR is \fBany\fR, all workarounds for the targeted processor
  16772. are enabled. The \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR macro is defined to two
  16773. hexadecimal digits representing the major and minor numbers in the silicon
  16774. revision. If \fIsirevision\fR is \fBnone\fR, the \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR
  16775. is not defined. If \fIsirevision\fR is \fBany\fR, the
  16776. \&\f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR is defined to be \f(CW0xffff\fR.
  16777. If this optional \fIsirevision\fR is not used, \s-1GCC\s0 assumes the latest known
  16778. silicon revision of the targeted Blackfin processor.
  16779. .Sp
  16780. \&\s-1GCC\s0 defines a preprocessor macro for the specified \fIcpu\fR.
  16781. For the \fBbfin-elf\fR toolchain, this option causes the hardware \s-1BSP\s0
  16782. provided by libgloss to be linked in if \fB\-msim\fR is not given.
  16783. .Sp
  16784. Without this option, \fBbf532\fR is used as the processor by default.
  16785. .Sp
  16786. Note that support for \fBbf561\fR is incomplete. For \fBbf561\fR,
  16787. only the preprocessor macro is defined.
  16788. .IP "\fB\-msim\fR" 4
  16789. .IX Item "-msim"
  16790. Specifies that the program will be run on the simulator. This causes
  16791. the simulator \s-1BSP\s0 provided by libgloss to be linked in. This option
  16792. has effect only for \fBbfin-elf\fR toolchain.
  16793. Certain other options, such as \fB\-mid\-shared\-library\fR and
  16794. \&\fB\-mfdpic\fR, imply \fB\-msim\fR.
  16795. .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
  16796. .IX Item "-momit-leaf-frame-pointer"
  16797. Don't keep the frame pointer in a register for leaf functions. This
  16798. avoids the instructions to save, set up and restore frame pointers and
  16799. makes an extra register available in leaf functions.
  16800. .IP "\fB\-mspecld\-anomaly\fR" 4
  16801. .IX Item "-mspecld-anomaly"
  16802. When enabled, the compiler ensures that the generated code does not
  16803. contain speculative loads after jump instructions. If this option is used,
  16804. \&\f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_LOADS\*(C'\fR is defined.
  16805. .IP "\fB\-mno\-specld\-anomaly\fR" 4
  16806. .IX Item "-mno-specld-anomaly"
  16807. Don't generate extra code to prevent speculative loads from occurring.
  16808. .IP "\fB\-mcsync\-anomaly\fR" 4
  16809. .IX Item "-mcsync-anomaly"
  16810. When enabled, the compiler ensures that the generated code does not
  16811. contain \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions too soon after conditional branches.
  16812. If this option is used, \f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_SYNCS\*(C'\fR is defined.
  16813. .IP "\fB\-mno\-csync\-anomaly\fR" 4
  16814. .IX Item "-mno-csync-anomaly"
  16815. Don't generate extra code to prevent \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions from
  16816. occurring too soon after a conditional branch.
  16817. .IP "\fB\-mlow\-64k\fR" 4
  16818. .IX Item "-mlow-64k"
  16819. When enabled, the compiler is free to take advantage of the knowledge that
  16820. the entire program fits into the low 64k of memory.
  16821. .IP "\fB\-mno\-low\-64k\fR" 4
  16822. .IX Item "-mno-low-64k"
  16823. Assume that the program is arbitrarily large. This is the default.
  16824. .IP "\fB\-mstack\-check\-l1\fR" 4
  16825. .IX Item "-mstack-check-l1"
  16826. Do stack checking using information placed into L1 scratchpad memory by the
  16827. uClinux kernel.
  16828. .IP "\fB\-mid\-shared\-library\fR" 4
  16829. .IX Item "-mid-shared-library"
  16830. Generate code that supports shared libraries via the library \s-1ID\s0 method.
  16831. This allows for execute in place and shared libraries in an environment
  16832. without virtual memory management. This option implies \fB\-fPIC\fR.
  16833. With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
  16834. .IP "\fB\-mno\-id\-shared\-library\fR" 4
  16835. .IX Item "-mno-id-shared-library"
  16836. Generate code that doesn't assume ID-based shared libraries are being used.
  16837. This is the default.
  16838. .IP "\fB\-mleaf\-id\-shared\-library\fR" 4
  16839. .IX Item "-mleaf-id-shared-library"
  16840. Generate code that supports shared libraries via the library \s-1ID\s0 method,
  16841. but assumes that this library or executable won't link against any other
  16842. \&\s-1ID\s0 shared libraries. That allows the compiler to use faster code for jumps
  16843. and calls.
  16844. .IP "\fB\-mno\-leaf\-id\-shared\-library\fR" 4
  16845. .IX Item "-mno-leaf-id-shared-library"
  16846. Do not assume that the code being compiled won't link against any \s-1ID\s0 shared
  16847. libraries. Slower code is generated for jump and call insns.
  16848. .IP "\fB\-mshared\-library\-id=n\fR" 4
  16849. .IX Item "-mshared-library-id=n"
  16850. Specifies the identification number of the ID-based shared library being
  16851. compiled. Specifying a value of 0 generates more compact code; specifying
  16852. other values forces the allocation of that number to the current
  16853. library but is no more space\- or time-efficient than omitting this option.
  16854. .IP "\fB\-msep\-data\fR" 4
  16855. .IX Item "-msep-data"
  16856. Generate code that allows the data segment to be located in a different
  16857. area of memory from the text segment. This allows for execute in place in
  16858. an environment without virtual memory management by eliminating relocations
  16859. against the text section.
  16860. .IP "\fB\-mno\-sep\-data\fR" 4
  16861. .IX Item "-mno-sep-data"
  16862. Generate code that assumes that the data segment follows the text segment.
  16863. This is the default.
  16864. .IP "\fB\-mlong\-calls\fR" 4
  16865. .IX Item "-mlong-calls"
  16866. .PD 0
  16867. .IP "\fB\-mno\-long\-calls\fR" 4
  16868. .IX Item "-mno-long-calls"
  16869. .PD
  16870. Tells the compiler to perform function calls by first loading the
  16871. address of the function into a register and then performing a subroutine
  16872. call on this register. This switch is needed if the target function
  16873. lies outside of the 24\-bit addressing range of the offset-based
  16874. version of subroutine call instruction.
  16875. .Sp
  16876. This feature is not enabled by default. Specifying
  16877. \&\fB\-mno\-long\-calls\fR restores the default behavior. Note these
  16878. switches have no effect on how the compiler generates code to handle
  16879. function calls via function pointers.
  16880. .IP "\fB\-mfast\-fp\fR" 4
  16881. .IX Item "-mfast-fp"
  16882. Link with the fast floating-point library. This library relaxes some of
  16883. the \s-1IEEE\s0 floating-point standard's rules for checking inputs against
  16884. Not-a-Number (\s-1NAN\s0), in the interest of performance.
  16885. .IP "\fB\-minline\-plt\fR" 4
  16886. .IX Item "-minline-plt"
  16887. Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
  16888. not known to bind locally. It has no effect without \fB\-mfdpic\fR.
  16889. .IP "\fB\-mmulticore\fR" 4
  16890. .IX Item "-mmulticore"
  16891. Build a standalone application for multicore Blackfin processors.
  16892. This option causes proper start files and link scripts supporting
  16893. multicore to be used, and defines the macro \f(CW\*(C`_\|_BFIN_MULTICORE\*(C'\fR.
  16894. It can only be used with \fB\-mcpu=bf561\fR[\fB\-\fR\fIsirevision\fR].
  16895. .Sp
  16896. This option can be used with \fB\-mcorea\fR or \fB\-mcoreb\fR, which
  16897. selects the one-application-per-core programming model. Without
  16898. \&\fB\-mcorea\fR or \fB\-mcoreb\fR, the single\-application/dual\-core
  16899. programming model is used. In this model, the main function of Core B
  16900. should be named as \f(CW\*(C`coreb_main\*(C'\fR.
  16901. .Sp
  16902. If this option is not used, the single-core application programming
  16903. model is used.
  16904. .IP "\fB\-mcorea\fR" 4
  16905. .IX Item "-mcorea"
  16906. Build a standalone application for Core A of \s-1BF561\s0 when using
  16907. the one-application-per-core programming model. Proper start files
  16908. and link scripts are used to support Core A, and the macro
  16909. \&\f(CW\*(C`_\|_BFIN_COREA\*(C'\fR is defined.
  16910. This option can only be used in conjunction with \fB\-mmulticore\fR.
  16911. .IP "\fB\-mcoreb\fR" 4
  16912. .IX Item "-mcoreb"
  16913. Build a standalone application for Core B of \s-1BF561\s0 when using
  16914. the one-application-per-core programming model. Proper start files
  16915. and link scripts are used to support Core B, and the macro
  16916. \&\f(CW\*(C`_\|_BFIN_COREB\*(C'\fR is defined. When this option is used, \f(CW\*(C`coreb_main\*(C'\fR
  16917. should be used instead of \f(CW\*(C`main\*(C'\fR.
  16918. This option can only be used in conjunction with \fB\-mmulticore\fR.
  16919. .IP "\fB\-msdram\fR" 4
  16920. .IX Item "-msdram"
  16921. Build a standalone application for \s-1SDRAM.\s0 Proper start files and
  16922. link scripts are used to put the application into \s-1SDRAM,\s0 and the macro
  16923. \&\f(CW\*(C`_\|_BFIN_SDRAM\*(C'\fR is defined.
  16924. The loader should initialize \s-1SDRAM\s0 before loading the application.
  16925. .IP "\fB\-micplb\fR" 4
  16926. .IX Item "-micplb"
  16927. Assume that ICPLBs are enabled at run time. This has an effect on certain
  16928. anomaly workarounds. For Linux targets, the default is to assume ICPLBs
  16929. are enabled; for standalone applications the default is off.
  16930. .PP
  16931. \fIC6X Options\fR
  16932. .IX Subsection "C6X Options"
  16933. .IP "\fB\-march=\fR\fIname\fR" 4
  16934. .IX Item "-march=name"
  16935. This specifies the name of the target architecture. \s-1GCC\s0 uses this
  16936. name to determine what kind of instructions it can emit when generating
  16937. assembly code. Permissible names are: \fBc62x\fR,
  16938. \&\fBc64x\fR, \fBc64x+\fR, \fBc67x\fR, \fBc67x+\fR, \fBc674x\fR.
  16939. .IP "\fB\-mbig\-endian\fR" 4
  16940. .IX Item "-mbig-endian"
  16941. Generate code for a big-endian target.
  16942. .IP "\fB\-mlittle\-endian\fR" 4
  16943. .IX Item "-mlittle-endian"
  16944. Generate code for a little-endian target. This is the default.
  16945. .IP "\fB\-msim\fR" 4
  16946. .IX Item "-msim"
  16947. Choose startup files and linker script suitable for the simulator.
  16948. .IP "\fB\-msdata=default\fR" 4
  16949. .IX Item "-msdata=default"
  16950. Put small global and static data in the \f(CW\*(C`.neardata\*(C'\fR section,
  16951. which is pointed to by register \f(CW\*(C`B14\*(C'\fR. Put small uninitialized
  16952. global and static data in the \f(CW\*(C`.bss\*(C'\fR section, which is adjacent
  16953. to the \f(CW\*(C`.neardata\*(C'\fR section. Put small read-only data into the
  16954. \&\f(CW\*(C`.rodata\*(C'\fR section. The corresponding sections used for large
  16955. pieces of data are \f(CW\*(C`.fardata\*(C'\fR, \f(CW\*(C`.far\*(C'\fR and \f(CW\*(C`.const\*(C'\fR.
  16956. .IP "\fB\-msdata=all\fR" 4
  16957. .IX Item "-msdata=all"
  16958. Put all data, not just small objects, into the sections reserved for
  16959. small data, and use addressing relative to the \f(CW\*(C`B14\*(C'\fR register to
  16960. access them.
  16961. .IP "\fB\-msdata=none\fR" 4
  16962. .IX Item "-msdata=none"
  16963. Make no use of the sections reserved for small data, and use absolute
  16964. addresses to access all data. Put all initialized global and static
  16965. data in the \f(CW\*(C`.fardata\*(C'\fR section, and all uninitialized data in the
  16966. \&\f(CW\*(C`.far\*(C'\fR section. Put all constant data into the \f(CW\*(C`.const\*(C'\fR
  16967. section.
  16968. .PP
  16969. \fI\s-1CRIS\s0 Options\fR
  16970. .IX Subsection "CRIS Options"
  16971. .PP
  16972. These options are defined specifically for the \s-1CRIS\s0 ports.
  16973. .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
  16974. .IX Item "-march=architecture-type"
  16975. .PD 0
  16976. .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
  16977. .IX Item "-mcpu=architecture-type"
  16978. .PD
  16979. Generate code for the specified architecture. The choices for
  16980. \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
  16981. respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX.\s0
  16982. Default is \fBv0\fR except for cris-axis-linux-gnu, where the default is
  16983. \&\fBv10\fR.
  16984. .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
  16985. .IX Item "-mtune=architecture-type"
  16986. Tune to \fIarchitecture-type\fR everything applicable about the generated
  16987. code, except for the \s-1ABI\s0 and the set of available instructions. The
  16988. choices for \fIarchitecture-type\fR are the same as for
  16989. \&\fB\-march=\fR\fIarchitecture-type\fR.
  16990. .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
  16991. .IX Item "-mmax-stack-frame=n"
  16992. Warn when the stack frame of a function exceeds \fIn\fR bytes.
  16993. .IP "\fB\-metrax4\fR" 4
  16994. .IX Item "-metrax4"
  16995. .PD 0
  16996. .IP "\fB\-metrax100\fR" 4
  16997. .IX Item "-metrax100"
  16998. .PD
  16999. The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
  17000. \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
  17001. .IP "\fB\-mmul\-bug\-workaround\fR" 4
  17002. .IX Item "-mmul-bug-workaround"
  17003. .PD 0
  17004. .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
  17005. .IX Item "-mno-mul-bug-workaround"
  17006. .PD
  17007. Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
  17008. models where it applies. This option is active by default.
  17009. .IP "\fB\-mpdebug\fR" 4
  17010. .IX Item "-mpdebug"
  17011. Enable CRIS-specific verbose debug-related information in the assembly
  17012. code. This option also has the effect of turning off the \fB#NO_APP\fR
  17013. formatted-code indicator to the assembler at the beginning of the
  17014. assembly file.
  17015. .IP "\fB\-mcc\-init\fR" 4
  17016. .IX Item "-mcc-init"
  17017. Do not use condition-code results from previous instruction; always emit
  17018. compare and test instructions before use of condition codes.
  17019. .IP "\fB\-mno\-side\-effects\fR" 4
  17020. .IX Item "-mno-side-effects"
  17021. Do not emit instructions with side effects in addressing modes other than
  17022. post-increment.
  17023. .IP "\fB\-mstack\-align\fR" 4
  17024. .IX Item "-mstack-align"
  17025. .PD 0
  17026. .IP "\fB\-mno\-stack\-align\fR" 4
  17027. .IX Item "-mno-stack-align"
  17028. .IP "\fB\-mdata\-align\fR" 4
  17029. .IX Item "-mdata-align"
  17030. .IP "\fB\-mno\-data\-align\fR" 4
  17031. .IX Item "-mno-data-align"
  17032. .IP "\fB\-mconst\-align\fR" 4
  17033. .IX Item "-mconst-align"
  17034. .IP "\fB\-mno\-const\-align\fR" 4
  17035. .IX Item "-mno-const-align"
  17036. .PD
  17037. These options (\fBno\-\fR options) arrange (eliminate arrangements) for the
  17038. stack frame, individual data and constants to be aligned for the maximum
  17039. single data access size for the chosen \s-1CPU\s0 model. The default is to
  17040. arrange for 32\-bit alignment. \s-1ABI\s0 details such as structure layout are
  17041. not affected by these options.
  17042. .IP "\fB\-m32\-bit\fR" 4
  17043. .IX Item "-m32-bit"
  17044. .PD 0
  17045. .IP "\fB\-m16\-bit\fR" 4
  17046. .IX Item "-m16-bit"
  17047. .IP "\fB\-m8\-bit\fR" 4
  17048. .IX Item "-m8-bit"
  17049. .PD
  17050. Similar to the stack\- data\- and const-align options above, these options
  17051. arrange for stack frame, writable data and constants to all be 32\-bit,
  17052. 16\-bit or 8\-bit aligned. The default is 32\-bit alignment.
  17053. .IP "\fB\-mno\-prologue\-epilogue\fR" 4
  17054. .IX Item "-mno-prologue-epilogue"
  17055. .PD 0
  17056. .IP "\fB\-mprologue\-epilogue\fR" 4
  17057. .IX Item "-mprologue-epilogue"
  17058. .PD
  17059. With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
  17060. epilogue which set up the stack frame are omitted and no return
  17061. instructions or return sequences are generated in the code. Use this
  17062. option only together with visual inspection of the compiled code: no
  17063. warnings or errors are generated when call-saved registers must be saved,
  17064. or storage for local variables needs to be allocated.
  17065. .IP "\fB\-mno\-gotplt\fR" 4
  17066. .IX Item "-mno-gotplt"
  17067. .PD 0
  17068. .IP "\fB\-mgotplt\fR" 4
  17069. .IX Item "-mgotplt"
  17070. .PD
  17071. With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
  17072. instruction sequences that load addresses for functions from the \s-1PLT\s0 part
  17073. of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
  17074. \&\s-1PLT.\s0 The default is \fB\-mgotplt\fR.
  17075. .IP "\fB\-melf\fR" 4
  17076. .IX Item "-melf"
  17077. Legacy no-op option only recognized with the cris-axis-elf and
  17078. cris-axis-linux-gnu targets.
  17079. .IP "\fB\-mlinux\fR" 4
  17080. .IX Item "-mlinux"
  17081. Legacy no-op option only recognized with the cris-axis-linux-gnu target.
  17082. .IP "\fB\-sim\fR" 4
  17083. .IX Item "-sim"
  17084. This option, recognized for the cris-axis-elf, arranges
  17085. to link with input-output functions from a simulator library. Code,
  17086. initialized data and zero-initialized data are allocated consecutively.
  17087. .IP "\fB\-sim2\fR" 4
  17088. .IX Item "-sim2"
  17089. Like \fB\-sim\fR, but pass linker options to locate initialized data at
  17090. 0x40000000 and zero-initialized data at 0x80000000.
  17091. .PP
  17092. \fI\s-1CR16\s0 Options\fR
  17093. .IX Subsection "CR16 Options"
  17094. .PP
  17095. These options are defined specifically for the \s-1CR16\s0 ports.
  17096. .IP "\fB\-mmac\fR" 4
  17097. .IX Item "-mmac"
  17098. Enable the use of multiply-accumulate instructions. Disabled by default.
  17099. .IP "\fB\-mcr16cplus\fR" 4
  17100. .IX Item "-mcr16cplus"
  17101. .PD 0
  17102. .IP "\fB\-mcr16c\fR" 4
  17103. .IX Item "-mcr16c"
  17104. .PD
  17105. Generate code for \s-1CR16C\s0 or \s-1CR16C+\s0 architecture. \s-1CR16C+\s0 architecture
  17106. is default.
  17107. .IP "\fB\-msim\fR" 4
  17108. .IX Item "-msim"
  17109. Links the library libsim.a which is in compatible with simulator. Applicable
  17110. to \s-1ELF\s0 compiler only.
  17111. .IP "\fB\-mint32\fR" 4
  17112. .IX Item "-mint32"
  17113. Choose integer type as 32\-bit wide.
  17114. .IP "\fB\-mbit\-ops\fR" 4
  17115. .IX Item "-mbit-ops"
  17116. Generates \f(CW\*(C`sbit\*(C'\fR/\f(CW\*(C`cbit\*(C'\fR instructions for bit manipulations.
  17117. .IP "\fB\-mdata\-model=\fR\fImodel\fR" 4
  17118. .IX Item "-mdata-model=model"
  17119. Choose a data model. The choices for \fImodel\fR are \fBnear\fR,
  17120. \&\fBfar\fR or \fBmedium\fR. \fBmedium\fR is default.
  17121. However, \fBfar\fR is not valid with \fB\-mcr16c\fR, as the
  17122. \&\s-1CR16C\s0 architecture does not support the far data model.
  17123. .PP
  17124. \fIDarwin Options\fR
  17125. .IX Subsection "Darwin Options"
  17126. .PP
  17127. These options are defined for all architectures running the Darwin operating
  17128. system.
  17129. .PP
  17130. \&\s-1FSF GCC\s0 on Darwin does not create \*(L"fat\*(R" object files; it creates
  17131. an object file for the single architecture that \s-1GCC\s0 was built to
  17132. target. Apple's \s-1GCC\s0 on Darwin does create \*(L"fat\*(R" files if multiple
  17133. \&\fB\-arch\fR options are used; it does so by running the compiler or
  17134. linker multiple times and joining the results together with
  17135. \&\fIlipo\fR.
  17136. .PP
  17137. The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
  17138. \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
  17139. that \s-1GCC\s0 is targeting, like \fB\-mcpu\fR or \fB\-march\fR. The
  17140. \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
  17141. .PP
  17142. The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
  17143. mismatch. The assembler, \fIas\fR, only permits instructions to
  17144. be used that are valid for the subtype of the file it is generating,
  17145. so you cannot put 64\-bit instructions in a \fBppc750\fR object file.
  17146. The linker for shared libraries, \fI/usr/bin/libtool\fR, fails
  17147. and prints an error if asked to create a shared library with a less
  17148. restrictive subtype than its input files (for instance, trying to put
  17149. a \fBppc970\fR object file in a \fBppc7400\fR library). The linker
  17150. for executables, \fBld\fR, quietly gives the executable the most
  17151. restrictive subtype of any of its input files.
  17152. .IP "\fB\-F\fR\fIdir\fR" 4
  17153. .IX Item "-Fdir"
  17154. Add the framework directory \fIdir\fR to the head of the list of
  17155. directories to be searched for header files. These directories are
  17156. interleaved with those specified by \fB\-I\fR options and are
  17157. scanned in a left-to-right order.
  17158. .Sp
  17159. A framework directory is a directory with frameworks in it. A
  17160. framework is a directory with a \fIHeaders\fR and/or
  17161. \&\fIPrivateHeaders\fR directory contained directly in it that ends
  17162. in \fI.framework\fR. The name of a framework is the name of this
  17163. directory excluding the \fI.framework\fR. Headers associated with
  17164. the framework are found in one of those two directories, with
  17165. \&\fIHeaders\fR being searched first. A subframework is a framework
  17166. directory that is in a framework's \fIFrameworks\fR directory.
  17167. Includes of subframework headers can only appear in a header of a
  17168. framework that contains the subframework, or in a sibling subframework
  17169. header. Two subframeworks are siblings if they occur in the same
  17170. framework. A subframework should not have the same name as a
  17171. framework; a warning is issued if this is violated. Currently a
  17172. subframework cannot have subframeworks; in the future, the mechanism
  17173. may be extended to support this. The standard frameworks can be found
  17174. in \fI/System/Library/Frameworks\fR and
  17175. \&\fI/Library/Frameworks\fR. An example include looks like
  17176. \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fIFramework\fR denotes
  17177. the name of the framework and \fIheader.h\fR is found in the
  17178. \&\fIPrivateHeaders\fR or \fIHeaders\fR directory.
  17179. .IP "\fB\-iframework\fR\fIdir\fR" 4
  17180. .IX Item "-iframeworkdir"
  17181. Like \fB\-F\fR except the directory is a treated as a system
  17182. directory. The main difference between this \fB\-iframework\fR and
  17183. \&\fB\-F\fR is that with \fB\-iframework\fR the compiler does not
  17184. warn about constructs contained within header files found via
  17185. \&\fIdir\fR. This option is valid only for the C family of languages.
  17186. .IP "\fB\-gused\fR" 4
  17187. .IX Item "-gused"
  17188. Emit debugging information for symbols that are used. For stabs
  17189. debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
  17190. This is by default \s-1ON.\s0
  17191. .IP "\fB\-gfull\fR" 4
  17192. .IX Item "-gfull"
  17193. Emit debugging information for all symbols and types.
  17194. .IP "\fB\-mmacosx\-version\-min=\fR\fIversion\fR" 4
  17195. .IX Item "-mmacosx-version-min=version"
  17196. The earliest version of MacOS X that this executable will run on
  17197. is \fIversion\fR. Typical values of \fIversion\fR include \f(CW10.1\fR,
  17198. \&\f(CW10.2\fR, and \f(CW10.3.9\fR.
  17199. .Sp
  17200. If the compiler was built to use the system's headers by default,
  17201. then the default for this option is the system version on which the
  17202. compiler is running, otherwise the default is to make choices that
  17203. are compatible with as many systems and code bases as possible.
  17204. .IP "\fB\-mkernel\fR" 4
  17205. .IX Item "-mkernel"
  17206. Enable kernel development mode. The \fB\-mkernel\fR option sets
  17207. \&\fB\-static\fR, \fB\-fno\-common\fR, \fB\-fno\-use\-cxa\-atexit\fR,
  17208. \&\fB\-fno\-exceptions\fR, \fB\-fno\-non\-call\-exceptions\fR,
  17209. \&\fB\-fapple\-kext\fR, \fB\-fno\-weak\fR and \fB\-fno\-rtti\fR where
  17210. applicable. This mode also sets \fB\-mno\-altivec\fR,
  17211. \&\fB\-msoft\-float\fR, \fB\-fno\-builtin\fR and
  17212. \&\fB\-mlong\-branch\fR for PowerPC targets.
  17213. .IP "\fB\-mone\-byte\-bool\fR" 4
  17214. .IX Item "-mone-byte-bool"
  17215. Override the defaults for \f(CW\*(C`bool\*(C'\fR so that \f(CW\*(C`sizeof(bool)==1\*(C'\fR.
  17216. By default \f(CW\*(C`sizeof(bool)\*(C'\fR is \f(CW4\fR when compiling for
  17217. Darwin/PowerPC and \f(CW1\fR when compiling for Darwin/x86, so this
  17218. option has no effect on x86.
  17219. .Sp
  17220. \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
  17221. to generate code that is not binary compatible with code generated
  17222. without that switch. Using this switch may require recompiling all
  17223. other modules in a program, including system libraries. Use this
  17224. switch to conform to a non-default data model.
  17225. .IP "\fB\-mfix\-and\-continue\fR" 4
  17226. .IX Item "-mfix-and-continue"
  17227. .PD 0
  17228. .IP "\fB\-ffix\-and\-continue\fR" 4
  17229. .IX Item "-ffix-and-continue"
  17230. .IP "\fB\-findirect\-data\fR" 4
  17231. .IX Item "-findirect-data"
  17232. .PD
  17233. Generate code suitable for fast turnaround development, such as to
  17234. allow \s-1GDB\s0 to dynamically load \fI.o\fR files into already-running
  17235. programs. \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
  17236. are provided for backwards compatibility.
  17237. .IP "\fB\-all_load\fR" 4
  17238. .IX Item "-all_load"
  17239. Loads all members of static archive libraries.
  17240. See man \fBld\fR\|(1) for more information.
  17241. .IP "\fB\-arch_errors_fatal\fR" 4
  17242. .IX Item "-arch_errors_fatal"
  17243. Cause the errors having to do with files that have the wrong architecture
  17244. to be fatal.
  17245. .IP "\fB\-bind_at_load\fR" 4
  17246. .IX Item "-bind_at_load"
  17247. Causes the output file to be marked such that the dynamic linker will
  17248. bind all undefined references when the file is loaded or launched.
  17249. .IP "\fB\-bundle\fR" 4
  17250. .IX Item "-bundle"
  17251. Produce a Mach-o bundle format file.
  17252. See man \fBld\fR\|(1) for more information.
  17253. .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
  17254. .IX Item "-bundle_loader executable"
  17255. This option specifies the \fIexecutable\fR that will load the build
  17256. output file being linked. See man \fBld\fR\|(1) for more information.
  17257. .IP "\fB\-dynamiclib\fR" 4
  17258. .IX Item "-dynamiclib"
  17259. When passed this option, \s-1GCC\s0 produces a dynamic library instead of
  17260. an executable when linking, using the Darwin \fIlibtool\fR command.
  17261. .IP "\fB\-force_cpusubtype_ALL\fR" 4
  17262. .IX Item "-force_cpusubtype_ALL"
  17263. This causes \s-1GCC\s0's output file to have the \fB\s-1ALL\s0\fR subtype, instead of
  17264. one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
  17265. .IP "\fB\-allowable_client\fR \fIclient_name\fR" 4
  17266. .IX Item "-allowable_client client_name"
  17267. .PD 0
  17268. .IP "\fB\-client_name\fR" 4
  17269. .IX Item "-client_name"
  17270. .IP "\fB\-compatibility_version\fR" 4
  17271. .IX Item "-compatibility_version"
  17272. .IP "\fB\-current_version\fR" 4
  17273. .IX Item "-current_version"
  17274. .IP "\fB\-dead_strip\fR" 4
  17275. .IX Item "-dead_strip"
  17276. .IP "\fB\-dependency\-file\fR" 4
  17277. .IX Item "-dependency-file"
  17278. .IP "\fB\-dylib_file\fR" 4
  17279. .IX Item "-dylib_file"
  17280. .IP "\fB\-dylinker_install_name\fR" 4
  17281. .IX Item "-dylinker_install_name"
  17282. .IP "\fB\-dynamic\fR" 4
  17283. .IX Item "-dynamic"
  17284. .IP "\fB\-exported_symbols_list\fR" 4
  17285. .IX Item "-exported_symbols_list"
  17286. .IP "\fB\-filelist\fR" 4
  17287. .IX Item "-filelist"
  17288. .IP "\fB\-flat_namespace\fR" 4
  17289. .IX Item "-flat_namespace"
  17290. .IP "\fB\-force_flat_namespace\fR" 4
  17291. .IX Item "-force_flat_namespace"
  17292. .IP "\fB\-headerpad_max_install_names\fR" 4
  17293. .IX Item "-headerpad_max_install_names"
  17294. .IP "\fB\-image_base\fR" 4
  17295. .IX Item "-image_base"
  17296. .IP "\fB\-init\fR" 4
  17297. .IX Item "-init"
  17298. .IP "\fB\-install_name\fR" 4
  17299. .IX Item "-install_name"
  17300. .IP "\fB\-keep_private_externs\fR" 4
  17301. .IX Item "-keep_private_externs"
  17302. .IP "\fB\-multi_module\fR" 4
  17303. .IX Item "-multi_module"
  17304. .IP "\fB\-multiply_defined\fR" 4
  17305. .IX Item "-multiply_defined"
  17306. .IP "\fB\-multiply_defined_unused\fR" 4
  17307. .IX Item "-multiply_defined_unused"
  17308. .IP "\fB\-noall_load\fR" 4
  17309. .IX Item "-noall_load"
  17310. .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
  17311. .IX Item "-no_dead_strip_inits_and_terms"
  17312. .IP "\fB\-nofixprebinding\fR" 4
  17313. .IX Item "-nofixprebinding"
  17314. .IP "\fB\-nomultidefs\fR" 4
  17315. .IX Item "-nomultidefs"
  17316. .IP "\fB\-noprebind\fR" 4
  17317. .IX Item "-noprebind"
  17318. .IP "\fB\-noseglinkedit\fR" 4
  17319. .IX Item "-noseglinkedit"
  17320. .IP "\fB\-pagezero_size\fR" 4
  17321. .IX Item "-pagezero_size"
  17322. .IP "\fB\-prebind\fR" 4
  17323. .IX Item "-prebind"
  17324. .IP "\fB\-prebind_all_twolevel_modules\fR" 4
  17325. .IX Item "-prebind_all_twolevel_modules"
  17326. .IP "\fB\-private_bundle\fR" 4
  17327. .IX Item "-private_bundle"
  17328. .IP "\fB\-read_only_relocs\fR" 4
  17329. .IX Item "-read_only_relocs"
  17330. .IP "\fB\-sectalign\fR" 4
  17331. .IX Item "-sectalign"
  17332. .IP "\fB\-sectobjectsymbols\fR" 4
  17333. .IX Item "-sectobjectsymbols"
  17334. .IP "\fB\-whyload\fR" 4
  17335. .IX Item "-whyload"
  17336. .IP "\fB\-seg1addr\fR" 4
  17337. .IX Item "-seg1addr"
  17338. .IP "\fB\-sectcreate\fR" 4
  17339. .IX Item "-sectcreate"
  17340. .IP "\fB\-sectobjectsymbols\fR" 4
  17341. .IX Item "-sectobjectsymbols"
  17342. .IP "\fB\-sectorder\fR" 4
  17343. .IX Item "-sectorder"
  17344. .IP "\fB\-segaddr\fR" 4
  17345. .IX Item "-segaddr"
  17346. .IP "\fB\-segs_read_only_addr\fR" 4
  17347. .IX Item "-segs_read_only_addr"
  17348. .IP "\fB\-segs_read_write_addr\fR" 4
  17349. .IX Item "-segs_read_write_addr"
  17350. .IP "\fB\-seg_addr_table\fR" 4
  17351. .IX Item "-seg_addr_table"
  17352. .IP "\fB\-seg_addr_table_filename\fR" 4
  17353. .IX Item "-seg_addr_table_filename"
  17354. .IP "\fB\-seglinkedit\fR" 4
  17355. .IX Item "-seglinkedit"
  17356. .IP "\fB\-segprot\fR" 4
  17357. .IX Item "-segprot"
  17358. .IP "\fB\-segs_read_only_addr\fR" 4
  17359. .IX Item "-segs_read_only_addr"
  17360. .IP "\fB\-segs_read_write_addr\fR" 4
  17361. .IX Item "-segs_read_write_addr"
  17362. .IP "\fB\-single_module\fR" 4
  17363. .IX Item "-single_module"
  17364. .IP "\fB\-static\fR" 4
  17365. .IX Item "-static"
  17366. .IP "\fB\-sub_library\fR" 4
  17367. .IX Item "-sub_library"
  17368. .IP "\fB\-sub_umbrella\fR" 4
  17369. .IX Item "-sub_umbrella"
  17370. .IP "\fB\-twolevel_namespace\fR" 4
  17371. .IX Item "-twolevel_namespace"
  17372. .IP "\fB\-umbrella\fR" 4
  17373. .IX Item "-umbrella"
  17374. .IP "\fB\-undefined\fR" 4
  17375. .IX Item "-undefined"
  17376. .IP "\fB\-unexported_symbols_list\fR" 4
  17377. .IX Item "-unexported_symbols_list"
  17378. .IP "\fB\-weak_reference_mismatches\fR" 4
  17379. .IX Item "-weak_reference_mismatches"
  17380. .IP "\fB\-whatsloaded\fR" 4
  17381. .IX Item "-whatsloaded"
  17382. .PD
  17383. These options are passed to the Darwin linker. The Darwin linker man page
  17384. describes them in detail.
  17385. .PP
  17386. \fI\s-1DEC\s0 Alpha Options\fR
  17387. .IX Subsection "DEC Alpha Options"
  17388. .PP
  17389. These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
  17390. .IP "\fB\-mno\-soft\-float\fR" 4
  17391. .IX Item "-mno-soft-float"
  17392. .PD 0
  17393. .IP "\fB\-msoft\-float\fR" 4
  17394. .IX Item "-msoft-float"
  17395. .PD
  17396. Use (do not use) the hardware floating-point instructions for
  17397. floating-point operations. When \fB\-msoft\-float\fR is specified,
  17398. functions in \fIlibgcc.a\fR are used to perform floating-point
  17399. operations. Unless they are replaced by routines that emulate the
  17400. floating-point operations, or compiled in such a way as to call such
  17401. emulations routines, these routines issue floating-point
  17402. operations. If you are compiling for an Alpha without floating-point
  17403. operations, you must ensure that the library is built so as not to call
  17404. them.
  17405. .Sp
  17406. Note that Alpha implementations without floating-point operations are
  17407. required to have floating-point registers.
  17408. .IP "\fB\-mfp\-reg\fR" 4
  17409. .IX Item "-mfp-reg"
  17410. .PD 0
  17411. .IP "\fB\-mno\-fp\-regs\fR" 4
  17412. .IX Item "-mno-fp-regs"
  17413. .PD
  17414. Generate code that uses (does not use) the floating-point register set.
  17415. \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR. If the floating-point
  17416. register set is not used, floating-point operands are passed in integer
  17417. registers as if they were integers and floating-point results are passed
  17418. in \f(CW$0\fR instead of \f(CW$f0\fR. This is a non-standard calling sequence,
  17419. so any function with a floating-point argument or return value called by code
  17420. compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
  17421. option.
  17422. .Sp
  17423. A typical use of this option is building a kernel that does not use,
  17424. and hence need not save and restore, any floating-point registers.
  17425. .IP "\fB\-mieee\fR" 4
  17426. .IX Item "-mieee"
  17427. The Alpha architecture implements floating-point hardware optimized for
  17428. maximum performance. It is mostly compliant with the \s-1IEEE\s0 floating-point
  17429. standard. However, for full compliance, software assistance is
  17430. required. This option generates code fully IEEE-compliant code
  17431. \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
  17432. If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
  17433. defined during compilation. The resulting code is less efficient but is
  17434. able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
  17435. values such as not-a-number and plus/minus infinity. Other Alpha
  17436. compilers call this option \fB\-ieee_with_no_inexact\fR.
  17437. .IP "\fB\-mieee\-with\-inexact\fR" 4
  17438. .IX Item "-mieee-with-inexact"
  17439. This is like \fB\-mieee\fR except the generated code also maintains
  17440. the \s-1IEEE\s0 \fIinexact-flag\fR. Turning on this option causes the
  17441. generated code to implement fully-compliant \s-1IEEE\s0 math. In addition to
  17442. \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
  17443. macro. On some Alpha implementations the resulting code may execute
  17444. significantly slower than the code generated by default. Since there is
  17445. very little code that depends on the \fIinexact-flag\fR, you should
  17446. normally not specify this option. Other Alpha compilers call this
  17447. option \fB\-ieee_with_inexact\fR.
  17448. .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
  17449. .IX Item "-mfp-trap-mode=trap-mode"
  17450. This option controls what floating-point related traps are enabled.
  17451. Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
  17452. The trap mode can be set to one of four values:
  17453. .RS 4
  17454. .IP "\fBn\fR" 4
  17455. .IX Item "n"
  17456. This is the default (normal) setting. The only traps that are enabled
  17457. are the ones that cannot be disabled in software (e.g., division by zero
  17458. trap).
  17459. .IP "\fBu\fR" 4
  17460. .IX Item "u"
  17461. In addition to the traps enabled by \fBn\fR, underflow traps are enabled
  17462. as well.
  17463. .IP "\fBsu\fR" 4
  17464. .IX Item "su"
  17465. Like \fBu\fR, but the instructions are marked to be safe for software
  17466. completion (see Alpha architecture manual for details).
  17467. .IP "\fBsui\fR" 4
  17468. .IX Item "sui"
  17469. Like \fBsu\fR, but inexact traps are enabled as well.
  17470. .RE
  17471. .RS 4
  17472. .RE
  17473. .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
  17474. .IX Item "-mfp-rounding-mode=rounding-mode"
  17475. Selects the \s-1IEEE\s0 rounding mode. Other Alpha compilers call this option
  17476. \&\fB\-fprm\fR \fIrounding-mode\fR. The \fIrounding-mode\fR can be one
  17477. of:
  17478. .RS 4
  17479. .IP "\fBn\fR" 4
  17480. .IX Item "n"
  17481. Normal \s-1IEEE\s0 rounding mode. Floating-point numbers are rounded towards
  17482. the nearest machine number or towards the even machine number in case
  17483. of a tie.
  17484. .IP "\fBm\fR" 4
  17485. .IX Item "m"
  17486. Round towards minus infinity.
  17487. .IP "\fBc\fR" 4
  17488. .IX Item "c"
  17489. Chopped rounding mode. Floating-point numbers are rounded towards zero.
  17490. .IP "\fBd\fR" 4
  17491. .IX Item "d"
  17492. Dynamic rounding mode. A field in the floating-point control register
  17493. (\fIfpcr\fR, see Alpha architecture reference manual) controls the
  17494. rounding mode in effect. The C library initializes this register for
  17495. rounding towards plus infinity. Thus, unless your program modifies the
  17496. \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
  17497. .RE
  17498. .RS 4
  17499. .RE
  17500. .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
  17501. .IX Item "-mtrap-precision=trap-precision"
  17502. In the Alpha architecture, floating-point traps are imprecise. This
  17503. means without software assistance it is impossible to recover from a
  17504. floating trap and program execution normally needs to be terminated.
  17505. \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
  17506. in determining the exact location that caused a floating-point trap.
  17507. Depending on the requirements of an application, different levels of
  17508. precisions can be selected:
  17509. .RS 4
  17510. .IP "\fBp\fR" 4
  17511. .IX Item "p"
  17512. Program precision. This option is the default and means a trap handler
  17513. can only identify which program caused a floating-point exception.
  17514. .IP "\fBf\fR" 4
  17515. .IX Item "f"
  17516. Function precision. The trap handler can determine the function that
  17517. caused a floating-point exception.
  17518. .IP "\fBi\fR" 4
  17519. .IX Item "i"
  17520. Instruction precision. The trap handler can determine the exact
  17521. instruction that caused a floating-point exception.
  17522. .RE
  17523. .RS 4
  17524. .Sp
  17525. Other Alpha compilers provide the equivalent options called
  17526. \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
  17527. .RE
  17528. .IP "\fB\-mieee\-conformant\fR" 4
  17529. .IX Item "-mieee-conformant"
  17530. This option marks the generated code as \s-1IEEE\s0 conformant. You must not
  17531. use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
  17532. \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR. Its only effect
  17533. is to emit the line \fB.eflag 48\fR in the function prologue of the
  17534. generated assembly file.
  17535. .IP "\fB\-mbuild\-constants\fR" 4
  17536. .IX Item "-mbuild-constants"
  17537. Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
  17538. see if it can construct it from smaller constants in two or three
  17539. instructions. If it cannot, it outputs the constant as a literal and
  17540. generates code to load it from the data segment at run time.
  17541. .Sp
  17542. Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
  17543. using code, even if it takes more instructions (the maximum is six).
  17544. .Sp
  17545. You typically use this option to build a shared library dynamic
  17546. loader. Itself a shared library, it must relocate itself in memory
  17547. before it can find the variables and constants in its own data segment.
  17548. .IP "\fB\-mbwx\fR" 4
  17549. .IX Item "-mbwx"
  17550. .PD 0
  17551. .IP "\fB\-mno\-bwx\fR" 4
  17552. .IX Item "-mno-bwx"
  17553. .IP "\fB\-mcix\fR" 4
  17554. .IX Item "-mcix"
  17555. .IP "\fB\-mno\-cix\fR" 4
  17556. .IX Item "-mno-cix"
  17557. .IP "\fB\-mfix\fR" 4
  17558. .IX Item "-mfix"
  17559. .IP "\fB\-mno\-fix\fR" 4
  17560. .IX Item "-mno-fix"
  17561. .IP "\fB\-mmax\fR" 4
  17562. .IX Item "-mmax"
  17563. .IP "\fB\-mno\-max\fR" 4
  17564. .IX Item "-mno-max"
  17565. .PD
  17566. Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX,
  17567. CIX, FIX\s0 and \s-1MAX\s0 instruction sets. The default is to use the instruction
  17568. sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
  17569. of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none is specified.
  17570. .IP "\fB\-mfloat\-vax\fR" 4
  17571. .IX Item "-mfloat-vax"
  17572. .PD 0
  17573. .IP "\fB\-mfloat\-ieee\fR" 4
  17574. .IX Item "-mfloat-ieee"
  17575. .PD
  17576. Generate code that uses (does not use) \s-1VAX F\s0 and G floating-point
  17577. arithmetic instead of \s-1IEEE\s0 single and double precision.
  17578. .IP "\fB\-mexplicit\-relocs\fR" 4
  17579. .IX Item "-mexplicit-relocs"
  17580. .PD 0
  17581. .IP "\fB\-mno\-explicit\-relocs\fR" 4
  17582. .IX Item "-mno-explicit-relocs"
  17583. .PD
  17584. Older Alpha assemblers provided no way to generate symbol relocations
  17585. except via assembler macros. Use of these macros does not allow
  17586. optimal instruction scheduling. \s-1GNU\s0 binutils as of version 2.12
  17587. supports a new syntax that allows the compiler to explicitly mark
  17588. which relocations should apply to which instructions. This option
  17589. is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
  17590. the assembler when it is built and sets the default accordingly.
  17591. .IP "\fB\-msmall\-data\fR" 4
  17592. .IX Item "-msmall-data"
  17593. .PD 0
  17594. .IP "\fB\-mlarge\-data\fR" 4
  17595. .IX Item "-mlarge-data"
  17596. .PD
  17597. When \fB\-mexplicit\-relocs\fR is in effect, static data is
  17598. accessed via \fIgp-relative\fR relocations. When \fB\-msmall\-data\fR
  17599. is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
  17600. (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
  17601. 16\-bit relocations off of the \f(CW$gp\fR register. This limits the
  17602. size of the small data area to 64KB, but allows the variables to be
  17603. directly accessed via a single instruction.
  17604. .Sp
  17605. The default is \fB\-mlarge\-data\fR. With this option the data area
  17606. is limited to just below 2GB. Programs that require more than 2GB of
  17607. data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
  17608. heap instead of in the program's data segment.
  17609. .Sp
  17610. When generating code for shared libraries, \fB\-fpic\fR implies
  17611. \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
  17612. .IP "\fB\-msmall\-text\fR" 4
  17613. .IX Item "-msmall-text"
  17614. .PD 0
  17615. .IP "\fB\-mlarge\-text\fR" 4
  17616. .IX Item "-mlarge-text"
  17617. .PD
  17618. When \fB\-msmall\-text\fR is used, the compiler assumes that the
  17619. code of the entire program (or shared library) fits in 4MB, and is
  17620. thus reachable with a branch instruction. When \fB\-msmall\-data\fR
  17621. is used, the compiler can assume that all local symbols share the
  17622. same \f(CW$gp\fR value, and thus reduce the number of instructions
  17623. required for a function call from 4 to 1.
  17624. .Sp
  17625. The default is \fB\-mlarge\-text\fR.
  17626. .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
  17627. .IX Item "-mcpu=cpu_type"
  17628. Set the instruction set and instruction scheduling parameters for
  17629. machine type \fIcpu_type\fR. You can specify either the \fB\s-1EV\s0\fR
  17630. style name or the corresponding chip number. \s-1GCC\s0 supports scheduling
  17631. parameters for the \s-1EV4, EV5\s0 and \s-1EV6\s0 family of processors and
  17632. chooses the default values for the instruction set from the processor
  17633. you specify. If you do not specify a processor type, \s-1GCC\s0 defaults
  17634. to the processor on which the compiler was built.
  17635. .Sp
  17636. Supported values for \fIcpu_type\fR are
  17637. .RS 4
  17638. .IP "\fBev4\fR" 4
  17639. .IX Item "ev4"
  17640. .PD 0
  17641. .IP "\fBev45\fR" 4
  17642. .IX Item "ev45"
  17643. .IP "\fB21064\fR" 4
  17644. .IX Item "21064"
  17645. .PD
  17646. Schedules as an \s-1EV4\s0 and has no instruction set extensions.
  17647. .IP "\fBev5\fR" 4
  17648. .IX Item "ev5"
  17649. .PD 0
  17650. .IP "\fB21164\fR" 4
  17651. .IX Item "21164"
  17652. .PD
  17653. Schedules as an \s-1EV5\s0 and has no instruction set extensions.
  17654. .IP "\fBev56\fR" 4
  17655. .IX Item "ev56"
  17656. .PD 0
  17657. .IP "\fB21164a\fR" 4
  17658. .IX Item "21164a"
  17659. .PD
  17660. Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
  17661. .IP "\fBpca56\fR" 4
  17662. .IX Item "pca56"
  17663. .PD 0
  17664. .IP "\fB21164pc\fR" 4
  17665. .IX Item "21164pc"
  17666. .IP "\fB21164PC\fR" 4
  17667. .IX Item "21164PC"
  17668. .PD
  17669. Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
  17670. .IP "\fBev6\fR" 4
  17671. .IX Item "ev6"
  17672. .PD 0
  17673. .IP "\fB21264\fR" 4
  17674. .IX Item "21264"
  17675. .PD
  17676. Schedules as an \s-1EV6\s0 and supports the \s-1BWX, FIX,\s0 and \s-1MAX\s0 extensions.
  17677. .IP "\fBev67\fR" 4
  17678. .IX Item "ev67"
  17679. .PD 0
  17680. .IP "\fB21264a\fR" 4
  17681. .IX Item "21264a"
  17682. .PD
  17683. Schedules as an \s-1EV6\s0 and supports the \s-1BWX, CIX, FIX,\s0 and \s-1MAX\s0 extensions.
  17684. .RE
  17685. .RS 4
  17686. .Sp
  17687. Native toolchains also support the value \fBnative\fR,
  17688. which selects the best architecture option for the host processor.
  17689. \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
  17690. the processor.
  17691. .RE
  17692. .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
  17693. .IX Item "-mtune=cpu_type"
  17694. Set only the instruction scheduling parameters for machine type
  17695. \&\fIcpu_type\fR. The instruction set is not changed.
  17696. .Sp
  17697. Native toolchains also support the value \fBnative\fR,
  17698. which selects the best architecture option for the host processor.
  17699. \&\fB\-mtune=native\fR has no effect if \s-1GCC\s0 does not recognize
  17700. the processor.
  17701. .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
  17702. .IX Item "-mmemory-latency=time"
  17703. Sets the latency the scheduler should assume for typical memory
  17704. references as seen by the application. This number is highly
  17705. dependent on the memory access patterns used by the application
  17706. and the size of the external cache on the machine.
  17707. .Sp
  17708. Valid options for \fItime\fR are
  17709. .RS 4
  17710. .IP "\fInumber\fR" 4
  17711. .IX Item "number"
  17712. A decimal number representing clock cycles.
  17713. .IP "\fBL1\fR" 4
  17714. .IX Item "L1"
  17715. .PD 0
  17716. .IP "\fBL2\fR" 4
  17717. .IX Item "L2"
  17718. .IP "\fBL3\fR" 4
  17719. .IX Item "L3"
  17720. .IP "\fBmain\fR" 4
  17721. .IX Item "main"
  17722. .PD
  17723. The compiler contains estimates of the number of clock cycles for
  17724. \&\*(L"typical\*(R" \s-1EV4 & EV5\s0 hardware for the Level 1, 2 & 3 caches
  17725. (also called Dcache, Scache, and Bcache), as well as to main memory.
  17726. Note that L3 is only valid for \s-1EV5.\s0
  17727. .RE
  17728. .RS 4
  17729. .RE
  17730. .PP
  17731. \fI\s-1FR30\s0 Options\fR
  17732. .IX Subsection "FR30 Options"
  17733. .PP
  17734. These options are defined specifically for the \s-1FR30\s0 port.
  17735. .IP "\fB\-msmall\-model\fR" 4
  17736. .IX Item "-msmall-model"
  17737. Use the small address space model. This can produce smaller code, but
  17738. it does assume that all symbolic values and addresses fit into a
  17739. 20\-bit range.
  17740. .IP "\fB\-mno\-lsim\fR" 4
  17741. .IX Item "-mno-lsim"
  17742. Assume that runtime support has been provided and so there is no need
  17743. to include the simulator library (\fIlibsim.a\fR) on the linker
  17744. command line.
  17745. .PP
  17746. \fI\s-1FT32\s0 Options\fR
  17747. .IX Subsection "FT32 Options"
  17748. .PP
  17749. These options are defined specifically for the \s-1FT32\s0 port.
  17750. .IP "\fB\-msim\fR" 4
  17751. .IX Item "-msim"
  17752. Specifies that the program will be run on the simulator. This causes
  17753. an alternate runtime startup and library to be linked.
  17754. You must not use this option when generating programs that will run on
  17755. real hardware; you must provide your own runtime library for whatever
  17756. I/O functions are needed.
  17757. .IP "\fB\-mlra\fR" 4
  17758. .IX Item "-mlra"
  17759. Enable Local Register Allocation. This is still experimental for \s-1FT32,\s0
  17760. so by default the compiler uses standard reload.
  17761. .IP "\fB\-mnodiv\fR" 4
  17762. .IX Item "-mnodiv"
  17763. Do not use div and mod instructions.
  17764. .IP "\fB\-mft32b\fR" 4
  17765. .IX Item "-mft32b"
  17766. Enable use of the extended instructions of the \s-1FT32B\s0 processor.
  17767. .IP "\fB\-mcompress\fR" 4
  17768. .IX Item "-mcompress"
  17769. Compress all code using the Ft32B code compression scheme.
  17770. .IP "\fB\-mnopm\fR" 4
  17771. .IX Item "-mnopm"
  17772. Do not generate code that reads program memory.
  17773. .PP
  17774. \fI\s-1FRV\s0 Options\fR
  17775. .IX Subsection "FRV Options"
  17776. .IP "\fB\-mgpr\-32\fR" 4
  17777. .IX Item "-mgpr-32"
  17778. Only use the first 32 general-purpose registers.
  17779. .IP "\fB\-mgpr\-64\fR" 4
  17780. .IX Item "-mgpr-64"
  17781. Use all 64 general-purpose registers.
  17782. .IP "\fB\-mfpr\-32\fR" 4
  17783. .IX Item "-mfpr-32"
  17784. Use only the first 32 floating-point registers.
  17785. .IP "\fB\-mfpr\-64\fR" 4
  17786. .IX Item "-mfpr-64"
  17787. Use all 64 floating-point registers.
  17788. .IP "\fB\-mhard\-float\fR" 4
  17789. .IX Item "-mhard-float"
  17790. Use hardware instructions for floating-point operations.
  17791. .IP "\fB\-msoft\-float\fR" 4
  17792. .IX Item "-msoft-float"
  17793. Use library routines for floating-point operations.
  17794. .IP "\fB\-malloc\-cc\fR" 4
  17795. .IX Item "-malloc-cc"
  17796. Dynamically allocate condition code registers.
  17797. .IP "\fB\-mfixed\-cc\fR" 4
  17798. .IX Item "-mfixed-cc"
  17799. Do not try to dynamically allocate condition code registers, only
  17800. use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
  17801. .IP "\fB\-mdword\fR" 4
  17802. .IX Item "-mdword"
  17803. Change \s-1ABI\s0 to use double word insns.
  17804. .IP "\fB\-mno\-dword\fR" 4
  17805. .IX Item "-mno-dword"
  17806. Do not use double word instructions.
  17807. .IP "\fB\-mdouble\fR" 4
  17808. .IX Item "-mdouble"
  17809. Use floating-point double instructions.
  17810. .IP "\fB\-mno\-double\fR" 4
  17811. .IX Item "-mno-double"
  17812. Do not use floating-point double instructions.
  17813. .IP "\fB\-mmedia\fR" 4
  17814. .IX Item "-mmedia"
  17815. Use media instructions.
  17816. .IP "\fB\-mno\-media\fR" 4
  17817. .IX Item "-mno-media"
  17818. Do not use media instructions.
  17819. .IP "\fB\-mmuladd\fR" 4
  17820. .IX Item "-mmuladd"
  17821. Use multiply and add/subtract instructions.
  17822. .IP "\fB\-mno\-muladd\fR" 4
  17823. .IX Item "-mno-muladd"
  17824. Do not use multiply and add/subtract instructions.
  17825. .IP "\fB\-mfdpic\fR" 4
  17826. .IX Item "-mfdpic"
  17827. Select the \s-1FDPIC ABI,\s0 which uses function descriptors to represent
  17828. pointers to functions. Without any PIC/PIE\-related options, it
  17829. implies \fB\-fPIE\fR. With \fB\-fpic\fR or \fB\-fpie\fR, it
  17830. assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
  17831. \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
  17832. are computed with 32 bits.
  17833. With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
  17834. .IP "\fB\-minline\-plt\fR" 4
  17835. .IX Item "-minline-plt"
  17836. Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
  17837. not known to bind locally. It has no effect without \fB\-mfdpic\fR.
  17838. It's enabled by default if optimizing for speed and compiling for
  17839. shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
  17840. optimization option such as \fB\-O3\fR or above is present in the
  17841. command line.
  17842. .IP "\fB\-mTLS\fR" 4
  17843. .IX Item "-mTLS"
  17844. Assume a large \s-1TLS\s0 segment when generating thread-local code.
  17845. .IP "\fB\-mtls\fR" 4
  17846. .IX Item "-mtls"
  17847. Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
  17848. .IP "\fB\-mgprel\-ro\fR" 4
  17849. .IX Item "-mgprel-ro"
  17850. Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC ABI\s0 for data
  17851. that is known to be in read-only sections. It's enabled by default,
  17852. except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
  17853. make the global offset table smaller, it trades 1 instruction for 4.
  17854. With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
  17855. one of which may be shared by multiple symbols, and it avoids the need
  17856. for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
  17857. win. If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
  17858. .IP "\fB\-multilib\-library\-pic\fR" 4
  17859. .IX Item "-multilib-library-pic"
  17860. Link with the (library, not \s-1FD\s0) pic libraries. It's implied by
  17861. \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
  17862. \&\fB\-fpic\fR without \fB\-mfdpic\fR. You should never have to use
  17863. it explicitly.
  17864. .IP "\fB\-mlinked\-fp\fR" 4
  17865. .IX Item "-mlinked-fp"
  17866. Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
  17867. a stack frame is allocated. This option is enabled by default and can
  17868. be disabled with \fB\-mno\-linked\-fp\fR.
  17869. .IP "\fB\-mlong\-calls\fR" 4
  17870. .IX Item "-mlong-calls"
  17871. Use indirect addressing to call functions outside the current
  17872. compilation unit. This allows the functions to be placed anywhere
  17873. within the 32\-bit address space.
  17874. .IP "\fB\-malign\-labels\fR" 4
  17875. .IX Item "-malign-labels"
  17876. Try to align labels to an 8\-byte boundary by inserting NOPs into the
  17877. previous packet. This option only has an effect when \s-1VLIW\s0 packing
  17878. is enabled. It doesn't create new packets; it merely adds NOPs to
  17879. existing ones.
  17880. .IP "\fB\-mlibrary\-pic\fR" 4
  17881. .IX Item "-mlibrary-pic"
  17882. Generate position-independent \s-1EABI\s0 code.
  17883. .IP "\fB\-macc\-4\fR" 4
  17884. .IX Item "-macc-4"
  17885. Use only the first four media accumulator registers.
  17886. .IP "\fB\-macc\-8\fR" 4
  17887. .IX Item "-macc-8"
  17888. Use all eight media accumulator registers.
  17889. .IP "\fB\-mpack\fR" 4
  17890. .IX Item "-mpack"
  17891. Pack \s-1VLIW\s0 instructions.
  17892. .IP "\fB\-mno\-pack\fR" 4
  17893. .IX Item "-mno-pack"
  17894. Do not pack \s-1VLIW\s0 instructions.
  17895. .IP "\fB\-mno\-eflags\fR" 4
  17896. .IX Item "-mno-eflags"
  17897. Do not mark \s-1ABI\s0 switches in e_flags.
  17898. .IP "\fB\-mcond\-move\fR" 4
  17899. .IX Item "-mcond-move"
  17900. Enable the use of conditional-move instructions (default).
  17901. .Sp
  17902. This switch is mainly for debugging the compiler and will likely be removed
  17903. in a future version.
  17904. .IP "\fB\-mno\-cond\-move\fR" 4
  17905. .IX Item "-mno-cond-move"
  17906. Disable the use of conditional-move instructions.
  17907. .Sp
  17908. This switch is mainly for debugging the compiler and will likely be removed
  17909. in a future version.
  17910. .IP "\fB\-mscc\fR" 4
  17911. .IX Item "-mscc"
  17912. Enable the use of conditional set instructions (default).
  17913. .Sp
  17914. This switch is mainly for debugging the compiler and will likely be removed
  17915. in a future version.
  17916. .IP "\fB\-mno\-scc\fR" 4
  17917. .IX Item "-mno-scc"
  17918. Disable the use of conditional set instructions.
  17919. .Sp
  17920. This switch is mainly for debugging the compiler and will likely be removed
  17921. in a future version.
  17922. .IP "\fB\-mcond\-exec\fR" 4
  17923. .IX Item "-mcond-exec"
  17924. Enable the use of conditional execution (default).
  17925. .Sp
  17926. This switch is mainly for debugging the compiler and will likely be removed
  17927. in a future version.
  17928. .IP "\fB\-mno\-cond\-exec\fR" 4
  17929. .IX Item "-mno-cond-exec"
  17930. Disable the use of conditional execution.
  17931. .Sp
  17932. This switch is mainly for debugging the compiler and will likely be removed
  17933. in a future version.
  17934. .IP "\fB\-mvliw\-branch\fR" 4
  17935. .IX Item "-mvliw-branch"
  17936. Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
  17937. .Sp
  17938. This switch is mainly for debugging the compiler and will likely be removed
  17939. in a future version.
  17940. .IP "\fB\-mno\-vliw\-branch\fR" 4
  17941. .IX Item "-mno-vliw-branch"
  17942. Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
  17943. .Sp
  17944. This switch is mainly for debugging the compiler and will likely be removed
  17945. in a future version.
  17946. .IP "\fB\-mmulti\-cond\-exec\fR" 4
  17947. .IX Item "-mmulti-cond-exec"
  17948. Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
  17949. (default).
  17950. .Sp
  17951. This switch is mainly for debugging the compiler and will likely be removed
  17952. in a future version.
  17953. .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
  17954. .IX Item "-mno-multi-cond-exec"
  17955. Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
  17956. .Sp
  17957. This switch is mainly for debugging the compiler and will likely be removed
  17958. in a future version.
  17959. .IP "\fB\-mnested\-cond\-exec\fR" 4
  17960. .IX Item "-mnested-cond-exec"
  17961. Enable nested conditional execution optimizations (default).
  17962. .Sp
  17963. This switch is mainly for debugging the compiler and will likely be removed
  17964. in a future version.
  17965. .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
  17966. .IX Item "-mno-nested-cond-exec"
  17967. Disable nested conditional execution optimizations.
  17968. .Sp
  17969. This switch is mainly for debugging the compiler and will likely be removed
  17970. in a future version.
  17971. .IP "\fB\-moptimize\-membar\fR" 4
  17972. .IX Item "-moptimize-membar"
  17973. This switch removes redundant \f(CW\*(C`membar\*(C'\fR instructions from the
  17974. compiler-generated code. It is enabled by default.
  17975. .IP "\fB\-mno\-optimize\-membar\fR" 4
  17976. .IX Item "-mno-optimize-membar"
  17977. This switch disables the automatic removal of redundant \f(CW\*(C`membar\*(C'\fR
  17978. instructions from the generated code.
  17979. .IP "\fB\-mtomcat\-stats\fR" 4
  17980. .IX Item "-mtomcat-stats"
  17981. Cause gas to print out tomcat statistics.
  17982. .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
  17983. .IX Item "-mcpu=cpu"
  17984. Select the processor type for which to generate code. Possible values are
  17985. \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
  17986. \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
  17987. .PP
  17988. \fIGNU/Linux Options\fR
  17989. .IX Subsection "GNU/Linux Options"
  17990. .PP
  17991. These \fB\-m\fR options are defined for GNU/Linux targets:
  17992. .IP "\fB\-mglibc\fR" 4
  17993. .IX Item "-mglibc"
  17994. Use the \s-1GNU C\s0 library. This is the default except
  17995. on \fB*\-*\-linux\-*uclibc*\fR, \fB*\-*\-linux\-*musl*\fR and
  17996. \&\fB*\-*\-linux\-*android*\fR targets.
  17997. .IP "\fB\-muclibc\fR" 4
  17998. .IX Item "-muclibc"
  17999. Use uClibc C library. This is the default on
  18000. \&\fB*\-*\-linux\-*uclibc*\fR targets.
  18001. .IP "\fB\-mmusl\fR" 4
  18002. .IX Item "-mmusl"
  18003. Use the musl C library. This is the default on
  18004. \&\fB*\-*\-linux\-*musl*\fR targets.
  18005. .IP "\fB\-mbionic\fR" 4
  18006. .IX Item "-mbionic"
  18007. Use Bionic C library. This is the default on
  18008. \&\fB*\-*\-linux\-*android*\fR targets.
  18009. .IP "\fB\-mandroid\fR" 4
  18010. .IX Item "-mandroid"
  18011. Compile code compatible with Android platform. This is the default on
  18012. \&\fB*\-*\-linux\-*android*\fR targets.
  18013. .Sp
  18014. When compiling, this option enables \fB\-mbionic\fR, \fB\-fPIC\fR,
  18015. \&\fB\-fno\-exceptions\fR and \fB\-fno\-rtti\fR by default. When linking,
  18016. this option makes the \s-1GCC\s0 driver pass Android-specific options to the linker.
  18017. Finally, this option causes the preprocessor macro \f(CW\*(C`_\|_ANDROID_\|_\*(C'\fR
  18018. to be defined.
  18019. .IP "\fB\-tno\-android\-cc\fR" 4
  18020. .IX Item "-tno-android-cc"
  18021. Disable compilation effects of \fB\-mandroid\fR, i.e., do not enable
  18022. \&\fB\-mbionic\fR, \fB\-fPIC\fR, \fB\-fno\-exceptions\fR and
  18023. \&\fB\-fno\-rtti\fR by default.
  18024. .IP "\fB\-tno\-android\-ld\fR" 4
  18025. .IX Item "-tno-android-ld"
  18026. Disable linking effects of \fB\-mandroid\fR, i.e., pass standard Linux
  18027. linking options to the linker.
  18028. .PP
  18029. \fIH8/300 Options\fR
  18030. .IX Subsection "H8/300 Options"
  18031. .PP
  18032. These \fB\-m\fR options are defined for the H8/300 implementations:
  18033. .IP "\fB\-mrelax\fR" 4
  18034. .IX Item "-mrelax"
  18035. Shorten some address references at link time, when possible; uses the
  18036. linker option \fB\-relax\fR.
  18037. .IP "\fB\-mh\fR" 4
  18038. .IX Item "-mh"
  18039. Generate code for the H8/300H.
  18040. .IP "\fB\-ms\fR" 4
  18041. .IX Item "-ms"
  18042. Generate code for the H8S.
  18043. .IP "\fB\-mn\fR" 4
  18044. .IX Item "-mn"
  18045. Generate code for the H8S and H8/300H in the normal mode. This switch
  18046. must be used either with \fB\-mh\fR or \fB\-ms\fR.
  18047. .IP "\fB\-ms2600\fR" 4
  18048. .IX Item "-ms2600"
  18049. Generate code for the H8S/2600. This switch must be used with \fB\-ms\fR.
  18050. .IP "\fB\-mexr\fR" 4
  18051. .IX Item "-mexr"
  18052. Extended registers are stored on stack before execution of function
  18053. with monitor attribute. Default option is \fB\-mexr\fR.
  18054. This option is valid only for H8S targets.
  18055. .IP "\fB\-mno\-exr\fR" 4
  18056. .IX Item "-mno-exr"
  18057. Extended registers are not stored on stack before execution of function
  18058. with monitor attribute. Default option is \fB\-mno\-exr\fR.
  18059. This option is valid only for H8S targets.
  18060. .IP "\fB\-mint32\fR" 4
  18061. .IX Item "-mint32"
  18062. Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
  18063. .IP "\fB\-malign\-300\fR" 4
  18064. .IX Item "-malign-300"
  18065. On the H8/300H and H8S, use the same alignment rules as for the H8/300.
  18066. The default for the H8/300H and H8S is to align longs and floats on
  18067. 4\-byte boundaries.
  18068. \&\fB\-malign\-300\fR causes them to be aligned on 2\-byte boundaries.
  18069. This option has no effect on the H8/300.
  18070. .PP
  18071. \fI\s-1HPPA\s0 Options\fR
  18072. .IX Subsection "HPPA Options"
  18073. .PP
  18074. These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
  18075. .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
  18076. .IX Item "-march=architecture-type"
  18077. Generate code for the specified architecture. The choices for
  18078. \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA 1.0,\s0 \fB1.1\fR for \s-1PA
  18079. 1.1,\s0 and \fB2.0\fR for \s-1PA 2.0\s0 processors. Refer to
  18080. \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
  18081. architecture option for your machine. Code compiled for lower numbered
  18082. architectures runs on higher numbered architectures, but not the
  18083. other way around.
  18084. .IP "\fB\-mpa\-risc\-1\-0\fR" 4
  18085. .IX Item "-mpa-risc-1-0"
  18086. .PD 0
  18087. .IP "\fB\-mpa\-risc\-1\-1\fR" 4
  18088. .IX Item "-mpa-risc-1-1"
  18089. .IP "\fB\-mpa\-risc\-2\-0\fR" 4
  18090. .IX Item "-mpa-risc-2-0"
  18091. .PD
  18092. Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
  18093. .IP "\fB\-mcaller\-copies\fR" 4
  18094. .IX Item "-mcaller-copies"
  18095. The caller copies function arguments passed by hidden reference. This
  18096. option should be used with care as it is not compatible with the default
  18097. 32\-bit runtime. However, only aggregates larger than eight bytes are
  18098. passed by hidden reference and the option provides better compatibility
  18099. with OpenMP.
  18100. .IP "\fB\-mjump\-in\-delay\fR" 4
  18101. .IX Item "-mjump-in-delay"
  18102. This option is ignored and provided for compatibility purposes only.
  18103. .IP "\fB\-mdisable\-fpregs\fR" 4
  18104. .IX Item "-mdisable-fpregs"
  18105. Prevent floating-point registers from being used in any manner. This is
  18106. necessary for compiling kernels that perform lazy context switching of
  18107. floating-point registers. If you use this option and attempt to perform
  18108. floating-point operations, the compiler aborts.
  18109. .IP "\fB\-mdisable\-indexing\fR" 4
  18110. .IX Item "-mdisable-indexing"
  18111. Prevent the compiler from using indexing address modes. This avoids some
  18112. rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH.\s0
  18113. .IP "\fB\-mno\-space\-regs\fR" 4
  18114. .IX Item "-mno-space-regs"
  18115. Generate code that assumes the target has no space registers. This allows
  18116. \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
  18117. .Sp
  18118. Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
  18119. .IP "\fB\-mfast\-indirect\-calls\fR" 4
  18120. .IX Item "-mfast-indirect-calls"
  18121. Generate code that assumes calls never cross space boundaries. This
  18122. allows \s-1GCC\s0 to emit code that performs faster indirect calls.
  18123. .Sp
  18124. This option does not work in the presence of shared libraries or nested
  18125. functions.
  18126. .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
  18127. .IX Item "-mfixed-range=register-range"
  18128. Generate code treating the given register range as fixed registers.
  18129. A fixed register is one that the register allocator cannot use. This is
  18130. useful when compiling kernel code. A register range is specified as
  18131. two registers separated by a dash. Multiple register ranges can be
  18132. specified separated by a comma.
  18133. .IP "\fB\-mlong\-load\-store\fR" 4
  18134. .IX Item "-mlong-load-store"
  18135. Generate 3\-instruction load and store sequences as sometimes required by
  18136. the HP-UX 10 linker. This is equivalent to the \fB+k\fR option to
  18137. the \s-1HP\s0 compilers.
  18138. .IP "\fB\-mportable\-runtime\fR" 4
  18139. .IX Item "-mportable-runtime"
  18140. Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
  18141. .IP "\fB\-mgas\fR" 4
  18142. .IX Item "-mgas"
  18143. Enable the use of assembler directives only \s-1GAS\s0 understands.
  18144. .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
  18145. .IX Item "-mschedule=cpu-type"
  18146. Schedule code according to the constraints for the machine type
  18147. \&\fIcpu-type\fR. The choices for \fIcpu-type\fR are \fB700\fR
  18148. \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR. Refer
  18149. to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
  18150. proper scheduling option for your machine. The default scheduling is
  18151. \&\fB8000\fR.
  18152. .IP "\fB\-mlinker\-opt\fR" 4
  18153. .IX Item "-mlinker-opt"
  18154. Enable the optimization pass in the HP-UX linker. Note this makes symbolic
  18155. debugging impossible. It also triggers a bug in the HP-UX 8 and HP-UX 9
  18156. linkers in which they give bogus error messages when linking some programs.
  18157. .IP "\fB\-msoft\-float\fR" 4
  18158. .IX Item "-msoft-float"
  18159. Generate output containing library calls for floating point.
  18160. \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
  18161. targets. Normally the facilities of the machine's usual C compiler are
  18162. used, but this cannot be done directly in cross-compilation. You must make
  18163. your own arrangements to provide suitable library functions for
  18164. cross-compilation.
  18165. .Sp
  18166. \&\fB\-msoft\-float\fR changes the calling convention in the output file;
  18167. therefore, it is only useful if you compile \fIall\fR of a program with
  18168. this option. In particular, you need to compile \fIlibgcc.a\fR, the
  18169. library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
  18170. this to work.
  18171. .IP "\fB\-msio\fR" 4
  18172. .IX Item "-msio"
  18173. Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO.\s0 The default is
  18174. \&\fB\-mwsio\fR. This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
  18175. \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO.\s0 These
  18176. options are available under HP-UX and HI-UX.
  18177. .IP "\fB\-mgnu\-ld\fR" 4
  18178. .IX Item "-mgnu-ld"
  18179. Use options specific to \s-1GNU\s0 \fBld\fR.
  18180. This passes \fB\-shared\fR to \fBld\fR when
  18181. building a shared library. It is the default when \s-1GCC\s0 is configured,
  18182. explicitly or implicitly, with the \s-1GNU\s0 linker. This option does not
  18183. affect which \fBld\fR is called; it only changes what parameters
  18184. are passed to that \fBld\fR.
  18185. The \fBld\fR that is called is determined by the
  18186. \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
  18187. finally by the user's \fB\s-1PATH\s0\fR. The linker used by \s-1GCC\s0 can be printed
  18188. using \fBwhich `gcc \-print\-prog\-name=ld`\fR. This option is only available
  18189. on the 64\-bit HP-UX \s-1GCC,\s0 i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
  18190. .IP "\fB\-mhp\-ld\fR" 4
  18191. .IX Item "-mhp-ld"
  18192. Use options specific to \s-1HP\s0 \fBld\fR.
  18193. This passes \fB\-b\fR to \fBld\fR when building
  18194. a shared library and passes \fB+Accept TypeMismatch\fR to \fBld\fR on all
  18195. links. It is the default when \s-1GCC\s0 is configured, explicitly or
  18196. implicitly, with the \s-1HP\s0 linker. This option does not affect
  18197. which \fBld\fR is called; it only changes what parameters are passed to that
  18198. \&\fBld\fR.
  18199. The \fBld\fR that is called is determined by the \fB\-\-with\-ld\fR
  18200. configure option, \s-1GCC\s0's program search path, and finally by the user's
  18201. \&\fB\s-1PATH\s0\fR. The linker used by \s-1GCC\s0 can be printed using \fBwhich
  18202. `gcc \-print\-prog\-name=ld`\fR. This option is only available on the 64\-bit
  18203. HP-UX \s-1GCC,\s0 i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
  18204. .IP "\fB\-mlong\-calls\fR" 4
  18205. .IX Item "-mlong-calls"
  18206. Generate code that uses long call sequences. This ensures that a call
  18207. is always able to reach linker generated stubs. The default is to generate
  18208. long calls only when the distance from the call site to the beginning
  18209. of the function or translation unit, as the case may be, exceeds a
  18210. predefined limit set by the branch type being used. The limits for
  18211. normal calls are 7,600,000 and 240,000 bytes, respectively for the
  18212. \&\s-1PA 2.0\s0 and \s-1PA 1.X\s0 architectures. Sibcalls are always limited at
  18213. 240,000 bytes.
  18214. .Sp
  18215. Distances are measured from the beginning of functions when using the
  18216. \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
  18217. and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
  18218. the \s-1SOM\s0 linker.
  18219. .Sp
  18220. It is normally not desirable to use this option as it degrades
  18221. performance. However, it may be useful in large applications,
  18222. particularly when partial linking is used to build the application.
  18223. .Sp
  18224. The types of long calls used depends on the capabilities of the
  18225. assembler and linker, and the type of code being generated. The
  18226. impact on systems that support long absolute calls, and long pic
  18227. symbol-difference or pc-relative calls should be relatively small.
  18228. However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
  18229. and it is quite long.
  18230. .IP "\fB\-munix=\fR\fIunix-std\fR" 4
  18231. .IX Item "-munix=unix-std"
  18232. Generate compiler predefines and select a startfile for the specified
  18233. \&\s-1UNIX\s0 standard. The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
  18234. and \fB98\fR. \fB93\fR is supported on all HP-UX versions. \fB95\fR
  18235. is available on HP-UX 10.10 and later. \fB98\fR is available on HP-UX
  18236. 11.11 and later. The default values are \fB93\fR for HP-UX 10.00,
  18237. \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
  18238. and later.
  18239. .Sp
  18240. \&\fB\-munix=93\fR provides the same predefines as \s-1GCC 3.3\s0 and 3.4.
  18241. \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
  18242. and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
  18243. \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
  18244. \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
  18245. \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
  18246. .Sp
  18247. It is \fIimportant\fR to note that this option changes the interfaces
  18248. for various library routines. It also affects the operational behavior
  18249. of the C library. Thus, \fIextreme\fR care is needed in using this
  18250. option.
  18251. .Sp
  18252. Library code that is intended to operate with more than one \s-1UNIX\s0
  18253. standard must test, set and restore the variable \f(CW\*(C`_\|_xpg4_extended_mask\*(C'\fR
  18254. as appropriate. Most \s-1GNU\s0 software doesn't provide this capability.
  18255. .IP "\fB\-nolibdld\fR" 4
  18256. .IX Item "-nolibdld"
  18257. Suppress the generation of link options to search libdld.sl when the
  18258. \&\fB\-static\fR option is specified on HP-UX 10 and later.
  18259. .IP "\fB\-static\fR" 4
  18260. .IX Item "-static"
  18261. The HP-UX implementation of setlocale in libc has a dependency on
  18262. libdld.sl. There isn't an archive version of libdld.sl. Thus,
  18263. when the \fB\-static\fR option is specified, special link options
  18264. are needed to resolve this dependency.
  18265. .Sp
  18266. On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
  18267. link with libdld.sl when the \fB\-static\fR option is specified.
  18268. This causes the resulting binary to be dynamic. On the 64\-bit port,
  18269. the linkers generate dynamic binaries by default in any case. The
  18270. \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
  18271. adding these link options.
  18272. .IP "\fB\-threads\fR" 4
  18273. .IX Item "-threads"
  18274. Add support for multithreading with the \fIdce thread\fR library
  18275. under HP-UX. This option sets flags for both the preprocessor and
  18276. linker.
  18277. .PP
  18278. \fI\s-1IA\-64\s0 Options\fR
  18279. .IX Subsection "IA-64 Options"
  18280. .PP
  18281. These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
  18282. .IP "\fB\-mbig\-endian\fR" 4
  18283. .IX Item "-mbig-endian"
  18284. Generate code for a big-endian target. This is the default for HP-UX.
  18285. .IP "\fB\-mlittle\-endian\fR" 4
  18286. .IX Item "-mlittle-endian"
  18287. Generate code for a little-endian target. This is the default for \s-1AIX5\s0
  18288. and GNU/Linux.
  18289. .IP "\fB\-mgnu\-as\fR" 4
  18290. .IX Item "-mgnu-as"
  18291. .PD 0
  18292. .IP "\fB\-mno\-gnu\-as\fR" 4
  18293. .IX Item "-mno-gnu-as"
  18294. .PD
  18295. Generate (or don't) code for the \s-1GNU\s0 assembler. This is the default.
  18296. .IP "\fB\-mgnu\-ld\fR" 4
  18297. .IX Item "-mgnu-ld"
  18298. .PD 0
  18299. .IP "\fB\-mno\-gnu\-ld\fR" 4
  18300. .IX Item "-mno-gnu-ld"
  18301. .PD
  18302. Generate (or don't) code for the \s-1GNU\s0 linker. This is the default.
  18303. .IP "\fB\-mno\-pic\fR" 4
  18304. .IX Item "-mno-pic"
  18305. Generate code that does not use a global pointer register. The result
  18306. is not position independent code, and violates the \s-1IA\-64 ABI.\s0
  18307. .IP "\fB\-mvolatile\-asm\-stop\fR" 4
  18308. .IX Item "-mvolatile-asm-stop"
  18309. .PD 0
  18310. .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
  18311. .IX Item "-mno-volatile-asm-stop"
  18312. .PD
  18313. Generate (or don't) a stop bit immediately before and after volatile asm
  18314. statements.
  18315. .IP "\fB\-mregister\-names\fR" 4
  18316. .IX Item "-mregister-names"
  18317. .PD 0
  18318. .IP "\fB\-mno\-register\-names\fR" 4
  18319. .IX Item "-mno-register-names"
  18320. .PD
  18321. Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
  18322. the stacked registers. This may make assembler output more readable.
  18323. .IP "\fB\-mno\-sdata\fR" 4
  18324. .IX Item "-mno-sdata"
  18325. .PD 0
  18326. .IP "\fB\-msdata\fR" 4
  18327. .IX Item "-msdata"
  18328. .PD
  18329. Disable (or enable) optimizations that use the small data section. This may
  18330. be useful for working around optimizer bugs.
  18331. .IP "\fB\-mconstant\-gp\fR" 4
  18332. .IX Item "-mconstant-gp"
  18333. Generate code that uses a single constant global pointer value. This is
  18334. useful when compiling kernel code.
  18335. .IP "\fB\-mauto\-pic\fR" 4
  18336. .IX Item "-mauto-pic"
  18337. Generate code that is self-relocatable. This implies \fB\-mconstant\-gp\fR.
  18338. This is useful when compiling firmware code.
  18339. .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
  18340. .IX Item "-minline-float-divide-min-latency"
  18341. Generate code for inline divides of floating-point values
  18342. using the minimum latency algorithm.
  18343. .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
  18344. .IX Item "-minline-float-divide-max-throughput"
  18345. Generate code for inline divides of floating-point values
  18346. using the maximum throughput algorithm.
  18347. .IP "\fB\-mno\-inline\-float\-divide\fR" 4
  18348. .IX Item "-mno-inline-float-divide"
  18349. Do not generate inline code for divides of floating-point values.
  18350. .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
  18351. .IX Item "-minline-int-divide-min-latency"
  18352. Generate code for inline divides of integer values
  18353. using the minimum latency algorithm.
  18354. .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
  18355. .IX Item "-minline-int-divide-max-throughput"
  18356. Generate code for inline divides of integer values
  18357. using the maximum throughput algorithm.
  18358. .IP "\fB\-mno\-inline\-int\-divide\fR" 4
  18359. .IX Item "-mno-inline-int-divide"
  18360. Do not generate inline code for divides of integer values.
  18361. .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
  18362. .IX Item "-minline-sqrt-min-latency"
  18363. Generate code for inline square roots
  18364. using the minimum latency algorithm.
  18365. .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
  18366. .IX Item "-minline-sqrt-max-throughput"
  18367. Generate code for inline square roots
  18368. using the maximum throughput algorithm.
  18369. .IP "\fB\-mno\-inline\-sqrt\fR" 4
  18370. .IX Item "-mno-inline-sqrt"
  18371. Do not generate inline code for \f(CW\*(C`sqrt\*(C'\fR.
  18372. .IP "\fB\-mfused\-madd\fR" 4
  18373. .IX Item "-mfused-madd"
  18374. .PD 0
  18375. .IP "\fB\-mno\-fused\-madd\fR" 4
  18376. .IX Item "-mno-fused-madd"
  18377. .PD
  18378. Do (don't) generate code that uses the fused multiply/add or multiply/subtract
  18379. instructions. The default is to use these instructions.
  18380. .IP "\fB\-mno\-dwarf2\-asm\fR" 4
  18381. .IX Item "-mno-dwarf2-asm"
  18382. .PD 0
  18383. .IP "\fB\-mdwarf2\-asm\fR" 4
  18384. .IX Item "-mdwarf2-asm"
  18385. .PD
  18386. Don't (or do) generate assembler code for the \s-1DWARF\s0 line number debugging
  18387. info. This may be useful when not using the \s-1GNU\s0 assembler.
  18388. .IP "\fB\-mearly\-stop\-bits\fR" 4
  18389. .IX Item "-mearly-stop-bits"
  18390. .PD 0
  18391. .IP "\fB\-mno\-early\-stop\-bits\fR" 4
  18392. .IX Item "-mno-early-stop-bits"
  18393. .PD
  18394. Allow stop bits to be placed earlier than immediately preceding the
  18395. instruction that triggered the stop bit. This can improve instruction
  18396. scheduling, but does not always do so.
  18397. .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
  18398. .IX Item "-mfixed-range=register-range"
  18399. Generate code treating the given register range as fixed registers.
  18400. A fixed register is one that the register allocator cannot use. This is
  18401. useful when compiling kernel code. A register range is specified as
  18402. two registers separated by a dash. Multiple register ranges can be
  18403. specified separated by a comma.
  18404. .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
  18405. .IX Item "-mtls-size=tls-size"
  18406. Specify bit size of immediate \s-1TLS\s0 offsets. Valid values are 14, 22, and
  18407. 64.
  18408. .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
  18409. .IX Item "-mtune=cpu-type"
  18410. Tune the instruction scheduling for a particular \s-1CPU,\s0 Valid values are
  18411. \&\fBitanium\fR, \fBitanium1\fR, \fBmerced\fR, \fBitanium2\fR,
  18412. and \fBmckinley\fR.
  18413. .IP "\fB\-milp32\fR" 4
  18414. .IX Item "-milp32"
  18415. .PD 0
  18416. .IP "\fB\-mlp64\fR" 4
  18417. .IX Item "-mlp64"
  18418. .PD
  18419. Generate code for a 32\-bit or 64\-bit environment.
  18420. The 32\-bit environment sets int, long and pointer to 32 bits.
  18421. The 64\-bit environment sets int to 32 bits and long and pointer
  18422. to 64 bits. These are HP-UX specific flags.
  18423. .IP "\fB\-mno\-sched\-br\-data\-spec\fR" 4
  18424. .IX Item "-mno-sched-br-data-spec"
  18425. .PD 0
  18426. .IP "\fB\-msched\-br\-data\-spec\fR" 4
  18427. .IX Item "-msched-br-data-spec"
  18428. .PD
  18429. (Dis/En)able data speculative scheduling before reload.
  18430. This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
  18431. the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
  18432. The default setting is disabled.
  18433. .IP "\fB\-msched\-ar\-data\-spec\fR" 4
  18434. .IX Item "-msched-ar-data-spec"
  18435. .PD 0
  18436. .IP "\fB\-mno\-sched\-ar\-data\-spec\fR" 4
  18437. .IX Item "-mno-sched-ar-data-spec"
  18438. .PD
  18439. (En/Dis)able data speculative scheduling after reload.
  18440. This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
  18441. the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
  18442. The default setting is enabled.
  18443. .IP "\fB\-mno\-sched\-control\-spec\fR" 4
  18444. .IX Item "-mno-sched-control-spec"
  18445. .PD 0
  18446. .IP "\fB\-msched\-control\-spec\fR" 4
  18447. .IX Item "-msched-control-spec"
  18448. .PD
  18449. (Dis/En)able control speculative scheduling. This feature is
  18450. available only during region scheduling (i.e. before reload).
  18451. This results in generation of the \f(CW\*(C`ld.s\*(C'\fR instructions and
  18452. the corresponding check instructions \f(CW\*(C`chk.s\*(C'\fR.
  18453. The default setting is disabled.
  18454. .IP "\fB\-msched\-br\-in\-data\-spec\fR" 4
  18455. .IX Item "-msched-br-in-data-spec"
  18456. .PD 0
  18457. .IP "\fB\-mno\-sched\-br\-in\-data\-spec\fR" 4
  18458. .IX Item "-mno-sched-br-in-data-spec"
  18459. .PD
  18460. (En/Dis)able speculative scheduling of the instructions that
  18461. are dependent on the data speculative loads before reload.
  18462. This is effective only with \fB\-msched\-br\-data\-spec\fR enabled.
  18463. The default setting is enabled.
  18464. .IP "\fB\-msched\-ar\-in\-data\-spec\fR" 4
  18465. .IX Item "-msched-ar-in-data-spec"
  18466. .PD 0
  18467. .IP "\fB\-mno\-sched\-ar\-in\-data\-spec\fR" 4
  18468. .IX Item "-mno-sched-ar-in-data-spec"
  18469. .PD
  18470. (En/Dis)able speculative scheduling of the instructions that
  18471. are dependent on the data speculative loads after reload.
  18472. This is effective only with \fB\-msched\-ar\-data\-spec\fR enabled.
  18473. The default setting is enabled.
  18474. .IP "\fB\-msched\-in\-control\-spec\fR" 4
  18475. .IX Item "-msched-in-control-spec"
  18476. .PD 0
  18477. .IP "\fB\-mno\-sched\-in\-control\-spec\fR" 4
  18478. .IX Item "-mno-sched-in-control-spec"
  18479. .PD
  18480. (En/Dis)able speculative scheduling of the instructions that
  18481. are dependent on the control speculative loads.
  18482. This is effective only with \fB\-msched\-control\-spec\fR enabled.
  18483. The default setting is enabled.
  18484. .IP "\fB\-mno\-sched\-prefer\-non\-data\-spec\-insns\fR" 4
  18485. .IX Item "-mno-sched-prefer-non-data-spec-insns"
  18486. .PD 0
  18487. .IP "\fB\-msched\-prefer\-non\-data\-spec\-insns\fR" 4
  18488. .IX Item "-msched-prefer-non-data-spec-insns"
  18489. .PD
  18490. If enabled, data-speculative instructions are chosen for schedule
  18491. only if there are no other choices at the moment. This makes
  18492. the use of the data speculation much more conservative.
  18493. The default setting is disabled.
  18494. .IP "\fB\-mno\-sched\-prefer\-non\-control\-spec\-insns\fR" 4
  18495. .IX Item "-mno-sched-prefer-non-control-spec-insns"
  18496. .PD 0
  18497. .IP "\fB\-msched\-prefer\-non\-control\-spec\-insns\fR" 4
  18498. .IX Item "-msched-prefer-non-control-spec-insns"
  18499. .PD
  18500. If enabled, control-speculative instructions are chosen for schedule
  18501. only if there are no other choices at the moment. This makes
  18502. the use of the control speculation much more conservative.
  18503. The default setting is disabled.
  18504. .IP "\fB\-mno\-sched\-count\-spec\-in\-critical\-path\fR" 4
  18505. .IX Item "-mno-sched-count-spec-in-critical-path"
  18506. .PD 0
  18507. .IP "\fB\-msched\-count\-spec\-in\-critical\-path\fR" 4
  18508. .IX Item "-msched-count-spec-in-critical-path"
  18509. .PD
  18510. If enabled, speculative dependencies are considered during
  18511. computation of the instructions priorities. This makes the use of the
  18512. speculation a bit more conservative.
  18513. The default setting is disabled.
  18514. .IP "\fB\-msched\-spec\-ldc\fR" 4
  18515. .IX Item "-msched-spec-ldc"
  18516. Use a simple data speculation check. This option is on by default.
  18517. .IP "\fB\-msched\-control\-spec\-ldc\fR" 4
  18518. .IX Item "-msched-control-spec-ldc"
  18519. Use a simple check for control speculation. This option is on by default.
  18520. .IP "\fB\-msched\-stop\-bits\-after\-every\-cycle\fR" 4
  18521. .IX Item "-msched-stop-bits-after-every-cycle"
  18522. Place a stop bit after every cycle when scheduling. This option is on
  18523. by default.
  18524. .IP "\fB\-msched\-fp\-mem\-deps\-zero\-cost\fR" 4
  18525. .IX Item "-msched-fp-mem-deps-zero-cost"
  18526. Assume that floating-point stores and loads are not likely to cause a conflict
  18527. when placed into the same instruction group. This option is disabled by
  18528. default.
  18529. .IP "\fB\-msel\-sched\-dont\-check\-control\-spec\fR" 4
  18530. .IX Item "-msel-sched-dont-check-control-spec"
  18531. Generate checks for control speculation in selective scheduling.
  18532. This flag is disabled by default.
  18533. .IP "\fB\-msched\-max\-memory\-insns=\fR\fImax-insns\fR" 4
  18534. .IX Item "-msched-max-memory-insns=max-insns"
  18535. Limit on the number of memory insns per instruction group, giving lower
  18536. priority to subsequent memory insns attempting to schedule in the same
  18537. instruction group. Frequently useful to prevent cache bank conflicts.
  18538. The default value is 1.
  18539. .IP "\fB\-msched\-max\-memory\-insns\-hard\-limit\fR" 4
  18540. .IX Item "-msched-max-memory-insns-hard-limit"
  18541. Makes the limit specified by \fBmsched-max-memory-insns\fR a hard limit,
  18542. disallowing more than that number in an instruction group.
  18543. Otherwise, the limit is \*(L"soft\*(R", meaning that non-memory operations
  18544. are preferred when the limit is reached, but memory operations may still
  18545. be scheduled.
  18546. .PP
  18547. \fI\s-1LM32\s0 Options\fR
  18548. .IX Subsection "LM32 Options"
  18549. .PP
  18550. These \fB\-m\fR options are defined for the LatticeMico32 architecture:
  18551. .IP "\fB\-mbarrel\-shift\-enabled\fR" 4
  18552. .IX Item "-mbarrel-shift-enabled"
  18553. Enable barrel-shift instructions.
  18554. .IP "\fB\-mdivide\-enabled\fR" 4
  18555. .IX Item "-mdivide-enabled"
  18556. Enable divide and modulus instructions.
  18557. .IP "\fB\-mmultiply\-enabled\fR" 4
  18558. .IX Item "-mmultiply-enabled"
  18559. Enable multiply instructions.
  18560. .IP "\fB\-msign\-extend\-enabled\fR" 4
  18561. .IX Item "-msign-extend-enabled"
  18562. Enable sign extend instructions.
  18563. .IP "\fB\-muser\-enabled\fR" 4
  18564. .IX Item "-muser-enabled"
  18565. Enable user-defined instructions.
  18566. .PP
  18567. \fIM32C Options\fR
  18568. .IX Subsection "M32C Options"
  18569. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  18570. .IX Item "-mcpu=name"
  18571. Select the \s-1CPU\s0 for which code is generated. \fIname\fR may be one of
  18572. \&\fBr8c\fR for the R8C/Tiny series, \fBm16c\fR for the M16C (up to
  18573. /60) series, \fBm32cm\fR for the M16C/80 series, or \fBm32c\fR for
  18574. the M32C/80 series.
  18575. .IP "\fB\-msim\fR" 4
  18576. .IX Item "-msim"
  18577. Specifies that the program will be run on the simulator. This causes
  18578. an alternate runtime library to be linked in which supports, for
  18579. example, file I/O. You must not use this option when generating
  18580. programs that will run on real hardware; you must provide your own
  18581. runtime library for whatever I/O functions are needed.
  18582. .IP "\fB\-memregs=\fR\fInumber\fR" 4
  18583. .IX Item "-memregs=number"
  18584. Specifies the number of memory-based pseudo-registers \s-1GCC\s0 uses
  18585. during code generation. These pseudo-registers are used like real
  18586. registers, so there is a tradeoff between \s-1GCC\s0's ability to fit the
  18587. code into available registers, and the performance penalty of using
  18588. memory instead of registers. Note that all modules in a program must
  18589. be compiled with the same value for this option. Because of that, you
  18590. must not use this option with \s-1GCC\s0's default runtime libraries.
  18591. .PP
  18592. \fIM32R/D Options\fR
  18593. .IX Subsection "M32R/D Options"
  18594. .PP
  18595. These \fB\-m\fR options are defined for Renesas M32R/D architectures:
  18596. .IP "\fB\-m32r2\fR" 4
  18597. .IX Item "-m32r2"
  18598. Generate code for the M32R/2.
  18599. .IP "\fB\-m32rx\fR" 4
  18600. .IX Item "-m32rx"
  18601. Generate code for the M32R/X.
  18602. .IP "\fB\-m32r\fR" 4
  18603. .IX Item "-m32r"
  18604. Generate code for the M32R. This is the default.
  18605. .IP "\fB\-mmodel=small\fR" 4
  18606. .IX Item "-mmodel=small"
  18607. Assume all objects live in the lower 16MB of memory (so that their addresses
  18608. can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
  18609. are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
  18610. This is the default.
  18611. .Sp
  18612. The addressability of a particular object can be set with the
  18613. \&\f(CW\*(C`model\*(C'\fR attribute.
  18614. .IP "\fB\-mmodel=medium\fR" 4
  18615. .IX Item "-mmodel=medium"
  18616. Assume objects may be anywhere in the 32\-bit address space (the compiler
  18617. generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
  18618. assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
  18619. .IP "\fB\-mmodel=large\fR" 4
  18620. .IX Item "-mmodel=large"
  18621. Assume objects may be anywhere in the 32\-bit address space (the compiler
  18622. generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
  18623. assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
  18624. (the compiler generates the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
  18625. instruction sequence).
  18626. .IP "\fB\-msdata=none\fR" 4
  18627. .IX Item "-msdata=none"
  18628. Disable use of the small data area. Variables are put into
  18629. one of \f(CW\*(C`.data\*(C'\fR, \f(CW\*(C`.bss\*(C'\fR, or \f(CW\*(C`.rodata\*(C'\fR (unless the
  18630. \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
  18631. This is the default.
  18632. .Sp
  18633. The small data area consists of sections \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR.
  18634. Objects may be explicitly put in the small data area with the
  18635. \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
  18636. .IP "\fB\-msdata=sdata\fR" 4
  18637. .IX Item "-msdata=sdata"
  18638. Put small global and static data in the small data area, but do not
  18639. generate special code to reference them.
  18640. .IP "\fB\-msdata=use\fR" 4
  18641. .IX Item "-msdata=use"
  18642. Put small global and static data in the small data area, and generate
  18643. special instructions to reference them.
  18644. .IP "\fB\-G\fR \fInum\fR" 4
  18645. .IX Item "-G num"
  18646. Put global and static objects less than or equal to \fInum\fR bytes
  18647. into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
  18648. sections. The default value of \fInum\fR is 8.
  18649. The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
  18650. for this option to have any effect.
  18651. .Sp
  18652. All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
  18653. Compiling with different values of \fInum\fR may or may not work; if it
  18654. doesn't the linker gives an error message\-\-\-incorrect code is not
  18655. generated.
  18656. .IP "\fB\-mdebug\fR" 4
  18657. .IX Item "-mdebug"
  18658. Makes the M32R\-specific code in the compiler display some statistics
  18659. that might help in debugging programs.
  18660. .IP "\fB\-malign\-loops\fR" 4
  18661. .IX Item "-malign-loops"
  18662. Align all loops to a 32\-byte boundary.
  18663. .IP "\fB\-mno\-align\-loops\fR" 4
  18664. .IX Item "-mno-align-loops"
  18665. Do not enforce a 32\-byte alignment for loops. This is the default.
  18666. .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
  18667. .IX Item "-missue-rate=number"
  18668. Issue \fInumber\fR instructions per cycle. \fInumber\fR can only be 1
  18669. or 2.
  18670. .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
  18671. .IX Item "-mbranch-cost=number"
  18672. \&\fInumber\fR can only be 1 or 2. If it is 1 then branches are
  18673. preferred over conditional code, if it is 2, then the opposite applies.
  18674. .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
  18675. .IX Item "-mflush-trap=number"
  18676. Specifies the trap number to use to flush the cache. The default is
  18677. 12. Valid numbers are between 0 and 15 inclusive.
  18678. .IP "\fB\-mno\-flush\-trap\fR" 4
  18679. .IX Item "-mno-flush-trap"
  18680. Specifies that the cache cannot be flushed by using a trap.
  18681. .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
  18682. .IX Item "-mflush-func=name"
  18683. Specifies the name of the operating system function to call to flush
  18684. the cache. The default is \fB_flush_cache\fR, but a function call
  18685. is only used if a trap is not available.
  18686. .IP "\fB\-mno\-flush\-func\fR" 4
  18687. .IX Item "-mno-flush-func"
  18688. Indicates that there is no \s-1OS\s0 function for flushing the cache.
  18689. .PP
  18690. \fIM680x0 Options\fR
  18691. .IX Subsection "M680x0 Options"
  18692. .PP
  18693. These are the \fB\-m\fR options defined for M680x0 and ColdFire processors.
  18694. The default settings depend on which architecture was selected when
  18695. the compiler was configured; the defaults for the most common choices
  18696. are given below.
  18697. .IP "\fB\-march=\fR\fIarch\fR" 4
  18698. .IX Item "-march=arch"
  18699. Generate code for a specific M680x0 or ColdFire instruction set
  18700. architecture. Permissible values of \fIarch\fR for M680x0
  18701. architectures are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
  18702. \&\fB68030\fR, \fB68040\fR, \fB68060\fR and \fBcpu32\fR. ColdFire
  18703. architectures are selected according to Freescale's \s-1ISA\s0 classification
  18704. and the permissible values are: \fBisaa\fR, \fBisaaplus\fR,
  18705. \&\fBisab\fR and \fBisac\fR.
  18706. .Sp
  18707. \&\s-1GCC\s0 defines a macro \f(CW\*(C`_\|_mcf\f(CIarch\f(CW_\|_\*(C'\fR whenever it is generating
  18708. code for a ColdFire target. The \fIarch\fR in this macro is one of the
  18709. \&\fB\-march\fR arguments given above.
  18710. .Sp
  18711. When used together, \fB\-march\fR and \fB\-mtune\fR select code
  18712. that runs on a family of similar processors but that is optimized
  18713. for a particular microarchitecture.
  18714. .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
  18715. .IX Item "-mcpu=cpu"
  18716. Generate code for a specific M680x0 or ColdFire processor.
  18717. The M680x0 \fIcpu\fRs are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
  18718. \&\fB68030\fR, \fB68040\fR, \fB68060\fR, \fB68302\fR, \fB68332\fR
  18719. and \fBcpu32\fR. The ColdFire \fIcpu\fRs are given by the table
  18720. below, which also classifies the CPUs into families:
  18721. .RS 4
  18722. .IP "Family : \fB\-mcpu\fR arguments" 4
  18723. .IX Item "Family : -mcpu arguments"
  18724. .PD 0
  18725. .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
  18726. .IX Item "51 : 51 51ac 51ag 51cn 51em 51je 51jf 51jg 51jm 51mm 51qe 51qm"
  18727. .IP "\fB5206\fR : \fB5202\fR \fB5204\fR \fB5206\fR" 4
  18728. .IX Item "5206 : 5202 5204 5206"
  18729. .IP "\fB5206e\fR : \fB5206e\fR" 4
  18730. .IX Item "5206e : 5206e"
  18731. .IP "\fB5208\fR : \fB5207\fR \fB5208\fR" 4
  18732. .IX Item "5208 : 5207 5208"
  18733. .IP "\fB5211a\fR : \fB5210a\fR \fB5211a\fR" 4
  18734. .IX Item "5211a : 5210a 5211a"
  18735. .IP "\fB5213\fR : \fB5211\fR \fB5212\fR \fB5213\fR" 4
  18736. .IX Item "5213 : 5211 5212 5213"
  18737. .IP "\fB5216\fR : \fB5214\fR \fB5216\fR" 4
  18738. .IX Item "5216 : 5214 5216"
  18739. .IP "\fB52235\fR : \fB52230\fR \fB52231\fR \fB52232\fR \fB52233\fR \fB52234\fR \fB52235\fR" 4
  18740. .IX Item "52235 : 52230 52231 52232 52233 52234 52235"
  18741. .IP "\fB5225\fR : \fB5224\fR \fB5225\fR" 4
  18742. .IX Item "5225 : 5224 5225"
  18743. .IP "\fB52259\fR : \fB52252\fR \fB52254\fR \fB52255\fR \fB52256\fR \fB52258\fR \fB52259\fR" 4
  18744. .IX Item "52259 : 52252 52254 52255 52256 52258 52259"
  18745. .IP "\fB5235\fR : \fB5232\fR \fB5233\fR \fB5234\fR \fB5235\fR \fB523x\fR" 4
  18746. .IX Item "5235 : 5232 5233 5234 5235 523x"
  18747. .IP "\fB5249\fR : \fB5249\fR" 4
  18748. .IX Item "5249 : 5249"
  18749. .IP "\fB5250\fR : \fB5250\fR" 4
  18750. .IX Item "5250 : 5250"
  18751. .IP "\fB5271\fR : \fB5270\fR \fB5271\fR" 4
  18752. .IX Item "5271 : 5270 5271"
  18753. .IP "\fB5272\fR : \fB5272\fR" 4
  18754. .IX Item "5272 : 5272"
  18755. .IP "\fB5275\fR : \fB5274\fR \fB5275\fR" 4
  18756. .IX Item "5275 : 5274 5275"
  18757. .IP "\fB5282\fR : \fB5280\fR \fB5281\fR \fB5282\fR \fB528x\fR" 4
  18758. .IX Item "5282 : 5280 5281 5282 528x"
  18759. .IP "\fB53017\fR : \fB53011\fR \fB53012\fR \fB53013\fR \fB53014\fR \fB53015\fR \fB53016\fR \fB53017\fR" 4
  18760. .IX Item "53017 : 53011 53012 53013 53014 53015 53016 53017"
  18761. .IP "\fB5307\fR : \fB5307\fR" 4
  18762. .IX Item "5307 : 5307"
  18763. .IP "\fB5329\fR : \fB5327\fR \fB5328\fR \fB5329\fR \fB532x\fR" 4
  18764. .IX Item "5329 : 5327 5328 5329 532x"
  18765. .IP "\fB5373\fR : \fB5372\fR \fB5373\fR \fB537x\fR" 4
  18766. .IX Item "5373 : 5372 5373 537x"
  18767. .IP "\fB5407\fR : \fB5407\fR" 4
  18768. .IX Item "5407 : 5407"
  18769. .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
  18770. .IX Item "5475 : 5470 5471 5472 5473 5474 5475 547x 5480 5481 5482 5483 5484 5485"
  18771. .RE
  18772. .RS 4
  18773. .PD
  18774. .Sp
  18775. \&\fB\-mcpu=\fR\fIcpu\fR overrides \fB\-march=\fR\fIarch\fR if
  18776. \&\fIarch\fR is compatible with \fIcpu\fR. Other combinations of
  18777. \&\fB\-mcpu\fR and \fB\-march\fR are rejected.
  18778. .Sp
  18779. \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcf_cpu_\f(CIcpu\f(CW\*(C'\fR when ColdFire target
  18780. \&\fIcpu\fR is selected. It also defines \f(CW\*(C`_\|_mcf_family_\f(CIfamily\f(CW\*(C'\fR,
  18781. where the value of \fIfamily\fR is given by the table above.
  18782. .RE
  18783. .IP "\fB\-mtune=\fR\fItune\fR" 4
  18784. .IX Item "-mtune=tune"
  18785. Tune the code for a particular microarchitecture within the
  18786. constraints set by \fB\-march\fR and \fB\-mcpu\fR.
  18787. The M680x0 microarchitectures are: \fB68000\fR, \fB68010\fR,
  18788. \&\fB68020\fR, \fB68030\fR, \fB68040\fR, \fB68060\fR
  18789. and \fBcpu32\fR. The ColdFire microarchitectures
  18790. are: \fBcfv1\fR, \fBcfv2\fR, \fBcfv3\fR, \fBcfv4\fR and \fBcfv4e\fR.
  18791. .Sp
  18792. You can also use \fB\-mtune=68020\-40\fR for code that needs
  18793. to run relatively well on 68020, 68030 and 68040 targets.
  18794. \&\fB\-mtune=68020\-60\fR is similar but includes 68060 targets
  18795. as well. These two options select the same tuning decisions as
  18796. \&\fB\-m68020\-40\fR and \fB\-m68020\-60\fR respectively.
  18797. .Sp
  18798. \&\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
  18799. when tuning for 680x0 architecture \fIarch\fR. It also defines
  18800. \&\f(CW\*(C`mc\f(CIarch\f(CW\*(C'\fR unless either \fB\-ansi\fR or a non-GNU \fB\-std\fR
  18801. option is used. If \s-1GCC\s0 is tuning for a range of architectures,
  18802. as selected by \fB\-mtune=68020\-40\fR or \fB\-mtune=68020\-60\fR,
  18803. it defines the macros for every architecture in the range.
  18804. .Sp
  18805. \&\s-1GCC\s0 also defines the macro \f(CW\*(C`_\|_m\f(CIuarch\f(CW_\|_\*(C'\fR when tuning for
  18806. ColdFire microarchitecture \fIuarch\fR, where \fIuarch\fR is one
  18807. of the arguments given above.
  18808. .IP "\fB\-m68000\fR" 4
  18809. .IX Item "-m68000"
  18810. .PD 0
  18811. .IP "\fB\-mc68000\fR" 4
  18812. .IX Item "-mc68000"
  18813. .PD
  18814. Generate output for a 68000. This is the default
  18815. when the compiler is configured for 68000\-based systems.
  18816. It is equivalent to \fB\-march=68000\fR.
  18817. .Sp
  18818. Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
  18819. including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
  18820. .IP "\fB\-m68010\fR" 4
  18821. .IX Item "-m68010"
  18822. Generate output for a 68010. This is the default
  18823. when the compiler is configured for 68010\-based systems.
  18824. It is equivalent to \fB\-march=68010\fR.
  18825. .IP "\fB\-m68020\fR" 4
  18826. .IX Item "-m68020"
  18827. .PD 0
  18828. .IP "\fB\-mc68020\fR" 4
  18829. .IX Item "-mc68020"
  18830. .PD
  18831. Generate output for a 68020. This is the default
  18832. when the compiler is configured for 68020\-based systems.
  18833. It is equivalent to \fB\-march=68020\fR.
  18834. .IP "\fB\-m68030\fR" 4
  18835. .IX Item "-m68030"
  18836. Generate output for a 68030. This is the default when the compiler is
  18837. configured for 68030\-based systems. It is equivalent to
  18838. \&\fB\-march=68030\fR.
  18839. .IP "\fB\-m68040\fR" 4
  18840. .IX Item "-m68040"
  18841. Generate output for a 68040. This is the default when the compiler is
  18842. configured for 68040\-based systems. It is equivalent to
  18843. \&\fB\-march=68040\fR.
  18844. .Sp
  18845. This option inhibits the use of 68881/68882 instructions that have to be
  18846. emulated by software on the 68040. Use this option if your 68040 does not
  18847. have code to emulate those instructions.
  18848. .IP "\fB\-m68060\fR" 4
  18849. .IX Item "-m68060"
  18850. Generate output for a 68060. This is the default when the compiler is
  18851. configured for 68060\-based systems. It is equivalent to
  18852. \&\fB\-march=68060\fR.
  18853. .Sp
  18854. This option inhibits the use of 68020 and 68881/68882 instructions that
  18855. have to be emulated by software on the 68060. Use this option if your 68060
  18856. does not have code to emulate those instructions.
  18857. .IP "\fB\-mcpu32\fR" 4
  18858. .IX Item "-mcpu32"
  18859. Generate output for a \s-1CPU32.\s0 This is the default
  18860. when the compiler is configured for CPU32\-based systems.
  18861. It is equivalent to \fB\-march=cpu32\fR.
  18862. .Sp
  18863. Use this option for microcontrollers with a
  18864. \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
  18865. 68336, 68340, 68341, 68349 and 68360.
  18866. .IP "\fB\-m5200\fR" 4
  18867. .IX Item "-m5200"
  18868. Generate output for a 520X ColdFire \s-1CPU.\s0 This is the default
  18869. when the compiler is configured for 520X\-based systems.
  18870. It is equivalent to \fB\-mcpu=5206\fR, and is now deprecated
  18871. in favor of that option.
  18872. .Sp
  18873. Use this option for microcontroller with a 5200 core, including
  18874. the \s-1MCF5202, MCF5203, MCF5204\s0 and \s-1MCF5206.\s0
  18875. .IP "\fB\-m5206e\fR" 4
  18876. .IX Item "-m5206e"
  18877. Generate output for a 5206e ColdFire \s-1CPU.\s0 The option is now
  18878. deprecated in favor of the equivalent \fB\-mcpu=5206e\fR.
  18879. .IP "\fB\-m528x\fR" 4
  18880. .IX Item "-m528x"
  18881. Generate output for a member of the ColdFire 528X family.
  18882. The option is now deprecated in favor of the equivalent
  18883. \&\fB\-mcpu=528x\fR.
  18884. .IP "\fB\-m5307\fR" 4
  18885. .IX Item "-m5307"
  18886. Generate output for a ColdFire 5307 \s-1CPU.\s0 The option is now deprecated
  18887. in favor of the equivalent \fB\-mcpu=5307\fR.
  18888. .IP "\fB\-m5407\fR" 4
  18889. .IX Item "-m5407"
  18890. Generate output for a ColdFire 5407 \s-1CPU.\s0 The option is now deprecated
  18891. in favor of the equivalent \fB\-mcpu=5407\fR.
  18892. .IP "\fB\-mcfv4e\fR" 4
  18893. .IX Item "-mcfv4e"
  18894. Generate output for a ColdFire V4e family \s-1CPU\s0 (e.g. 547x/548x).
  18895. This includes use of hardware floating-point instructions.
  18896. The option is equivalent to \fB\-mcpu=547x\fR, and is now
  18897. deprecated in favor of that option.
  18898. .IP "\fB\-m68020\-40\fR" 4
  18899. .IX Item "-m68020-40"
  18900. Generate output for a 68040, without using any of the new instructions.
  18901. This results in code that can run relatively efficiently on either a
  18902. 68020/68881 or a 68030 or a 68040. The generated code does use the
  18903. 68881 instructions that are emulated on the 68040.
  18904. .Sp
  18905. The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-40\fR.
  18906. .IP "\fB\-m68020\-60\fR" 4
  18907. .IX Item "-m68020-60"
  18908. Generate output for a 68060, without using any of the new instructions.
  18909. This results in code that can run relatively efficiently on either a
  18910. 68020/68881 or a 68030 or a 68040. The generated code does use the
  18911. 68881 instructions that are emulated on the 68060.
  18912. .Sp
  18913. The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-60\fR.
  18914. .IP "\fB\-mhard\-float\fR" 4
  18915. .IX Item "-mhard-float"
  18916. .PD 0
  18917. .IP "\fB\-m68881\fR" 4
  18918. .IX Item "-m68881"
  18919. .PD
  18920. Generate floating-point instructions. This is the default for 68020
  18921. and above, and for ColdFire devices that have an \s-1FPU.\s0 It defines the
  18922. macro \f(CW\*(C`_\|_HAVE_68881_\|_\*(C'\fR on M680x0 targets and \f(CW\*(C`_\|_mcffpu_\|_\*(C'\fR
  18923. on ColdFire targets.
  18924. .IP "\fB\-msoft\-float\fR" 4
  18925. .IX Item "-msoft-float"
  18926. Do not generate floating-point instructions; use library calls instead.
  18927. This is the default for 68000, 68010, and 68832 targets. It is also
  18928. the default for ColdFire devices that have no \s-1FPU.\s0
  18929. .IP "\fB\-mdiv\fR" 4
  18930. .IX Item "-mdiv"
  18931. .PD 0
  18932. .IP "\fB\-mno\-div\fR" 4
  18933. .IX Item "-mno-div"
  18934. .PD
  18935. Generate (do not generate) ColdFire hardware divide and remainder
  18936. instructions. If \fB\-march\fR is used without \fB\-mcpu\fR,
  18937. the default is \*(L"on\*(R" for ColdFire architectures and \*(L"off\*(R" for M680x0
  18938. architectures. Otherwise, the default is taken from the target \s-1CPU\s0
  18939. (either the default \s-1CPU,\s0 or the one specified by \fB\-mcpu\fR). For
  18940. example, the default is \*(L"off\*(R" for \fB\-mcpu=5206\fR and \*(L"on\*(R" for
  18941. \&\fB\-mcpu=5206e\fR.
  18942. .Sp
  18943. \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcfhwdiv_\|_\*(C'\fR when this option is enabled.
  18944. .IP "\fB\-mshort\fR" 4
  18945. .IX Item "-mshort"
  18946. Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
  18947. Additionally, parameters passed on the stack are also aligned to a
  18948. 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
  18949. .IP "\fB\-mno\-short\fR" 4
  18950. .IX Item "-mno-short"
  18951. Do not consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide. This is the default.
  18952. .IP "\fB\-mnobitfield\fR" 4
  18953. .IX Item "-mnobitfield"
  18954. .PD 0
  18955. .IP "\fB\-mno\-bitfield\fR" 4
  18956. .IX Item "-mno-bitfield"
  18957. .PD
  18958. Do not use the bit-field instructions. The \fB\-m68000\fR, \fB\-mcpu32\fR
  18959. and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
  18960. .IP "\fB\-mbitfield\fR" 4
  18961. .IX Item "-mbitfield"
  18962. Do use the bit-field instructions. The \fB\-m68020\fR option implies
  18963. \&\fB\-mbitfield\fR. This is the default if you use a configuration
  18964. designed for a 68020.
  18965. .IP "\fB\-mrtd\fR" 4
  18966. .IX Item "-mrtd"
  18967. Use a different function-calling convention, in which functions
  18968. that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
  18969. instruction, which pops their arguments while returning. This
  18970. saves one instruction in the caller since there is no need to pop
  18971. the arguments there.
  18972. .Sp
  18973. This calling convention is incompatible with the one normally
  18974. used on Unix, so you cannot use it if you need to call libraries
  18975. compiled with the Unix compiler.
  18976. .Sp
  18977. Also, you must provide function prototypes for all functions that
  18978. take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
  18979. otherwise incorrect code is generated for calls to those
  18980. functions.
  18981. .Sp
  18982. In addition, seriously incorrect code results if you call a
  18983. function with too many arguments. (Normally, extra arguments are
  18984. harmlessly ignored.)
  18985. .Sp
  18986. The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
  18987. 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
  18988. .IP "\fB\-mno\-rtd\fR" 4
  18989. .IX Item "-mno-rtd"
  18990. Do not use the calling conventions selected by \fB\-mrtd\fR.
  18991. This is the default.
  18992. .IP "\fB\-malign\-int\fR" 4
  18993. .IX Item "-malign-int"
  18994. .PD 0
  18995. .IP "\fB\-mno\-align\-int\fR" 4
  18996. .IX Item "-mno-align-int"
  18997. .PD
  18998. 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,
  18999. \&\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
  19000. boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
  19001. Aligning variables on 32\-bit boundaries produces code that runs somewhat
  19002. faster on processors with 32\-bit busses at the expense of more memory.
  19003. .Sp
  19004. \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0
  19005. aligns structures containing the above types differently than
  19006. most published application binary interface specifications for the m68k.
  19007. .IP "\fB\-mpcrel\fR" 4
  19008. .IX Item "-mpcrel"
  19009. Use the pc-relative addressing mode of the 68000 directly, instead of
  19010. using a global offset table. At present, this option implies \fB\-fpic\fR,
  19011. allowing at most a 16\-bit offset for pc-relative addressing. \fB\-fPIC\fR is
  19012. not presently supported with \fB\-mpcrel\fR, though this could be supported for
  19013. 68020 and higher processors.
  19014. .IP "\fB\-mno\-strict\-align\fR" 4
  19015. .IX Item "-mno-strict-align"
  19016. .PD 0
  19017. .IP "\fB\-mstrict\-align\fR" 4
  19018. .IX Item "-mstrict-align"
  19019. .PD
  19020. Do not (do) assume that unaligned memory references are handled by
  19021. the system.
  19022. .IP "\fB\-msep\-data\fR" 4
  19023. .IX Item "-msep-data"
  19024. Generate code that allows the data segment to be located in a different
  19025. area of memory from the text segment. This allows for execute-in-place in
  19026. an environment without virtual memory management. This option implies
  19027. \&\fB\-fPIC\fR.
  19028. .IP "\fB\-mno\-sep\-data\fR" 4
  19029. .IX Item "-mno-sep-data"
  19030. Generate code that assumes that the data segment follows the text segment.
  19031. This is the default.
  19032. .IP "\fB\-mid\-shared\-library\fR" 4
  19033. .IX Item "-mid-shared-library"
  19034. Generate code that supports shared libraries via the library \s-1ID\s0 method.
  19035. This allows for execute-in-place and shared libraries in an environment
  19036. without virtual memory management. This option implies \fB\-fPIC\fR.
  19037. .IP "\fB\-mno\-id\-shared\-library\fR" 4
  19038. .IX Item "-mno-id-shared-library"
  19039. Generate code that doesn't assume ID-based shared libraries are being used.
  19040. This is the default.
  19041. .IP "\fB\-mshared\-library\-id=n\fR" 4
  19042. .IX Item "-mshared-library-id=n"
  19043. Specifies the identification number of the ID-based shared library being
  19044. compiled. Specifying a value of 0 generates more compact code; specifying
  19045. other values forces the allocation of that number to the current
  19046. library, but is no more space\- or time-efficient than omitting this option.
  19047. .IP "\fB\-mxgot\fR" 4
  19048. .IX Item "-mxgot"
  19049. .PD 0
  19050. .IP "\fB\-mno\-xgot\fR" 4
  19051. .IX Item "-mno-xgot"
  19052. .PD
  19053. When generating position-independent code for ColdFire, generate code
  19054. that works if the \s-1GOT\s0 has more than 8192 entries. This code is
  19055. larger and slower than code generated without this option. On M680x0
  19056. processors, this option is not needed; \fB\-fPIC\fR suffices.
  19057. .Sp
  19058. \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT.\s0
  19059. While this is relatively efficient, it only works if the \s-1GOT\s0
  19060. is smaller than about 64k. Anything larger causes the linker
  19061. to report an error such as:
  19062. .Sp
  19063. .Vb 1
  19064. \& relocation truncated to fit: R_68K_GOT16O foobar
  19065. .Ve
  19066. .Sp
  19067. If this happens, you should recompile your code with \fB\-mxgot\fR.
  19068. It should then work with very large GOTs. However, code generated with
  19069. \&\fB\-mxgot\fR is less efficient, since it takes 4 instructions to fetch
  19070. the value of a global symbol.
  19071. .Sp
  19072. Note that some linkers, including newer versions of the \s-1GNU\s0 linker,
  19073. can create multiple GOTs and sort \s-1GOT\s0 entries. If you have such a linker,
  19074. you should only need to use \fB\-mxgot\fR when compiling a single
  19075. object file that accesses more than 8192 \s-1GOT\s0 entries. Very few do.
  19076. .Sp
  19077. These options have no effect unless \s-1GCC\s0 is generating
  19078. position-independent code.
  19079. .IP "\fB\-mlong\-jump\-table\-offsets\fR" 4
  19080. .IX Item "-mlong-jump-table-offsets"
  19081. Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables. The default is to use
  19082. 16\-bit offsets.
  19083. .PP
  19084. \fIMCore Options\fR
  19085. .IX Subsection "MCore Options"
  19086. .PP
  19087. These are the \fB\-m\fR options defined for the Motorola M*Core
  19088. processors.
  19089. .IP "\fB\-mhardlit\fR" 4
  19090. .IX Item "-mhardlit"
  19091. .PD 0
  19092. .IP "\fB\-mno\-hardlit\fR" 4
  19093. .IX Item "-mno-hardlit"
  19094. .PD
  19095. Inline constants into the code stream if it can be done in two
  19096. instructions or less.
  19097. .IP "\fB\-mdiv\fR" 4
  19098. .IX Item "-mdiv"
  19099. .PD 0
  19100. .IP "\fB\-mno\-div\fR" 4
  19101. .IX Item "-mno-div"
  19102. .PD
  19103. Use the divide instruction. (Enabled by default).
  19104. .IP "\fB\-mrelax\-immediate\fR" 4
  19105. .IX Item "-mrelax-immediate"
  19106. .PD 0
  19107. .IP "\fB\-mno\-relax\-immediate\fR" 4
  19108. .IX Item "-mno-relax-immediate"
  19109. .PD
  19110. Allow arbitrary-sized immediates in bit operations.
  19111. .IP "\fB\-mwide\-bitfields\fR" 4
  19112. .IX Item "-mwide-bitfields"
  19113. .PD 0
  19114. .IP "\fB\-mno\-wide\-bitfields\fR" 4
  19115. .IX Item "-mno-wide-bitfields"
  19116. .PD
  19117. Always treat bit-fields as \f(CW\*(C`int\*(C'\fR\-sized.
  19118. .IP "\fB\-m4byte\-functions\fR" 4
  19119. .IX Item "-m4byte-functions"
  19120. .PD 0
  19121. .IP "\fB\-mno\-4byte\-functions\fR" 4
  19122. .IX Item "-mno-4byte-functions"
  19123. .PD
  19124. Force all functions to be aligned to a 4\-byte boundary.
  19125. .IP "\fB\-mcallgraph\-data\fR" 4
  19126. .IX Item "-mcallgraph-data"
  19127. .PD 0
  19128. .IP "\fB\-mno\-callgraph\-data\fR" 4
  19129. .IX Item "-mno-callgraph-data"
  19130. .PD
  19131. Emit callgraph information.
  19132. .IP "\fB\-mslow\-bytes\fR" 4
  19133. .IX Item "-mslow-bytes"
  19134. .PD 0
  19135. .IP "\fB\-mno\-slow\-bytes\fR" 4
  19136. .IX Item "-mno-slow-bytes"
  19137. .PD
  19138. Prefer word access when reading byte quantities.
  19139. .IP "\fB\-mlittle\-endian\fR" 4
  19140. .IX Item "-mlittle-endian"
  19141. .PD 0
  19142. .IP "\fB\-mbig\-endian\fR" 4
  19143. .IX Item "-mbig-endian"
  19144. .PD
  19145. Generate code for a little-endian target.
  19146. .IP "\fB\-m210\fR" 4
  19147. .IX Item "-m210"
  19148. .PD 0
  19149. .IP "\fB\-m340\fR" 4
  19150. .IX Item "-m340"
  19151. .PD
  19152. Generate code for the 210 processor.
  19153. .IP "\fB\-mno\-lsim\fR" 4
  19154. .IX Item "-mno-lsim"
  19155. Assume that runtime support has been provided and so omit the
  19156. simulator library (\fIlibsim.a)\fR from the linker command line.
  19157. .IP "\fB\-mstack\-increment=\fR\fIsize\fR" 4
  19158. .IX Item "-mstack-increment=size"
  19159. Set the maximum amount for a single stack increment operation. Large
  19160. values can increase the speed of programs that contain functions
  19161. that need a large amount of stack space, but they can also trigger a
  19162. segmentation fault if the stack is extended too much. The default
  19163. value is 0x1000.
  19164. .PP
  19165. \fIMeP Options\fR
  19166. .IX Subsection "MeP Options"
  19167. .IP "\fB\-mabsdiff\fR" 4
  19168. .IX Item "-mabsdiff"
  19169. Enables the \f(CW\*(C`abs\*(C'\fR instruction, which is the absolute difference
  19170. between two registers.
  19171. .IP "\fB\-mall\-opts\fR" 4
  19172. .IX Item "-mall-opts"
  19173. Enables all the optional instructions\-\-\-average, multiply, divide, bit
  19174. operations, leading zero, absolute difference, min/max, clip, and
  19175. saturation.
  19176. .IP "\fB\-maverage\fR" 4
  19177. .IX Item "-maverage"
  19178. Enables the \f(CW\*(C`ave\*(C'\fR instruction, which computes the average of two
  19179. registers.
  19180. .IP "\fB\-mbased=\fR\fIn\fR" 4
  19181. .IX Item "-mbased=n"
  19182. Variables of size \fIn\fR bytes or smaller are placed in the
  19183. \&\f(CW\*(C`.based\*(C'\fR section by default. Based variables use the \f(CW$tp\fR
  19184. register as a base register, and there is a 128\-byte limit to the
  19185. \&\f(CW\*(C`.based\*(C'\fR section.
  19186. .IP "\fB\-mbitops\fR" 4
  19187. .IX Item "-mbitops"
  19188. Enables the bit operation instructions\-\-\-bit test (\f(CW\*(C`btstm\*(C'\fR), set
  19189. (\f(CW\*(C`bsetm\*(C'\fR), clear (\f(CW\*(C`bclrm\*(C'\fR), invert (\f(CW\*(C`bnotm\*(C'\fR), and
  19190. test-and-set (\f(CW\*(C`tas\*(C'\fR).
  19191. .IP "\fB\-mc=\fR\fIname\fR" 4
  19192. .IX Item "-mc=name"
  19193. Selects which section constant data is placed in. \fIname\fR may
  19194. be \fBtiny\fR, \fBnear\fR, or \fBfar\fR.
  19195. .IP "\fB\-mclip\fR" 4
  19196. .IX Item "-mclip"
  19197. Enables the \f(CW\*(C`clip\*(C'\fR instruction. Note that \fB\-mclip\fR is not
  19198. useful unless you also provide \fB\-mminmax\fR.
  19199. .IP "\fB\-mconfig=\fR\fIname\fR" 4
  19200. .IX Item "-mconfig=name"
  19201. Selects one of the built-in core configurations. Each MeP chip has
  19202. one or more modules in it; each module has a core \s-1CPU\s0 and a variety of
  19203. coprocessors, optional instructions, and peripherals. The
  19204. \&\f(CW\*(C`MeP\-Integrator\*(C'\fR tool, not part of \s-1GCC,\s0 provides these
  19205. configurations through this option; using this option is the same as
  19206. using all the corresponding command-line options. The default
  19207. configuration is \fBdefault\fR.
  19208. .IP "\fB\-mcop\fR" 4
  19209. .IX Item "-mcop"
  19210. Enables the coprocessor instructions. By default, this is a 32\-bit
  19211. coprocessor. Note that the coprocessor is normally enabled via the
  19212. \&\fB\-mconfig=\fR option.
  19213. .IP "\fB\-mcop32\fR" 4
  19214. .IX Item "-mcop32"
  19215. Enables the 32\-bit coprocessor's instructions.
  19216. .IP "\fB\-mcop64\fR" 4
  19217. .IX Item "-mcop64"
  19218. Enables the 64\-bit coprocessor's instructions.
  19219. .IP "\fB\-mivc2\fR" 4
  19220. .IX Item "-mivc2"
  19221. Enables \s-1IVC2\s0 scheduling. \s-1IVC2\s0 is a 64\-bit \s-1VLIW\s0 coprocessor.
  19222. .IP "\fB\-mdc\fR" 4
  19223. .IX Item "-mdc"
  19224. Causes constant variables to be placed in the \f(CW\*(C`.near\*(C'\fR section.
  19225. .IP "\fB\-mdiv\fR" 4
  19226. .IX Item "-mdiv"
  19227. Enables the \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions.
  19228. .IP "\fB\-meb\fR" 4
  19229. .IX Item "-meb"
  19230. Generate big-endian code.
  19231. .IP "\fB\-mel\fR" 4
  19232. .IX Item "-mel"
  19233. Generate little-endian code.
  19234. .IP "\fB\-mio\-volatile\fR" 4
  19235. .IX Item "-mio-volatile"
  19236. Tells the compiler that any variable marked with the \f(CW\*(C`io\*(C'\fR
  19237. attribute is to be considered volatile.
  19238. .IP "\fB\-ml\fR" 4
  19239. .IX Item "-ml"
  19240. Causes variables to be assigned to the \f(CW\*(C`.far\*(C'\fR section by default.
  19241. .IP "\fB\-mleadz\fR" 4
  19242. .IX Item "-mleadz"
  19243. Enables the \f(CW\*(C`leadz\*(C'\fR (leading zero) instruction.
  19244. .IP "\fB\-mm\fR" 4
  19245. .IX Item "-mm"
  19246. Causes variables to be assigned to the \f(CW\*(C`.near\*(C'\fR section by default.
  19247. .IP "\fB\-mminmax\fR" 4
  19248. .IX Item "-mminmax"
  19249. Enables the \f(CW\*(C`min\*(C'\fR and \f(CW\*(C`max\*(C'\fR instructions.
  19250. .IP "\fB\-mmult\fR" 4
  19251. .IX Item "-mmult"
  19252. Enables the multiplication and multiply-accumulate instructions.
  19253. .IP "\fB\-mno\-opts\fR" 4
  19254. .IX Item "-mno-opts"
  19255. Disables all the optional instructions enabled by \fB\-mall\-opts\fR.
  19256. .IP "\fB\-mrepeat\fR" 4
  19257. .IX Item "-mrepeat"
  19258. Enables the \f(CW\*(C`repeat\*(C'\fR and \f(CW\*(C`erepeat\*(C'\fR instructions, used for
  19259. low-overhead looping.
  19260. .IP "\fB\-ms\fR" 4
  19261. .IX Item "-ms"
  19262. Causes all variables to default to the \f(CW\*(C`.tiny\*(C'\fR section. Note
  19263. that there is a 65536\-byte limit to this section. Accesses to these
  19264. variables use the \f(CW%gp\fR base register.
  19265. .IP "\fB\-msatur\fR" 4
  19266. .IX Item "-msatur"
  19267. Enables the saturation instructions. Note that the compiler does not
  19268. currently generate these itself, but this option is included for
  19269. compatibility with other tools, like \f(CW\*(C`as\*(C'\fR.
  19270. .IP "\fB\-msdram\fR" 4
  19271. .IX Item "-msdram"
  19272. Link the SDRAM-based runtime instead of the default ROM-based runtime.
  19273. .IP "\fB\-msim\fR" 4
  19274. .IX Item "-msim"
  19275. Link the simulator run-time libraries.
  19276. .IP "\fB\-msimnovec\fR" 4
  19277. .IX Item "-msimnovec"
  19278. Link the simulator runtime libraries, excluding built-in support
  19279. for reset and exception vectors and tables.
  19280. .IP "\fB\-mtf\fR" 4
  19281. .IX Item "-mtf"
  19282. Causes all functions to default to the \f(CW\*(C`.far\*(C'\fR section. Without
  19283. this option, functions default to the \f(CW\*(C`.near\*(C'\fR section.
  19284. .IP "\fB\-mtiny=\fR\fIn\fR" 4
  19285. .IX Item "-mtiny=n"
  19286. Variables that are \fIn\fR bytes or smaller are allocated to the
  19287. \&\f(CW\*(C`.tiny\*(C'\fR section. These variables use the \f(CW$gp\fR base
  19288. register. The default for this option is 4, but note that there's a
  19289. 65536\-byte limit to the \f(CW\*(C`.tiny\*(C'\fR section.
  19290. .PP
  19291. \fIMicroBlaze Options\fR
  19292. .IX Subsection "MicroBlaze Options"
  19293. .IP "\fB\-msoft\-float\fR" 4
  19294. .IX Item "-msoft-float"
  19295. Use software emulation for floating point (default).
  19296. .IP "\fB\-mhard\-float\fR" 4
  19297. .IX Item "-mhard-float"
  19298. Use hardware floating-point instructions.
  19299. .IP "\fB\-mmemcpy\fR" 4
  19300. .IX Item "-mmemcpy"
  19301. Do not optimize block moves, use \f(CW\*(C`memcpy\*(C'\fR.
  19302. .IP "\fB\-mno\-clearbss\fR" 4
  19303. .IX Item "-mno-clearbss"
  19304. This option is deprecated. Use \fB\-fno\-zero\-initialized\-in\-bss\fR instead.
  19305. .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
  19306. .IX Item "-mcpu=cpu-type"
  19307. Use features of, and schedule code for, the given \s-1CPU.\s0
  19308. Supported values are in the format \fBv\fR\fIX\fR\fB.\fR\fI\s-1YY\s0\fR\fB.\fR\fIZ\fR,
  19309. where \fIX\fR is a major version, \fI\s-1YY\s0\fR is the minor version, and
  19310. \&\fIZ\fR is compatibility code. Example values are \fBv3.00.a\fR,
  19311. \&\fBv4.00.b\fR, \fBv5.00.a\fR, \fBv5.00.b\fR, \fBv6.00.a\fR.
  19312. .IP "\fB\-mxl\-soft\-mul\fR" 4
  19313. .IX Item "-mxl-soft-mul"
  19314. Use software multiply emulation (default).
  19315. .IP "\fB\-mxl\-soft\-div\fR" 4
  19316. .IX Item "-mxl-soft-div"
  19317. Use software emulation for divides (default).
  19318. .IP "\fB\-mxl\-barrel\-shift\fR" 4
  19319. .IX Item "-mxl-barrel-shift"
  19320. Use the hardware barrel shifter.
  19321. .IP "\fB\-mxl\-pattern\-compare\fR" 4
  19322. .IX Item "-mxl-pattern-compare"
  19323. Use pattern compare instructions.
  19324. .IP "\fB\-msmall\-divides\fR" 4
  19325. .IX Item "-msmall-divides"
  19326. Use table lookup optimization for small signed integer divisions.
  19327. .IP "\fB\-mxl\-stack\-check\fR" 4
  19328. .IX Item "-mxl-stack-check"
  19329. This option is deprecated. Use \fB\-fstack\-check\fR instead.
  19330. .IP "\fB\-mxl\-gp\-opt\fR" 4
  19331. .IX Item "-mxl-gp-opt"
  19332. Use GP-relative \f(CW\*(C`.sdata\*(C'\fR/\f(CW\*(C`.sbss\*(C'\fR sections.
  19333. .IP "\fB\-mxl\-multiply\-high\fR" 4
  19334. .IX Item "-mxl-multiply-high"
  19335. Use multiply high instructions for high part of 32x32 multiply.
  19336. .IP "\fB\-mxl\-float\-convert\fR" 4
  19337. .IX Item "-mxl-float-convert"
  19338. Use hardware floating-point conversion instructions.
  19339. .IP "\fB\-mxl\-float\-sqrt\fR" 4
  19340. .IX Item "-mxl-float-sqrt"
  19341. Use hardware floating-point square root instruction.
  19342. .IP "\fB\-mbig\-endian\fR" 4
  19343. .IX Item "-mbig-endian"
  19344. Generate code for a big-endian target.
  19345. .IP "\fB\-mlittle\-endian\fR" 4
  19346. .IX Item "-mlittle-endian"
  19347. Generate code for a little-endian target.
  19348. .IP "\fB\-mxl\-reorder\fR" 4
  19349. .IX Item "-mxl-reorder"
  19350. Use reorder instructions (swap and byte reversed load/store).
  19351. .IP "\fB\-mxl\-mode\-\fR\fIapp-model\fR" 4
  19352. .IX Item "-mxl-mode-app-model"
  19353. Select application model \fIapp-model\fR. Valid models are
  19354. .RS 4
  19355. .IP "\fBexecutable\fR" 4
  19356. .IX Item "executable"
  19357. normal executable (default), uses startup code \fIcrt0.o\fR.
  19358. .IP "\fBxmdstub\fR" 4
  19359. .IX Item "xmdstub"
  19360. for use with Xilinx Microprocessor Debugger (\s-1XMD\s0) based
  19361. software intrusive debug agent called xmdstub. This uses startup file
  19362. \&\fIcrt1.o\fR and sets the start address of the program to 0x800.
  19363. .IP "\fBbootstrap\fR" 4
  19364. .IX Item "bootstrap"
  19365. for applications that are loaded using a bootloader.
  19366. This model uses startup file \fIcrt2.o\fR which does not contain a processor
  19367. reset vector handler. This is suitable for transferring control on a
  19368. processor reset to the bootloader rather than the application.
  19369. .IP "\fBnovectors\fR" 4
  19370. .IX Item "novectors"
  19371. for applications that do not require any of the
  19372. MicroBlaze vectors. This option may be useful for applications running
  19373. within a monitoring application. This model uses \fIcrt3.o\fR as a startup file.
  19374. .RE
  19375. .RS 4
  19376. .Sp
  19377. Option \fB\-xl\-mode\-\fR\fIapp-model\fR is a deprecated alias for
  19378. \&\fB\-mxl\-mode\-\fR\fIapp-model\fR.
  19379. .RE
  19380. .PP
  19381. \fI\s-1MIPS\s0 Options\fR
  19382. .IX Subsection "MIPS Options"
  19383. .IP "\fB\-EB\fR" 4
  19384. .IX Item "-EB"
  19385. Generate big-endian code.
  19386. .IP "\fB\-EL\fR" 4
  19387. .IX Item "-EL"
  19388. Generate little-endian code. This is the default for \fBmips*el\-*\-*\fR
  19389. configurations.
  19390. .IP "\fB\-march=\fR\fIarch\fR" 4
  19391. .IX Item "-march=arch"
  19392. Generate code that runs on \fIarch\fR, which can be the name of a
  19393. generic \s-1MIPS ISA,\s0 or the name of a particular processor.
  19394. The \s-1ISA\s0 names are:
  19395. \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
  19396. \&\fBmips32\fR, \fBmips32r2\fR, \fBmips32r3\fR, \fBmips32r5\fR,
  19397. \&\fBmips32r6\fR, \fBmips64\fR, \fBmips64r2\fR, \fBmips64r3\fR,
  19398. \&\fBmips64r5\fR and \fBmips64r6\fR.
  19399. The processor names are:
  19400. \&\fB4kc\fR, \fB4km\fR, \fB4kp\fR, \fB4ksc\fR,
  19401. \&\fB4kec\fR, \fB4kem\fR, \fB4kep\fR, \fB4ksd\fR,
  19402. \&\fB5kc\fR, \fB5kf\fR,
  19403. \&\fB20kc\fR,
  19404. \&\fB24kc\fR, \fB24kf2_1\fR, \fB24kf1_1\fR,
  19405. \&\fB24kec\fR, \fB24kef2_1\fR, \fB24kef1_1\fR,
  19406. \&\fB34kc\fR, \fB34kf2_1\fR, \fB34kf1_1\fR, \fB34kn\fR,
  19407. \&\fB74kc\fR, \fB74kf2_1\fR, \fB74kf1_1\fR, \fB74kf3_2\fR,
  19408. \&\fB1004kc\fR, \fB1004kf2_1\fR, \fB1004kf1_1\fR,
  19409. \&\fBi6400\fR,
  19410. \&\fBinteraptiv\fR,
  19411. \&\fBloongson2e\fR, \fBloongson2f\fR, \fBloongson3a\fR,
  19412. \&\fBm4k\fR,
  19413. \&\fBm14k\fR, \fBm14kc\fR, \fBm14ke\fR, \fBm14kec\fR,
  19414. \&\fBm5100\fR, \fBm5101\fR,
  19415. \&\fBocteon\fR, \fBocteon+\fR, \fBocteon2\fR, \fBocteon3\fR,
  19416. \&\fBorion\fR,
  19417. \&\fBp5600\fR,
  19418. \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
  19419. \&\fBr4600\fR, \fBr4650\fR, \fBr4700\fR, \fBr6000\fR, \fBr8000\fR,
  19420. \&\fBrm7000\fR, \fBrm9000\fR,
  19421. \&\fBr10000\fR, \fBr12000\fR, \fBr14000\fR, \fBr16000\fR,
  19422. \&\fBsb1\fR,
  19423. \&\fBsr71000\fR,
  19424. \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
  19425. \&\fBvr5000\fR, \fBvr5400\fR, \fBvr5500\fR,
  19426. \&\fBxlr\fR and \fBxlp\fR.
  19427. The special value \fBfrom-abi\fR selects the
  19428. most compatible architecture for the selected \s-1ABI\s0 (that is,
  19429. \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
  19430. .Sp
  19431. The native Linux/GNU toolchain also supports the value \fBnative\fR,
  19432. which selects the best architecture option for the host processor.
  19433. \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize
  19434. the processor.
  19435. .Sp
  19436. In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
  19437. (for example, \fB\-march=r2k\fR). Prefixes are optional, and
  19438. \&\fBvr\fR may be written \fBr\fR.
  19439. .Sp
  19440. Names of the form \fIn\fR\fBf2_1\fR refer to processors with
  19441. FPUs clocked at half the rate of the core, names of the form
  19442. \&\fIn\fR\fBf1_1\fR refer to processors with FPUs clocked at the same
  19443. rate as the core, and names of the form \fIn\fR\fBf3_2\fR refer to
  19444. processors with FPUs clocked a ratio of 3:2 with respect to the core.
  19445. For compatibility reasons, \fIn\fR\fBf\fR is accepted as a synonym
  19446. for \fIn\fR\fBf2_1\fR while \fIn\fR\fBx\fR and \fIb\fR\fBfx\fR are
  19447. accepted as synonyms for \fIn\fR\fBf1_1\fR.
  19448. .Sp
  19449. \&\s-1GCC\s0 defines two macros based on the value of this option. The first
  19450. is \f(CW\*(C`_MIPS_ARCH\*(C'\fR, which gives the name of target architecture, as
  19451. a string. The second has the form \f(CW\*(C`_MIPS_ARCH_\f(CIfoo\f(CW\*(C'\fR,
  19452. where \fIfoo\fR is the capitalized value of \f(CW\*(C`_MIPS_ARCH\*(C'\fR.
  19453. For example, \fB\-march=r2000\fR sets \f(CW\*(C`_MIPS_ARCH\*(C'\fR
  19454. to \f(CW"r2000"\fR and defines the macro \f(CW\*(C`_MIPS_ARCH_R2000\*(C'\fR.
  19455. .Sp
  19456. Note that the \f(CW\*(C`_MIPS_ARCH\*(C'\fR macro uses the processor names given
  19457. above. In other words, it has the full prefix and does not
  19458. abbreviate \fB000\fR as \fBk\fR. In the case of \fBfrom-abi\fR,
  19459. the macro names the resolved architecture (either \f(CW"mips1"\fR or
  19460. \&\f(CW"mips3"\fR). It names the default architecture when no
  19461. \&\fB\-march\fR option is given.
  19462. .IP "\fB\-mtune=\fR\fIarch\fR" 4
  19463. .IX Item "-mtune=arch"
  19464. Optimize for \fIarch\fR. Among other things, this option controls
  19465. the way instructions are scheduled, and the perceived cost of arithmetic
  19466. operations. The list of \fIarch\fR values is the same as for
  19467. \&\fB\-march\fR.
  19468. .Sp
  19469. When this option is not used, \s-1GCC\s0 optimizes for the processor
  19470. specified by \fB\-march\fR. By using \fB\-march\fR and
  19471. \&\fB\-mtune\fR together, it is possible to generate code that
  19472. runs on a family of processors, but optimize the code for one
  19473. particular member of that family.
  19474. .Sp
  19475. \&\fB\-mtune\fR defines the macros \f(CW\*(C`_MIPS_TUNE\*(C'\fR and
  19476. \&\f(CW\*(C`_MIPS_TUNE_\f(CIfoo\f(CW\*(C'\fR, which work in the same way as the
  19477. \&\fB\-march\fR ones described above.
  19478. .IP "\fB\-mips1\fR" 4
  19479. .IX Item "-mips1"
  19480. Equivalent to \fB\-march=mips1\fR.
  19481. .IP "\fB\-mips2\fR" 4
  19482. .IX Item "-mips2"
  19483. Equivalent to \fB\-march=mips2\fR.
  19484. .IP "\fB\-mips3\fR" 4
  19485. .IX Item "-mips3"
  19486. Equivalent to \fB\-march=mips3\fR.
  19487. .IP "\fB\-mips4\fR" 4
  19488. .IX Item "-mips4"
  19489. Equivalent to \fB\-march=mips4\fR.
  19490. .IP "\fB\-mips32\fR" 4
  19491. .IX Item "-mips32"
  19492. Equivalent to \fB\-march=mips32\fR.
  19493. .IP "\fB\-mips32r3\fR" 4
  19494. .IX Item "-mips32r3"
  19495. Equivalent to \fB\-march=mips32r3\fR.
  19496. .IP "\fB\-mips32r5\fR" 4
  19497. .IX Item "-mips32r5"
  19498. Equivalent to \fB\-march=mips32r5\fR.
  19499. .IP "\fB\-mips32r6\fR" 4
  19500. .IX Item "-mips32r6"
  19501. Equivalent to \fB\-march=mips32r6\fR.
  19502. .IP "\fB\-mips64\fR" 4
  19503. .IX Item "-mips64"
  19504. Equivalent to \fB\-march=mips64\fR.
  19505. .IP "\fB\-mips64r2\fR" 4
  19506. .IX Item "-mips64r2"
  19507. Equivalent to \fB\-march=mips64r2\fR.
  19508. .IP "\fB\-mips64r3\fR" 4
  19509. .IX Item "-mips64r3"
  19510. Equivalent to \fB\-march=mips64r3\fR.
  19511. .IP "\fB\-mips64r5\fR" 4
  19512. .IX Item "-mips64r5"
  19513. Equivalent to \fB\-march=mips64r5\fR.
  19514. .IP "\fB\-mips64r6\fR" 4
  19515. .IX Item "-mips64r6"
  19516. Equivalent to \fB\-march=mips64r6\fR.
  19517. .IP "\fB\-mips16\fR" 4
  19518. .IX Item "-mips16"
  19519. .PD 0
  19520. .IP "\fB\-mno\-mips16\fR" 4
  19521. .IX Item "-mno-mips16"
  19522. .PD
  19523. Generate (do not generate) \s-1MIPS16\s0 code. If \s-1GCC\s0 is targeting a
  19524. \&\s-1MIPS32\s0 or \s-1MIPS64\s0 architecture, it makes use of the MIPS16e \s-1ASE.\s0
  19525. .Sp
  19526. \&\s-1MIPS16\s0 code generation can also be controlled on a per-function basis
  19527. by means of \f(CW\*(C`mips16\*(C'\fR and \f(CW\*(C`nomips16\*(C'\fR attributes.
  19528. .IP "\fB\-mflip\-mips16\fR" 4
  19529. .IX Item "-mflip-mips16"
  19530. Generate \s-1MIPS16\s0 code on alternating functions. This option is provided
  19531. for regression testing of mixed MIPS16/non\-MIPS16 code generation, and is
  19532. not intended for ordinary use in compiling user code.
  19533. .IP "\fB\-minterlink\-compressed\fR" 4
  19534. .IX Item "-minterlink-compressed"
  19535. .PD 0
  19536. .IP "\fB\-mno\-interlink\-compressed\fR" 4
  19537. .IX Item "-mno-interlink-compressed"
  19538. .PD
  19539. Require (do not require) that code using the standard (uncompressed) \s-1MIPS ISA\s0
  19540. be link-compatible with \s-1MIPS16\s0 and microMIPS code, and vice versa.
  19541. .Sp
  19542. For example, code using the standard \s-1ISA\s0 encoding cannot jump directly
  19543. to \s-1MIPS16\s0 or microMIPS code; it must either use a call or an indirect jump.
  19544. \&\fB\-minterlink\-compressed\fR therefore disables direct jumps unless \s-1GCC\s0
  19545. knows that the target of the jump is not compressed.
  19546. .IP "\fB\-minterlink\-mips16\fR" 4
  19547. .IX Item "-minterlink-mips16"
  19548. .PD 0
  19549. .IP "\fB\-mno\-interlink\-mips16\fR" 4
  19550. .IX Item "-mno-interlink-mips16"
  19551. .PD
  19552. Aliases of \fB\-minterlink\-compressed\fR and
  19553. \&\fB\-mno\-interlink\-compressed\fR. These options predate the microMIPS \s-1ASE\s0
  19554. and are retained for backwards compatibility.
  19555. .IP "\fB\-mabi=32\fR" 4
  19556. .IX Item "-mabi=32"
  19557. .PD 0
  19558. .IP "\fB\-mabi=o64\fR" 4
  19559. .IX Item "-mabi=o64"
  19560. .IP "\fB\-mabi=n32\fR" 4
  19561. .IX Item "-mabi=n32"
  19562. .IP "\fB\-mabi=64\fR" 4
  19563. .IX Item "-mabi=64"
  19564. .IP "\fB\-mabi=eabi\fR" 4
  19565. .IX Item "-mabi=eabi"
  19566. .PD
  19567. Generate code for the given \s-1ABI.\s0
  19568. .Sp
  19569. Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant. \s-1GCC\s0 normally
  19570. generates 64\-bit code when you select a 64\-bit architecture, but you
  19571. can use \fB\-mgp32\fR to get 32\-bit code instead.
  19572. .Sp
  19573. For information about the O64 \s-1ABI,\s0 see
  19574. <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
  19575. .Sp
  19576. \&\s-1GCC\s0 supports a variant of the o32 \s-1ABI\s0 in which floating-point registers
  19577. are 64 rather than 32 bits wide. You can select this combination with
  19578. \&\fB\-mabi=32\fR \fB\-mfp64\fR. This \s-1ABI\s0 relies on the \f(CW\*(C`mthc1\*(C'\fR
  19579. and \f(CW\*(C`mfhc1\*(C'\fR instructions and is therefore only supported for
  19580. \&\s-1MIPS32R2, MIPS32R3\s0 and \s-1MIPS32R5\s0 processors.
  19581. .Sp
  19582. The register assignments for arguments and return values remain the
  19583. same, but each scalar value is passed in a single 64\-bit register
  19584. rather than a pair of 32\-bit registers. For example, scalar
  19585. floating-point values are returned in \fB\f(CB$f0\fB\fR only, not a
  19586. \&\fB\f(CB$f0\fB\fR/\fB\f(CB$f1\fB\fR pair. The set of call-saved registers also
  19587. remains the same in that the even-numbered double-precision registers
  19588. are saved.
  19589. .Sp
  19590. Two additional variants of the o32 \s-1ABI\s0 are supported to enable
  19591. a transition from 32\-bit to 64\-bit registers. These are \s-1FPXX\s0
  19592. (\fB\-mfpxx\fR) and \s-1FP64A\s0 (\fB\-mfp64\fR \fB\-mno\-odd\-spreg\fR).
  19593. The \s-1FPXX\s0 extension mandates that all code must execute correctly
  19594. when run using 32\-bit or 64\-bit registers. The code can be interlinked
  19595. with either \s-1FP32\s0 or \s-1FP64,\s0 but not both.
  19596. The \s-1FP64A\s0 extension is similar to the \s-1FP64\s0 extension but forbids the
  19597. use of odd-numbered single-precision registers. This can be used
  19598. in conjunction with the \f(CW\*(C`FRE\*(C'\fR mode of FPUs in \s-1MIPS32R5\s0
  19599. processors and allows both \s-1FP32\s0 and \s-1FP64A\s0 code to interlink and
  19600. run in the same process without changing \s-1FPU\s0 modes.
  19601. .IP "\fB\-mabicalls\fR" 4
  19602. .IX Item "-mabicalls"
  19603. .PD 0
  19604. .IP "\fB\-mno\-abicalls\fR" 4
  19605. .IX Item "-mno-abicalls"
  19606. .PD
  19607. Generate (do not generate) code that is suitable for SVR4\-style
  19608. dynamic objects. \fB\-mabicalls\fR is the default for SVR4\-based
  19609. systems.
  19610. .IP "\fB\-mshared\fR" 4
  19611. .IX Item "-mshared"
  19612. .PD 0
  19613. .IP "\fB\-mno\-shared\fR" 4
  19614. .IX Item "-mno-shared"
  19615. .PD
  19616. Generate (do not generate) code that is fully position-independent,
  19617. and that can therefore be linked into shared libraries. This option
  19618. only affects \fB\-mabicalls\fR.
  19619. .Sp
  19620. All \fB\-mabicalls\fR code has traditionally been position-independent,
  19621. regardless of options like \fB\-fPIC\fR and \fB\-fpic\fR. However,
  19622. as an extension, the \s-1GNU\s0 toolchain allows executables to use absolute
  19623. accesses for locally-binding symbols. It can also use shorter \s-1GP\s0
  19624. initialization sequences and generate direct calls to locally-defined
  19625. functions. This mode is selected by \fB\-mno\-shared\fR.
  19626. .Sp
  19627. \&\fB\-mno\-shared\fR depends on binutils 2.16 or higher and generates
  19628. objects that can only be linked by the \s-1GNU\s0 linker. However, the option
  19629. does not affect the \s-1ABI\s0 of the final executable; it only affects the \s-1ABI\s0
  19630. of relocatable objects. Using \fB\-mno\-shared\fR generally makes
  19631. executables both smaller and quicker.
  19632. .Sp
  19633. \&\fB\-mshared\fR is the default.
  19634. .IP "\fB\-mplt\fR" 4
  19635. .IX Item "-mplt"
  19636. .PD 0
  19637. .IP "\fB\-mno\-plt\fR" 4
  19638. .IX Item "-mno-plt"
  19639. .PD
  19640. Assume (do not assume) that the static and dynamic linkers
  19641. support PLTs and copy relocations. This option only affects
  19642. \&\fB\-mno\-shared \-mabicalls\fR. For the n64 \s-1ABI,\s0 this option
  19643. has no effect without \fB\-msym32\fR.
  19644. .Sp
  19645. You can make \fB\-mplt\fR the default by configuring
  19646. \&\s-1GCC\s0 with \fB\-\-with\-mips\-plt\fR. The default is
  19647. \&\fB\-mno\-plt\fR otherwise.
  19648. .IP "\fB\-mxgot\fR" 4
  19649. .IX Item "-mxgot"
  19650. .PD 0
  19651. .IP "\fB\-mno\-xgot\fR" 4
  19652. .IX Item "-mno-xgot"
  19653. .PD
  19654. Lift (do not lift) the usual restrictions on the size of the global
  19655. offset table.
  19656. .Sp
  19657. \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT.\s0
  19658. While this is relatively efficient, it only works if the \s-1GOT\s0
  19659. is smaller than about 64k. Anything larger causes the linker
  19660. to report an error such as:
  19661. .Sp
  19662. .Vb 1
  19663. \& relocation truncated to fit: R_MIPS_GOT16 foobar
  19664. .Ve
  19665. .Sp
  19666. If this happens, you should recompile your code with \fB\-mxgot\fR.
  19667. This works with very large GOTs, although the code is also
  19668. less efficient, since it takes three instructions to fetch the
  19669. value of a global symbol.
  19670. .Sp
  19671. Note that some linkers can create multiple GOTs. If you have such a
  19672. linker, you should only need to use \fB\-mxgot\fR when a single object
  19673. file accesses more than 64k's worth of \s-1GOT\s0 entries. Very few do.
  19674. .Sp
  19675. These options have no effect unless \s-1GCC\s0 is generating position
  19676. independent code.
  19677. .IP "\fB\-mgp32\fR" 4
  19678. .IX Item "-mgp32"
  19679. Assume that general-purpose registers are 32 bits wide.
  19680. .IP "\fB\-mgp64\fR" 4
  19681. .IX Item "-mgp64"
  19682. Assume that general-purpose registers are 64 bits wide.
  19683. .IP "\fB\-mfp32\fR" 4
  19684. .IX Item "-mfp32"
  19685. Assume that floating-point registers are 32 bits wide.
  19686. .IP "\fB\-mfp64\fR" 4
  19687. .IX Item "-mfp64"
  19688. Assume that floating-point registers are 64 bits wide.
  19689. .IP "\fB\-mfpxx\fR" 4
  19690. .IX Item "-mfpxx"
  19691. Do not assume the width of floating-point registers.
  19692. .IP "\fB\-mhard\-float\fR" 4
  19693. .IX Item "-mhard-float"
  19694. Use floating-point coprocessor instructions.
  19695. .IP "\fB\-msoft\-float\fR" 4
  19696. .IX Item "-msoft-float"
  19697. Do not use floating-point coprocessor instructions. Implement
  19698. floating-point calculations using library calls instead.
  19699. .IP "\fB\-mno\-float\fR" 4
  19700. .IX Item "-mno-float"
  19701. Equivalent to \fB\-msoft\-float\fR, but additionally asserts that the
  19702. program being compiled does not perform any floating-point operations.
  19703. This option is presently supported only by some bare-metal \s-1MIPS\s0
  19704. configurations, where it may select a special set of libraries
  19705. that lack all floating-point support (including, for example, the
  19706. floating-point \f(CW\*(C`printf\*(C'\fR formats).
  19707. If code compiled with \fB\-mno\-float\fR accidentally contains
  19708. floating-point operations, it is likely to suffer a link-time
  19709. or run-time failure.
  19710. .IP "\fB\-msingle\-float\fR" 4
  19711. .IX Item "-msingle-float"
  19712. Assume that the floating-point coprocessor only supports single-precision
  19713. operations.
  19714. .IP "\fB\-mdouble\-float\fR" 4
  19715. .IX Item "-mdouble-float"
  19716. Assume that the floating-point coprocessor supports double-precision
  19717. operations. This is the default.
  19718. .IP "\fB\-modd\-spreg\fR" 4
  19719. .IX Item "-modd-spreg"
  19720. .PD 0
  19721. .IP "\fB\-mno\-odd\-spreg\fR" 4
  19722. .IX Item "-mno-odd-spreg"
  19723. .PD
  19724. Enable the use of odd-numbered single-precision floating-point registers
  19725. for the o32 \s-1ABI.\s0 This is the default for processors that are known to
  19726. support these registers. When using the o32 \s-1FPXX ABI,\s0 \fB\-mno\-odd\-spreg\fR
  19727. is set by default.
  19728. .IP "\fB\-mabs=2008\fR" 4
  19729. .IX Item "-mabs=2008"
  19730. .PD 0
  19731. .IP "\fB\-mabs=legacy\fR" 4
  19732. .IX Item "-mabs=legacy"
  19733. .PD
  19734. These options control the treatment of the special not-a-number (NaN)
  19735. \&\s-1IEEE 754\s0 floating-point data with the \f(CW\*(C`abs.\f(CIfmt\f(CW\*(C'\fR and
  19736. \&\f(CW\*(C`neg.\f(CIfmt\f(CW\*(C'\fR machine instructions.
  19737. .Sp
  19738. By default or when \fB\-mabs=legacy\fR is used the legacy
  19739. treatment is selected. In this case these instructions are considered
  19740. arithmetic and avoided where correct operation is required and the
  19741. input operand might be a NaN. A longer sequence of instructions that
  19742. manipulate the sign bit of floating-point datum manually is used
  19743. instead unless the \fB\-ffinite\-math\-only\fR option has also been
  19744. specified.
  19745. .Sp
  19746. The \fB\-mabs=2008\fR option selects the \s-1IEEE 754\-2008\s0 treatment. In
  19747. this case these instructions are considered non-arithmetic and therefore
  19748. operating correctly in all cases, including in particular where the
  19749. input operand is a NaN. These instructions are therefore always used
  19750. for the respective operations.
  19751. .IP "\fB\-mnan=2008\fR" 4
  19752. .IX Item "-mnan=2008"
  19753. .PD 0
  19754. .IP "\fB\-mnan=legacy\fR" 4
  19755. .IX Item "-mnan=legacy"
  19756. .PD
  19757. These options control the encoding of the special not-a-number (NaN)
  19758. \&\s-1IEEE 754\s0 floating-point data.
  19759. .Sp
  19760. The \fB\-mnan=legacy\fR option selects the legacy encoding. In this
  19761. case quiet NaNs (qNaNs) are denoted by the first bit of their trailing
  19762. significand field being 0, whereas signaling NaNs (sNaNs) are denoted
  19763. by the first bit of their trailing significand field being 1.
  19764. .Sp
  19765. The \fB\-mnan=2008\fR option selects the \s-1IEEE 754\-2008\s0 encoding. In
  19766. this case qNaNs are denoted by the first bit of their trailing
  19767. significand field being 1, whereas sNaNs are denoted by the first bit of
  19768. their trailing significand field being 0.
  19769. .Sp
  19770. The default is \fB\-mnan=legacy\fR unless \s-1GCC\s0 has been configured with
  19771. \&\fB\-\-with\-nan=2008\fR.
  19772. .IP "\fB\-mllsc\fR" 4
  19773. .IX Item "-mllsc"
  19774. .PD 0
  19775. .IP "\fB\-mno\-llsc\fR" 4
  19776. .IX Item "-mno-llsc"
  19777. .PD
  19778. Use (do not use) \fBll\fR, \fBsc\fR, and \fBsync\fR instructions to
  19779. implement atomic memory built-in functions. When neither option is
  19780. specified, \s-1GCC\s0 uses the instructions if the target architecture
  19781. supports them.
  19782. .Sp
  19783. \&\fB\-mllsc\fR is useful if the runtime environment can emulate the
  19784. instructions and \fB\-mno\-llsc\fR can be useful when compiling for
  19785. nonstandard ISAs. You can make either option the default by
  19786. configuring \s-1GCC\s0 with \fB\-\-with\-llsc\fR and \fB\-\-without\-llsc\fR
  19787. respectively. \fB\-\-with\-llsc\fR is the default for some
  19788. configurations; see the installation documentation for details.
  19789. .IP "\fB\-mdsp\fR" 4
  19790. .IX Item "-mdsp"
  19791. .PD 0
  19792. .IP "\fB\-mno\-dsp\fR" 4
  19793. .IX Item "-mno-dsp"
  19794. .PD
  19795. Use (do not use) revision 1 of the \s-1MIPS DSP ASE.\s0
  19796. This option defines the
  19797. preprocessor macro \f(CW\*(C`_\|_mips_dsp\*(C'\fR. It also defines
  19798. \&\f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 1.
  19799. .IP "\fB\-mdspr2\fR" 4
  19800. .IX Item "-mdspr2"
  19801. .PD 0
  19802. .IP "\fB\-mno\-dspr2\fR" 4
  19803. .IX Item "-mno-dspr2"
  19804. .PD
  19805. Use (do not use) revision 2 of the \s-1MIPS DSP ASE.\s0
  19806. This option defines the
  19807. preprocessor macros \f(CW\*(C`_\|_mips_dsp\*(C'\fR and \f(CW\*(C`_\|_mips_dspr2\*(C'\fR.
  19808. It also defines \f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 2.
  19809. .IP "\fB\-msmartmips\fR" 4
  19810. .IX Item "-msmartmips"
  19811. .PD 0
  19812. .IP "\fB\-mno\-smartmips\fR" 4
  19813. .IX Item "-mno-smartmips"
  19814. .PD
  19815. Use (do not use) the \s-1MIPS\s0 SmartMIPS \s-1ASE.\s0
  19816. .IP "\fB\-mpaired\-single\fR" 4
  19817. .IX Item "-mpaired-single"
  19818. .PD 0
  19819. .IP "\fB\-mno\-paired\-single\fR" 4
  19820. .IX Item "-mno-paired-single"
  19821. .PD
  19822. Use (do not use) paired-single floating-point instructions.
  19823. This option requires
  19824. hardware floating-point support to be enabled.
  19825. .IP "\fB\-mdmx\fR" 4
  19826. .IX Item "-mdmx"
  19827. .PD 0
  19828. .IP "\fB\-mno\-mdmx\fR" 4
  19829. .IX Item "-mno-mdmx"
  19830. .PD
  19831. Use (do not use) \s-1MIPS\s0 Digital Media Extension instructions.
  19832. This option can only be used when generating 64\-bit code and requires
  19833. hardware floating-point support to be enabled.
  19834. .IP "\fB\-mips3d\fR" 4
  19835. .IX Item "-mips3d"
  19836. .PD 0
  19837. .IP "\fB\-mno\-mips3d\fR" 4
  19838. .IX Item "-mno-mips3d"
  19839. .PD
  19840. Use (do not use) the \s-1MIPS\-3D ASE.\s0
  19841. The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
  19842. .IP "\fB\-mmicromips\fR" 4
  19843. .IX Item "-mmicromips"
  19844. .PD 0
  19845. .IP "\fB\-mno\-micromips\fR" 4
  19846. .IX Item "-mno-micromips"
  19847. .PD
  19848. Generate (do not generate) microMIPS code.
  19849. .Sp
  19850. MicroMIPS code generation can also be controlled on a per-function basis
  19851. by means of \f(CW\*(C`micromips\*(C'\fR and \f(CW\*(C`nomicromips\*(C'\fR attributes.
  19852. .IP "\fB\-mmt\fR" 4
  19853. .IX Item "-mmt"
  19854. .PD 0
  19855. .IP "\fB\-mno\-mt\fR" 4
  19856. .IX Item "-mno-mt"
  19857. .PD
  19858. Use (do not use) \s-1MT\s0 Multithreading instructions.
  19859. .IP "\fB\-mmcu\fR" 4
  19860. .IX Item "-mmcu"
  19861. .PD 0
  19862. .IP "\fB\-mno\-mcu\fR" 4
  19863. .IX Item "-mno-mcu"
  19864. .PD
  19865. Use (do not use) the \s-1MIPS MCU ASE\s0 instructions.
  19866. .IP "\fB\-meva\fR" 4
  19867. .IX Item "-meva"
  19868. .PD 0
  19869. .IP "\fB\-mno\-eva\fR" 4
  19870. .IX Item "-mno-eva"
  19871. .PD
  19872. Use (do not use) the \s-1MIPS\s0 Enhanced Virtual Addressing instructions.
  19873. .IP "\fB\-mvirt\fR" 4
  19874. .IX Item "-mvirt"
  19875. .PD 0
  19876. .IP "\fB\-mno\-virt\fR" 4
  19877. .IX Item "-mno-virt"
  19878. .PD
  19879. Use (do not use) the \s-1MIPS\s0 Virtualization (\s-1VZ\s0) instructions.
  19880. .IP "\fB\-mxpa\fR" 4
  19881. .IX Item "-mxpa"
  19882. .PD 0
  19883. .IP "\fB\-mno\-xpa\fR" 4
  19884. .IX Item "-mno-xpa"
  19885. .PD
  19886. Use (do not use) the \s-1MIPS\s0 eXtended Physical Address (\s-1XPA\s0) instructions.
  19887. .IP "\fB\-mlong64\fR" 4
  19888. .IX Item "-mlong64"
  19889. Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide. See \fB\-mlong32\fR for
  19890. an explanation of the default and the way that the pointer size is
  19891. determined.
  19892. .IP "\fB\-mlong32\fR" 4
  19893. .IX Item "-mlong32"
  19894. Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
  19895. .Sp
  19896. The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
  19897. the \s-1ABI.\s0 All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs. The n64 \s-1ABI\s0
  19898. uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
  19899. 32\-bit \f(CW\*(C`long\*(C'\fRs. Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
  19900. or the same size as integer registers, whichever is smaller.
  19901. .IP "\fB\-msym32\fR" 4
  19902. .IX Item "-msym32"
  19903. .PD 0
  19904. .IP "\fB\-mno\-sym32\fR" 4
  19905. .IX Item "-mno-sym32"
  19906. .PD
  19907. Assume (do not assume) that all symbols have 32\-bit values, regardless
  19908. of the selected \s-1ABI.\s0 This option is useful in combination with
  19909. \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
  19910. to generate shorter and faster references to symbolic addresses.
  19911. .IP "\fB\-G\fR \fInum\fR" 4
  19912. .IX Item "-G num"
  19913. Put definitions of externally-visible data in a small data section
  19914. if that data is no bigger than \fInum\fR bytes. \s-1GCC\s0 can then generate
  19915. more efficient accesses to the data; see \fB\-mgpopt\fR for details.
  19916. .Sp
  19917. The default \fB\-G\fR option depends on the configuration.
  19918. .IP "\fB\-mlocal\-sdata\fR" 4
  19919. .IX Item "-mlocal-sdata"
  19920. .PD 0
  19921. .IP "\fB\-mno\-local\-sdata\fR" 4
  19922. .IX Item "-mno-local-sdata"
  19923. .PD
  19924. Extend (do not extend) the \fB\-G\fR behavior to local data too,
  19925. such as to static variables in C. \fB\-mlocal\-sdata\fR is the
  19926. default for all configurations.
  19927. .Sp
  19928. If the linker complains that an application is using too much small data,
  19929. you might want to try rebuilding the less performance-critical parts with
  19930. \&\fB\-mno\-local\-sdata\fR. You might also want to build large
  19931. libraries with \fB\-mno\-local\-sdata\fR, so that the libraries leave
  19932. more room for the main program.
  19933. .IP "\fB\-mextern\-sdata\fR" 4
  19934. .IX Item "-mextern-sdata"
  19935. .PD 0
  19936. .IP "\fB\-mno\-extern\-sdata\fR" 4
  19937. .IX Item "-mno-extern-sdata"
  19938. .PD
  19939. Assume (do not assume) that externally-defined data is in
  19940. a small data section if the size of that data is within the \fB\-G\fR limit.
  19941. \&\fB\-mextern\-sdata\fR is the default for all configurations.
  19942. .Sp
  19943. If you compile a module \fIMod\fR with \fB\-mextern\-sdata\fR \fB\-G\fR
  19944. \&\fInum\fR \fB\-mgpopt\fR, and \fIMod\fR references a variable \fIVar\fR
  19945. that is no bigger than \fInum\fR bytes, you must make sure that \fIVar\fR
  19946. is placed in a small data section. If \fIVar\fR is defined by another
  19947. module, you must either compile that module with a high-enough
  19948. \&\fB\-G\fR setting or attach a \f(CW\*(C`section\*(C'\fR attribute to \fIVar\fR's
  19949. definition. If \fIVar\fR is common, you must link the application
  19950. with a high-enough \fB\-G\fR setting.
  19951. .Sp
  19952. The easiest way of satisfying these restrictions is to compile
  19953. and link every module with the same \fB\-G\fR option. However,
  19954. you may wish to build a library that supports several different
  19955. small data limits. You can do this by compiling the library with
  19956. the highest supported \fB\-G\fR setting and additionally using
  19957. \&\fB\-mno\-extern\-sdata\fR to stop the library from making assumptions
  19958. about externally-defined data.
  19959. .IP "\fB\-mgpopt\fR" 4
  19960. .IX Item "-mgpopt"
  19961. .PD 0
  19962. .IP "\fB\-mno\-gpopt\fR" 4
  19963. .IX Item "-mno-gpopt"
  19964. .PD
  19965. Use (do not use) GP-relative accesses for symbols that are known to be
  19966. in a small data section; see \fB\-G\fR, \fB\-mlocal\-sdata\fR and
  19967. \&\fB\-mextern\-sdata\fR. \fB\-mgpopt\fR is the default for all
  19968. configurations.
  19969. .Sp
  19970. \&\fB\-mno\-gpopt\fR is useful for cases where the \f(CW$gp\fR register
  19971. might not hold the value of \f(CW\*(C`_gp\*(C'\fR. For example, if the code is
  19972. part of a library that might be used in a boot monitor, programs that
  19973. call boot monitor routines pass an unknown value in \f(CW$gp\fR.
  19974. (In such situations, the boot monitor itself is usually compiled
  19975. with \fB\-G0\fR.)
  19976. .Sp
  19977. \&\fB\-mno\-gpopt\fR implies \fB\-mno\-local\-sdata\fR and
  19978. \&\fB\-mno\-extern\-sdata\fR.
  19979. .IP "\fB\-membedded\-data\fR" 4
  19980. .IX Item "-membedded-data"
  19981. .PD 0
  19982. .IP "\fB\-mno\-embedded\-data\fR" 4
  19983. .IX Item "-mno-embedded-data"
  19984. .PD
  19985. Allocate variables to the read-only data section first if possible, then
  19986. next in the small data section if possible, otherwise in data. This gives
  19987. slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
  19988. when executing, and thus may be preferred for some embedded systems.
  19989. .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
  19990. .IX Item "-muninit-const-in-rodata"
  19991. .PD 0
  19992. .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
  19993. .IX Item "-mno-uninit-const-in-rodata"
  19994. .PD
  19995. Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
  19996. This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
  19997. .IP "\fB\-mcode\-readable=\fR\fIsetting\fR" 4
  19998. .IX Item "-mcode-readable=setting"
  19999. Specify whether \s-1GCC\s0 may generate code that reads from executable sections.
  20000. There are three possible settings:
  20001. .RS 4
  20002. .IP "\fB\-mcode\-readable=yes\fR" 4
  20003. .IX Item "-mcode-readable=yes"
  20004. Instructions may freely access executable sections. This is the
  20005. default setting.
  20006. .IP "\fB\-mcode\-readable=pcrel\fR" 4
  20007. .IX Item "-mcode-readable=pcrel"
  20008. \&\s-1MIPS16\s0 PC-relative load instructions can access executable sections,
  20009. but other instructions must not do so. This option is useful on 4KSc
  20010. and 4KSd processors when the code TLBs have the Read Inhibit bit set.
  20011. It is also useful on processors that can be configured to have a dual
  20012. instruction/data \s-1SRAM\s0 interface and that, like the M4K, automatically
  20013. redirect PC-relative loads to the instruction \s-1RAM.\s0
  20014. .IP "\fB\-mcode\-readable=no\fR" 4
  20015. .IX Item "-mcode-readable=no"
  20016. Instructions must not access executable sections. This option can be
  20017. useful on targets that are configured to have a dual instruction/data
  20018. \&\s-1SRAM\s0 interface but that (unlike the M4K) do not automatically redirect
  20019. PC-relative loads to the instruction \s-1RAM.\s0
  20020. .RE
  20021. .RS 4
  20022. .RE
  20023. .IP "\fB\-msplit\-addresses\fR" 4
  20024. .IX Item "-msplit-addresses"
  20025. .PD 0
  20026. .IP "\fB\-mno\-split\-addresses\fR" 4
  20027. .IX Item "-mno-split-addresses"
  20028. .PD
  20029. Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
  20030. relocation operators. This option has been superseded by
  20031. \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
  20032. .IP "\fB\-mexplicit\-relocs\fR" 4
  20033. .IX Item "-mexplicit-relocs"
  20034. .PD 0
  20035. .IP "\fB\-mno\-explicit\-relocs\fR" 4
  20036. .IX Item "-mno-explicit-relocs"
  20037. .PD
  20038. Use (do not use) assembler relocation operators when dealing with symbolic
  20039. addresses. The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
  20040. is to use assembler macros instead.
  20041. .Sp
  20042. \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
  20043. to use an assembler that supports relocation operators.
  20044. .IP "\fB\-mcheck\-zero\-division\fR" 4
  20045. .IX Item "-mcheck-zero-division"
  20046. .PD 0
  20047. .IP "\fB\-mno\-check\-zero\-division\fR" 4
  20048. .IX Item "-mno-check-zero-division"
  20049. .PD
  20050. Trap (do not trap) on integer division by zero.
  20051. .Sp
  20052. The default is \fB\-mcheck\-zero\-division\fR.
  20053. .IP "\fB\-mdivide\-traps\fR" 4
  20054. .IX Item "-mdivide-traps"
  20055. .PD 0
  20056. .IP "\fB\-mdivide\-breaks\fR" 4
  20057. .IX Item "-mdivide-breaks"
  20058. .PD
  20059. \&\s-1MIPS\s0 systems check for division by zero by generating either a
  20060. conditional trap or a break instruction. Using traps results in
  20061. smaller code, but is only supported on \s-1MIPS II\s0 and later. Also, some
  20062. versions of the Linux kernel have a bug that prevents trap from
  20063. generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR). Use \fB\-mdivide\-traps\fR to
  20064. allow conditional traps on architectures that support them and
  20065. \&\fB\-mdivide\-breaks\fR to force the use of breaks.
  20066. .Sp
  20067. The default is usually \fB\-mdivide\-traps\fR, but this can be
  20068. overridden at configure time using \fB\-\-with\-divide=breaks\fR.
  20069. Divide-by-zero checks can be completely disabled using
  20070. \&\fB\-mno\-check\-zero\-division\fR.
  20071. .IP "\fB\-mload\-store\-pairs\fR" 4
  20072. .IX Item "-mload-store-pairs"
  20073. .PD 0
  20074. .IP "\fB\-mno\-load\-store\-pairs\fR" 4
  20075. .IX Item "-mno-load-store-pairs"
  20076. .PD
  20077. Enable (disable) an optimization that pairs consecutive load or store
  20078. instructions to enable load/store bonding. This option is enabled by
  20079. default but only takes effect when the selected architecture is known
  20080. to support bonding.
  20081. .IP "\fB\-mmemcpy\fR" 4
  20082. .IX Item "-mmemcpy"
  20083. .PD 0
  20084. .IP "\fB\-mno\-memcpy\fR" 4
  20085. .IX Item "-mno-memcpy"
  20086. .PD
  20087. Force (do not force) the use of \f(CW\*(C`memcpy\*(C'\fR for non-trivial block
  20088. moves. The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
  20089. most constant-sized copies.
  20090. .IP "\fB\-mlong\-calls\fR" 4
  20091. .IX Item "-mlong-calls"
  20092. .PD 0
  20093. .IP "\fB\-mno\-long\-calls\fR" 4
  20094. .IX Item "-mno-long-calls"
  20095. .PD
  20096. Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction. Calling
  20097. functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
  20098. and callee to be in the same 256 megabyte segment.
  20099. .Sp
  20100. This option has no effect on abicalls code. The default is
  20101. \&\fB\-mno\-long\-calls\fR.
  20102. .IP "\fB\-mmad\fR" 4
  20103. .IX Item "-mmad"
  20104. .PD 0
  20105. .IP "\fB\-mno\-mad\fR" 4
  20106. .IX Item "-mno-mad"
  20107. .PD
  20108. Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
  20109. instructions, as provided by the R4650 \s-1ISA.\s0
  20110. .IP "\fB\-mimadd\fR" 4
  20111. .IX Item "-mimadd"
  20112. .PD 0
  20113. .IP "\fB\-mno\-imadd\fR" 4
  20114. .IX Item "-mno-imadd"
  20115. .PD
  20116. Enable (disable) use of the \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR integer
  20117. instructions. The default is \fB\-mimadd\fR on architectures
  20118. that support \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR except for the 74k
  20119. architecture where it was found to generate slower code.
  20120. .IP "\fB\-mfused\-madd\fR" 4
  20121. .IX Item "-mfused-madd"
  20122. .PD 0
  20123. .IP "\fB\-mno\-fused\-madd\fR" 4
  20124. .IX Item "-mno-fused-madd"
  20125. .PD
  20126. Enable (disable) use of the floating-point multiply-accumulate
  20127. instructions, when they are available. The default is
  20128. \&\fB\-mfused\-madd\fR.
  20129. .Sp
  20130. On the R8000 \s-1CPU\s0 when multiply-accumulate instructions are used,
  20131. the intermediate product is calculated to infinite precision
  20132. and is not subject to the \s-1FCSR\s0 Flush to Zero bit. This may be
  20133. undesirable in some circumstances. On other processors the result
  20134. is numerically identical to the equivalent computation using
  20135. separate multiply, add, subtract and negate instructions.
  20136. .IP "\fB\-nocpp\fR" 4
  20137. .IX Item "-nocpp"
  20138. Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
  20139. assembler files (with a \fB.s\fR suffix) when assembling them.
  20140. .IP "\fB\-mfix\-24k\fR" 4
  20141. .IX Item "-mfix-24k"
  20142. .PD 0
  20143. .IP "\fB\-mno\-fix\-24k\fR" 4
  20144. .IX Item "-mno-fix-24k"
  20145. .PD
  20146. Work around the 24K E48 (lost data on stores during refill) errata.
  20147. The workarounds are implemented by the assembler rather than by \s-1GCC.\s0
  20148. .IP "\fB\-mfix\-r4000\fR" 4
  20149. .IX Item "-mfix-r4000"
  20150. .PD 0
  20151. .IP "\fB\-mno\-fix\-r4000\fR" 4
  20152. .IX Item "-mno-fix-r4000"
  20153. .PD
  20154. Work around certain R4000 \s-1CPU\s0 errata:
  20155. .RS 4
  20156. .IP "\-" 4
  20157. A double-word or a variable shift may give an incorrect result if executed
  20158. immediately after starting an integer division.
  20159. .IP "\-" 4
  20160. A double-word or a variable shift may give an incorrect result if executed
  20161. while an integer multiplication is in progress.
  20162. .IP "\-" 4
  20163. An integer division may give an incorrect result if started in a delay slot
  20164. of a taken branch or a jump.
  20165. .RE
  20166. .RS 4
  20167. .RE
  20168. .IP "\fB\-mfix\-r4400\fR" 4
  20169. .IX Item "-mfix-r4400"
  20170. .PD 0
  20171. .IP "\fB\-mno\-fix\-r4400\fR" 4
  20172. .IX Item "-mno-fix-r4400"
  20173. .PD
  20174. Work around certain R4400 \s-1CPU\s0 errata:
  20175. .RS 4
  20176. .IP "\-" 4
  20177. A double-word or a variable shift may give an incorrect result if executed
  20178. immediately after starting an integer division.
  20179. .RE
  20180. .RS 4
  20181. .RE
  20182. .IP "\fB\-mfix\-r10000\fR" 4
  20183. .IX Item "-mfix-r10000"
  20184. .PD 0
  20185. .IP "\fB\-mno\-fix\-r10000\fR" 4
  20186. .IX Item "-mno-fix-r10000"
  20187. .PD
  20188. Work around certain R10000 errata:
  20189. .RS 4
  20190. .IP "\-" 4
  20191. \&\f(CW\*(C`ll\*(C'\fR/\f(CW\*(C`sc\*(C'\fR sequences may not behave atomically on revisions
  20192. prior to 3.0. They may deadlock on revisions 2.6 and earlier.
  20193. .RE
  20194. .RS 4
  20195. .Sp
  20196. This option can only be used if the target architecture supports
  20197. branch-likely instructions. \fB\-mfix\-r10000\fR is the default when
  20198. \&\fB\-march=r10000\fR is used; \fB\-mno\-fix\-r10000\fR is the default
  20199. otherwise.
  20200. .RE
  20201. .IP "\fB\-mfix\-rm7000\fR" 4
  20202. .IX Item "-mfix-rm7000"
  20203. .PD 0
  20204. .IP "\fB\-mno\-fix\-rm7000\fR" 4
  20205. .IX Item "-mno-fix-rm7000"
  20206. .PD
  20207. Work around the \s-1RM7000\s0 \f(CW\*(C`dmult\*(C'\fR/\f(CW\*(C`dmultu\*(C'\fR errata. The
  20208. workarounds are implemented by the assembler rather than by \s-1GCC.\s0
  20209. .IP "\fB\-mfix\-vr4120\fR" 4
  20210. .IX Item "-mfix-vr4120"
  20211. .PD 0
  20212. .IP "\fB\-mno\-fix\-vr4120\fR" 4
  20213. .IX Item "-mno-fix-vr4120"
  20214. .PD
  20215. Work around certain \s-1VR4120\s0 errata:
  20216. .RS 4
  20217. .IP "\-" 4
  20218. \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
  20219. .IP "\-" 4
  20220. \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
  20221. of the operands is negative.
  20222. .RE
  20223. .RS 4
  20224. .Sp
  20225. The workarounds for the division errata rely on special functions in
  20226. \&\fIlibgcc.a\fR. At present, these functions are only provided by
  20227. the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
  20228. .Sp
  20229. Other \s-1VR4120\s0 errata require a \s-1NOP\s0 to be inserted between certain pairs of
  20230. instructions. These errata are handled by the assembler, not by \s-1GCC\s0 itself.
  20231. .RE
  20232. .IP "\fB\-mfix\-vr4130\fR" 4
  20233. .IX Item "-mfix-vr4130"
  20234. Work around the \s-1VR4130\s0 \f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata. The
  20235. workarounds are implemented by the assembler rather than by \s-1GCC,\s0
  20236. although \s-1GCC\s0 avoids using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
  20237. \&\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
  20238. instructions are available instead.
  20239. .IP "\fB\-mfix\-sb1\fR" 4
  20240. .IX Item "-mfix-sb1"
  20241. .PD 0
  20242. .IP "\fB\-mno\-fix\-sb1\fR" 4
  20243. .IX Item "-mno-fix-sb1"
  20244. .PD
  20245. Work around certain \s-1SB\-1 CPU\s0 core errata.
  20246. (This flag currently works around the \s-1SB\-1\s0 revision 2
  20247. \&\*(L"F1\*(R" and \*(L"F2\*(R" floating-point errata.)
  20248. .IP "\fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR" 4
  20249. .IX Item "-mr10k-cache-barrier=setting"
  20250. Specify whether \s-1GCC\s0 should insert cache barriers to avoid the
  20251. side effects of speculation on R10K processors.
  20252. .Sp
  20253. In common with many processors, the R10K tries to predict the outcome
  20254. of a conditional branch and speculatively executes instructions from
  20255. the \*(L"taken\*(R" branch. It later aborts these instructions if the
  20256. predicted outcome is wrong. However, on the R10K, even aborted
  20257. instructions can have side effects.
  20258. .Sp
  20259. This problem only affects kernel stores and, depending on the system,
  20260. kernel loads. As an example, a speculatively-executed store may load
  20261. the target memory into cache and mark the cache line as dirty, even if
  20262. the store itself is later aborted. If a \s-1DMA\s0 operation writes to the
  20263. same area of memory before the \*(L"dirty\*(R" line is flushed, the cached
  20264. data overwrites the DMA-ed data. See the R10K processor manual
  20265. for a full description, including other potential problems.
  20266. .Sp
  20267. One workaround is to insert cache barrier instructions before every memory
  20268. access that might be speculatively executed and that might have side
  20269. effects even if aborted. \fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR
  20270. controls \s-1GCC\s0's implementation of this workaround. It assumes that
  20271. aborted accesses to any byte in the following regions does not have
  20272. side effects:
  20273. .RS 4
  20274. .IP "1." 4
  20275. .IX Item "1."
  20276. the memory occupied by the current function's stack frame;
  20277. .IP "2." 4
  20278. .IX Item "2."
  20279. the memory occupied by an incoming stack argument;
  20280. .IP "3." 4
  20281. .IX Item "3."
  20282. the memory occupied by an object with a link-time-constant address.
  20283. .RE
  20284. .RS 4
  20285. .Sp
  20286. It is the kernel's responsibility to ensure that speculative
  20287. accesses to these regions are indeed safe.
  20288. .Sp
  20289. If the input program contains a function declaration such as:
  20290. .Sp
  20291. .Vb 1
  20292. \& void foo (void);
  20293. .Ve
  20294. .Sp
  20295. then the implementation of \f(CW\*(C`foo\*(C'\fR must allow \f(CW\*(C`j foo\*(C'\fR and
  20296. \&\f(CW\*(C`jal foo\*(C'\fR to be executed speculatively. \s-1GCC\s0 honors this
  20297. restriction for functions it compiles itself. It expects non-GCC
  20298. functions (such as hand-written assembly code) to do the same.
  20299. .Sp
  20300. The option has three forms:
  20301. .IP "\fB\-mr10k\-cache\-barrier=load\-store\fR" 4
  20302. .IX Item "-mr10k-cache-barrier=load-store"
  20303. Insert a cache barrier before a load or store that might be
  20304. speculatively executed and that might have side effects even
  20305. if aborted.
  20306. .IP "\fB\-mr10k\-cache\-barrier=store\fR" 4
  20307. .IX Item "-mr10k-cache-barrier=store"
  20308. Insert a cache barrier before a store that might be speculatively
  20309. executed and that might have side effects even if aborted.
  20310. .IP "\fB\-mr10k\-cache\-barrier=none\fR" 4
  20311. .IX Item "-mr10k-cache-barrier=none"
  20312. Disable the insertion of cache barriers. This is the default setting.
  20313. .RE
  20314. .RS 4
  20315. .RE
  20316. .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
  20317. .IX Item "-mflush-func=func"
  20318. .PD 0
  20319. .IP "\fB\-mno\-flush\-func\fR" 4
  20320. .IX Item "-mno-flush-func"
  20321. .PD
  20322. Specifies the function to call to flush the I and D caches, or to not
  20323. call any such function. If called, the function must take the same
  20324. arguments as the common \f(CW\*(C`_flush_func\*(C'\fR, that is, the address of the
  20325. memory range for which the cache is being flushed, the size of the
  20326. memory range, and the number 3 (to flush both caches). The default
  20327. depends on the target \s-1GCC\s0 was configured for, but commonly is either
  20328. \&\f(CW\*(C`_flush_func\*(C'\fR or \f(CW\*(C`_\|_cpu_flush\*(C'\fR.
  20329. .IP "\fBmbranch\-cost=\fR\fInum\fR" 4
  20330. .IX Item "mbranch-cost=num"
  20331. Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
  20332. This cost is only a heuristic and is not guaranteed to produce
  20333. consistent results across releases. A zero cost redundantly selects
  20334. the default, which is based on the \fB\-mtune\fR setting.
  20335. .IP "\fB\-mbranch\-likely\fR" 4
  20336. .IX Item "-mbranch-likely"
  20337. .PD 0
  20338. .IP "\fB\-mno\-branch\-likely\fR" 4
  20339. .IX Item "-mno-branch-likely"
  20340. .PD
  20341. Enable or disable use of Branch Likely instructions, regardless of the
  20342. default for the selected architecture. By default, Branch Likely
  20343. instructions may be generated if they are supported by the selected
  20344. architecture. An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
  20345. and processors that implement those architectures; for those, Branch
  20346. Likely instructions are not be generated by default because the \s-1MIPS32\s0
  20347. and \s-1MIPS64\s0 architectures specifically deprecate their use.
  20348. .IP "\fB\-mcompact\-branches=never\fR" 4
  20349. .IX Item "-mcompact-branches=never"
  20350. .PD 0
  20351. .IP "\fB\-mcompact\-branches=optimal\fR" 4
  20352. .IX Item "-mcompact-branches=optimal"
  20353. .IP "\fB\-mcompact\-branches=always\fR" 4
  20354. .IX Item "-mcompact-branches=always"
  20355. .PD
  20356. These options control which form of branches will be generated. The
  20357. default is \fB\-mcompact\-branches=optimal\fR.
  20358. .Sp
  20359. The \fB\-mcompact\-branches=never\fR option ensures that compact branch
  20360. instructions will never be generated.
  20361. .Sp
  20362. The \fB\-mcompact\-branches=always\fR option ensures that a compact
  20363. branch instruction will be generated if available. If a compact branch
  20364. instruction is not available, a delay slot form of the branch will be
  20365. used instead.
  20366. .Sp
  20367. This option is supported from \s-1MIPS\s0 Release 6 onwards.
  20368. .Sp
  20369. The \fB\-mcompact\-branches=optimal\fR option will cause a delay slot
  20370. branch to be used if one is available in the current \s-1ISA\s0 and the delay
  20371. slot is successfully filled. If the delay slot is not filled, a compact
  20372. branch will be chosen if one is available.
  20373. .IP "\fB\-mfp\-exceptions\fR" 4
  20374. .IX Item "-mfp-exceptions"
  20375. .PD 0
  20376. .IP "\fB\-mno\-fp\-exceptions\fR" 4
  20377. .IX Item "-mno-fp-exceptions"
  20378. .PD
  20379. Specifies whether \s-1FP\s0 exceptions are enabled. This affects how
  20380. \&\s-1FP\s0 instructions are scheduled for some processors.
  20381. The default is that \s-1FP\s0 exceptions are
  20382. enabled.
  20383. .Sp
  20384. For instance, on the \s-1SB\-1,\s0 if \s-1FP\s0 exceptions are disabled, and we are emitting
  20385. 64\-bit code, then we can use both \s-1FP\s0 pipes. Otherwise, we can only use one
  20386. \&\s-1FP\s0 pipe.
  20387. .IP "\fB\-mvr4130\-align\fR" 4
  20388. .IX Item "-mvr4130-align"
  20389. .PD 0
  20390. .IP "\fB\-mno\-vr4130\-align\fR" 4
  20391. .IX Item "-mno-vr4130-align"
  20392. .PD
  20393. The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
  20394. instructions together if the first one is 8\-byte aligned. When this
  20395. option is enabled, \s-1GCC\s0 aligns pairs of instructions that it
  20396. thinks should execute in parallel.
  20397. .Sp
  20398. This option only has an effect when optimizing for the \s-1VR4130.\s0
  20399. It normally makes code faster, but at the expense of making it bigger.
  20400. It is enabled by default at optimization level \fB\-O3\fR.
  20401. .IP "\fB\-msynci\fR" 4
  20402. .IX Item "-msynci"
  20403. .PD 0
  20404. .IP "\fB\-mno\-synci\fR" 4
  20405. .IX Item "-mno-synci"
  20406. .PD
  20407. Enable (disable) generation of \f(CW\*(C`synci\*(C'\fR instructions on
  20408. architectures that support it. The \f(CW\*(C`synci\*(C'\fR instructions (if
  20409. enabled) are generated when \f(CW\*(C`_\|_builtin_\|_\|_clear_cache\*(C'\fR is
  20410. compiled.
  20411. .Sp
  20412. This option defaults to \fB\-mno\-synci\fR, but the default can be
  20413. overridden by configuring \s-1GCC\s0 with \fB\-\-with\-synci\fR.
  20414. .Sp
  20415. When compiling code for single processor systems, it is generally safe
  20416. to use \f(CW\*(C`synci\*(C'\fR. However, on many multi-core (\s-1SMP\s0) systems, it
  20417. does not invalidate the instruction caches on all cores and may lead
  20418. to undefined behavior.
  20419. .IP "\fB\-mrelax\-pic\-calls\fR" 4
  20420. .IX Item "-mrelax-pic-calls"
  20421. .PD 0
  20422. .IP "\fB\-mno\-relax\-pic\-calls\fR" 4
  20423. .IX Item "-mno-relax-pic-calls"
  20424. .PD
  20425. Try to turn \s-1PIC\s0 calls that are normally dispatched via register
  20426. \&\f(CW$25\fR into direct calls. This is only possible if the linker can
  20427. resolve the destination at link time and if the destination is within
  20428. range for a direct call.
  20429. .Sp
  20430. \&\fB\-mrelax\-pic\-calls\fR is the default if \s-1GCC\s0 was configured to use
  20431. an assembler and a linker that support the \f(CW\*(C`.reloc\*(C'\fR assembly
  20432. directive and \fB\-mexplicit\-relocs\fR is in effect. With
  20433. \&\fB\-mno\-explicit\-relocs\fR, this optimization can be performed by the
  20434. assembler and the linker alone without help from the compiler.
  20435. .IP "\fB\-mmcount\-ra\-address\fR" 4
  20436. .IX Item "-mmcount-ra-address"
  20437. .PD 0
  20438. .IP "\fB\-mno\-mcount\-ra\-address\fR" 4
  20439. .IX Item "-mno-mcount-ra-address"
  20440. .PD
  20441. Emit (do not emit) code that allows \f(CW\*(C`_mcount\*(C'\fR to modify the
  20442. calling function's return address. When enabled, this option extends
  20443. the usual \f(CW\*(C`_mcount\*(C'\fR interface with a new \fIra-address\fR
  20444. parameter, which has type \f(CW\*(C`intptr_t *\*(C'\fR and is passed in register
  20445. \&\f(CW$12\fR. \f(CW\*(C`_mcount\*(C'\fR can then modify the return address by
  20446. doing both of the following:
  20447. .RS 4
  20448. .IP "*" 4
  20449. Returning the new address in register \f(CW$31\fR.
  20450. .IP "*" 4
  20451. Storing the new address in \f(CW\*(C`*\f(CIra\-address\f(CW\*(C'\fR,
  20452. if \fIra-address\fR is nonnull.
  20453. .RE
  20454. .RS 4
  20455. .Sp
  20456. The default is \fB\-mno\-mcount\-ra\-address\fR.
  20457. .RE
  20458. .IP "\fB\-mframe\-header\-opt\fR" 4
  20459. .IX Item "-mframe-header-opt"
  20460. .PD 0
  20461. .IP "\fB\-mno\-frame\-header\-opt\fR" 4
  20462. .IX Item "-mno-frame-header-opt"
  20463. .PD
  20464. Enable (disable) frame header optimization in the o32 \s-1ABI.\s0 When using the
  20465. o32 \s-1ABI,\s0 calling functions will allocate 16 bytes on the stack for the called
  20466. function to write out register arguments. When enabled, this optimization
  20467. will suppress the allocation of the frame header if it can be determined that
  20468. it is unused.
  20469. .Sp
  20470. This optimization is off by default at all optimization levels.
  20471. .IP "\fB\-mlxc1\-sxc1\fR" 4
  20472. .IX Item "-mlxc1-sxc1"
  20473. .PD 0
  20474. .IP "\fB\-mno\-lxc1\-sxc1\fR" 4
  20475. .IX Item "-mno-lxc1-sxc1"
  20476. .PD
  20477. When applicable, enable (disable) the generation of \f(CW\*(C`lwxc1\*(C'\fR,
  20478. \&\f(CW\*(C`swxc1\*(C'\fR, \f(CW\*(C`ldxc1\*(C'\fR, \f(CW\*(C`sdxc1\*(C'\fR instructions. Enabled by default.
  20479. .IP "\fB\-mmadd4\fR" 4
  20480. .IX Item "-mmadd4"
  20481. .PD 0
  20482. .IP "\fB\-mno\-madd4\fR" 4
  20483. .IX Item "-mno-madd4"
  20484. .PD
  20485. When applicable, enable (disable) the generation of 4\-operand \f(CW\*(C`madd.s\*(C'\fR,
  20486. \&\f(CW\*(C`madd.d\*(C'\fR and related instructions. Enabled by default.
  20487. .PP
  20488. \fI\s-1MMIX\s0 Options\fR
  20489. .IX Subsection "MMIX Options"
  20490. .PP
  20491. These options are defined for the \s-1MMIX:\s0
  20492. .IP "\fB\-mlibfuncs\fR" 4
  20493. .IX Item "-mlibfuncs"
  20494. .PD 0
  20495. .IP "\fB\-mno\-libfuncs\fR" 4
  20496. .IX Item "-mno-libfuncs"
  20497. .PD
  20498. Specify that intrinsic library functions are being compiled, passing all
  20499. values in registers, no matter the size.
  20500. .IP "\fB\-mepsilon\fR" 4
  20501. .IX Item "-mepsilon"
  20502. .PD 0
  20503. .IP "\fB\-mno\-epsilon\fR" 4
  20504. .IX Item "-mno-epsilon"
  20505. .PD
  20506. Generate floating-point comparison instructions that compare with respect
  20507. to the \f(CW\*(C`rE\*(C'\fR epsilon register.
  20508. .IP "\fB\-mabi=mmixware\fR" 4
  20509. .IX Item "-mabi=mmixware"
  20510. .PD 0
  20511. .IP "\fB\-mabi=gnu\fR" 4
  20512. .IX Item "-mabi=gnu"
  20513. .PD
  20514. Generate code that passes function parameters and return values that (in
  20515. the called function) are seen as registers \f(CW$0\fR and up, as opposed to
  20516. the \s-1GNU ABI\s0 which uses global registers \f(CW$231\fR and up.
  20517. .IP "\fB\-mzero\-extend\fR" 4
  20518. .IX Item "-mzero-extend"
  20519. .PD 0
  20520. .IP "\fB\-mno\-zero\-extend\fR" 4
  20521. .IX Item "-mno-zero-extend"
  20522. .PD
  20523. When reading data from memory in sizes shorter than 64 bits, use (do not
  20524. use) zero-extending load instructions by default, rather than
  20525. sign-extending ones.
  20526. .IP "\fB\-mknuthdiv\fR" 4
  20527. .IX Item "-mknuthdiv"
  20528. .PD 0
  20529. .IP "\fB\-mno\-knuthdiv\fR" 4
  20530. .IX Item "-mno-knuthdiv"
  20531. .PD
  20532. Make the result of a division yielding a remainder have the same sign as
  20533. the divisor. With the default, \fB\-mno\-knuthdiv\fR, the sign of the
  20534. remainder follows the sign of the dividend. Both methods are
  20535. arithmetically valid, the latter being almost exclusively used.
  20536. .IP "\fB\-mtoplevel\-symbols\fR" 4
  20537. .IX Item "-mtoplevel-symbols"
  20538. .PD 0
  20539. .IP "\fB\-mno\-toplevel\-symbols\fR" 4
  20540. .IX Item "-mno-toplevel-symbols"
  20541. .PD
  20542. Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
  20543. code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
  20544. .IP "\fB\-melf\fR" 4
  20545. .IX Item "-melf"
  20546. Generate an executable in the \s-1ELF\s0 format, rather than the default
  20547. \&\fBmmo\fR format used by the \fBmmix\fR simulator.
  20548. .IP "\fB\-mbranch\-predict\fR" 4
  20549. .IX Item "-mbranch-predict"
  20550. .PD 0
  20551. .IP "\fB\-mno\-branch\-predict\fR" 4
  20552. .IX Item "-mno-branch-predict"
  20553. .PD
  20554. Use (do not use) the probable-branch instructions, when static branch
  20555. prediction indicates a probable branch.
  20556. .IP "\fB\-mbase\-addresses\fR" 4
  20557. .IX Item "-mbase-addresses"
  20558. .PD 0
  20559. .IP "\fB\-mno\-base\-addresses\fR" 4
  20560. .IX Item "-mno-base-addresses"
  20561. .PD
  20562. Generate (do not generate) code that uses \fIbase addresses\fR. Using a
  20563. base address automatically generates a request (handled by the assembler
  20564. and the linker) for a constant to be set up in a global register. The
  20565. register is used for one or more base address requests within the range 0
  20566. to 255 from the value held in the register. The generally leads to short
  20567. and fast code, but the number of different data items that can be
  20568. addressed is limited. This means that a program that uses lots of static
  20569. data may require \fB\-mno\-base\-addresses\fR.
  20570. .IP "\fB\-msingle\-exit\fR" 4
  20571. .IX Item "-msingle-exit"
  20572. .PD 0
  20573. .IP "\fB\-mno\-single\-exit\fR" 4
  20574. .IX Item "-mno-single-exit"
  20575. .PD
  20576. Force (do not force) generated code to have a single exit point in each
  20577. function.
  20578. .PP
  20579. \fI\s-1MN10300\s0 Options\fR
  20580. .IX Subsection "MN10300 Options"
  20581. .PP
  20582. These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
  20583. .IP "\fB\-mmult\-bug\fR" 4
  20584. .IX Item "-mmult-bug"
  20585. Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
  20586. processors. This is the default.
  20587. .IP "\fB\-mno\-mult\-bug\fR" 4
  20588. .IX Item "-mno-mult-bug"
  20589. Do not generate code to avoid bugs in the multiply instructions for the
  20590. \&\s-1MN10300\s0 processors.
  20591. .IP "\fB\-mam33\fR" 4
  20592. .IX Item "-mam33"
  20593. Generate code using features specific to the \s-1AM33\s0 processor.
  20594. .IP "\fB\-mno\-am33\fR" 4
  20595. .IX Item "-mno-am33"
  20596. Do not generate code using features specific to the \s-1AM33\s0 processor. This
  20597. is the default.
  20598. .IP "\fB\-mam33\-2\fR" 4
  20599. .IX Item "-mam33-2"
  20600. Generate code using features specific to the \s-1AM33/2.0\s0 processor.
  20601. .IP "\fB\-mam34\fR" 4
  20602. .IX Item "-mam34"
  20603. Generate code using features specific to the \s-1AM34\s0 processor.
  20604. .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
  20605. .IX Item "-mtune=cpu-type"
  20606. Use the timing characteristics of the indicated \s-1CPU\s0 type when
  20607. scheduling instructions. This does not change the targeted processor
  20608. type. The \s-1CPU\s0 type must be one of \fBmn10300\fR, \fBam33\fR,
  20609. \&\fBam33\-2\fR or \fBam34\fR.
  20610. .IP "\fB\-mreturn\-pointer\-on\-d0\fR" 4
  20611. .IX Item "-mreturn-pointer-on-d0"
  20612. When generating a function that returns a pointer, return the pointer
  20613. in both \f(CW\*(C`a0\*(C'\fR and \f(CW\*(C`d0\*(C'\fR. Otherwise, the pointer is returned
  20614. only in \f(CW\*(C`a0\*(C'\fR, and attempts to call such functions without a prototype
  20615. result in errors. Note that this option is on by default; use
  20616. \&\fB\-mno\-return\-pointer\-on\-d0\fR to disable it.
  20617. .IP "\fB\-mno\-crt0\fR" 4
  20618. .IX Item "-mno-crt0"
  20619. Do not link in the C run-time initialization object file.
  20620. .IP "\fB\-mrelax\fR" 4
  20621. .IX Item "-mrelax"
  20622. Indicate to the linker that it should perform a relaxation optimization pass
  20623. to shorten branches, calls and absolute memory addresses. This option only
  20624. has an effect when used on the command line for the final link step.
  20625. .Sp
  20626. This option makes symbolic debugging impossible.
  20627. .IP "\fB\-mliw\fR" 4
  20628. .IX Item "-mliw"
  20629. Allow the compiler to generate \fILong Instruction Word\fR
  20630. instructions if the target is the \fB\s-1AM33\s0\fR or later. This is the
  20631. default. This option defines the preprocessor macro \f(CW\*(C`_\|_LIW_\|_\*(C'\fR.
  20632. .IP "\fB\-mnoliw\fR" 4
  20633. .IX Item "-mnoliw"
  20634. Do not allow the compiler to generate \fILong Instruction Word\fR
  20635. instructions. This option defines the preprocessor macro
  20636. \&\f(CW\*(C`_\|_NO_LIW_\|_\*(C'\fR.
  20637. .IP "\fB\-msetlb\fR" 4
  20638. .IX Item "-msetlb"
  20639. Allow the compiler to generate the \fI\s-1SETLB\s0\fR and \fILcc\fR
  20640. instructions if the target is the \fB\s-1AM33\s0\fR or later. This is the
  20641. default. This option defines the preprocessor macro \f(CW\*(C`_\|_SETLB_\|_\*(C'\fR.
  20642. .IP "\fB\-mnosetlb\fR" 4
  20643. .IX Item "-mnosetlb"
  20644. Do not allow the compiler to generate \fI\s-1SETLB\s0\fR or \fILcc\fR
  20645. instructions. This option defines the preprocessor macro
  20646. \&\f(CW\*(C`_\|_NO_SETLB_\|_\*(C'\fR.
  20647. .PP
  20648. \fIMoxie Options\fR
  20649. .IX Subsection "Moxie Options"
  20650. .IP "\fB\-meb\fR" 4
  20651. .IX Item "-meb"
  20652. Generate big-endian code. This is the default for \fBmoxie\-*\-*\fR
  20653. configurations.
  20654. .IP "\fB\-mel\fR" 4
  20655. .IX Item "-mel"
  20656. Generate little-endian code.
  20657. .IP "\fB\-mmul.x\fR" 4
  20658. .IX Item "-mmul.x"
  20659. Generate mul.x and umul.x instructions. This is the default for
  20660. \&\fBmoxiebox\-*\-*\fR configurations.
  20661. .IP "\fB\-mno\-crt0\fR" 4
  20662. .IX Item "-mno-crt0"
  20663. Do not link in the C run-time initialization object file.
  20664. .PP
  20665. \fI\s-1MSP430\s0 Options\fR
  20666. .IX Subsection "MSP430 Options"
  20667. .PP
  20668. These options are defined for the \s-1MSP430:\s0
  20669. .IP "\fB\-masm\-hex\fR" 4
  20670. .IX Item "-masm-hex"
  20671. Force assembly output to always use hex constants. Normally such
  20672. constants are signed decimals, but this option is available for
  20673. testsuite and/or aesthetic purposes.
  20674. .IP "\fB\-mmcu=\fR" 4
  20675. .IX Item "-mmcu="
  20676. Select the \s-1MCU\s0 to target. This is used to create a C preprocessor
  20677. symbol based upon the \s-1MCU\s0 name, converted to upper case and pre\- and
  20678. post-fixed with \fB_\|_\fR. This in turn is used by the
  20679. \&\fImsp430.h\fR header file to select an MCU-specific supplementary
  20680. header file.
  20681. .Sp
  20682. The option also sets the \s-1ISA\s0 to use. If the \s-1MCU\s0 name is one that is
  20683. known to only support the 430 \s-1ISA\s0 then that is selected, otherwise the
  20684. 430X \s-1ISA\s0 is selected. A generic \s-1MCU\s0 name of \fBmsp430\fR can also be
  20685. used to select the 430 \s-1ISA.\s0 Similarly the generic \fBmsp430x\fR \s-1MCU\s0
  20686. name selects the 430X \s-1ISA.\s0
  20687. .Sp
  20688. In addition an MCU-specific linker script is added to the linker
  20689. command line. The script's name is the name of the \s-1MCU\s0 with
  20690. \&\fI.ld\fR appended. Thus specifying \fB\-mmcu=xxx\fR on the \fBgcc\fR
  20691. command line defines the C preprocessor symbol \f(CW\*(C`_\|_XXX_\|_\*(C'\fR and
  20692. cause the linker to search for a script called \fIxxx.ld\fR.
  20693. .Sp
  20694. This option is also passed on to the assembler.
  20695. .IP "\fB\-mwarn\-mcu\fR" 4
  20696. .IX Item "-mwarn-mcu"
  20697. .PD 0
  20698. .IP "\fB\-mno\-warn\-mcu\fR" 4
  20699. .IX Item "-mno-warn-mcu"
  20700. .PD
  20701. This option enables or disables warnings about conflicts between the
  20702. \&\s-1MCU\s0 name specified by the \fB\-mmcu\fR option and the \s-1ISA\s0 set by the
  20703. \&\fB\-mcpu\fR option and/or the hardware multiply support set by the
  20704. \&\fB\-mhwmult\fR option. It also toggles warnings about unrecognized
  20705. \&\s-1MCU\s0 names. This option is on by default.
  20706. .IP "\fB\-mcpu=\fR" 4
  20707. .IX Item "-mcpu="
  20708. Specifies the \s-1ISA\s0 to use. Accepted values are \fBmsp430\fR,
  20709. \&\fBmsp430x\fR and \fBmsp430xv2\fR. This option is deprecated. The
  20710. \&\fB\-mmcu=\fR option should be used to select the \s-1ISA.\s0
  20711. .IP "\fB\-msim\fR" 4
  20712. .IX Item "-msim"
  20713. Link to the simulator runtime libraries and linker script. Overrides
  20714. any scripts that would be selected by the \fB\-mmcu=\fR option.
  20715. .IP "\fB\-mlarge\fR" 4
  20716. .IX Item "-mlarge"
  20717. Use large-model addressing (20\-bit pointers, 32\-bit \f(CW\*(C`size_t\*(C'\fR).
  20718. .IP "\fB\-msmall\fR" 4
  20719. .IX Item "-msmall"
  20720. Use small-model addressing (16\-bit pointers, 16\-bit \f(CW\*(C`size_t\*(C'\fR).
  20721. .IP "\fB\-mrelax\fR" 4
  20722. .IX Item "-mrelax"
  20723. This option is passed to the assembler and linker, and allows the
  20724. linker to perform certain optimizations that cannot be done until
  20725. the final link.
  20726. .IP "\fBmhwmult=\fR" 4
  20727. .IX Item "mhwmult="
  20728. Describes the type of hardware multiply supported by the target.
  20729. Accepted values are \fBnone\fR for no hardware multiply, \fB16bit\fR
  20730. for the original 16\-bit\-only multiply supported by early MCUs.
  20731. \&\fB32bit\fR for the 16/32\-bit multiply supported by later MCUs and
  20732. \&\fBf5series\fR for the 16/32\-bit multiply supported by F5\-series MCUs.
  20733. A value of \fBauto\fR can also be given. This tells \s-1GCC\s0 to deduce
  20734. the hardware multiply support based upon the \s-1MCU\s0 name provided by the
  20735. \&\fB\-mmcu\fR option. If no \fB\-mmcu\fR option is specified or if
  20736. the \s-1MCU\s0 name is not recognized then no hardware multiply support is
  20737. assumed. \f(CW\*(C`auto\*(C'\fR is the default setting.
  20738. .Sp
  20739. Hardware multiplies are normally performed by calling a library
  20740. routine. This saves space in the generated code. When compiling at
  20741. \&\fB\-O3\fR or higher however the hardware multiplier is invoked
  20742. inline. This makes for bigger, but faster code.
  20743. .Sp
  20744. The hardware multiply routines disable interrupts whilst running and
  20745. restore the previous interrupt state when they finish. This makes
  20746. them safe to use inside interrupt handlers as well as in normal code.
  20747. .IP "\fB\-minrt\fR" 4
  20748. .IX Item "-minrt"
  20749. Enable the use of a minimum runtime environment \- no static
  20750. initializers or constructors. This is intended for memory-constrained
  20751. devices. The compiler includes special symbols in some objects
  20752. that tell the linker and runtime which code fragments are required.
  20753. .IP "\fB\-mcode\-region=\fR" 4
  20754. .IX Item "-mcode-region="
  20755. .PD 0
  20756. .IP "\fB\-mdata\-region=\fR" 4
  20757. .IX Item "-mdata-region="
  20758. .PD
  20759. These options tell the compiler where to place functions and data that
  20760. 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
  20761. \&\f(CW\*(C`section\*(C'\fR attributes. Possible values are \f(CW\*(C`lower\*(C'\fR,
  20762. \&\f(CW\*(C`upper\*(C'\fR, \f(CW\*(C`either\*(C'\fR or \f(CW\*(C`any\*(C'\fR. The first three behave
  20763. like the corresponding attribute. The fourth possible value \-
  20764. \&\f(CW\*(C`any\*(C'\fR \- is the default. It leaves placement entirely up to the
  20765. linker script and how it assigns the standard sections
  20766. (\f(CW\*(C`.text\*(C'\fR, \f(CW\*(C`.data\*(C'\fR, etc) to the memory regions.
  20767. .IP "\fB\-msilicon\-errata=\fR" 4
  20768. .IX Item "-msilicon-errata="
  20769. This option passes on a request to assembler to enable the fixes for
  20770. the named silicon errata.
  20771. .IP "\fB\-msilicon\-errata\-warn=\fR" 4
  20772. .IX Item "-msilicon-errata-warn="
  20773. This option passes on a request to the assembler to enable warning
  20774. messages when a silicon errata might need to be applied.
  20775. .PP
  20776. \fI\s-1NDS32\s0 Options\fR
  20777. .IX Subsection "NDS32 Options"
  20778. .PP
  20779. These options are defined for \s-1NDS32\s0 implementations:
  20780. .IP "\fB\-mbig\-endian\fR" 4
  20781. .IX Item "-mbig-endian"
  20782. Generate code in big-endian mode.
  20783. .IP "\fB\-mlittle\-endian\fR" 4
  20784. .IX Item "-mlittle-endian"
  20785. Generate code in little-endian mode.
  20786. .IP "\fB\-mreduced\-regs\fR" 4
  20787. .IX Item "-mreduced-regs"
  20788. Use reduced-set registers for register allocation.
  20789. .IP "\fB\-mfull\-regs\fR" 4
  20790. .IX Item "-mfull-regs"
  20791. Use full-set registers for register allocation.
  20792. .IP "\fB\-mcmov\fR" 4
  20793. .IX Item "-mcmov"
  20794. Generate conditional move instructions.
  20795. .IP "\fB\-mno\-cmov\fR" 4
  20796. .IX Item "-mno-cmov"
  20797. Do not generate conditional move instructions.
  20798. .IP "\fB\-mext\-perf\fR" 4
  20799. .IX Item "-mext-perf"
  20800. Generate performance extension instructions.
  20801. .IP "\fB\-mno\-ext\-perf\fR" 4
  20802. .IX Item "-mno-ext-perf"
  20803. Do not generate performance extension instructions.
  20804. .IP "\fB\-mext\-perf2\fR" 4
  20805. .IX Item "-mext-perf2"
  20806. Generate performance extension 2 instructions.
  20807. .IP "\fB\-mno\-ext\-perf2\fR" 4
  20808. .IX Item "-mno-ext-perf2"
  20809. Do not generate performance extension 2 instructions.
  20810. .IP "\fB\-mext\-string\fR" 4
  20811. .IX Item "-mext-string"
  20812. Generate string extension instructions.
  20813. .IP "\fB\-mno\-ext\-string\fR" 4
  20814. .IX Item "-mno-ext-string"
  20815. Do not generate string extension instructions.
  20816. .IP "\fB\-mv3push\fR" 4
  20817. .IX Item "-mv3push"
  20818. Generate v3 push25/pop25 instructions.
  20819. .IP "\fB\-mno\-v3push\fR" 4
  20820. .IX Item "-mno-v3push"
  20821. Do not generate v3 push25/pop25 instructions.
  20822. .IP "\fB\-m16\-bit\fR" 4
  20823. .IX Item "-m16-bit"
  20824. Generate 16\-bit instructions.
  20825. .IP "\fB\-mno\-16\-bit\fR" 4
  20826. .IX Item "-mno-16-bit"
  20827. Do not generate 16\-bit instructions.
  20828. .IP "\fB\-misr\-vector\-size=\fR\fInum\fR" 4
  20829. .IX Item "-misr-vector-size=num"
  20830. Specify the size of each interrupt vector, which must be 4 or 16.
  20831. .IP "\fB\-mcache\-block\-size=\fR\fInum\fR" 4
  20832. .IX Item "-mcache-block-size=num"
  20833. Specify the size of each cache block,
  20834. which must be a power of 2 between 4 and 512.
  20835. .IP "\fB\-march=\fR\fIarch\fR" 4
  20836. .IX Item "-march=arch"
  20837. Specify the name of the target architecture.
  20838. .IP "\fB\-mcmodel=\fR\fIcode-model\fR" 4
  20839. .IX Item "-mcmodel=code-model"
  20840. Set the code model to one of
  20841. .RS 4
  20842. .IP "\fBsmall\fR" 4
  20843. .IX Item "small"
  20844. All the data and read-only data segments must be within 512KB addressing space.
  20845. The text segment must be within 16MB addressing space.
  20846. .IP "\fBmedium\fR" 4
  20847. .IX Item "medium"
  20848. The data segment must be within 512KB while the read-only data segment can be
  20849. within 4GB addressing space. The text segment should be still within 16MB
  20850. addressing space.
  20851. .IP "\fBlarge\fR" 4
  20852. .IX Item "large"
  20853. All the text and data segments can be within 4GB addressing space.
  20854. .RE
  20855. .RS 4
  20856. .RE
  20857. .IP "\fB\-mctor\-dtor\fR" 4
  20858. .IX Item "-mctor-dtor"
  20859. Enable constructor/destructor feature.
  20860. .IP "\fB\-mrelax\fR" 4
  20861. .IX Item "-mrelax"
  20862. Guide linker to relax instructions.
  20863. .PP
  20864. \fINios \s-1II\s0 Options\fR
  20865. .IX Subsection "Nios II Options"
  20866. .PP
  20867. These are the options defined for the Altera Nios \s-1II\s0 processor.
  20868. .IP "\fB\-G\fR \fInum\fR" 4
  20869. .IX Item "-G num"
  20870. Put global and static objects less than or equal to \fInum\fR bytes
  20871. into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
  20872. sections. The default value of \fInum\fR is 8.
  20873. .IP "\fB\-mgpopt=\fR\fIoption\fR" 4
  20874. .IX Item "-mgpopt=option"
  20875. .PD 0
  20876. .IP "\fB\-mgpopt\fR" 4
  20877. .IX Item "-mgpopt"
  20878. .IP "\fB\-mno\-gpopt\fR" 4
  20879. .IX Item "-mno-gpopt"
  20880. .PD
  20881. Generate (do not generate) GP-relative accesses. The following
  20882. \&\fIoption\fR names are recognized:
  20883. .RS 4
  20884. .IP "\fBnone\fR" 4
  20885. .IX Item "none"
  20886. Do not generate GP-relative accesses.
  20887. .IP "\fBlocal\fR" 4
  20888. .IX Item "local"
  20889. Generate GP-relative accesses for small data objects that are not
  20890. external, weak, or uninitialized common symbols.
  20891. Also use GP-relative addressing for objects that
  20892. have been explicitly placed in a small data section via a \f(CW\*(C`section\*(C'\fR
  20893. attribute.
  20894. .IP "\fBglobal\fR" 4
  20895. .IX Item "global"
  20896. As for \fBlocal\fR, but also generate GP-relative accesses for
  20897. small data objects that are external, weak, or common. If you use this option,
  20898. you must ensure that all parts of your program (including libraries) are
  20899. compiled with the same \fB\-G\fR setting.
  20900. .IP "\fBdata\fR" 4
  20901. .IX Item "data"
  20902. Generate GP-relative accesses for all data objects in the program. If you
  20903. use this option, the entire data and \s-1BSS\s0 segments
  20904. of your program must fit in 64K of memory and you must use an appropriate
  20905. linker script to allocate them within the addressable range of the
  20906. global pointer.
  20907. .IP "\fBall\fR" 4
  20908. .IX Item "all"
  20909. Generate GP-relative addresses for function pointers as well as data
  20910. pointers. If you use this option, the entire text, data, and \s-1BSS\s0 segments
  20911. of your program must fit in 64K of memory and you must use an appropriate
  20912. linker script to allocate them within the addressable range of the
  20913. global pointer.
  20914. .RE
  20915. .RS 4
  20916. .Sp
  20917. \&\fB\-mgpopt\fR is equivalent to \fB\-mgpopt=local\fR, and
  20918. \&\fB\-mno\-gpopt\fR is equivalent to \fB\-mgpopt=none\fR.
  20919. .Sp
  20920. The default is \fB\-mgpopt\fR except when \fB\-fpic\fR or
  20921. \&\fB\-fPIC\fR is specified to generate position-independent code.
  20922. Note that the Nios \s-1II ABI\s0 does not permit GP-relative accesses from
  20923. shared libraries.
  20924. .Sp
  20925. You may need to specify \fB\-mno\-gpopt\fR explicitly when building
  20926. programs that include large amounts of small data, including large
  20927. \&\s-1GOT\s0 data sections. In this case, the 16\-bit offset for GP-relative
  20928. addressing may not be large enough to allow access to the entire
  20929. small data section.
  20930. .RE
  20931. .IP "\fB\-mgprel\-sec=\fR\fIregexp\fR" 4
  20932. .IX Item "-mgprel-sec=regexp"
  20933. This option specifies additional section names that can be accessed via
  20934. GP-relative addressing. It is most useful in conjunction with
  20935. \&\f(CW\*(C`section\*(C'\fR attributes on variable declarations and a custom linker script.
  20936. The \fIregexp\fR is a \s-1POSIX\s0 Extended Regular Expression.
  20937. .Sp
  20938. This option does not affect the behavior of the \fB\-G\fR option, and
  20939. the specified sections are in addition to the standard \f(CW\*(C`.sdata\*(C'\fR
  20940. and \f(CW\*(C`.sbss\*(C'\fR small-data sections that are recognized by \fB\-mgpopt\fR.
  20941. .IP "\fB\-mr0rel\-sec=\fR\fIregexp\fR" 4
  20942. .IX Item "-mr0rel-sec=regexp"
  20943. This option specifies names of sections that can be accessed via a
  20944. 16\-bit offset from \f(CW\*(C`r0\*(C'\fR; that is, in the low 32K or high 32K
  20945. of the 32\-bit address space. It is most useful in conjunction with
  20946. \&\f(CW\*(C`section\*(C'\fR attributes on variable declarations and a custom linker script.
  20947. The \fIregexp\fR is a \s-1POSIX\s0 Extended Regular Expression.
  20948. .Sp
  20949. In contrast to the use of GP-relative addressing for small data,
  20950. zero-based addressing is never generated by default and there are no
  20951. conventional section names used in standard linker scripts for sections
  20952. in the low or high areas of memory.
  20953. .IP "\fB\-mel\fR" 4
  20954. .IX Item "-mel"
  20955. .PD 0
  20956. .IP "\fB\-meb\fR" 4
  20957. .IX Item "-meb"
  20958. .PD
  20959. Generate little-endian (default) or big-endian (experimental) code,
  20960. respectively.
  20961. .IP "\fB\-march=\fR\fIarch\fR" 4
  20962. .IX Item "-march=arch"
  20963. This specifies the name of the target Nios \s-1II\s0 architecture. \s-1GCC\s0 uses this
  20964. name to determine what kind of instructions it can emit when generating
  20965. assembly code. Permissible names are: \fBr1\fR, \fBr2\fR.
  20966. .Sp
  20967. The preprocessor macro \f(CW\*(C`_\|_nios2_arch_\|_\*(C'\fR is available to programs,
  20968. with value 1 or 2, indicating the targeted \s-1ISA\s0 level.
  20969. .IP "\fB\-mbypass\-cache\fR" 4
  20970. .IX Item "-mbypass-cache"
  20971. .PD 0
  20972. .IP "\fB\-mno\-bypass\-cache\fR" 4
  20973. .IX Item "-mno-bypass-cache"
  20974. .PD
  20975. Force all load and store instructions to always bypass cache by
  20976. using I/O variants of the instructions. The default is not to
  20977. bypass the cache.
  20978. .IP "\fB\-mno\-cache\-volatile\fR" 4
  20979. .IX Item "-mno-cache-volatile"
  20980. .PD 0
  20981. .IP "\fB\-mcache\-volatile\fR" 4
  20982. .IX Item "-mcache-volatile"
  20983. .PD
  20984. Volatile memory access bypass the cache using the I/O variants of
  20985. the load and store instructions. The default is not to bypass the cache.
  20986. .IP "\fB\-mno\-fast\-sw\-div\fR" 4
  20987. .IX Item "-mno-fast-sw-div"
  20988. .PD 0
  20989. .IP "\fB\-mfast\-sw\-div\fR" 4
  20990. .IX Item "-mfast-sw-div"
  20991. .PD
  20992. Do not use table-based fast divide for small numbers. The default
  20993. is to use the fast divide at \fB\-O3\fR and above.
  20994. .IP "\fB\-mno\-hw\-mul\fR" 4
  20995. .IX Item "-mno-hw-mul"
  20996. .PD 0
  20997. .IP "\fB\-mhw\-mul\fR" 4
  20998. .IX Item "-mhw-mul"
  20999. .IP "\fB\-mno\-hw\-mulx\fR" 4
  21000. .IX Item "-mno-hw-mulx"
  21001. .IP "\fB\-mhw\-mulx\fR" 4
  21002. .IX Item "-mhw-mulx"
  21003. .IP "\fB\-mno\-hw\-div\fR" 4
  21004. .IX Item "-mno-hw-div"
  21005. .IP "\fB\-mhw\-div\fR" 4
  21006. .IX Item "-mhw-div"
  21007. .PD
  21008. 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
  21009. instructions by the compiler. The default is to emit \f(CW\*(C`mul\*(C'\fR
  21010. and not emit \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`mulx\*(C'\fR.
  21011. .IP "\fB\-mbmx\fR" 4
  21012. .IX Item "-mbmx"
  21013. .PD 0
  21014. .IP "\fB\-mno\-bmx\fR" 4
  21015. .IX Item "-mno-bmx"
  21016. .IP "\fB\-mcdx\fR" 4
  21017. .IX Item "-mcdx"
  21018. .IP "\fB\-mno\-cdx\fR" 4
  21019. .IX Item "-mno-cdx"
  21020. .PD
  21021. Enable or disable generation of Nios \s-1II R2 BMX\s0 (bit manipulation) and
  21022. \&\s-1CDX\s0 (code density) instructions. Enabling these instructions also
  21023. requires \fB\-march=r2\fR. Since these instructions are optional
  21024. extensions to the R2 architecture, the default is not to emit them.
  21025. .IP "\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR" 4
  21026. .IX Item "-mcustom-insn=N"
  21027. .PD 0
  21028. .IP "\fB\-mno\-custom\-\fR\fIinsn\fR" 4
  21029. .IX Item "-mno-custom-insn"
  21030. .PD
  21031. Each \fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR option enables use of a
  21032. custom instruction with encoding \fIN\fR when generating code that uses
  21033. \&\fIinsn\fR. For example, \fB\-mcustom\-fadds=253\fR generates custom
  21034. instruction 253 for single-precision floating-point add operations instead
  21035. of the default behavior of using a library call.
  21036. .Sp
  21037. The following values of \fIinsn\fR are supported. Except as otherwise
  21038. noted, floating-point operations are expected to be implemented with
  21039. normal \s-1IEEE 754\s0 semantics and correspond directly to the C operators or the
  21040. equivalent \s-1GCC\s0 built-in functions.
  21041. .Sp
  21042. Single-precision floating point:
  21043. .RS 4
  21044. .IP "\fBfadds\fR, \fBfsubs\fR, \fBfdivs\fR, \fBfmuls\fR" 4
  21045. .IX Item "fadds, fsubs, fdivs, fmuls"
  21046. Binary arithmetic operations.
  21047. .IP "\fBfnegs\fR" 4
  21048. .IX Item "fnegs"
  21049. Unary negation.
  21050. .IP "\fBfabss\fR" 4
  21051. .IX Item "fabss"
  21052. Unary absolute value.
  21053. .IP "\fBfcmpeqs\fR, \fBfcmpges\fR, \fBfcmpgts\fR, \fBfcmples\fR, \fBfcmplts\fR, \fBfcmpnes\fR" 4
  21054. .IX Item "fcmpeqs, fcmpges, fcmpgts, fcmples, fcmplts, fcmpnes"
  21055. Comparison operations.
  21056. .IP "\fBfmins\fR, \fBfmaxs\fR" 4
  21057. .IX Item "fmins, fmaxs"
  21058. Floating-point minimum and maximum. These instructions are only
  21059. generated if \fB\-ffinite\-math\-only\fR is specified.
  21060. .IP "\fBfsqrts\fR" 4
  21061. .IX Item "fsqrts"
  21062. Unary square root operation.
  21063. .IP "\fBfcoss\fR, \fBfsins\fR, \fBftans\fR, \fBfatans\fR, \fBfexps\fR, \fBflogs\fR" 4
  21064. .IX Item "fcoss, fsins, ftans, fatans, fexps, flogs"
  21065. Floating-point trigonometric and exponential functions. These instructions
  21066. are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
  21067. .RE
  21068. .RS 4
  21069. .Sp
  21070. Double-precision floating point:
  21071. .IP "\fBfaddd\fR, \fBfsubd\fR, \fBfdivd\fR, \fBfmuld\fR" 4
  21072. .IX Item "faddd, fsubd, fdivd, fmuld"
  21073. Binary arithmetic operations.
  21074. .IP "\fBfnegd\fR" 4
  21075. .IX Item "fnegd"
  21076. Unary negation.
  21077. .IP "\fBfabsd\fR" 4
  21078. .IX Item "fabsd"
  21079. Unary absolute value.
  21080. .IP "\fBfcmpeqd\fR, \fBfcmpged\fR, \fBfcmpgtd\fR, \fBfcmpled\fR, \fBfcmpltd\fR, \fBfcmpned\fR" 4
  21081. .IX Item "fcmpeqd, fcmpged, fcmpgtd, fcmpled, fcmpltd, fcmpned"
  21082. Comparison operations.
  21083. .IP "\fBfmind\fR, \fBfmaxd\fR" 4
  21084. .IX Item "fmind, fmaxd"
  21085. Double-precision minimum and maximum. These instructions are only
  21086. generated if \fB\-ffinite\-math\-only\fR is specified.
  21087. .IP "\fBfsqrtd\fR" 4
  21088. .IX Item "fsqrtd"
  21089. Unary square root operation.
  21090. .IP "\fBfcosd\fR, \fBfsind\fR, \fBftand\fR, \fBfatand\fR, \fBfexpd\fR, \fBflogd\fR" 4
  21091. .IX Item "fcosd, fsind, ftand, fatand, fexpd, flogd"
  21092. Double-precision trigonometric and exponential functions. These instructions
  21093. are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
  21094. .RE
  21095. .RS 4
  21096. .Sp
  21097. Conversions:
  21098. .IP "\fBfextsd\fR" 4
  21099. .IX Item "fextsd"
  21100. Conversion from single precision to double precision.
  21101. .IP "\fBftruncds\fR" 4
  21102. .IX Item "ftruncds"
  21103. Conversion from double precision to single precision.
  21104. .IP "\fBfixsi\fR, \fBfixsu\fR, \fBfixdi\fR, \fBfixdu\fR" 4
  21105. .IX Item "fixsi, fixsu, fixdi, fixdu"
  21106. Conversion from floating point to signed or unsigned integer types, with
  21107. truncation towards zero.
  21108. .IP "\fBround\fR" 4
  21109. .IX Item "round"
  21110. Conversion from single-precision floating point to signed integer,
  21111. rounding to the nearest integer and ties away from zero.
  21112. This corresponds to the \f(CW\*(C`_\|_builtin_lroundf\*(C'\fR function when
  21113. \&\fB\-fno\-math\-errno\fR is used.
  21114. .IP "\fBfloatis\fR, \fBfloatus\fR, \fBfloatid\fR, \fBfloatud\fR" 4
  21115. .IX Item "floatis, floatus, floatid, floatud"
  21116. Conversion from signed or unsigned integer types to floating-point types.
  21117. .RE
  21118. .RS 4
  21119. .Sp
  21120. In addition, all of the following transfer instructions for internal
  21121. registers X and Y must be provided to use any of the double-precision
  21122. floating-point instructions. Custom instructions taking two
  21123. double-precision source operands expect the first operand in the
  21124. 64\-bit register X. The other operand (or only operand of a unary
  21125. operation) is given to the custom arithmetic instruction with the
  21126. least significant half in source register \fIsrc1\fR and the most
  21127. significant half in \fIsrc2\fR. A custom instruction that returns a
  21128. double-precision result returns the most significant 32 bits in the
  21129. destination register and the other half in 32\-bit register Y.
  21130. \&\s-1GCC\s0 automatically generates the necessary code sequences to write
  21131. register X and/or read register Y when double-precision floating-point
  21132. instructions are used.
  21133. .IP "\fBfwrx\fR" 4
  21134. .IX Item "fwrx"
  21135. Write \fIsrc1\fR into the least significant half of X and \fIsrc2\fR into
  21136. the most significant half of X.
  21137. .IP "\fBfwry\fR" 4
  21138. .IX Item "fwry"
  21139. Write \fIsrc1\fR into Y.
  21140. .IP "\fBfrdxhi\fR, \fBfrdxlo\fR" 4
  21141. .IX Item "frdxhi, frdxlo"
  21142. Read the most or least (respectively) significant half of X and store it in
  21143. \&\fIdest\fR.
  21144. .IP "\fBfrdy\fR" 4
  21145. .IX Item "frdy"
  21146. Read the value of Y and store it into \fIdest\fR.
  21147. .RE
  21148. .RS 4
  21149. .Sp
  21150. Note that you can gain more local control over generation of Nios \s-1II\s0 custom
  21151. instructions by using the \f(CW\*(C`target("custom\-\f(CIinsn\f(CW=\f(CIN\f(CW")\*(C'\fR
  21152. and \f(CW\*(C`target("no\-custom\-\f(CIinsn\f(CW")\*(C'\fR function attributes
  21153. or pragmas.
  21154. .RE
  21155. .IP "\fB\-mcustom\-fpu\-cfg=\fR\fIname\fR" 4
  21156. .IX Item "-mcustom-fpu-cfg=name"
  21157. This option enables a predefined, named set of custom instruction encodings
  21158. (see \fB\-mcustom\-\fR\fIinsn\fR above).
  21159. Currently, the following sets are defined:
  21160. .Sp
  21161. \&\fB\-mcustom\-fpu\-cfg=60\-1\fR is equivalent to:
  21162. \&\fB\-mcustom\-fmuls=252
  21163. \&\-mcustom\-fadds=253
  21164. \&\-mcustom\-fsubs=254
  21165. \&\-fsingle\-precision\-constant\fR
  21166. .Sp
  21167. \&\fB\-mcustom\-fpu\-cfg=60\-2\fR is equivalent to:
  21168. \&\fB\-mcustom\-fmuls=252
  21169. \&\-mcustom\-fadds=253
  21170. \&\-mcustom\-fsubs=254
  21171. \&\-mcustom\-fdivs=255
  21172. \&\-fsingle\-precision\-constant\fR
  21173. .Sp
  21174. \&\fB\-mcustom\-fpu\-cfg=72\-3\fR is equivalent to:
  21175. \&\fB\-mcustom\-floatus=243
  21176. \&\-mcustom\-fixsi=244
  21177. \&\-mcustom\-floatis=245
  21178. \&\-mcustom\-fcmpgts=246
  21179. \&\-mcustom\-fcmples=249
  21180. \&\-mcustom\-fcmpeqs=250
  21181. \&\-mcustom\-fcmpnes=251
  21182. \&\-mcustom\-fmuls=252
  21183. \&\-mcustom\-fadds=253
  21184. \&\-mcustom\-fsubs=254
  21185. \&\-mcustom\-fdivs=255
  21186. \&\-fsingle\-precision\-constant\fR
  21187. .Sp
  21188. Custom instruction assignments given by individual
  21189. \&\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR options override those given by
  21190. \&\fB\-mcustom\-fpu\-cfg=\fR, regardless of the
  21191. order of the options on the command line.
  21192. .Sp
  21193. Note that you can gain more local control over selection of a \s-1FPU\s0
  21194. configuration by using the \f(CW\*(C`target("custom\-fpu\-cfg=\f(CIname\f(CW")\*(C'\fR
  21195. function attribute
  21196. or pragma.
  21197. .PP
  21198. These additional \fB\-m\fR options are available for the Altera Nios \s-1II
  21199. ELF\s0 (bare-metal) target:
  21200. .IP "\fB\-mhal\fR" 4
  21201. .IX Item "-mhal"
  21202. Link with \s-1HAL BSP.\s0 This suppresses linking with the GCC-provided C runtime
  21203. startup and termination code, and is typically used in conjunction with
  21204. \&\fB\-msys\-crt0=\fR to specify the location of the alternate startup code
  21205. provided by the \s-1HAL BSP.\s0
  21206. .IP "\fB\-msmallc\fR" 4
  21207. .IX Item "-msmallc"
  21208. Link with a limited version of the C library, \fB\-lsmallc\fR, rather than
  21209. Newlib.
  21210. .IP "\fB\-msys\-crt0=\fR\fIstartfile\fR" 4
  21211. .IX Item "-msys-crt0=startfile"
  21212. \&\fIstartfile\fR is the file name of the startfile (crt0) to use
  21213. when linking. This option is only useful in conjunction with \fB\-mhal\fR.
  21214. .IP "\fB\-msys\-lib=\fR\fIsystemlib\fR" 4
  21215. .IX Item "-msys-lib=systemlib"
  21216. \&\fIsystemlib\fR is the library name of the library that provides
  21217. low-level system calls required by the C library,
  21218. e.g. \f(CW\*(C`read\*(C'\fR and \f(CW\*(C`write\*(C'\fR.
  21219. This option is typically used to link with a library provided by a \s-1HAL BSP.\s0
  21220. .PP
  21221. \fINvidia \s-1PTX\s0 Options\fR
  21222. .IX Subsection "Nvidia PTX Options"
  21223. .PP
  21224. These options are defined for Nvidia \s-1PTX:\s0
  21225. .IP "\fB\-m32\fR" 4
  21226. .IX Item "-m32"
  21227. .PD 0
  21228. .IP "\fB\-m64\fR" 4
  21229. .IX Item "-m64"
  21230. .PD
  21231. Generate code for 32\-bit or 64\-bit \s-1ABI.\s0
  21232. .IP "\fB\-mmainkernel\fR" 4
  21233. .IX Item "-mmainkernel"
  21234. Link in code for a _\|_main kernel. This is for stand-alone instead of
  21235. offloading execution.
  21236. .IP "\fB\-moptimize\fR" 4
  21237. .IX Item "-moptimize"
  21238. Apply partitioned execution optimizations. This is the default when any
  21239. level of optimization is selected.
  21240. .IP "\fB\-msoft\-stack\fR" 4
  21241. .IX Item "-msoft-stack"
  21242. Generate code that does not use \f(CW\*(C`.local\*(C'\fR memory
  21243. directly for stack storage. Instead, a per-warp stack pointer is
  21244. maintained explicitly. This enables variable-length stack allocation (with
  21245. variable-length arrays or \f(CW\*(C`alloca\*(C'\fR), and when global memory is used for
  21246. underlying storage, makes it possible to access automatic variables from other
  21247. threads, or with atomic instructions. This code generation variant is used
  21248. for OpenMP offloading, but the option is exposed on its own for the purpose
  21249. of testing the compiler; to generate code suitable for linking into programs
  21250. using OpenMP offloading, use option \fB\-mgomp\fR.
  21251. .IP "\fB\-muniform\-simt\fR" 4
  21252. .IX Item "-muniform-simt"
  21253. Switch to code generation variant that allows to execute all threads in each
  21254. warp, while maintaining memory state and side effects as if only one thread
  21255. in each warp was active outside of OpenMP \s-1SIMD\s0 regions. All atomic operations
  21256. and calls to runtime (malloc, free, vprintf) are conditionally executed (iff
  21257. current lane index equals the master lane index), and the register being
  21258. assigned is copied via a shuffle instruction from the master lane. Outside of
  21259. \&\s-1SIMD\s0 regions lane 0 is the master; inside, each thread sees itself as the
  21260. master. Shared memory array \f(CW\*(C`int _\|_nvptx_uni[]\*(C'\fR stores all-zeros or
  21261. all-ones bitmasks for each warp, indicating current mode (0 outside of \s-1SIMD\s0
  21262. regions). Each thread can bitwise-and the bitmask at position \f(CW\*(C`tid.y\*(C'\fR
  21263. with current lane index to compute the master lane index.
  21264. .IP "\fB\-mgomp\fR" 4
  21265. .IX Item "-mgomp"
  21266. Generate code for use in OpenMP offloading: enables \fB\-msoft\-stack\fR and
  21267. \&\fB\-muniform\-simt\fR options, and selects corresponding multilib variant.
  21268. .PP
  21269. \fI\s-1PDP\-11\s0 Options\fR
  21270. .IX Subsection "PDP-11 Options"
  21271. .PP
  21272. These options are defined for the \s-1PDP\-11:\s0
  21273. .IP "\fB\-mfpu\fR" 4
  21274. .IX Item "-mfpu"
  21275. Use hardware \s-1FPP\s0 floating point. This is the default. (\s-1FIS\s0 floating
  21276. point on the \s-1PDP\-11/40\s0 is not supported.)
  21277. .IP "\fB\-msoft\-float\fR" 4
  21278. .IX Item "-msoft-float"
  21279. Do not use hardware floating point.
  21280. .IP "\fB\-mac0\fR" 4
  21281. .IX Item "-mac0"
  21282. Return floating-point results in ac0 (fr0 in Unix assembler syntax).
  21283. .IP "\fB\-mno\-ac0\fR" 4
  21284. .IX Item "-mno-ac0"
  21285. Return floating-point results in memory. This is the default.
  21286. .IP "\fB\-m40\fR" 4
  21287. .IX Item "-m40"
  21288. Generate code for a \s-1PDP\-11/40.\s0
  21289. .IP "\fB\-m45\fR" 4
  21290. .IX Item "-m45"
  21291. Generate code for a \s-1PDP\-11/45.\s0 This is the default.
  21292. .IP "\fB\-m10\fR" 4
  21293. .IX Item "-m10"
  21294. Generate code for a \s-1PDP\-11/10.\s0
  21295. .IP "\fB\-mbcopy\-builtin\fR" 4
  21296. .IX Item "-mbcopy-builtin"
  21297. Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory. This is the
  21298. default.
  21299. .IP "\fB\-mbcopy\fR" 4
  21300. .IX Item "-mbcopy"
  21301. Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
  21302. .IP "\fB\-mint16\fR" 4
  21303. .IX Item "-mint16"
  21304. .PD 0
  21305. .IP "\fB\-mno\-int32\fR" 4
  21306. .IX Item "-mno-int32"
  21307. .PD
  21308. Use 16\-bit \f(CW\*(C`int\*(C'\fR. This is the default.
  21309. .IP "\fB\-mint32\fR" 4
  21310. .IX Item "-mint32"
  21311. .PD 0
  21312. .IP "\fB\-mno\-int16\fR" 4
  21313. .IX Item "-mno-int16"
  21314. .PD
  21315. Use 32\-bit \f(CW\*(C`int\*(C'\fR.
  21316. .IP "\fB\-mfloat64\fR" 4
  21317. .IX Item "-mfloat64"
  21318. .PD 0
  21319. .IP "\fB\-mno\-float32\fR" 4
  21320. .IX Item "-mno-float32"
  21321. .PD
  21322. Use 64\-bit \f(CW\*(C`float\*(C'\fR. This is the default.
  21323. .IP "\fB\-mfloat32\fR" 4
  21324. .IX Item "-mfloat32"
  21325. .PD 0
  21326. .IP "\fB\-mno\-float64\fR" 4
  21327. .IX Item "-mno-float64"
  21328. .PD
  21329. Use 32\-bit \f(CW\*(C`float\*(C'\fR.
  21330. .IP "\fB\-mabshi\fR" 4
  21331. .IX Item "-mabshi"
  21332. Use \f(CW\*(C`abshi2\*(C'\fR pattern. This is the default.
  21333. .IP "\fB\-mno\-abshi\fR" 4
  21334. .IX Item "-mno-abshi"
  21335. Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
  21336. .IP "\fB\-mbranch\-expensive\fR" 4
  21337. .IX Item "-mbranch-expensive"
  21338. Pretend that branches are expensive. This is for experimenting with
  21339. code generation only.
  21340. .IP "\fB\-mbranch\-cheap\fR" 4
  21341. .IX Item "-mbranch-cheap"
  21342. Do not pretend that branches are expensive. This is the default.
  21343. .IP "\fB\-munix\-asm\fR" 4
  21344. .IX Item "-munix-asm"
  21345. Use Unix assembler syntax. This is the default when configured for
  21346. \&\fBpdp11\-*\-bsd\fR.
  21347. .IP "\fB\-mdec\-asm\fR" 4
  21348. .IX Item "-mdec-asm"
  21349. Use \s-1DEC\s0 assembler syntax. This is the default when configured for any
  21350. \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
  21351. .PP
  21352. \fIpicoChip Options\fR
  21353. .IX Subsection "picoChip Options"
  21354. .PP
  21355. These \fB\-m\fR options are defined for picoChip implementations:
  21356. .IP "\fB\-mae=\fR\fIae_type\fR" 4
  21357. .IX Item "-mae=ae_type"
  21358. Set the instruction set, register set, and instruction scheduling
  21359. parameters for array element type \fIae_type\fR. Supported values
  21360. for \fIae_type\fR are \fB\s-1ANY\s0\fR, \fB\s-1MUL\s0\fR, and \fB\s-1MAC\s0\fR.
  21361. .Sp
  21362. \&\fB\-mae=ANY\fR selects a completely generic \s-1AE\s0 type. Code
  21363. generated with this option runs on any of the other \s-1AE\s0 types. The
  21364. code is not as efficient as it would be if compiled for a specific
  21365. \&\s-1AE\s0 type, and some types of operation (e.g., multiplication) do not
  21366. work properly on all types of \s-1AE.\s0
  21367. .Sp
  21368. \&\fB\-mae=MUL\fR selects a \s-1MUL AE\s0 type. This is the most useful \s-1AE\s0 type
  21369. for compiled code, and is the default.
  21370. .Sp
  21371. \&\fB\-mae=MAC\fR selects a DSP-style \s-1MAC AE.\s0 Code compiled with this
  21372. option may suffer from poor performance of byte (char) manipulation,
  21373. since the \s-1DSP AE\s0 does not provide hardware support for byte load/stores.
  21374. .IP "\fB\-msymbol\-as\-address\fR" 4
  21375. .IX Item "-msymbol-as-address"
  21376. Enable the compiler to directly use a symbol name as an address in a
  21377. load/store instruction, without first loading it into a
  21378. register. Typically, the use of this option generates larger
  21379. programs, which run faster than when the option isn't used. However, the
  21380. results vary from program to program, so it is left as a user option,
  21381. rather than being permanently enabled.
  21382. .IP "\fB\-mno\-inefficient\-warnings\fR" 4
  21383. .IX Item "-mno-inefficient-warnings"
  21384. Disables warnings about the generation of inefficient code. These
  21385. warnings can be generated, for example, when compiling code that
  21386. performs byte-level memory operations on the \s-1MAC AE\s0 type. The \s-1MAC AE\s0 has
  21387. no hardware support for byte-level memory operations, so all byte
  21388. load/stores must be synthesized from word load/store operations. This is
  21389. inefficient and a warning is generated to indicate
  21390. that you should rewrite the code to avoid byte operations, or to target
  21391. an \s-1AE\s0 type that has the necessary hardware support. This option disables
  21392. these warnings.
  21393. .PP
  21394. \fIPowerPC Options\fR
  21395. .IX Subsection "PowerPC Options"
  21396. .PP
  21397. These are listed under
  21398. .PP
  21399. \fIPowerPC \s-1SPE\s0 Options\fR
  21400. .IX Subsection "PowerPC SPE Options"
  21401. .PP
  21402. These \fB\-m\fR options are defined for PowerPC \s-1SPE:\s0
  21403. .IP "\fB\-mmfcrf\fR" 4
  21404. .IX Item "-mmfcrf"
  21405. .PD 0
  21406. .IP "\fB\-mno\-mfcrf\fR" 4
  21407. .IX Item "-mno-mfcrf"
  21408. .IP "\fB\-mpopcntb\fR" 4
  21409. .IX Item "-mpopcntb"
  21410. .IP "\fB\-mno\-popcntb\fR" 4
  21411. .IX Item "-mno-popcntb"
  21412. .PD
  21413. You use these options to specify which instructions are available on the
  21414. processor you are using. The default value of these options is
  21415. determined when configuring \s-1GCC.\s0 Specifying the
  21416. \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
  21417. options. We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
  21418. rather than the options listed above.
  21419. .Sp
  21420. The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
  21421. condition register field instruction implemented on the \s-1POWER4\s0
  21422. processor and other processors that support the PowerPC V2.01
  21423. architecture.
  21424. The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
  21425. double-precision \s-1FP\s0 reciprocal estimate instruction implemented on the
  21426. \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
  21427. architecture.
  21428. .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
  21429. .IX Item "-mcpu=cpu_type"
  21430. Set architecture type, register usage, and
  21431. instruction scheduling parameters for machine type \fIcpu_type\fR.
  21432. Supported values for \fIcpu_type\fR are \fB8540\fR, \fB8548\fR,
  21433. and \fBnative\fR.
  21434. .Sp
  21435. \&\fB\-mcpu=powerpc\fR specifies pure 32\-bit PowerPC (either
  21436. endian), with an appropriate, generic processor model assumed for
  21437. scheduling purposes.
  21438. .Sp
  21439. Specifying \fBnative\fR as cpu type detects and selects the
  21440. architecture option that corresponds to the host processor of the
  21441. system performing the compilation.
  21442. \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize the
  21443. processor.
  21444. .Sp
  21445. The other options specify a specific processor. Code generated under
  21446. those options runs best on that processor, and may not run at all on
  21447. others.
  21448. .Sp
  21449. The \fB\-mcpu\fR options automatically enable or disable the
  21450. following options:
  21451. .Sp
  21452. \&\fB\-mhard\-float \-mmfcrf \-mmultiple
  21453. \&\-mpopcntb \-mpopcntd
  21454. \&\-msingle\-float \-mdouble\-float
  21455. \&\-mfloat128\fR
  21456. .Sp
  21457. The particular options set for any particular \s-1CPU\s0 varies between
  21458. compiler versions, depending on what setting seems to produce optimal
  21459. code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
  21460. capabilities. If you wish to set an individual option to a particular
  21461. value, you may specify it after the \fB\-mcpu\fR option, like
  21462. \&\fB\-mcpu=8548\fR.
  21463. .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
  21464. .IX Item "-mtune=cpu_type"
  21465. Set the instruction scheduling parameters for machine type
  21466. \&\fIcpu_type\fR, but do not set the architecture type or register usage,
  21467. as \fB\-mcpu=\fR\fIcpu_type\fR does. The same
  21468. values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
  21469. \&\fB\-mcpu\fR. If both are specified, the code generated uses the
  21470. architecture and registers set by \fB\-mcpu\fR, but the
  21471. scheduling parameters set by \fB\-mtune\fR.
  21472. .IP "\fB\-msecure\-plt\fR" 4
  21473. .IX Item "-msecure-plt"
  21474. Generate code that allows \fBld\fR and \fBld.so\fR
  21475. to build executables and shared
  21476. libraries with non-executable \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR sections.
  21477. This is a PowerPC
  21478. 32\-bit \s-1SYSV ABI\s0 option.
  21479. .IP "\fB\-mbss\-plt\fR" 4
  21480. .IX Item "-mbss-plt"
  21481. Generate code that uses a \s-1BSS\s0 \f(CW\*(C`.plt\*(C'\fR section that \fBld.so\fR
  21482. fills in, and
  21483. requires \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR
  21484. sections that are both writable and executable.
  21485. This is a PowerPC 32\-bit \s-1SYSV ABI\s0 option.
  21486. .IP "\fB\-misel\fR" 4
  21487. .IX Item "-misel"
  21488. .PD 0
  21489. .IP "\fB\-mno\-isel\fR" 4
  21490. .IX Item "-mno-isel"
  21491. .PD
  21492. This switch enables or disables the generation of \s-1ISEL\s0 instructions.
  21493. .IP "\fB\-misel=\fR\fIyes/no\fR" 4
  21494. .IX Item "-misel=yes/no"
  21495. This switch has been deprecated. Use \fB\-misel\fR and
  21496. \&\fB\-mno\-isel\fR instead.
  21497. .IP "\fB\-mspe\fR" 4
  21498. .IX Item "-mspe"
  21499. .PD 0
  21500. .IP "\fB\-mno\-spe\fR" 4
  21501. .IX Item "-mno-spe"
  21502. .PD
  21503. This switch enables or disables the generation of \s-1SPE\s0 simd
  21504. instructions.
  21505. .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
  21506. .IX Item "-mspe=yes/no"
  21507. This option has been deprecated. Use \fB\-mspe\fR and
  21508. \&\fB\-mno\-spe\fR instead.
  21509. .IP "\fB\-mfloat128\fR" 4
  21510. .IX Item "-mfloat128"
  21511. .PD 0
  21512. .IP "\fB\-mno\-float128\fR" 4
  21513. .IX Item "-mno-float128"
  21514. .PD
  21515. Enable/disable the \fI_\|_float128\fR keyword for \s-1IEEE\s0 128\-bit floating point
  21516. and use either software emulation for \s-1IEEE\s0 128\-bit floating point or
  21517. hardware instructions.
  21518. .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
  21519. .IX Item "-mfloat-gprs=yes/single/double/no"
  21520. .PD 0
  21521. .IP "\fB\-mfloat\-gprs\fR" 4
  21522. .IX Item "-mfloat-gprs"
  21523. .PD
  21524. This switch enables or disables the generation of floating-point
  21525. operations on the general-purpose registers for architectures that
  21526. support it.
  21527. .Sp
  21528. The argument \fByes\fR or \fBsingle\fR enables the use of
  21529. single-precision floating-point operations.
  21530. .Sp
  21531. The argument \fBdouble\fR enables the use of single and
  21532. double-precision floating-point operations.
  21533. .Sp
  21534. The argument \fBno\fR disables floating-point operations on the
  21535. general-purpose registers.
  21536. .Sp
  21537. This option is currently only available on the MPC854x.
  21538. .IP "\fB\-mfull\-toc\fR" 4
  21539. .IX Item "-mfull-toc"
  21540. .PD 0
  21541. .IP "\fB\-mno\-fp\-in\-toc\fR" 4
  21542. .IX Item "-mno-fp-in-toc"
  21543. .IP "\fB\-mno\-sum\-in\-toc\fR" 4
  21544. .IX Item "-mno-sum-in-toc"
  21545. .IP "\fB\-mminimal\-toc\fR" 4
  21546. .IX Item "-mminimal-toc"
  21547. .PD
  21548. Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
  21549. every executable file. The \fB\-mfull\-toc\fR option is selected by
  21550. default. In that case, \s-1GCC\s0 allocates at least one \s-1TOC\s0 entry for
  21551. each unique non-automatic variable reference in your program. \s-1GCC\s0
  21552. also places floating-point constants in the \s-1TOC.\s0 However, only
  21553. 16,384 entries are available in the \s-1TOC.\s0
  21554. .Sp
  21555. If you receive a linker error message that saying you have overflowed
  21556. the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
  21557. with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
  21558. \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
  21559. constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
  21560. generate code to calculate the sum of an address and a constant at
  21561. run time instead of putting that sum into the \s-1TOC.\s0 You may specify one
  21562. or both of these options. Each causes \s-1GCC\s0 to produce very slightly
  21563. slower and larger code at the expense of conserving \s-1TOC\s0 space.
  21564. .Sp
  21565. If you still run out of space in the \s-1TOC\s0 even when you specify both of
  21566. these options, specify \fB\-mminimal\-toc\fR instead. This option causes
  21567. \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file. When you specify this
  21568. option, \s-1GCC\s0 produces code that is slower and larger but which
  21569. uses extremely little \s-1TOC\s0 space. You may wish to use this option
  21570. only on files that contain less frequently-executed code.
  21571. .IP "\fB\-maix32\fR" 4
  21572. .IX Item "-maix32"
  21573. Disables the 64\-bit \s-1ABI.\s0 \s-1GCC\s0 defaults to \fB\-maix32\fR.
  21574. .IP "\fB\-mxl\-compat\fR" 4
  21575. .IX Item "-mxl-compat"
  21576. .PD 0
  21577. .IP "\fB\-mno\-xl\-compat\fR" 4
  21578. .IX Item "-mno-xl-compat"
  21579. .PD
  21580. Produce code that conforms more closely to \s-1IBM XL\s0 compiler semantics
  21581. when using AIX-compatible \s-1ABI.\s0 Pass floating-point arguments to
  21582. prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
  21583. in addition to argument FPRs. Do not assume that most significant
  21584. double in 128\-bit long double value is properly rounded when comparing
  21585. values and converting to double. Use \s-1XL\s0 symbol names for long double
  21586. support routines.
  21587. .Sp
  21588. The \s-1AIX\s0 calling convention was extended but not initially documented to
  21589. handle an obscure K&R C case of calling a function that takes the
  21590. address of its arguments with fewer arguments than declared. \s-1IBM XL\s0
  21591. compilers access floating-point arguments that do not fit in the
  21592. \&\s-1RSA\s0 from the stack when a subroutine is compiled without
  21593. optimization. Because always storing floating-point arguments on the
  21594. stack is inefficient and rarely needed, this option is not enabled by
  21595. default and only is necessary when calling subroutines compiled by \s-1IBM
  21596. XL\s0 compilers without optimization.
  21597. .IP "\fB\-malign\-natural\fR" 4
  21598. .IX Item "-malign-natural"
  21599. .PD 0
  21600. .IP "\fB\-malign\-power\fR" 4
  21601. .IX Item "-malign-power"
  21602. .PD
  21603. On \s-1AIX,\s0 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
  21604. \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
  21605. types, such as floating-point doubles, on their natural size-based boundary.
  21606. The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
  21607. alignment rules. \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI.\s0
  21608. .Sp
  21609. On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
  21610. is not supported.
  21611. .IP "\fB\-msoft\-float\fR" 4
  21612. .IX Item "-msoft-float"
  21613. .PD 0
  21614. .IP "\fB\-mhard\-float\fR" 4
  21615. .IX Item "-mhard-float"
  21616. .PD
  21617. Generate code that does not use (uses) the floating-point register set.
  21618. Software floating-point emulation is provided if you use the
  21619. \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
  21620. .IP "\fB\-msingle\-float\fR" 4
  21621. .IX Item "-msingle-float"
  21622. .PD 0
  21623. .IP "\fB\-mdouble\-float\fR" 4
  21624. .IX Item "-mdouble-float"
  21625. .PD
  21626. Generate code for single\- or double-precision floating-point operations.
  21627. \&\fB\-mdouble\-float\fR implies \fB\-msingle\-float\fR.
  21628. .IP "\fB\-mmultiple\fR" 4
  21629. .IX Item "-mmultiple"
  21630. .PD 0
  21631. .IP "\fB\-mno\-multiple\fR" 4
  21632. .IX Item "-mno-multiple"
  21633. .PD
  21634. Generate code that uses (does not use) the load multiple word
  21635. instructions and the store multiple word instructions. These
  21636. instructions are generated by default on \s-1POWER\s0 systems, and not
  21637. generated on PowerPC systems. Do not use \fB\-mmultiple\fR on little-endian
  21638. PowerPC systems, since those instructions do not work when the
  21639. processor is in little-endian mode. The exceptions are \s-1PPC740\s0 and
  21640. \&\s-1PPC750\s0 which permit these instructions in little-endian mode.
  21641. .IP "\fB\-mupdate\fR" 4
  21642. .IX Item "-mupdate"
  21643. .PD 0
  21644. .IP "\fB\-mno\-update\fR" 4
  21645. .IX Item "-mno-update"
  21646. .PD
  21647. Generate code that uses (does not use) the load or store instructions
  21648. that update the base register to the address of the calculated memory
  21649. location. These instructions are generated by default. If you use
  21650. \&\fB\-mno\-update\fR, there is a small window between the time that the
  21651. stack pointer is updated and the address of the previous frame is
  21652. stored, which means code that walks the stack frame across interrupts or
  21653. signals may get corrupted data.
  21654. .IP "\fB\-mavoid\-indexed\-addresses\fR" 4
  21655. .IX Item "-mavoid-indexed-addresses"
  21656. .PD 0
  21657. .IP "\fB\-mno\-avoid\-indexed\-addresses\fR" 4
  21658. .IX Item "-mno-avoid-indexed-addresses"
  21659. .PD
  21660. Generate code that tries to avoid (not avoid) the use of indexed load
  21661. or store instructions. These instructions can incur a performance
  21662. penalty on Power6 processors in certain situations, such as when
  21663. stepping through large arrays that cross a 16M boundary. This option
  21664. is enabled by default when targeting Power6 and disabled otherwise.
  21665. .IP "\fB\-mfused\-madd\fR" 4
  21666. .IX Item "-mfused-madd"
  21667. .PD 0
  21668. .IP "\fB\-mno\-fused\-madd\fR" 4
  21669. .IX Item "-mno-fused-madd"
  21670. .PD
  21671. Generate code that uses (does not use) the floating-point multiply and
  21672. accumulate instructions. These instructions are generated by default
  21673. if hardware floating point is used. The machine-dependent
  21674. \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
  21675. \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
  21676. mapped to \fB\-ffp\-contract=off\fR.
  21677. .IP "\fB\-mno\-strict\-align\fR" 4
  21678. .IX Item "-mno-strict-align"
  21679. .PD 0
  21680. .IP "\fB\-mstrict\-align\fR" 4
  21681. .IX Item "-mstrict-align"
  21682. .PD
  21683. On System V.4 and embedded PowerPC systems do not (do) assume that
  21684. unaligned memory references are handled by the system.
  21685. .IP "\fB\-mrelocatable\fR" 4
  21686. .IX Item "-mrelocatable"
  21687. .PD 0
  21688. .IP "\fB\-mno\-relocatable\fR" 4
  21689. .IX Item "-mno-relocatable"
  21690. .PD
  21691. Generate code that allows (does not allow) a static executable to be
  21692. relocated to a different address at run time. A simple embedded
  21693. PowerPC system loader should relocate the entire contents of
  21694. \&\f(CW\*(C`.got2\*(C'\fR and 4\-byte locations listed in the \f(CW\*(C`.fixup\*(C'\fR section,
  21695. a table of 32\-bit addresses generated by this option. For this to
  21696. work, all objects linked together must be compiled with
  21697. \&\fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
  21698. \&\fB\-mrelocatable\fR code aligns the stack to an 8\-byte boundary.
  21699. .IP "\fB\-mrelocatable\-lib\fR" 4
  21700. .IX Item "-mrelocatable-lib"
  21701. .PD 0
  21702. .IP "\fB\-mno\-relocatable\-lib\fR" 4
  21703. .IX Item "-mno-relocatable-lib"
  21704. .PD
  21705. Like \fB\-mrelocatable\fR, \fB\-mrelocatable\-lib\fR generates a
  21706. \&\f(CW\*(C`.fixup\*(C'\fR section to allow static executables to be relocated at
  21707. run time, but \fB\-mrelocatable\-lib\fR does not use the smaller stack
  21708. alignment of \fB\-mrelocatable\fR. Objects compiled with
  21709. \&\fB\-mrelocatable\-lib\fR may be linked with objects compiled with
  21710. any combination of the \fB\-mrelocatable\fR options.
  21711. .IP "\fB\-mno\-toc\fR" 4
  21712. .IX Item "-mno-toc"
  21713. .PD 0
  21714. .IP "\fB\-mtoc\fR" 4
  21715. .IX Item "-mtoc"
  21716. .PD
  21717. On System V.4 and embedded PowerPC systems do not (do) assume that
  21718. register 2 contains a pointer to a global area pointing to the addresses
  21719. used in the program.
  21720. .IP "\fB\-mlittle\fR" 4
  21721. .IX Item "-mlittle"
  21722. .PD 0
  21723. .IP "\fB\-mlittle\-endian\fR" 4
  21724. .IX Item "-mlittle-endian"
  21725. .PD
  21726. On System V.4 and embedded PowerPC systems compile code for the
  21727. processor in little-endian mode. The \fB\-mlittle\-endian\fR option is
  21728. the same as \fB\-mlittle\fR.
  21729. .IP "\fB\-mbig\fR" 4
  21730. .IX Item "-mbig"
  21731. .PD 0
  21732. .IP "\fB\-mbig\-endian\fR" 4
  21733. .IX Item "-mbig-endian"
  21734. .PD
  21735. On System V.4 and embedded PowerPC systems compile code for the
  21736. processor in big-endian mode. The \fB\-mbig\-endian\fR option is
  21737. the same as \fB\-mbig\fR.
  21738. .IP "\fB\-mdynamic\-no\-pic\fR" 4
  21739. .IX Item "-mdynamic-no-pic"
  21740. On Darwin and Mac \s-1OS X\s0 systems, compile code so that it is not
  21741. relocatable, but that its external references are relocatable. The
  21742. resulting code is suitable for applications, but not shared
  21743. libraries.
  21744. .IP "\fB\-msingle\-pic\-base\fR" 4
  21745. .IX Item "-msingle-pic-base"
  21746. Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
  21747. loading it in the prologue for each function. The runtime system is
  21748. responsible for initializing this register with an appropriate value
  21749. before execution begins.
  21750. .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
  21751. .IX Item "-mprioritize-restricted-insns=priority"
  21752. This option controls the priority that is assigned to
  21753. dispatch-slot restricted instructions during the second scheduling
  21754. pass. The argument \fIpriority\fR takes the value \fB0\fR, \fB1\fR,
  21755. or \fB2\fR to assign no, highest, or second-highest (respectively)
  21756. priority to dispatch-slot restricted
  21757. instructions.
  21758. .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
  21759. .IX Item "-msched-costly-dep=dependence_type"
  21760. This option controls which dependences are considered costly
  21761. by the target during instruction scheduling. The argument
  21762. \&\fIdependence_type\fR takes one of the following values:
  21763. .RS 4
  21764. .IP "\fBno\fR" 4
  21765. .IX Item "no"
  21766. No dependence is costly.
  21767. .IP "\fBall\fR" 4
  21768. .IX Item "all"
  21769. All dependences are costly.
  21770. .IP "\fBtrue_store_to_load\fR" 4
  21771. .IX Item "true_store_to_load"
  21772. A true dependence from store to load is costly.
  21773. .IP "\fBstore_to_load\fR" 4
  21774. .IX Item "store_to_load"
  21775. Any dependence from store to load is costly.
  21776. .IP "\fInumber\fR" 4
  21777. .IX Item "number"
  21778. Any dependence for which the latency is greater than or equal to
  21779. \&\fInumber\fR is costly.
  21780. .RE
  21781. .RS 4
  21782. .RE
  21783. .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
  21784. .IX Item "-minsert-sched-nops=scheme"
  21785. This option controls which \s-1NOP\s0 insertion scheme is used during
  21786. the second scheduling pass. The argument \fIscheme\fR takes one of the
  21787. following values:
  21788. .RS 4
  21789. .IP "\fBno\fR" 4
  21790. .IX Item "no"
  21791. Don't insert NOPs.
  21792. .IP "\fBpad\fR" 4
  21793. .IX Item "pad"
  21794. Pad with NOPs any dispatch group that has vacant issue slots,
  21795. according to the scheduler's grouping.
  21796. .IP "\fBregroup_exact\fR" 4
  21797. .IX Item "regroup_exact"
  21798. Insert NOPs to force costly dependent insns into
  21799. separate groups. Insert exactly as many NOPs as needed to force an insn
  21800. to a new group, according to the estimated processor grouping.
  21801. .IP "\fInumber\fR" 4
  21802. .IX Item "number"
  21803. Insert NOPs to force costly dependent insns into
  21804. separate groups. Insert \fInumber\fR NOPs to force an insn to a new group.
  21805. .RE
  21806. .RS 4
  21807. .RE
  21808. .IP "\fB\-mcall\-sysv\fR" 4
  21809. .IX Item "-mcall-sysv"
  21810. On System V.4 and embedded PowerPC systems compile code using calling
  21811. conventions that adhere to the March 1995 draft of the System V
  21812. Application Binary Interface, PowerPC processor supplement. This is the
  21813. default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
  21814. .IP "\fB\-mcall\-sysv\-eabi\fR" 4
  21815. .IX Item "-mcall-sysv-eabi"
  21816. .PD 0
  21817. .IP "\fB\-mcall\-eabi\fR" 4
  21818. .IX Item "-mcall-eabi"
  21819. .PD
  21820. Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
  21821. .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
  21822. .IX Item "-mcall-sysv-noeabi"
  21823. Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
  21824. .IP "\fB\-mcall\-aixdesc\fR" 4
  21825. .IX Item "-mcall-aixdesc"
  21826. On System V.4 and embedded PowerPC systems compile code for the \s-1AIX\s0
  21827. operating system.
  21828. .IP "\fB\-mcall\-linux\fR" 4
  21829. .IX Item "-mcall-linux"
  21830. On System V.4 and embedded PowerPC systems compile code for the
  21831. Linux-based \s-1GNU\s0 system.
  21832. .IP "\fB\-mcall\-freebsd\fR" 4
  21833. .IX Item "-mcall-freebsd"
  21834. On System V.4 and embedded PowerPC systems compile code for the
  21835. FreeBSD operating system.
  21836. .IP "\fB\-mcall\-netbsd\fR" 4
  21837. .IX Item "-mcall-netbsd"
  21838. On System V.4 and embedded PowerPC systems compile code for the
  21839. NetBSD operating system.
  21840. .IP "\fB\-mcall\-openbsd\fR" 4
  21841. .IX Item "-mcall-openbsd"
  21842. On System V.4 and embedded PowerPC systems compile code for the
  21843. OpenBSD operating system.
  21844. .IP "\fB\-maix\-struct\-return\fR" 4
  21845. .IX Item "-maix-struct-return"
  21846. Return all structures in memory (as specified by the \s-1AIX ABI\s0).
  21847. .IP "\fB\-msvr4\-struct\-return\fR" 4
  21848. .IX Item "-msvr4-struct-return"
  21849. Return structures smaller than 8 bytes in registers (as specified by the
  21850. \&\s-1SVR4 ABI\s0).
  21851. .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
  21852. .IX Item "-mabi=abi-type"
  21853. Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
  21854. Valid values are \fBaltivec\fR, \fBno-altivec\fR, \fBspe\fR,
  21855. \&\fBno-spe\fR, \fBibmlongdouble\fR, \fBieeelongdouble\fR,
  21856. \&\fBelfv1\fR, \fBelfv2\fR.
  21857. .IP "\fB\-mabi=spe\fR" 4
  21858. .IX Item "-mabi=spe"
  21859. Extend the current \s-1ABI\s0 with \s-1SPE ABI\s0 extensions. This does not change
  21860. the default \s-1ABI,\s0 instead it adds the \s-1SPE ABI\s0 extensions to the current
  21861. \&\s-1ABI.\s0
  21862. .IP "\fB\-mabi=no\-spe\fR" 4
  21863. .IX Item "-mabi=no-spe"
  21864. Disable Book-E \s-1SPE ABI\s0 extensions for the current \s-1ABI.\s0
  21865. .IP "\fB\-mabi=ibmlongdouble\fR" 4
  21866. .IX Item "-mabi=ibmlongdouble"
  21867. Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended-precision long double.
  21868. This is not likely to work if your system defaults to using \s-1IEEE\s0
  21869. extended-precision long double. If you change the long double type
  21870. from \s-1IEEE\s0 extended-precision, the compiler will issue a warning unless
  21871. you use the \fB\-Wno\-psabi\fR option. Requires \fB\-mlong\-double\-128\fR
  21872. to be enabled.
  21873. .IP "\fB\-mabi=ieeelongdouble\fR" 4
  21874. .IX Item "-mabi=ieeelongdouble"
  21875. Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended-precision long double.
  21876. This is not likely to work if your system defaults to using \s-1IBM\s0
  21877. extended-precision long double. If you change the long double type
  21878. from \s-1IBM\s0 extended-precision, the compiler will issue a warning unless
  21879. you use the \fB\-Wno\-psabi\fR option. Requires \fB\-mlong\-double\-128\fR
  21880. to be enabled.
  21881. .IP "\fB\-mabi=elfv1\fR" 4
  21882. .IX Item "-mabi=elfv1"
  21883. Change the current \s-1ABI\s0 to use the ELFv1 \s-1ABI.\s0
  21884. This is the default \s-1ABI\s0 for big-endian PowerPC 64\-bit Linux.
  21885. Overriding the default \s-1ABI\s0 requires special system support and is
  21886. likely to fail in spectacular ways.
  21887. .IP "\fB\-mabi=elfv2\fR" 4
  21888. .IX Item "-mabi=elfv2"
  21889. Change the current \s-1ABI\s0 to use the ELFv2 \s-1ABI.\s0
  21890. This is the default \s-1ABI\s0 for little-endian PowerPC 64\-bit Linux.
  21891. Overriding the default \s-1ABI\s0 requires special system support and is
  21892. likely to fail in spectacular ways.
  21893. .IP "\fB\-mgnu\-attribute\fR" 4
  21894. .IX Item "-mgnu-attribute"
  21895. .PD 0
  21896. .IP "\fB\-mno\-gnu\-attribute\fR" 4
  21897. .IX Item "-mno-gnu-attribute"
  21898. .PD
  21899. Emit .gnu_attribute assembly directives to set tag/value pairs in a
  21900. \&.gnu.attributes section that specify \s-1ABI\s0 variations in function
  21901. parameters or return values.
  21902. .IP "\fB\-mprototype\fR" 4
  21903. .IX Item "-mprototype"
  21904. .PD 0
  21905. .IP "\fB\-mno\-prototype\fR" 4
  21906. .IX Item "-mno-prototype"
  21907. .PD
  21908. On System V.4 and embedded PowerPC systems assume that all calls to
  21909. variable argument functions are properly prototyped. Otherwise, the
  21910. compiler must insert an instruction before every non-prototyped call to
  21911. set or clear bit 6 of the condition code register (\f(CW\*(C`CR\*(C'\fR) to
  21912. indicate whether floating-point values are passed in the floating-point
  21913. registers in case the function takes variable arguments. With
  21914. \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
  21915. set or clear the bit.
  21916. .IP "\fB\-msim\fR" 4
  21917. .IX Item "-msim"
  21918. On embedded PowerPC systems, assume that the startup module is called
  21919. \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
  21920. \&\fIlibc.a\fR. This is the default for \fBpowerpc\-*\-eabisim\fR
  21921. configurations.
  21922. .IP "\fB\-mmvme\fR" 4
  21923. .IX Item "-mmvme"
  21924. On embedded PowerPC systems, assume that the startup module is called
  21925. \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
  21926. \&\fIlibc.a\fR.
  21927. .IP "\fB\-mads\fR" 4
  21928. .IX Item "-mads"
  21929. On embedded PowerPC systems, assume that the startup module is called
  21930. \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
  21931. \&\fIlibc.a\fR.
  21932. .IP "\fB\-myellowknife\fR" 4
  21933. .IX Item "-myellowknife"
  21934. On embedded PowerPC systems, assume that the startup module is called
  21935. \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
  21936. \&\fIlibc.a\fR.
  21937. .IP "\fB\-mvxworks\fR" 4
  21938. .IX Item "-mvxworks"
  21939. On System V.4 and embedded PowerPC systems, specify that you are
  21940. compiling for a VxWorks system.
  21941. .IP "\fB\-memb\fR" 4
  21942. .IX Item "-memb"
  21943. On embedded PowerPC systems, set the \f(CW\*(C`PPC_EMB\*(C'\fR bit in the \s-1ELF\s0 flags
  21944. header to indicate that \fBeabi\fR extended relocations are used.
  21945. .IP "\fB\-meabi\fR" 4
  21946. .IX Item "-meabi"
  21947. .PD 0
  21948. .IP "\fB\-mno\-eabi\fR" 4
  21949. .IX Item "-mno-eabi"
  21950. .PD
  21951. On System V.4 and embedded PowerPC systems do (do not) adhere to the
  21952. Embedded Applications Binary Interface (\s-1EABI\s0), which is a set of
  21953. modifications to the System V.4 specifications. Selecting \fB\-meabi\fR
  21954. means that the stack is aligned to an 8\-byte boundary, a function
  21955. \&\f(CW\*(C`_\|_eabi\*(C'\fR is called from \f(CW\*(C`main\*(C'\fR to set up the \s-1EABI\s0
  21956. environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
  21957. \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas. Selecting
  21958. \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16\-byte boundary,
  21959. no \s-1EABI\s0 initialization function is called from \f(CW\*(C`main\*(C'\fR, and the
  21960. \&\fB\-msdata\fR option only uses \f(CW\*(C`r13\*(C'\fR to point to a single
  21961. small data area. The \fB\-meabi\fR option is on by default if you
  21962. configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
  21963. .IP "\fB\-msdata=eabi\fR" 4
  21964. .IX Item "-msdata=eabi"
  21965. On System V.4 and embedded PowerPC systems, put small initialized
  21966. \&\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata2\*(C'\fR section, which
  21967. is pointed to by register \f(CW\*(C`r2\*(C'\fR. Put small initialized
  21968. non\-\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata\*(C'\fR section,
  21969. which is pointed to by register \f(CW\*(C`r13\*(C'\fR. Put small uninitialized
  21970. global and static data in the \f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to
  21971. the \f(CW\*(C`.sdata\*(C'\fR section. The \fB\-msdata=eabi\fR option is
  21972. incompatible with the \fB\-mrelocatable\fR option. The
  21973. \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
  21974. .IP "\fB\-msdata=sysv\fR" 4
  21975. .IX Item "-msdata=sysv"
  21976. On System V.4 and embedded PowerPC systems, put small global and static
  21977. data in the \f(CW\*(C`.sdata\*(C'\fR section, which is pointed to by register
  21978. \&\f(CW\*(C`r13\*(C'\fR. Put small uninitialized global and static data in the
  21979. \&\f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to the \f(CW\*(C`.sdata\*(C'\fR section.
  21980. The \fB\-msdata=sysv\fR option is incompatible with the
  21981. \&\fB\-mrelocatable\fR option.
  21982. .IP "\fB\-msdata=default\fR" 4
  21983. .IX Item "-msdata=default"
  21984. .PD 0
  21985. .IP "\fB\-msdata\fR" 4
  21986. .IX Item "-msdata"
  21987. .PD
  21988. On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
  21989. compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
  21990. same as \fB\-msdata=sysv\fR.
  21991. .IP "\fB\-msdata=data\fR" 4
  21992. .IX Item "-msdata=data"
  21993. On System V.4 and embedded PowerPC systems, put small global
  21994. data in the \f(CW\*(C`.sdata\*(C'\fR section. Put small uninitialized global
  21995. data in the \f(CW\*(C`.sbss\*(C'\fR section. Do not use register \f(CW\*(C`r13\*(C'\fR
  21996. to address small data however. This is the default behavior unless
  21997. other \fB\-msdata\fR options are used.
  21998. .IP "\fB\-msdata=none\fR" 4
  21999. .IX Item "-msdata=none"
  22000. .PD 0
  22001. .IP "\fB\-mno\-sdata\fR" 4
  22002. .IX Item "-mno-sdata"
  22003. .PD
  22004. On embedded PowerPC systems, put all initialized global and static data
  22005. in the \f(CW\*(C`.data\*(C'\fR section, and all uninitialized data in the
  22006. \&\f(CW\*(C`.bss\*(C'\fR section.
  22007. .IP "\fB\-mblock\-move\-inline\-limit=\fR\fInum\fR" 4
  22008. .IX Item "-mblock-move-inline-limit=num"
  22009. Inline all block moves (such as calls to \f(CW\*(C`memcpy\*(C'\fR or structure
  22010. copies) less than or equal to \fInum\fR bytes. The minimum value for
  22011. \&\fInum\fR is 32 bytes on 32\-bit targets and 64 bytes on 64\-bit
  22012. targets. The default value is target-specific.
  22013. .IP "\fB\-G\fR \fInum\fR" 4
  22014. .IX Item "-G num"
  22015. On embedded PowerPC systems, put global and static items less than or
  22016. equal to \fInum\fR bytes into the small data or \s-1BSS\s0 sections instead of
  22017. the normal data or \s-1BSS\s0 section. By default, \fInum\fR is 8. The
  22018. \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
  22019. All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
  22020. .IP "\fB\-mregnames\fR" 4
  22021. .IX Item "-mregnames"
  22022. .PD 0
  22023. .IP "\fB\-mno\-regnames\fR" 4
  22024. .IX Item "-mno-regnames"
  22025. .PD
  22026. On System V.4 and embedded PowerPC systems do (do not) emit register
  22027. names in the assembly language output using symbolic forms.
  22028. .IP "\fB\-mlongcall\fR" 4
  22029. .IX Item "-mlongcall"
  22030. .PD 0
  22031. .IP "\fB\-mno\-longcall\fR" 4
  22032. .IX Item "-mno-longcall"
  22033. .PD
  22034. By default assume that all calls are far away so that a longer and more
  22035. expensive calling sequence is required. This is required for calls
  22036. farther than 32 megabytes (33,554,432 bytes) from the current location.
  22037. A short call is generated if the compiler knows
  22038. the call cannot be that far away. This setting can be overridden by
  22039. the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
  22040. longcall(0)\*(C'\fR.
  22041. .Sp
  22042. Some linkers are capable of detecting out-of-range calls and generating
  22043. glue code on the fly. On these systems, long calls are unnecessary and
  22044. generate slower code. As of this writing, the \s-1AIX\s0 linker can do this,
  22045. as can the \s-1GNU\s0 linker for PowerPC/64. It is planned to add this feature
  22046. to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
  22047. .Sp
  22048. In the future, \s-1GCC\s0 may ignore all longcall specifications
  22049. when the linker is known to generate glue.
  22050. .IP "\fB\-mtls\-markers\fR" 4
  22051. .IX Item "-mtls-markers"
  22052. .PD 0
  22053. .IP "\fB\-mno\-tls\-markers\fR" 4
  22054. .IX Item "-mno-tls-markers"
  22055. .PD
  22056. Mark (do not mark) calls to \f(CW\*(C`_\|_tls_get_addr\*(C'\fR with a relocation
  22057. specifying the function argument. The relocation allows the linker to
  22058. reliably associate function call with argument setup instructions for
  22059. \&\s-1TLS\s0 optimization, which in turn allows \s-1GCC\s0 to better schedule the
  22060. sequence.
  22061. .IP "\fB\-mrecip\fR" 4
  22062. .IX Item "-mrecip"
  22063. .PD 0
  22064. .IP "\fB\-mno\-recip\fR" 4
  22065. .IX Item "-mno-recip"
  22066. .PD
  22067. This option enables use of the reciprocal estimate and
  22068. reciprocal square root estimate instructions with additional
  22069. Newton-Raphson steps to increase precision instead of doing a divide or
  22070. square root and divide for floating-point arguments. You should use
  22071. the \fB\-ffast\-math\fR option when using \fB\-mrecip\fR (or at
  22072. least \fB\-funsafe\-math\-optimizations\fR,
  22073. \&\fB\-ffinite\-math\-only\fR, \fB\-freciprocal\-math\fR and
  22074. \&\fB\-fno\-trapping\-math\fR). Note that while the throughput of the
  22075. sequence is generally higher than the throughput of the non-reciprocal
  22076. instruction, the precision of the sequence can be decreased by up to 2
  22077. ulp (i.e. the inverse of 1.0 equals 0.99999994) for reciprocal square
  22078. roots.
  22079. .IP "\fB\-mrecip=\fR\fIopt\fR" 4
  22080. .IX Item "-mrecip=opt"
  22081. This option controls which reciprocal estimate instructions
  22082. may be used. \fIopt\fR is a comma-separated list of options, which may
  22083. be preceded by a \f(CW\*(C`!\*(C'\fR to invert the option:
  22084. .RS 4
  22085. .IP "\fBall\fR" 4
  22086. .IX Item "all"
  22087. Enable all estimate instructions.
  22088. .IP "\fBdefault\fR" 4
  22089. .IX Item "default"
  22090. Enable the default instructions, equivalent to \fB\-mrecip\fR.
  22091. .IP "\fBnone\fR" 4
  22092. .IX Item "none"
  22093. Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
  22094. .IP "\fBdiv\fR" 4
  22095. .IX Item "div"
  22096. Enable the reciprocal approximation instructions for both
  22097. single and double precision.
  22098. .IP "\fBdivf\fR" 4
  22099. .IX Item "divf"
  22100. Enable the single-precision reciprocal approximation instructions.
  22101. .IP "\fBdivd\fR" 4
  22102. .IX Item "divd"
  22103. Enable the double-precision reciprocal approximation instructions.
  22104. .IP "\fBrsqrt\fR" 4
  22105. .IX Item "rsqrt"
  22106. Enable the reciprocal square root approximation instructions for both
  22107. single and double precision.
  22108. .IP "\fBrsqrtf\fR" 4
  22109. .IX Item "rsqrtf"
  22110. Enable the single-precision reciprocal square root approximation instructions.
  22111. .IP "\fBrsqrtd\fR" 4
  22112. .IX Item "rsqrtd"
  22113. Enable the double-precision reciprocal square root approximation instructions.
  22114. .RE
  22115. .RS 4
  22116. .Sp
  22117. So, for example, \fB\-mrecip=all,!rsqrtd\fR enables
  22118. all of the reciprocal estimate instructions, except for the
  22119. \&\f(CW\*(C`FRSQRTE\*(C'\fR, \f(CW\*(C`XSRSQRTEDP\*(C'\fR, and \f(CW\*(C`XVRSQRTEDP\*(C'\fR instructions
  22120. which handle the double-precision reciprocal square root calculations.
  22121. .RE
  22122. .IP "\fB\-mrecip\-precision\fR" 4
  22123. .IX Item "-mrecip-precision"
  22124. .PD 0
  22125. .IP "\fB\-mno\-recip\-precision\fR" 4
  22126. .IX Item "-mno-recip-precision"
  22127. .PD
  22128. Assume (do not assume) that the reciprocal estimate instructions
  22129. provide higher-precision estimates than is mandated by the PowerPC
  22130. \&\s-1ABI.\s0 Selecting \fB\-mcpu=power6\fR, \fB\-mcpu=power7\fR or
  22131. \&\fB\-mcpu=power8\fR automatically selects \fB\-mrecip\-precision\fR.
  22132. The double-precision square root estimate instructions are not generated by
  22133. default on low-precision machines, since they do not provide an
  22134. estimate that converges after three steps.
  22135. .IP "\fB\-mpointers\-to\-nested\-functions\fR" 4
  22136. .IX Item "-mpointers-to-nested-functions"
  22137. .PD 0
  22138. .IP "\fB\-mno\-pointers\-to\-nested\-functions\fR" 4
  22139. .IX Item "-mno-pointers-to-nested-functions"
  22140. .PD
  22141. Generate (do not generate) code to load up the static chain register
  22142. (\f(CW\*(C`r11\*(C'\fR) when calling through a pointer on \s-1AIX\s0 and 64\-bit Linux
  22143. systems where a function pointer points to a 3\-word descriptor giving
  22144. the function address, \s-1TOC\s0 value to be loaded in register \f(CW\*(C`r2\*(C'\fR, and
  22145. static chain value to be loaded in register \f(CW\*(C`r11\*(C'\fR. The
  22146. \&\fB\-mpointers\-to\-nested\-functions\fR is on by default. You cannot
  22147. call through pointers to nested functions or pointers
  22148. to functions compiled in other languages that use the static chain if
  22149. you use \fB\-mno\-pointers\-to\-nested\-functions\fR.
  22150. .IP "\fB\-msave\-toc\-indirect\fR" 4
  22151. .IX Item "-msave-toc-indirect"
  22152. .PD 0
  22153. .IP "\fB\-mno\-save\-toc\-indirect\fR" 4
  22154. .IX Item "-mno-save-toc-indirect"
  22155. .PD
  22156. Generate (do not generate) code to save the \s-1TOC\s0 value in the reserved
  22157. stack location in the function prologue if the function calls through
  22158. a pointer on \s-1AIX\s0 and 64\-bit Linux systems. If the \s-1TOC\s0 value is not
  22159. saved in the prologue, it is saved just before the call through the
  22160. pointer. The \fB\-mno\-save\-toc\-indirect\fR option is the default.
  22161. .IP "\fB\-mcompat\-align\-parm\fR" 4
  22162. .IX Item "-mcompat-align-parm"
  22163. .PD 0
  22164. .IP "\fB\-mno\-compat\-align\-parm\fR" 4
  22165. .IX Item "-mno-compat-align-parm"
  22166. .PD
  22167. Generate (do not generate) code to pass structure parameters with a
  22168. maximum alignment of 64 bits, for compatibility with older versions
  22169. of \s-1GCC.\s0
  22170. .Sp
  22171. Older versions of \s-1GCC\s0 (prior to 4.9.0) incorrectly did not align a
  22172. structure parameter on a 128\-bit boundary when that structure contained
  22173. a member requiring 128\-bit alignment. This is corrected in more
  22174. recent versions of \s-1GCC.\s0 This option may be used to generate code
  22175. that is compatible with functions compiled with older versions of
  22176. \&\s-1GCC.\s0
  22177. .Sp
  22178. The \fB\-mno\-compat\-align\-parm\fR option is the default.
  22179. .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
  22180. .IX Item "-mstack-protector-guard=guard"
  22181. .PD 0
  22182. .IP "\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR" 4
  22183. .IX Item "-mstack-protector-guard-reg=reg"
  22184. .IP "\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR" 4
  22185. .IX Item "-mstack-protector-guard-offset=offset"
  22186. .IP "\fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR" 4
  22187. .IX Item "-mstack-protector-guard-symbol=symbol"
  22188. .PD
  22189. Generate stack protection code using canary at \fIguard\fR. Supported
  22190. locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
  22191. canary in the \s-1TLS\s0 block (the default with \s-1GNU\s0 libc version 2.4 or later).
  22192. .Sp
  22193. With the latter choice the options
  22194. \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR and
  22195. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR furthermore specify
  22196. which register to use as base register for reading the canary, and from what
  22197. offset from that base register. The default for those is as specified in the
  22198. relevant \s-1ABI.\s0 \fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR overrides
  22199. the offset with a symbol reference to a canary in the \s-1TLS\s0 block.
  22200. .PP
  22201. \fIRISC-V Options\fR
  22202. .IX Subsection "RISC-V Options"
  22203. .PP
  22204. These command-line options are defined for RISC-V targets:
  22205. .IP "\fB\-mbranch\-cost=\fR\fIn\fR" 4
  22206. .IX Item "-mbranch-cost=n"
  22207. Set the cost of branches to roughly \fIn\fR instructions.
  22208. .IP "\fB\-mplt\fR" 4
  22209. .IX Item "-mplt"
  22210. .PD 0
  22211. .IP "\fB\-mno\-plt\fR" 4
  22212. .IX Item "-mno-plt"
  22213. .PD
  22214. When generating \s-1PIC\s0 code, do or don't allow the use of PLTs. Ignored for
  22215. non-PIC. The default is \fB\-mplt\fR.
  22216. .IP "\fB\-mabi=\fR\fIABI-string\fR" 4
  22217. .IX Item "-mabi=ABI-string"
  22218. Specify integer and floating-point calling convention. \fIABI-string\fR
  22219. contains two parts: the size of integer types and the registers used for
  22220. floating-point types. For example \fB\-march=rv64ifd \-mabi=lp64d\fR means that
  22221. \&\fBlong\fR and pointers are 64\-bit (implicitly defining \fBint\fR to be
  22222. 32\-bit), and that floating-point values up to 64 bits wide are passed in F
  22223. registers. Contrast this with \fB\-march=rv64ifd \-mabi=lp64f\fR, which still
  22224. allows the compiler to generate code that uses the F and D extensions but only
  22225. allows floating-point values up to 32 bits long to be passed in registers; or
  22226. \&\fB\-march=rv64ifd \-mabi=lp64\fR, in which no floating-point arguments will be
  22227. passed in registers.
  22228. .Sp
  22229. The default for this argument is system dependent, users who want a specific
  22230. calling convention should specify one explicitly. The valid calling
  22231. conventions are: \fBilp32\fR, \fBilp32f\fR, \fBilp32d\fR, \fBlp64\fR,
  22232. \&\fBlp64f\fR, and \fBlp64d\fR. Some calling conventions are impossible to
  22233. implement on some ISAs: for example, \fB\-march=rv32if \-mabi=ilp32d\fR is
  22234. invalid because the \s-1ABI\s0 requires 64\-bit values be passed in F registers, but F
  22235. registers are only 32 bits wide. There is also the \fBilp32e\fR \s-1ABI\s0 that can
  22236. only be used with the \fBrv32e\fR architecture. This \s-1ABI\s0 is not well
  22237. specified at present, and is subject to change.
  22238. .IP "\fB\-mfdiv\fR" 4
  22239. .IX Item "-mfdiv"
  22240. .PD 0
  22241. .IP "\fB\-mno\-fdiv\fR" 4
  22242. .IX Item "-mno-fdiv"
  22243. .PD
  22244. Do or don't use hardware floating-point divide and square root instructions.
  22245. This requires the F or D extensions for floating-point registers. The default
  22246. is to use them if the specified architecture has these instructions.
  22247. .IP "\fB\-mdiv\fR" 4
  22248. .IX Item "-mdiv"
  22249. .PD 0
  22250. .IP "\fB\-mno\-div\fR" 4
  22251. .IX Item "-mno-div"
  22252. .PD
  22253. Do or don't use hardware instructions for integer division. This requires the
  22254. M extension. The default is to use them if the specified architecture has
  22255. these instructions.
  22256. .IP "\fB\-march=\fR\fIISA-string\fR" 4
  22257. .IX Item "-march=ISA-string"
  22258. Generate code for given RISC-V \s-1ISA\s0 (e.g. \fBrv64im\fR). \s-1ISA\s0 strings must be
  22259. lower-case. Examples include \fBrv64i\fR, \fBrv32g\fR, \fBrv32e\fR, and
  22260. \&\fBrv32imaf\fR.
  22261. .IP "\fB\-mtune=\fR\fIprocessor-string\fR" 4
  22262. .IX Item "-mtune=processor-string"
  22263. Optimize the output for the given processor, specified by microarchitecture
  22264. name. Permissible values for this option are: \fBrocket\fR,
  22265. \&\fBsifive\-3\-series\fR, \fBsifive\-5\-series\fR, \fBsifive\-7\-series\fR,
  22266. and \fBsize\fR.
  22267. .Sp
  22268. When \fB\-mtune=\fR is not specified, the default is \fBrocket\fR.
  22269. .Sp
  22270. The \fBsize\fR choice is not intended for use by end-users. This is used
  22271. when \fB\-Os\fR is specified. It overrides the instruction cost info
  22272. provided by \fB\-mtune=\fR, but does not override the pipeline info. This
  22273. helps reduce code size while still giving good performance.
  22274. .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
  22275. .IX Item "-mpreferred-stack-boundary=num"
  22276. Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
  22277. byte boundary. If \fB\-mpreferred\-stack\-boundary\fR is not specified,
  22278. the default is 4 (16 bytes or 128\-bits).
  22279. .Sp
  22280. \&\fBWarning:\fR If you use this switch, then you must build all modules with
  22281. the same value, including any libraries. This includes the system libraries
  22282. and startup modules.
  22283. .IP "\fB\-msmall\-data\-limit=\fR\fIn\fR" 4
  22284. .IX Item "-msmall-data-limit=n"
  22285. Put global and static data smaller than \fIn\fR bytes into a special section
  22286. (on some targets).
  22287. .IP "\fB\-msave\-restore\fR" 4
  22288. .IX Item "-msave-restore"
  22289. .PD 0
  22290. .IP "\fB\-mno\-save\-restore\fR" 4
  22291. .IX Item "-mno-save-restore"
  22292. .PD
  22293. Do or don't use smaller but slower prologue and epilogue code that uses
  22294. library function calls. The default is to use fast inline prologues and
  22295. epilogues.
  22296. .IP "\fB\-mstrict\-align\fR" 4
  22297. .IX Item "-mstrict-align"
  22298. .PD 0
  22299. .IP "\fB\-mno\-strict\-align\fR" 4
  22300. .IX Item "-mno-strict-align"
  22301. .PD
  22302. Do not or do generate unaligned memory accesses. The default is set depending
  22303. on whether the processor we are optimizing for supports fast unaligned access
  22304. or not.
  22305. .IP "\fB\-mcmodel=medlow\fR" 4
  22306. .IX Item "-mcmodel=medlow"
  22307. Generate code for the medium-low code model. The program and its statically
  22308. defined symbols must lie within a single 2 GiB address range and must lie
  22309. between absolute addresses \-2 GiB and +2 GiB. Programs can be
  22310. statically or dynamically linked. This is the default code model.
  22311. .IP "\fB\-mcmodel=medany\fR" 4
  22312. .IX Item "-mcmodel=medany"
  22313. Generate code for the medium-any code model. The program and its statically
  22314. defined symbols must be within any single 2 GiB address range. Programs can be
  22315. statically or dynamically linked.
  22316. .IP "\fB\-mexplicit\-relocs\fR" 4
  22317. .IX Item "-mexplicit-relocs"
  22318. .PD 0
  22319. .IP "\fB\-mno\-exlicit\-relocs\fR" 4
  22320. .IX Item "-mno-exlicit-relocs"
  22321. .PD
  22322. Use or do not use assembler relocation operators when dealing with symbolic
  22323. addresses. The alternative is to use assembler macros instead, which may
  22324. limit optimization.
  22325. .IP "\fB\-mrelax\fR" 4
  22326. .IX Item "-mrelax"
  22327. .PD 0
  22328. .IP "\fB\-mno\-relax\fR" 4
  22329. .IX Item "-mno-relax"
  22330. .PD
  22331. Take advantage of linker relaxations to reduce the number of instructions
  22332. required to materialize symbol addresses. The default is to take advantage of
  22333. linker relaxations.
  22334. .IP "\fB\-memit\-attribute\fR" 4
  22335. .IX Item "-memit-attribute"
  22336. .PD 0
  22337. .IP "\fB\-mno\-emit\-attribute\fR" 4
  22338. .IX Item "-mno-emit-attribute"
  22339. .PD
  22340. Emit (do not emit) RISC-V attribute to record extra information into \s-1ELF\s0
  22341. objects. This feature requires at least binutils 2.32.
  22342. .IP "\fB\-malign\-data=\fR\fItype\fR" 4
  22343. .IX Item "-malign-data=type"
  22344. Control how \s-1GCC\s0 aligns variables and constants of array, structure, or union
  22345. types. Supported values for \fItype\fR are \fBxlen\fR which uses x register
  22346. width as the alignment value, and \fBnatural\fR which uses natural alignment.
  22347. \&\fBxlen\fR is the default.
  22348. .PP
  22349. \fI\s-1RL78\s0 Options\fR
  22350. .IX Subsection "RL78 Options"
  22351. .IP "\fB\-msim\fR" 4
  22352. .IX Item "-msim"
  22353. Links in additional target libraries to support operation within a
  22354. simulator.
  22355. .IP "\fB\-mmul=none\fR" 4
  22356. .IX Item "-mmul=none"
  22357. .PD 0
  22358. .IP "\fB\-mmul=g10\fR" 4
  22359. .IX Item "-mmul=g10"
  22360. .IP "\fB\-mmul=g13\fR" 4
  22361. .IX Item "-mmul=g13"
  22362. .IP "\fB\-mmul=g14\fR" 4
  22363. .IX Item "-mmul=g14"
  22364. .IP "\fB\-mmul=rl78\fR" 4
  22365. .IX Item "-mmul=rl78"
  22366. .PD
  22367. Specifies the type of hardware multiplication and division support to
  22368. be used. The simplest is \f(CW\*(C`none\*(C'\fR, which uses software for both
  22369. multiplication and division. This is the default. The \f(CW\*(C`g13\*(C'\fR
  22370. value is for the hardware multiply/divide peripheral found on the
  22371. \&\s-1RL78/G13\s0 (S2 core) targets. The \f(CW\*(C`g14\*(C'\fR value selects the use of
  22372. the multiplication and division instructions supported by the \s-1RL78/G14\s0
  22373. (S3 core) parts. The value \f(CW\*(C`rl78\*(C'\fR is an alias for \f(CW\*(C`g14\*(C'\fR and
  22374. the value \f(CW\*(C`mg10\*(C'\fR is an alias for \f(CW\*(C`none\*(C'\fR.
  22375. .Sp
  22376. In addition a C preprocessor macro is defined, based upon the setting
  22377. of this option. Possible values are: \f(CW\*(C`_\|_RL78_MUL_NONE_\|_\*(C'\fR,
  22378. \&\f(CW\*(C`_\|_RL78_MUL_G13_\|_\*(C'\fR or \f(CW\*(C`_\|_RL78_MUL_G14_\|_\*(C'\fR.
  22379. .IP "\fB\-mcpu=g10\fR" 4
  22380. .IX Item "-mcpu=g10"
  22381. .PD 0
  22382. .IP "\fB\-mcpu=g13\fR" 4
  22383. .IX Item "-mcpu=g13"
  22384. .IP "\fB\-mcpu=g14\fR" 4
  22385. .IX Item "-mcpu=g14"
  22386. .IP "\fB\-mcpu=rl78\fR" 4
  22387. .IX Item "-mcpu=rl78"
  22388. .PD
  22389. Specifies the \s-1RL78\s0 core to target. The default is the G14 core, also
  22390. known as an S3 core or just \s-1RL78.\s0 The G13 or S2 core does not have
  22391. multiply or divide instructions, instead it uses a hardware peripheral
  22392. for these operations. The G10 or S1 core does not have register
  22393. banks, so it uses a different calling convention.
  22394. .Sp
  22395. If this option is set it also selects the type of hardware multiply
  22396. support to use, unless this is overridden by an explicit
  22397. \&\fB\-mmul=none\fR option on the command line. Thus specifying
  22398. \&\fB\-mcpu=g13\fR enables the use of the G13 hardware multiply
  22399. peripheral and specifying \fB\-mcpu=g10\fR disables the use of
  22400. hardware multiplications altogether.
  22401. .Sp
  22402. Note, although the \s-1RL78/G14\s0 core is the default target, specifying
  22403. \&\fB\-mcpu=g14\fR or \fB\-mcpu=rl78\fR on the command line does
  22404. change the behavior of the toolchain since it also enables G14
  22405. hardware multiply support. If these options are not specified on the
  22406. command line then software multiplication routines will be used even
  22407. though the code targets the \s-1RL78\s0 core. This is for backwards
  22408. compatibility with older toolchains which did not have hardware
  22409. multiply and divide support.
  22410. .Sp
  22411. In addition a C preprocessor macro is defined, based upon the setting
  22412. of this option. Possible values are: \f(CW\*(C`_\|_RL78_G10_\|_\*(C'\fR,
  22413. \&\f(CW\*(C`_\|_RL78_G13_\|_\*(C'\fR or \f(CW\*(C`_\|_RL78_G14_\|_\*(C'\fR.
  22414. .IP "\fB\-mg10\fR" 4
  22415. .IX Item "-mg10"
  22416. .PD 0
  22417. .IP "\fB\-mg13\fR" 4
  22418. .IX Item "-mg13"
  22419. .IP "\fB\-mg14\fR" 4
  22420. .IX Item "-mg14"
  22421. .IP "\fB\-mrl78\fR" 4
  22422. .IX Item "-mrl78"
  22423. .PD
  22424. These are aliases for the corresponding \fB\-mcpu=\fR option. They
  22425. are provided for backwards compatibility.
  22426. .IP "\fB\-mallregs\fR" 4
  22427. .IX Item "-mallregs"
  22428. Allow the compiler to use all of the available registers. By default
  22429. registers \f(CW\*(C`r24..r31\*(C'\fR are reserved for use in interrupt handlers.
  22430. With this option enabled these registers can be used in ordinary
  22431. functions as well.
  22432. .IP "\fB\-m64bit\-doubles\fR" 4
  22433. .IX Item "-m64bit-doubles"
  22434. .PD 0
  22435. .IP "\fB\-m32bit\-doubles\fR" 4
  22436. .IX Item "-m32bit-doubles"
  22437. .PD
  22438. Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
  22439. or 32 bits (\fB\-m32bit\-doubles\fR) in size. The default is
  22440. \&\fB\-m32bit\-doubles\fR.
  22441. .IP "\fB\-msave\-mduc\-in\-interrupts\fR" 4
  22442. .IX Item "-msave-mduc-in-interrupts"
  22443. .PD 0
  22444. .IP "\fB\-mno\-save\-mduc\-in\-interrupts\fR" 4
  22445. .IX Item "-mno-save-mduc-in-interrupts"
  22446. .PD
  22447. Specifies that interrupt handler functions should preserve the
  22448. \&\s-1MDUC\s0 registers. This is only necessary if normal code might use
  22449. the \s-1MDUC\s0 registers, for example because it performs multiplication
  22450. and division operations. The default is to ignore the \s-1MDUC\s0 registers
  22451. as this makes the interrupt handlers faster. The target option \-mg13
  22452. needs to be passed for this to work as this feature is only available
  22453. on the G13 target (S2 core). The \s-1MDUC\s0 registers will only be saved
  22454. if the interrupt handler performs a multiplication or division
  22455. operation or it calls another function.
  22456. .PP
  22457. \fI\s-1IBM RS/6000\s0 and PowerPC Options\fR
  22458. .IX Subsection "IBM RS/6000 and PowerPC Options"
  22459. .PP
  22460. These \fB\-m\fR options are defined for the \s-1IBM RS/6000\s0 and PowerPC:
  22461. .IP "\fB\-mpowerpc\-gpopt\fR" 4
  22462. .IX Item "-mpowerpc-gpopt"
  22463. .PD 0
  22464. .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
  22465. .IX Item "-mno-powerpc-gpopt"
  22466. .IP "\fB\-mpowerpc\-gfxopt\fR" 4
  22467. .IX Item "-mpowerpc-gfxopt"
  22468. .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
  22469. .IX Item "-mno-powerpc-gfxopt"
  22470. .IP "\fB\-mpowerpc64\fR" 4
  22471. .IX Item "-mpowerpc64"
  22472. .IP "\fB\-mno\-powerpc64\fR" 4
  22473. .IX Item "-mno-powerpc64"
  22474. .IP "\fB\-mmfcrf\fR" 4
  22475. .IX Item "-mmfcrf"
  22476. .IP "\fB\-mno\-mfcrf\fR" 4
  22477. .IX Item "-mno-mfcrf"
  22478. .IP "\fB\-mpopcntb\fR" 4
  22479. .IX Item "-mpopcntb"
  22480. .IP "\fB\-mno\-popcntb\fR" 4
  22481. .IX Item "-mno-popcntb"
  22482. .IP "\fB\-mpopcntd\fR" 4
  22483. .IX Item "-mpopcntd"
  22484. .IP "\fB\-mno\-popcntd\fR" 4
  22485. .IX Item "-mno-popcntd"
  22486. .IP "\fB\-mfprnd\fR" 4
  22487. .IX Item "-mfprnd"
  22488. .IP "\fB\-mno\-fprnd\fR" 4
  22489. .IX Item "-mno-fprnd"
  22490. .IP "\fB\-mcmpb\fR" 4
  22491. .IX Item "-mcmpb"
  22492. .IP "\fB\-mno\-cmpb\fR" 4
  22493. .IX Item "-mno-cmpb"
  22494. .IP "\fB\-mmfpgpr\fR" 4
  22495. .IX Item "-mmfpgpr"
  22496. .IP "\fB\-mno\-mfpgpr\fR" 4
  22497. .IX Item "-mno-mfpgpr"
  22498. .IP "\fB\-mhard\-dfp\fR" 4
  22499. .IX Item "-mhard-dfp"
  22500. .IP "\fB\-mno\-hard\-dfp\fR" 4
  22501. .IX Item "-mno-hard-dfp"
  22502. .PD
  22503. You use these options to specify which instructions are available on the
  22504. processor you are using. The default value of these options is
  22505. determined when configuring \s-1GCC.\s0 Specifying the
  22506. \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
  22507. options. We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
  22508. rather than the options listed above.
  22509. .Sp
  22510. Specifying \fB\-mpowerpc\-gpopt\fR allows
  22511. \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
  22512. General Purpose group, including floating-point square root. Specifying
  22513. \&\fB\-mpowerpc\-gfxopt\fR allows \s-1GCC\s0 to
  22514. use the optional PowerPC architecture instructions in the Graphics
  22515. group, including floating-point select.
  22516. .Sp
  22517. The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
  22518. condition register field instruction implemented on the \s-1POWER4\s0
  22519. processor and other processors that support the PowerPC V2.01
  22520. architecture.
  22521. The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
  22522. double-precision \s-1FP\s0 reciprocal estimate instruction implemented on the
  22523. \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
  22524. architecture.
  22525. The \fB\-mpopcntd\fR option allows \s-1GCC\s0 to generate the popcount
  22526. instruction implemented on the \s-1POWER7\s0 processor and other processors
  22527. that support the PowerPC V2.06 architecture.
  22528. The \fB\-mfprnd\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 round to
  22529. integer instructions implemented on the \s-1POWER5+\s0 processor and other
  22530. processors that support the PowerPC V2.03 architecture.
  22531. The \fB\-mcmpb\fR option allows \s-1GCC\s0 to generate the compare bytes
  22532. instruction implemented on the \s-1POWER6\s0 processor and other processors
  22533. that support the PowerPC V2.05 architecture.
  22534. The \fB\-mmfpgpr\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 move to/from
  22535. general-purpose register instructions implemented on the \s-1POWER6X\s0
  22536. processor and other processors that support the extended PowerPC V2.05
  22537. architecture.
  22538. The \fB\-mhard\-dfp\fR option allows \s-1GCC\s0 to generate the decimal
  22539. floating-point instructions implemented on some \s-1POWER\s0 processors.
  22540. .Sp
  22541. The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
  22542. 64\-bit instructions that are found in the full PowerPC64 architecture
  22543. and to treat GPRs as 64\-bit, doubleword quantities. \s-1GCC\s0 defaults to
  22544. \&\fB\-mno\-powerpc64\fR.
  22545. .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
  22546. .IX Item "-mcpu=cpu_type"
  22547. Set architecture type, register usage, and
  22548. instruction scheduling parameters for machine type \fIcpu_type\fR.
  22549. Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
  22550. \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB464\fR, \fB464fp\fR,
  22551. \&\fB476\fR, \fB476fp\fR, \fB505\fR, \fB601\fR, \fB602\fR, \fB603\fR,
  22552. \&\fB603e\fR, \fB604\fR, \fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR,
  22553. \&\fB7400\fR, \fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
  22554. \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBa2\fR, \fBe300c2\fR,
  22555. \&\fBe300c3\fR, \fBe500mc\fR, \fBe500mc64\fR, \fBe5500\fR,
  22556. \&\fBe6500\fR, \fBec603e\fR, \fBG3\fR, \fBG4\fR, \fBG5\fR,
  22557. \&\fBtitan\fR, \fBpower3\fR, \fBpower4\fR, \fBpower5\fR, \fBpower5+\fR,
  22558. \&\fBpower6\fR, \fBpower6x\fR, \fBpower7\fR, \fBpower8\fR,
  22559. \&\fBpower9\fR, \fBpowerpc\fR, \fBpowerpc64\fR, \fBpowerpc64le\fR,
  22560. \&\fBrs64\fR, and \fBnative\fR.
  22561. .Sp
  22562. \&\fB\-mcpu=powerpc\fR, \fB\-mcpu=powerpc64\fR, and
  22563. \&\fB\-mcpu=powerpc64le\fR specify pure 32\-bit PowerPC (either
  22564. endian), 64\-bit big endian PowerPC and 64\-bit little endian PowerPC
  22565. architecture machine types, with an appropriate, generic processor
  22566. model assumed for scheduling purposes.
  22567. .Sp
  22568. Specifying \fBnative\fR as cpu type detects and selects the
  22569. architecture option that corresponds to the host processor of the
  22570. system performing the compilation.
  22571. \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize the
  22572. processor.
  22573. .Sp
  22574. The other options specify a specific processor. Code generated under
  22575. those options runs best on that processor, and may not run at all on
  22576. others.
  22577. .Sp
  22578. The \fB\-mcpu\fR options automatically enable or disable the
  22579. following options:
  22580. .Sp
  22581. \&\fB\-maltivec \-mfprnd \-mhard\-float \-mmfcrf \-mmultiple
  22582. \&\-mpopcntb \-mpopcntd \-mpowerpc64
  22583. \&\-mpowerpc\-gpopt \-mpowerpc\-gfxopt \-msingle\-float \-mdouble\-float
  22584. \&\-msimple\-fpu \-mmulhw \-mdlmzb \-mmfpgpr \-mvsx
  22585. \&\-mcrypto \-mhtm \-mpower8\-fusion \-mpower8\-vector
  22586. \&\-mquad\-memory \-mquad\-memory\-atomic \-mfloat128 \-mfloat128\-hardware\fR
  22587. .Sp
  22588. The particular options set for any particular \s-1CPU\s0 varies between
  22589. compiler versions, depending on what setting seems to produce optimal
  22590. code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
  22591. capabilities. If you wish to set an individual option to a particular
  22592. value, you may specify it after the \fB\-mcpu\fR option, like
  22593. \&\fB\-mcpu=970 \-mno\-altivec\fR.
  22594. .Sp
  22595. On \s-1AIX,\s0 the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
  22596. not enabled or disabled by the \fB\-mcpu\fR option at present because
  22597. \&\s-1AIX\s0 does not have full support for these options. You may still
  22598. enable or disable them individually if you're sure it'll work in your
  22599. environment.
  22600. .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
  22601. .IX Item "-mtune=cpu_type"
  22602. Set the instruction scheduling parameters for machine type
  22603. \&\fIcpu_type\fR, but do not set the architecture type or register usage,
  22604. as \fB\-mcpu=\fR\fIcpu_type\fR does. The same
  22605. values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
  22606. \&\fB\-mcpu\fR. If both are specified, the code generated uses the
  22607. architecture and registers set by \fB\-mcpu\fR, but the
  22608. scheduling parameters set by \fB\-mtune\fR.
  22609. .IP "\fB\-mcmodel=small\fR" 4
  22610. .IX Item "-mcmodel=small"
  22611. Generate PowerPC64 code for the small model: The \s-1TOC\s0 is limited to
  22612. 64k.
  22613. .IP "\fB\-mcmodel=medium\fR" 4
  22614. .IX Item "-mcmodel=medium"
  22615. Generate PowerPC64 code for the medium model: The \s-1TOC\s0 and other static
  22616. data may be up to a total of 4G in size. This is the default for 64\-bit
  22617. Linux.
  22618. .IP "\fB\-mcmodel=large\fR" 4
  22619. .IX Item "-mcmodel=large"
  22620. Generate PowerPC64 code for the large model: The \s-1TOC\s0 may be up to 4G
  22621. in size. Other data and code is only limited by the 64\-bit address
  22622. space.
  22623. .IP "\fB\-maltivec\fR" 4
  22624. .IX Item "-maltivec"
  22625. .PD 0
  22626. .IP "\fB\-mno\-altivec\fR" 4
  22627. .IX Item "-mno-altivec"
  22628. .PD
  22629. Generate code that uses (does not use) AltiVec instructions, and also
  22630. enable the use of built-in functions that allow more direct access to
  22631. the AltiVec instruction set. You may also need to set
  22632. \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
  22633. enhancements.
  22634. .Sp
  22635. When \fB\-maltivec\fR is used, rather than \fB\-maltivec=le\fR or
  22636. \&\fB\-maltivec=be\fR, the element order for AltiVec intrinsics such
  22637. as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and \f(CW\*(C`vec_insert\*(C'\fR
  22638. match array element order corresponding to the endianness of the
  22639. target. That is, element zero identifies the leftmost element in a
  22640. vector register when targeting a big-endian platform, and identifies
  22641. the rightmost element in a vector register when targeting a
  22642. little-endian platform.
  22643. .IP "\fB\-maltivec=be\fR" 4
  22644. .IX Item "-maltivec=be"
  22645. Generate AltiVec instructions using big-endian element order,
  22646. regardless of whether the target is big\- or little-endian. This is
  22647. the default when targeting a big-endian platform. Using this option
  22648. is currently deprecated. Support for this feature will be removed in
  22649. \&\s-1GCC 9.\s0
  22650. .Sp
  22651. The element order is used to interpret element numbers in AltiVec
  22652. intrinsics such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and
  22653. \&\f(CW\*(C`vec_insert\*(C'\fR. By default, these match array element order
  22654. corresponding to the endianness for the target.
  22655. .IP "\fB\-maltivec=le\fR" 4
  22656. .IX Item "-maltivec=le"
  22657. Generate AltiVec instructions using little-endian element order,
  22658. regardless of whether the target is big\- or little-endian. This is
  22659. the default when targeting a little-endian platform. This option is
  22660. currently ignored when targeting a big-endian platform.
  22661. .Sp
  22662. The element order is used to interpret element numbers in AltiVec
  22663. intrinsics such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and
  22664. \&\f(CW\*(C`vec_insert\*(C'\fR. By default, these match array element order
  22665. corresponding to the endianness for the target.
  22666. .IP "\fB\-mvrsave\fR" 4
  22667. .IX Item "-mvrsave"
  22668. .PD 0
  22669. .IP "\fB\-mno\-vrsave\fR" 4
  22670. .IX Item "-mno-vrsave"
  22671. .PD
  22672. Generate \s-1VRSAVE\s0 instructions when generating AltiVec code.
  22673. .IP "\fB\-msecure\-plt\fR" 4
  22674. .IX Item "-msecure-plt"
  22675. Generate code that allows \fBld\fR and \fBld.so\fR
  22676. to build executables and shared
  22677. libraries with non-executable \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR sections.
  22678. This is a PowerPC
  22679. 32\-bit \s-1SYSV ABI\s0 option.
  22680. .IP "\fB\-mbss\-plt\fR" 4
  22681. .IX Item "-mbss-plt"
  22682. Generate code that uses a \s-1BSS\s0 \f(CW\*(C`.plt\*(C'\fR section that \fBld.so\fR
  22683. fills in, and
  22684. requires \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR
  22685. sections that are both writable and executable.
  22686. This is a PowerPC 32\-bit \s-1SYSV ABI\s0 option.
  22687. .IP "\fB\-misel\fR" 4
  22688. .IX Item "-misel"
  22689. .PD 0
  22690. .IP "\fB\-mno\-isel\fR" 4
  22691. .IX Item "-mno-isel"
  22692. .PD
  22693. This switch enables or disables the generation of \s-1ISEL\s0 instructions.
  22694. .IP "\fB\-misel=\fR\fIyes/no\fR" 4
  22695. .IX Item "-misel=yes/no"
  22696. This switch has been deprecated. Use \fB\-misel\fR and
  22697. \&\fB\-mno\-isel\fR instead.
  22698. .IP "\fB\-mpaired\fR" 4
  22699. .IX Item "-mpaired"
  22700. .PD 0
  22701. .IP "\fB\-mno\-paired\fR" 4
  22702. .IX Item "-mno-paired"
  22703. .PD
  22704. This switch enables or disables the generation of \s-1PAIRED\s0 simd
  22705. instructions.
  22706. .IP "\fB\-mvsx\fR" 4
  22707. .IX Item "-mvsx"
  22708. .PD 0
  22709. .IP "\fB\-mno\-vsx\fR" 4
  22710. .IX Item "-mno-vsx"
  22711. .PD
  22712. Generate code that uses (does not use) vector/scalar (\s-1VSX\s0)
  22713. instructions, and also enable the use of built-in functions that allow
  22714. more direct access to the \s-1VSX\s0 instruction set.
  22715. .IP "\fB\-mcrypto\fR" 4
  22716. .IX Item "-mcrypto"
  22717. .PD 0
  22718. .IP "\fB\-mno\-crypto\fR" 4
  22719. .IX Item "-mno-crypto"
  22720. .PD
  22721. Enable the use (disable) of the built-in functions that allow direct
  22722. access to the cryptographic instructions that were added in version
  22723. 2.07 of the PowerPC \s-1ISA.\s0
  22724. .IP "\fB\-mhtm\fR" 4
  22725. .IX Item "-mhtm"
  22726. .PD 0
  22727. .IP "\fB\-mno\-htm\fR" 4
  22728. .IX Item "-mno-htm"
  22729. .PD
  22730. Enable (disable) the use of the built-in functions that allow direct
  22731. access to the Hardware Transactional Memory (\s-1HTM\s0) instructions that
  22732. were added in version 2.07 of the PowerPC \s-1ISA.\s0
  22733. .IP "\fB\-mpower8\-fusion\fR" 4
  22734. .IX Item "-mpower8-fusion"
  22735. .PD 0
  22736. .IP "\fB\-mno\-power8\-fusion\fR" 4
  22737. .IX Item "-mno-power8-fusion"
  22738. .PD
  22739. Generate code that keeps (does not keeps) some integer operations
  22740. adjacent so that the instructions can be fused together on power8 and
  22741. later processors.
  22742. .IP "\fB\-mpower8\-vector\fR" 4
  22743. .IX Item "-mpower8-vector"
  22744. .PD 0
  22745. .IP "\fB\-mno\-power8\-vector\fR" 4
  22746. .IX Item "-mno-power8-vector"
  22747. .PD
  22748. Generate code that uses (does not use) the vector and scalar
  22749. instructions that were added in version 2.07 of the PowerPC \s-1ISA.\s0 Also
  22750. enable the use of built-in functions that allow more direct access to
  22751. the vector instructions.
  22752. .IP "\fB\-mquad\-memory\fR" 4
  22753. .IX Item "-mquad-memory"
  22754. .PD 0
  22755. .IP "\fB\-mno\-quad\-memory\fR" 4
  22756. .IX Item "-mno-quad-memory"
  22757. .PD
  22758. Generate code that uses (does not use) the non-atomic quad word memory
  22759. instructions. The \fB\-mquad\-memory\fR option requires use of
  22760. 64\-bit mode.
  22761. .IP "\fB\-mquad\-memory\-atomic\fR" 4
  22762. .IX Item "-mquad-memory-atomic"
  22763. .PD 0
  22764. .IP "\fB\-mno\-quad\-memory\-atomic\fR" 4
  22765. .IX Item "-mno-quad-memory-atomic"
  22766. .PD
  22767. Generate code that uses (does not use) the atomic quad word memory
  22768. instructions. The \fB\-mquad\-memory\-atomic\fR option requires use of
  22769. 64\-bit mode.
  22770. .IP "\fB\-mfloat128\fR" 4
  22771. .IX Item "-mfloat128"
  22772. .PD 0
  22773. .IP "\fB\-mno\-float128\fR" 4
  22774. .IX Item "-mno-float128"
  22775. .PD
  22776. Enable/disable the \fI_\|_float128\fR keyword for \s-1IEEE\s0 128\-bit floating point
  22777. and use either software emulation for \s-1IEEE\s0 128\-bit floating point or
  22778. hardware instructions.
  22779. .Sp
  22780. The \s-1VSX\s0 instruction set (\fB\-mvsx\fR, \fB\-mcpu=power7\fR,
  22781. \&\fB\-mcpu=power8\fR), or \fB\-mcpu=power9\fR must be enabled to
  22782. use the \s-1IEEE\s0 128\-bit floating point support. The \s-1IEEE\s0 128\-bit
  22783. floating point support only works on PowerPC Linux systems.
  22784. .Sp
  22785. The default for \fB\-mfloat128\fR is enabled on PowerPC Linux
  22786. systems using the \s-1VSX\s0 instruction set, and disabled on other systems.
  22787. .Sp
  22788. If you use the \s-1ISA 3.0\s0 instruction set (\fB\-mpower9\-vector\fR or
  22789. \&\fB\-mcpu=power9\fR) on a 64\-bit system, the \s-1IEEE\s0 128\-bit floating
  22790. point support will also enable the generation of \s-1ISA 3.0 IEEE\s0 128\-bit
  22791. floating point instructions. Otherwise, if you do not specify to
  22792. generate \s-1ISA 3.0\s0 instructions or you are targeting a 32\-bit big endian
  22793. system, \s-1IEEE\s0 128\-bit floating point will be done with software
  22794. emulation.
  22795. .IP "\fB\-mfloat128\-hardware\fR" 4
  22796. .IX Item "-mfloat128-hardware"
  22797. .PD 0
  22798. .IP "\fB\-mno\-float128\-hardware\fR" 4
  22799. .IX Item "-mno-float128-hardware"
  22800. .PD
  22801. Enable/disable using \s-1ISA 3.0\s0 hardware instructions to support the
  22802. \&\fI_\|_float128\fR data type.
  22803. .Sp
  22804. The default for \fB\-mfloat128\-hardware\fR is enabled on PowerPC
  22805. Linux systems using the \s-1ISA 3.0\s0 instruction set, and disabled on other
  22806. systems.
  22807. .IP "\fB\-m32\fR" 4
  22808. .IX Item "-m32"
  22809. .PD 0
  22810. .IP "\fB\-m64\fR" 4
  22811. .IX Item "-m64"
  22812. .PD
  22813. Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
  22814. targets (including GNU/Linux). The 32\-bit environment sets int, long
  22815. and pointer to 32 bits and generates code that runs on any PowerPC
  22816. variant. The 64\-bit environment sets int to 32 bits and long and
  22817. pointer to 64 bits, and generates code for PowerPC64, as for
  22818. \&\fB\-mpowerpc64\fR.
  22819. .IP "\fB\-mfull\-toc\fR" 4
  22820. .IX Item "-mfull-toc"
  22821. .PD 0
  22822. .IP "\fB\-mno\-fp\-in\-toc\fR" 4
  22823. .IX Item "-mno-fp-in-toc"
  22824. .IP "\fB\-mno\-sum\-in\-toc\fR" 4
  22825. .IX Item "-mno-sum-in-toc"
  22826. .IP "\fB\-mminimal\-toc\fR" 4
  22827. .IX Item "-mminimal-toc"
  22828. .PD
  22829. Modify generation of the \s-1TOC\s0 (Table Of Contents), which is created for
  22830. every executable file. The \fB\-mfull\-toc\fR option is selected by
  22831. default. In that case, \s-1GCC\s0 allocates at least one \s-1TOC\s0 entry for
  22832. each unique non-automatic variable reference in your program. \s-1GCC\s0
  22833. also places floating-point constants in the \s-1TOC.\s0 However, only
  22834. 16,384 entries are available in the \s-1TOC.\s0
  22835. .Sp
  22836. If you receive a linker error message that saying you have overflowed
  22837. the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
  22838. with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
  22839. \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
  22840. constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
  22841. generate code to calculate the sum of an address and a constant at
  22842. run time instead of putting that sum into the \s-1TOC.\s0 You may specify one
  22843. or both of these options. Each causes \s-1GCC\s0 to produce very slightly
  22844. slower and larger code at the expense of conserving \s-1TOC\s0 space.
  22845. .Sp
  22846. If you still run out of space in the \s-1TOC\s0 even when you specify both of
  22847. these options, specify \fB\-mminimal\-toc\fR instead. This option causes
  22848. \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file. When you specify this
  22849. option, \s-1GCC\s0 produces code that is slower and larger but which
  22850. uses extremely little \s-1TOC\s0 space. You may wish to use this option
  22851. only on files that contain less frequently-executed code.
  22852. .IP "\fB\-maix64\fR" 4
  22853. .IX Item "-maix64"
  22854. .PD 0
  22855. .IP "\fB\-maix32\fR" 4
  22856. .IX Item "-maix32"
  22857. .PD
  22858. Enable 64\-bit \s-1AIX ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
  22859. \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
  22860. Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR,
  22861. while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
  22862. implies \fB\-mno\-powerpc64\fR. \s-1GCC\s0 defaults to \fB\-maix32\fR.
  22863. .IP "\fB\-mxl\-compat\fR" 4
  22864. .IX Item "-mxl-compat"
  22865. .PD 0
  22866. .IP "\fB\-mno\-xl\-compat\fR" 4
  22867. .IX Item "-mno-xl-compat"
  22868. .PD
  22869. Produce code that conforms more closely to \s-1IBM XL\s0 compiler semantics
  22870. when using AIX-compatible \s-1ABI.\s0 Pass floating-point arguments to
  22871. prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
  22872. in addition to argument FPRs. Do not assume that most significant
  22873. double in 128\-bit long double value is properly rounded when comparing
  22874. values and converting to double. Use \s-1XL\s0 symbol names for long double
  22875. support routines.
  22876. .Sp
  22877. The \s-1AIX\s0 calling convention was extended but not initially documented to
  22878. handle an obscure K&R C case of calling a function that takes the
  22879. address of its arguments with fewer arguments than declared. \s-1IBM XL\s0
  22880. compilers access floating-point arguments that do not fit in the
  22881. \&\s-1RSA\s0 from the stack when a subroutine is compiled without
  22882. optimization. Because always storing floating-point arguments on the
  22883. stack is inefficient and rarely needed, this option is not enabled by
  22884. default and only is necessary when calling subroutines compiled by \s-1IBM
  22885. XL\s0 compilers without optimization.
  22886. .IP "\fB\-mpe\fR" 4
  22887. .IX Item "-mpe"
  22888. Support \fI\s-1IBM RS/6000 SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0). Link an
  22889. application written to use message passing with special startup code to
  22890. enable the application to run. The system must have \s-1PE\s0 installed in the
  22891. standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
  22892. must be overridden with the \fB\-specs=\fR option to specify the
  22893. appropriate directory location. The Parallel Environment does not
  22894. support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
  22895. option are incompatible.
  22896. .IP "\fB\-malign\-natural\fR" 4
  22897. .IX Item "-malign-natural"
  22898. .PD 0
  22899. .IP "\fB\-malign\-power\fR" 4
  22900. .IX Item "-malign-power"
  22901. .PD
  22902. On \s-1AIX,\s0 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
  22903. \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
  22904. types, such as floating-point doubles, on their natural size-based boundary.
  22905. The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
  22906. alignment rules. \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI.\s0
  22907. .Sp
  22908. On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
  22909. is not supported.
  22910. .IP "\fB\-msoft\-float\fR" 4
  22911. .IX Item "-msoft-float"
  22912. .PD 0
  22913. .IP "\fB\-mhard\-float\fR" 4
  22914. .IX Item "-mhard-float"
  22915. .PD
  22916. Generate code that does not use (uses) the floating-point register set.
  22917. Software floating-point emulation is provided if you use the
  22918. \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
  22919. .IP "\fB\-msingle\-float\fR" 4
  22920. .IX Item "-msingle-float"
  22921. .PD 0
  22922. .IP "\fB\-mdouble\-float\fR" 4
  22923. .IX Item "-mdouble-float"
  22924. .PD
  22925. Generate code for single\- or double-precision floating-point operations.
  22926. \&\fB\-mdouble\-float\fR implies \fB\-msingle\-float\fR.
  22927. .IP "\fB\-msimple\-fpu\fR" 4
  22928. .IX Item "-msimple-fpu"
  22929. Do not generate \f(CW\*(C`sqrt\*(C'\fR and \f(CW\*(C`div\*(C'\fR instructions for hardware
  22930. floating-point unit.
  22931. .IP "\fB\-mfpu=\fR\fIname\fR" 4
  22932. .IX Item "-mfpu=name"
  22933. Specify type of floating-point unit. Valid values for \fIname\fR are
  22934. \&\fBsp_lite\fR (equivalent to \fB\-msingle\-float \-msimple\-fpu\fR),
  22935. \&\fBdp_lite\fR (equivalent to \fB\-mdouble\-float \-msimple\-fpu\fR),
  22936. \&\fBsp_full\fR (equivalent to \fB\-msingle\-float\fR),
  22937. and \fBdp_full\fR (equivalent to \fB\-mdouble\-float\fR).
  22938. .IP "\fB\-mxilinx\-fpu\fR" 4
  22939. .IX Item "-mxilinx-fpu"
  22940. Perform optimizations for the floating-point unit on Xilinx \s-1PPC 405/440.\s0
  22941. .IP "\fB\-mmultiple\fR" 4
  22942. .IX Item "-mmultiple"
  22943. .PD 0
  22944. .IP "\fB\-mno\-multiple\fR" 4
  22945. .IX Item "-mno-multiple"
  22946. .PD
  22947. Generate code that uses (does not use) the load multiple word
  22948. instructions and the store multiple word instructions. These
  22949. instructions are generated by default on \s-1POWER\s0 systems, and not
  22950. generated on PowerPC systems. Do not use \fB\-mmultiple\fR on little-endian
  22951. PowerPC systems, since those instructions do not work when the
  22952. processor is in little-endian mode. The exceptions are \s-1PPC740\s0 and
  22953. \&\s-1PPC750\s0 which permit these instructions in little-endian mode.
  22954. .IP "\fB\-mupdate\fR" 4
  22955. .IX Item "-mupdate"
  22956. .PD 0
  22957. .IP "\fB\-mno\-update\fR" 4
  22958. .IX Item "-mno-update"
  22959. .PD
  22960. Generate code that uses (does not use) the load or store instructions
  22961. that update the base register to the address of the calculated memory
  22962. location. These instructions are generated by default. If you use
  22963. \&\fB\-mno\-update\fR, there is a small window between the time that the
  22964. stack pointer is updated and the address of the previous frame is
  22965. stored, which means code that walks the stack frame across interrupts or
  22966. signals may get corrupted data.
  22967. .IP "\fB\-mavoid\-indexed\-addresses\fR" 4
  22968. .IX Item "-mavoid-indexed-addresses"
  22969. .PD 0
  22970. .IP "\fB\-mno\-avoid\-indexed\-addresses\fR" 4
  22971. .IX Item "-mno-avoid-indexed-addresses"
  22972. .PD
  22973. Generate code that tries to avoid (not avoid) the use of indexed load
  22974. or store instructions. These instructions can incur a performance
  22975. penalty on Power6 processors in certain situations, such as when
  22976. stepping through large arrays that cross a 16M boundary. This option
  22977. is enabled by default when targeting Power6 and disabled otherwise.
  22978. .IP "\fB\-mfused\-madd\fR" 4
  22979. .IX Item "-mfused-madd"
  22980. .PD 0
  22981. .IP "\fB\-mno\-fused\-madd\fR" 4
  22982. .IX Item "-mno-fused-madd"
  22983. .PD
  22984. Generate code that uses (does not use) the floating-point multiply and
  22985. accumulate instructions. These instructions are generated by default
  22986. if hardware floating point is used. The machine-dependent
  22987. \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
  22988. \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
  22989. mapped to \fB\-ffp\-contract=off\fR.
  22990. .IP "\fB\-mmulhw\fR" 4
  22991. .IX Item "-mmulhw"
  22992. .PD 0
  22993. .IP "\fB\-mno\-mulhw\fR" 4
  22994. .IX Item "-mno-mulhw"
  22995. .PD
  22996. Generate code that uses (does not use) the half-word multiply and
  22997. multiply-accumulate instructions on the \s-1IBM 405, 440, 464\s0 and 476 processors.
  22998. These instructions are generated by default when targeting those
  22999. processors.
  23000. .IP "\fB\-mdlmzb\fR" 4
  23001. .IX Item "-mdlmzb"
  23002. .PD 0
  23003. .IP "\fB\-mno\-dlmzb\fR" 4
  23004. .IX Item "-mno-dlmzb"
  23005. .PD
  23006. Generate code that uses (does not use) the string-search \fBdlmzb\fR
  23007. instruction on the \s-1IBM 405, 440, 464\s0 and 476 processors. This instruction is
  23008. generated by default when targeting those processors.
  23009. .IP "\fB\-mno\-bit\-align\fR" 4
  23010. .IX Item "-mno-bit-align"
  23011. .PD 0
  23012. .IP "\fB\-mbit\-align\fR" 4
  23013. .IX Item "-mbit-align"
  23014. .PD
  23015. On System V.4 and embedded PowerPC systems do not (do) force structures
  23016. and unions that contain bit-fields to be aligned to the base type of the
  23017. bit-field.
  23018. .Sp
  23019. For example, by default a structure containing nothing but 8
  23020. \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 is aligned to a 4\-byte
  23021. boundary and has a size of 4 bytes. By using \fB\-mno\-bit\-align\fR,
  23022. the structure is aligned to a 1\-byte boundary and is 1 byte in
  23023. size.
  23024. .IP "\fB\-mno\-strict\-align\fR" 4
  23025. .IX Item "-mno-strict-align"
  23026. .PD 0
  23027. .IP "\fB\-mstrict\-align\fR" 4
  23028. .IX Item "-mstrict-align"
  23029. .PD
  23030. On System V.4 and embedded PowerPC systems do not (do) assume that
  23031. unaligned memory references are handled by the system.
  23032. .IP "\fB\-mrelocatable\fR" 4
  23033. .IX Item "-mrelocatable"
  23034. .PD 0
  23035. .IP "\fB\-mno\-relocatable\fR" 4
  23036. .IX Item "-mno-relocatable"
  23037. .PD
  23038. Generate code that allows (does not allow) a static executable to be
  23039. relocated to a different address at run time. A simple embedded
  23040. PowerPC system loader should relocate the entire contents of
  23041. \&\f(CW\*(C`.got2\*(C'\fR and 4\-byte locations listed in the \f(CW\*(C`.fixup\*(C'\fR section,
  23042. a table of 32\-bit addresses generated by this option. For this to
  23043. work, all objects linked together must be compiled with
  23044. \&\fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
  23045. \&\fB\-mrelocatable\fR code aligns the stack to an 8\-byte boundary.
  23046. .IP "\fB\-mrelocatable\-lib\fR" 4
  23047. .IX Item "-mrelocatable-lib"
  23048. .PD 0
  23049. .IP "\fB\-mno\-relocatable\-lib\fR" 4
  23050. .IX Item "-mno-relocatable-lib"
  23051. .PD
  23052. Like \fB\-mrelocatable\fR, \fB\-mrelocatable\-lib\fR generates a
  23053. \&\f(CW\*(C`.fixup\*(C'\fR section to allow static executables to be relocated at
  23054. run time, but \fB\-mrelocatable\-lib\fR does not use the smaller stack
  23055. alignment of \fB\-mrelocatable\fR. Objects compiled with
  23056. \&\fB\-mrelocatable\-lib\fR may be linked with objects compiled with
  23057. any combination of the \fB\-mrelocatable\fR options.
  23058. .IP "\fB\-mno\-toc\fR" 4
  23059. .IX Item "-mno-toc"
  23060. .PD 0
  23061. .IP "\fB\-mtoc\fR" 4
  23062. .IX Item "-mtoc"
  23063. .PD
  23064. On System V.4 and embedded PowerPC systems do not (do) assume that
  23065. register 2 contains a pointer to a global area pointing to the addresses
  23066. used in the program.
  23067. .IP "\fB\-mlittle\fR" 4
  23068. .IX Item "-mlittle"
  23069. .PD 0
  23070. .IP "\fB\-mlittle\-endian\fR" 4
  23071. .IX Item "-mlittle-endian"
  23072. .PD
  23073. On System V.4 and embedded PowerPC systems compile code for the
  23074. processor in little-endian mode. The \fB\-mlittle\-endian\fR option is
  23075. the same as \fB\-mlittle\fR.
  23076. .IP "\fB\-mbig\fR" 4
  23077. .IX Item "-mbig"
  23078. .PD 0
  23079. .IP "\fB\-mbig\-endian\fR" 4
  23080. .IX Item "-mbig-endian"
  23081. .PD
  23082. On System V.4 and embedded PowerPC systems compile code for the
  23083. processor in big-endian mode. The \fB\-mbig\-endian\fR option is
  23084. the same as \fB\-mbig\fR.
  23085. .IP "\fB\-mdynamic\-no\-pic\fR" 4
  23086. .IX Item "-mdynamic-no-pic"
  23087. On Darwin and Mac \s-1OS X\s0 systems, compile code so that it is not
  23088. relocatable, but that its external references are relocatable. The
  23089. resulting code is suitable for applications, but not shared
  23090. libraries.
  23091. .IP "\fB\-msingle\-pic\-base\fR" 4
  23092. .IX Item "-msingle-pic-base"
  23093. Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
  23094. loading it in the prologue for each function. The runtime system is
  23095. responsible for initializing this register with an appropriate value
  23096. before execution begins.
  23097. .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
  23098. .IX Item "-mprioritize-restricted-insns=priority"
  23099. This option controls the priority that is assigned to
  23100. dispatch-slot restricted instructions during the second scheduling
  23101. pass. The argument \fIpriority\fR takes the value \fB0\fR, \fB1\fR,
  23102. or \fB2\fR to assign no, highest, or second-highest (respectively)
  23103. priority to dispatch-slot restricted
  23104. instructions.
  23105. .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
  23106. .IX Item "-msched-costly-dep=dependence_type"
  23107. This option controls which dependences are considered costly
  23108. by the target during instruction scheduling. The argument
  23109. \&\fIdependence_type\fR takes one of the following values:
  23110. .RS 4
  23111. .IP "\fBno\fR" 4
  23112. .IX Item "no"
  23113. No dependence is costly.
  23114. .IP "\fBall\fR" 4
  23115. .IX Item "all"
  23116. All dependences are costly.
  23117. .IP "\fBtrue_store_to_load\fR" 4
  23118. .IX Item "true_store_to_load"
  23119. A true dependence from store to load is costly.
  23120. .IP "\fBstore_to_load\fR" 4
  23121. .IX Item "store_to_load"
  23122. Any dependence from store to load is costly.
  23123. .IP "\fInumber\fR" 4
  23124. .IX Item "number"
  23125. Any dependence for which the latency is greater than or equal to
  23126. \&\fInumber\fR is costly.
  23127. .RE
  23128. .RS 4
  23129. .RE
  23130. .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
  23131. .IX Item "-minsert-sched-nops=scheme"
  23132. This option controls which \s-1NOP\s0 insertion scheme is used during
  23133. the second scheduling pass. The argument \fIscheme\fR takes one of the
  23134. following values:
  23135. .RS 4
  23136. .IP "\fBno\fR" 4
  23137. .IX Item "no"
  23138. Don't insert NOPs.
  23139. .IP "\fBpad\fR" 4
  23140. .IX Item "pad"
  23141. Pad with NOPs any dispatch group that has vacant issue slots,
  23142. according to the scheduler's grouping.
  23143. .IP "\fBregroup_exact\fR" 4
  23144. .IX Item "regroup_exact"
  23145. Insert NOPs to force costly dependent insns into
  23146. separate groups. Insert exactly as many NOPs as needed to force an insn
  23147. to a new group, according to the estimated processor grouping.
  23148. .IP "\fInumber\fR" 4
  23149. .IX Item "number"
  23150. Insert NOPs to force costly dependent insns into
  23151. separate groups. Insert \fInumber\fR NOPs to force an insn to a new group.
  23152. .RE
  23153. .RS 4
  23154. .RE
  23155. .IP "\fB\-mcall\-sysv\fR" 4
  23156. .IX Item "-mcall-sysv"
  23157. On System V.4 and embedded PowerPC systems compile code using calling
  23158. conventions that adhere to the March 1995 draft of the System V
  23159. Application Binary Interface, PowerPC processor supplement. This is the
  23160. default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
  23161. .IP "\fB\-mcall\-sysv\-eabi\fR" 4
  23162. .IX Item "-mcall-sysv-eabi"
  23163. .PD 0
  23164. .IP "\fB\-mcall\-eabi\fR" 4
  23165. .IX Item "-mcall-eabi"
  23166. .PD
  23167. Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
  23168. .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
  23169. .IX Item "-mcall-sysv-noeabi"
  23170. Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
  23171. .IP "\fB\-mcall\-aixdesc\fR" 4
  23172. .IX Item "-mcall-aixdesc"
  23173. On System V.4 and embedded PowerPC systems compile code for the \s-1AIX\s0
  23174. operating system.
  23175. .IP "\fB\-mcall\-linux\fR" 4
  23176. .IX Item "-mcall-linux"
  23177. On System V.4 and embedded PowerPC systems compile code for the
  23178. Linux-based \s-1GNU\s0 system.
  23179. .IP "\fB\-mcall\-freebsd\fR" 4
  23180. .IX Item "-mcall-freebsd"
  23181. On System V.4 and embedded PowerPC systems compile code for the
  23182. FreeBSD operating system.
  23183. .IP "\fB\-mcall\-netbsd\fR" 4
  23184. .IX Item "-mcall-netbsd"
  23185. On System V.4 and embedded PowerPC systems compile code for the
  23186. NetBSD operating system.
  23187. .IP "\fB\-mcall\-openbsd\fR" 4
  23188. .IX Item "-mcall-openbsd"
  23189. On System V.4 and embedded PowerPC systems compile code for the
  23190. OpenBSD operating system.
  23191. .IP "\fB\-mtraceback=\fR\fItraceback_type\fR" 4
  23192. .IX Item "-mtraceback=traceback_type"
  23193. Select the type of traceback table. Valid values for \fItraceback_type\fR
  23194. are \fBfull\fR, \fBpart\fR, and \fBno\fR.
  23195. .IP "\fB\-maix\-struct\-return\fR" 4
  23196. .IX Item "-maix-struct-return"
  23197. Return all structures in memory (as specified by the \s-1AIX ABI\s0).
  23198. .IP "\fB\-msvr4\-struct\-return\fR" 4
  23199. .IX Item "-msvr4-struct-return"
  23200. Return structures smaller than 8 bytes in registers (as specified by the
  23201. \&\s-1SVR4 ABI\s0).
  23202. .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
  23203. .IX Item "-mabi=abi-type"
  23204. Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
  23205. Valid values are \fBaltivec\fR, \fBno-altivec\fR, \fBspe\fR,
  23206. \&\fBno-spe\fR, \fBibmlongdouble\fR, \fBieeelongdouble\fR,
  23207. \&\fBelfv1\fR, \fBelfv2\fR.
  23208. .IP "\fB\-mabi=ibmlongdouble\fR" 4
  23209. .IX Item "-mabi=ibmlongdouble"
  23210. Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended-precision long double.
  23211. This is not likely to work if your system defaults to using \s-1IEEE\s0
  23212. extended-precision long double. If you change the long double type
  23213. from \s-1IEEE\s0 extended-precision, the compiler will issue a warning unless
  23214. you use the \fB\-Wno\-psabi\fR option. Requires \fB\-mlong\-double\-128\fR
  23215. to be enabled.
  23216. .IP "\fB\-mabi=ieeelongdouble\fR" 4
  23217. .IX Item "-mabi=ieeelongdouble"
  23218. Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended-precision long double.
  23219. This is not likely to work if your system defaults to using \s-1IBM\s0
  23220. extended-precision long double. If you change the long double type
  23221. from \s-1IBM\s0 extended-precision, the compiler will issue a warning unless
  23222. you use the \fB\-Wno\-psabi\fR option. Requires \fB\-mlong\-double\-128\fR
  23223. to be enabled.
  23224. .IP "\fB\-mabi=elfv1\fR" 4
  23225. .IX Item "-mabi=elfv1"
  23226. Change the current \s-1ABI\s0 to use the ELFv1 \s-1ABI.\s0
  23227. This is the default \s-1ABI\s0 for big-endian PowerPC 64\-bit Linux.
  23228. Overriding the default \s-1ABI\s0 requires special system support and is
  23229. likely to fail in spectacular ways.
  23230. .IP "\fB\-mabi=elfv2\fR" 4
  23231. .IX Item "-mabi=elfv2"
  23232. Change the current \s-1ABI\s0 to use the ELFv2 \s-1ABI.\s0
  23233. This is the default \s-1ABI\s0 for little-endian PowerPC 64\-bit Linux.
  23234. Overriding the default \s-1ABI\s0 requires special system support and is
  23235. likely to fail in spectacular ways.
  23236. .IP "\fB\-mgnu\-attribute\fR" 4
  23237. .IX Item "-mgnu-attribute"
  23238. .PD 0
  23239. .IP "\fB\-mno\-gnu\-attribute\fR" 4
  23240. .IX Item "-mno-gnu-attribute"
  23241. .PD
  23242. Emit .gnu_attribute assembly directives to set tag/value pairs in a
  23243. \&.gnu.attributes section that specify \s-1ABI\s0 variations in function
  23244. parameters or return values.
  23245. .IP "\fB\-mprototype\fR" 4
  23246. .IX Item "-mprototype"
  23247. .PD 0
  23248. .IP "\fB\-mno\-prototype\fR" 4
  23249. .IX Item "-mno-prototype"
  23250. .PD
  23251. On System V.4 and embedded PowerPC systems assume that all calls to
  23252. variable argument functions are properly prototyped. Otherwise, the
  23253. compiler must insert an instruction before every non-prototyped call to
  23254. set or clear bit 6 of the condition code register (\f(CW\*(C`CR\*(C'\fR) to
  23255. indicate whether floating-point values are passed in the floating-point
  23256. registers in case the function takes variable arguments. With
  23257. \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
  23258. set or clear the bit.
  23259. .IP "\fB\-msim\fR" 4
  23260. .IX Item "-msim"
  23261. On embedded PowerPC systems, assume that the startup module is called
  23262. \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
  23263. \&\fIlibc.a\fR. This is the default for \fBpowerpc\-*\-eabisim\fR
  23264. configurations.
  23265. .IP "\fB\-mmvme\fR" 4
  23266. .IX Item "-mmvme"
  23267. On embedded PowerPC systems, assume that the startup module is called
  23268. \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
  23269. \&\fIlibc.a\fR.
  23270. .IP "\fB\-mads\fR" 4
  23271. .IX Item "-mads"
  23272. On embedded PowerPC systems, assume that the startup module is called
  23273. \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
  23274. \&\fIlibc.a\fR.
  23275. .IP "\fB\-myellowknife\fR" 4
  23276. .IX Item "-myellowknife"
  23277. On embedded PowerPC systems, assume that the startup module is called
  23278. \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
  23279. \&\fIlibc.a\fR.
  23280. .IP "\fB\-mvxworks\fR" 4
  23281. .IX Item "-mvxworks"
  23282. On System V.4 and embedded PowerPC systems, specify that you are
  23283. compiling for a VxWorks system.
  23284. .IP "\fB\-memb\fR" 4
  23285. .IX Item "-memb"
  23286. On embedded PowerPC systems, set the \f(CW\*(C`PPC_EMB\*(C'\fR bit in the \s-1ELF\s0 flags
  23287. header to indicate that \fBeabi\fR extended relocations are used.
  23288. .IP "\fB\-meabi\fR" 4
  23289. .IX Item "-meabi"
  23290. .PD 0
  23291. .IP "\fB\-mno\-eabi\fR" 4
  23292. .IX Item "-mno-eabi"
  23293. .PD
  23294. On System V.4 and embedded PowerPC systems do (do not) adhere to the
  23295. Embedded Applications Binary Interface (\s-1EABI\s0), which is a set of
  23296. modifications to the System V.4 specifications. Selecting \fB\-meabi\fR
  23297. means that the stack is aligned to an 8\-byte boundary, a function
  23298. \&\f(CW\*(C`_\|_eabi\*(C'\fR is called from \f(CW\*(C`main\*(C'\fR to set up the \s-1EABI\s0
  23299. environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
  23300. \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas. Selecting
  23301. \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16\-byte boundary,
  23302. no \s-1EABI\s0 initialization function is called from \f(CW\*(C`main\*(C'\fR, and the
  23303. \&\fB\-msdata\fR option only uses \f(CW\*(C`r13\*(C'\fR to point to a single
  23304. small data area. The \fB\-meabi\fR option is on by default if you
  23305. configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
  23306. .IP "\fB\-msdata=eabi\fR" 4
  23307. .IX Item "-msdata=eabi"
  23308. On System V.4 and embedded PowerPC systems, put small initialized
  23309. \&\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata2\*(C'\fR section, which
  23310. is pointed to by register \f(CW\*(C`r2\*(C'\fR. Put small initialized
  23311. non\-\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata\*(C'\fR section,
  23312. which is pointed to by register \f(CW\*(C`r13\*(C'\fR. Put small uninitialized
  23313. global and static data in the \f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to
  23314. the \f(CW\*(C`.sdata\*(C'\fR section. The \fB\-msdata=eabi\fR option is
  23315. incompatible with the \fB\-mrelocatable\fR option. The
  23316. \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
  23317. .IP "\fB\-msdata=sysv\fR" 4
  23318. .IX Item "-msdata=sysv"
  23319. On System V.4 and embedded PowerPC systems, put small global and static
  23320. data in the \f(CW\*(C`.sdata\*(C'\fR section, which is pointed to by register
  23321. \&\f(CW\*(C`r13\*(C'\fR. Put small uninitialized global and static data in the
  23322. \&\f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to the \f(CW\*(C`.sdata\*(C'\fR section.
  23323. The \fB\-msdata=sysv\fR option is incompatible with the
  23324. \&\fB\-mrelocatable\fR option.
  23325. .IP "\fB\-msdata=default\fR" 4
  23326. .IX Item "-msdata=default"
  23327. .PD 0
  23328. .IP "\fB\-msdata\fR" 4
  23329. .IX Item "-msdata"
  23330. .PD
  23331. On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
  23332. compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
  23333. same as \fB\-msdata=sysv\fR.
  23334. .IP "\fB\-msdata=data\fR" 4
  23335. .IX Item "-msdata=data"
  23336. On System V.4 and embedded PowerPC systems, put small global
  23337. data in the \f(CW\*(C`.sdata\*(C'\fR section. Put small uninitialized global
  23338. data in the \f(CW\*(C`.sbss\*(C'\fR section. Do not use register \f(CW\*(C`r13\*(C'\fR
  23339. to address small data however. This is the default behavior unless
  23340. other \fB\-msdata\fR options are used.
  23341. .IP "\fB\-msdata=none\fR" 4
  23342. .IX Item "-msdata=none"
  23343. .PD 0
  23344. .IP "\fB\-mno\-sdata\fR" 4
  23345. .IX Item "-mno-sdata"
  23346. .PD
  23347. On embedded PowerPC systems, put all initialized global and static data
  23348. in the \f(CW\*(C`.data\*(C'\fR section, and all uninitialized data in the
  23349. \&\f(CW\*(C`.bss\*(C'\fR section.
  23350. .IP "\fB\-mreadonly\-in\-sdata\fR" 4
  23351. .IX Item "-mreadonly-in-sdata"
  23352. .PD 0
  23353. .IP "\fB\-mreadonly\-in\-sdata\fR" 4
  23354. .IX Item "-mreadonly-in-sdata"
  23355. .PD
  23356. Put read-only objects in the \f(CW\*(C`.sdata\*(C'\fR section as well. This is the
  23357. default.
  23358. .IP "\fB\-mblock\-move\-inline\-limit=\fR\fInum\fR" 4
  23359. .IX Item "-mblock-move-inline-limit=num"
  23360. Inline all block moves (such as calls to \f(CW\*(C`memcpy\*(C'\fR or structure
  23361. copies) less than or equal to \fInum\fR bytes. The minimum value for
  23362. \&\fInum\fR is 32 bytes on 32\-bit targets and 64 bytes on 64\-bit
  23363. targets. The default value is target-specific.
  23364. .IP "\fB\-mblock\-compare\-inline\-limit=\fR\fInum\fR" 4
  23365. .IX Item "-mblock-compare-inline-limit=num"
  23366. Generate non-looping inline code for all block compares (such as calls
  23367. to \f(CW\*(C`memcmp\*(C'\fR or structure compares) less than or equal to \fInum\fR
  23368. bytes. If \fInum\fR is 0, all inline expansion (non-loop and loop) of
  23369. block compare is disabled. The default value is target-specific.
  23370. .IP "\fB\-mblock\-compare\-inline\-loop\-limit=\fR\fInum\fR" 4
  23371. .IX Item "-mblock-compare-inline-loop-limit=num"
  23372. Generate an inline expansion using loop code for all block compares that
  23373. are less than or equal to \fInum\fR bytes, but greater than the limit
  23374. for non-loop inline block compare expansion. If the block length is not
  23375. constant, at most \fInum\fR bytes will be compared before \f(CW\*(C`memcmp\*(C'\fR
  23376. is called to compare the remainder of the block. The default value is
  23377. target-specific.
  23378. .IP "\fB\-mstring\-compare\-inline\-limit=\fR\fInum\fR" 4
  23379. .IX Item "-mstring-compare-inline-limit=num"
  23380. Generate at most \fInum\fR pairs of load instructions to compare the
  23381. string inline. If the difference or end of string is not found at the
  23382. end of the inline compare a call to \f(CW\*(C`strcmp\*(C'\fR or \f(CW\*(C`strncmp\*(C'\fR will
  23383. take care of the rest of the comparison. The default is 8 pairs of
  23384. loads, which will compare 64 bytes on a 64\-bit target and 32 bytes on a
  23385. 32\-bit target.
  23386. .IP "\fB\-G\fR \fInum\fR" 4
  23387. .IX Item "-G num"
  23388. On embedded PowerPC systems, put global and static items less than or
  23389. equal to \fInum\fR bytes into the small data or \s-1BSS\s0 sections instead of
  23390. the normal data or \s-1BSS\s0 section. By default, \fInum\fR is 8. The
  23391. \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
  23392. All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
  23393. .IP "\fB\-mregnames\fR" 4
  23394. .IX Item "-mregnames"
  23395. .PD 0
  23396. .IP "\fB\-mno\-regnames\fR" 4
  23397. .IX Item "-mno-regnames"
  23398. .PD
  23399. On System V.4 and embedded PowerPC systems do (do not) emit register
  23400. names in the assembly language output using symbolic forms.
  23401. .IP "\fB\-mlongcall\fR" 4
  23402. .IX Item "-mlongcall"
  23403. .PD 0
  23404. .IP "\fB\-mno\-longcall\fR" 4
  23405. .IX Item "-mno-longcall"
  23406. .PD
  23407. By default assume that all calls are far away so that a longer and more
  23408. expensive calling sequence is required. This is required for calls
  23409. farther than 32 megabytes (33,554,432 bytes) from the current location.
  23410. A short call is generated if the compiler knows
  23411. the call cannot be that far away. This setting can be overridden by
  23412. the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
  23413. longcall(0)\*(C'\fR.
  23414. .Sp
  23415. Some linkers are capable of detecting out-of-range calls and generating
  23416. glue code on the fly. On these systems, long calls are unnecessary and
  23417. generate slower code. As of this writing, the \s-1AIX\s0 linker can do this,
  23418. as can the \s-1GNU\s0 linker for PowerPC/64. It is planned to add this feature
  23419. to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
  23420. .Sp
  23421. On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR generates \f(CW\*(C`jbsr
  23422. callee, L42\*(C'\fR, plus a \fIbranch island\fR (glue code). The two target
  23423. addresses represent the callee and the branch island. The
  23424. Darwin/PPC linker prefers the first address and generates a \f(CW\*(C`bl
  23425. callee\*(C'\fR if the \s-1PPC\s0 \f(CW\*(C`bl\*(C'\fR instruction reaches the callee directly;
  23426. otherwise, the linker generates \f(CW\*(C`bl L42\*(C'\fR to call the branch
  23427. island. The branch island is appended to the body of the
  23428. calling function; it computes the full 32\-bit address of the callee
  23429. and jumps to it.
  23430. .Sp
  23431. On Mach-O (Darwin) systems, this option directs the compiler emit to
  23432. the glue for every direct call, and the Darwin linker decides whether
  23433. to use or discard it.
  23434. .Sp
  23435. In the future, \s-1GCC\s0 may ignore all longcall specifications
  23436. when the linker is known to generate glue.
  23437. .IP "\fB\-mtls\-markers\fR" 4
  23438. .IX Item "-mtls-markers"
  23439. .PD 0
  23440. .IP "\fB\-mno\-tls\-markers\fR" 4
  23441. .IX Item "-mno-tls-markers"
  23442. .PD
  23443. Mark (do not mark) calls to \f(CW\*(C`_\|_tls_get_addr\*(C'\fR with a relocation
  23444. specifying the function argument. The relocation allows the linker to
  23445. reliably associate function call with argument setup instructions for
  23446. \&\s-1TLS\s0 optimization, which in turn allows \s-1GCC\s0 to better schedule the
  23447. sequence.
  23448. .IP "\fB\-mrecip\fR" 4
  23449. .IX Item "-mrecip"
  23450. .PD 0
  23451. .IP "\fB\-mno\-recip\fR" 4
  23452. .IX Item "-mno-recip"
  23453. .PD
  23454. This option enables use of the reciprocal estimate and
  23455. reciprocal square root estimate instructions with additional
  23456. Newton-Raphson steps to increase precision instead of doing a divide or
  23457. square root and divide for floating-point arguments. You should use
  23458. the \fB\-ffast\-math\fR option when using \fB\-mrecip\fR (or at
  23459. least \fB\-funsafe\-math\-optimizations\fR,
  23460. \&\fB\-ffinite\-math\-only\fR, \fB\-freciprocal\-math\fR and
  23461. \&\fB\-fno\-trapping\-math\fR). Note that while the throughput of the
  23462. sequence is generally higher than the throughput of the non-reciprocal
  23463. instruction, the precision of the sequence can be decreased by up to 2
  23464. ulp (i.e. the inverse of 1.0 equals 0.99999994) for reciprocal square
  23465. roots.
  23466. .IP "\fB\-mrecip=\fR\fIopt\fR" 4
  23467. .IX Item "-mrecip=opt"
  23468. This option controls which reciprocal estimate instructions
  23469. may be used. \fIopt\fR is a comma-separated list of options, which may
  23470. be preceded by a \f(CW\*(C`!\*(C'\fR to invert the option:
  23471. .RS 4
  23472. .IP "\fBall\fR" 4
  23473. .IX Item "all"
  23474. Enable all estimate instructions.
  23475. .IP "\fBdefault\fR" 4
  23476. .IX Item "default"
  23477. Enable the default instructions, equivalent to \fB\-mrecip\fR.
  23478. .IP "\fBnone\fR" 4
  23479. .IX Item "none"
  23480. Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
  23481. .IP "\fBdiv\fR" 4
  23482. .IX Item "div"
  23483. Enable the reciprocal approximation instructions for both
  23484. single and double precision.
  23485. .IP "\fBdivf\fR" 4
  23486. .IX Item "divf"
  23487. Enable the single-precision reciprocal approximation instructions.
  23488. .IP "\fBdivd\fR" 4
  23489. .IX Item "divd"
  23490. Enable the double-precision reciprocal approximation instructions.
  23491. .IP "\fBrsqrt\fR" 4
  23492. .IX Item "rsqrt"
  23493. Enable the reciprocal square root approximation instructions for both
  23494. single and double precision.
  23495. .IP "\fBrsqrtf\fR" 4
  23496. .IX Item "rsqrtf"
  23497. Enable the single-precision reciprocal square root approximation instructions.
  23498. .IP "\fBrsqrtd\fR" 4
  23499. .IX Item "rsqrtd"
  23500. Enable the double-precision reciprocal square root approximation instructions.
  23501. .RE
  23502. .RS 4
  23503. .Sp
  23504. So, for example, \fB\-mrecip=all,!rsqrtd\fR enables
  23505. all of the reciprocal estimate instructions, except for the
  23506. \&\f(CW\*(C`FRSQRTE\*(C'\fR, \f(CW\*(C`XSRSQRTEDP\*(C'\fR, and \f(CW\*(C`XVRSQRTEDP\*(C'\fR instructions
  23507. which handle the double-precision reciprocal square root calculations.
  23508. .RE
  23509. .IP "\fB\-mrecip\-precision\fR" 4
  23510. .IX Item "-mrecip-precision"
  23511. .PD 0
  23512. .IP "\fB\-mno\-recip\-precision\fR" 4
  23513. .IX Item "-mno-recip-precision"
  23514. .PD
  23515. Assume (do not assume) that the reciprocal estimate instructions
  23516. provide higher-precision estimates than is mandated by the PowerPC
  23517. \&\s-1ABI.\s0 Selecting \fB\-mcpu=power6\fR, \fB\-mcpu=power7\fR or
  23518. \&\fB\-mcpu=power8\fR automatically selects \fB\-mrecip\-precision\fR.
  23519. The double-precision square root estimate instructions are not generated by
  23520. default on low-precision machines, since they do not provide an
  23521. estimate that converges after three steps.
  23522. .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
  23523. .IX Item "-mveclibabi=type"
  23524. Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
  23525. external library. The only type supported at present is \fBmass\fR,
  23526. which specifies to use \s-1IBM\s0's Mathematical Acceleration Subsystem
  23527. (\s-1MASS\s0) libraries for vectorizing intrinsics using external libraries.
  23528. \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`acosd2\*(C'\fR, \f(CW\*(C`acosf4\*(C'\fR,
  23529. \&\f(CW\*(C`acoshd2\*(C'\fR, \f(CW\*(C`acoshf4\*(C'\fR, \f(CW\*(C`asind2\*(C'\fR, \f(CW\*(C`asinf4\*(C'\fR,
  23530. \&\f(CW\*(C`asinhd2\*(C'\fR, \f(CW\*(C`asinhf4\*(C'\fR, \f(CW\*(C`atan2d2\*(C'\fR, \f(CW\*(C`atan2f4\*(C'\fR,
  23531. \&\f(CW\*(C`atand2\*(C'\fR, \f(CW\*(C`atanf4\*(C'\fR, \f(CW\*(C`atanhd2\*(C'\fR, \f(CW\*(C`atanhf4\*(C'\fR,
  23532. \&\f(CW\*(C`cbrtd2\*(C'\fR, \f(CW\*(C`cbrtf4\*(C'\fR, \f(CW\*(C`cosd2\*(C'\fR, \f(CW\*(C`cosf4\*(C'\fR,
  23533. \&\f(CW\*(C`coshd2\*(C'\fR, \f(CW\*(C`coshf4\*(C'\fR, \f(CW\*(C`erfcd2\*(C'\fR, \f(CW\*(C`erfcf4\*(C'\fR,
  23534. \&\f(CW\*(C`erfd2\*(C'\fR, \f(CW\*(C`erff4\*(C'\fR, \f(CW\*(C`exp2d2\*(C'\fR, \f(CW\*(C`exp2f4\*(C'\fR,
  23535. \&\f(CW\*(C`expd2\*(C'\fR, \f(CW\*(C`expf4\*(C'\fR, \f(CW\*(C`expm1d2\*(C'\fR, \f(CW\*(C`expm1f4\*(C'\fR,
  23536. \&\f(CW\*(C`hypotd2\*(C'\fR, \f(CW\*(C`hypotf4\*(C'\fR, \f(CW\*(C`lgammad2\*(C'\fR, \f(CW\*(C`lgammaf4\*(C'\fR,
  23537. \&\f(CW\*(C`log10d2\*(C'\fR, \f(CW\*(C`log10f4\*(C'\fR, \f(CW\*(C`log1pd2\*(C'\fR, \f(CW\*(C`log1pf4\*(C'\fR,
  23538. \&\f(CW\*(C`log2d2\*(C'\fR, \f(CW\*(C`log2f4\*(C'\fR, \f(CW\*(C`logd2\*(C'\fR, \f(CW\*(C`logf4\*(C'\fR,
  23539. \&\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,
  23540. \&\f(CW\*(C`sinhf4\*(C'\fR, \f(CW\*(C`sqrtd2\*(C'\fR, \f(CW\*(C`sqrtf4\*(C'\fR, \f(CW\*(C`tand2\*(C'\fR,
  23541. \&\f(CW\*(C`tanf4\*(C'\fR, \f(CW\*(C`tanhd2\*(C'\fR, and \f(CW\*(C`tanhf4\*(C'\fR when generating code
  23542. for power7. Both \fB\-ftree\-vectorize\fR and
  23543. \&\fB\-funsafe\-math\-optimizations\fR must also be enabled. The \s-1MASS\s0
  23544. libraries must be specified at link time.
  23545. .IP "\fB\-mfriz\fR" 4
  23546. .IX Item "-mfriz"
  23547. .PD 0
  23548. .IP "\fB\-mno\-friz\fR" 4
  23549. .IX Item "-mno-friz"
  23550. .PD
  23551. Generate (do not generate) the \f(CW\*(C`friz\*(C'\fR instruction when the
  23552. \&\fB\-funsafe\-math\-optimizations\fR option is used to optimize
  23553. rounding of floating-point values to 64\-bit integer and back to floating
  23554. point. The \f(CW\*(C`friz\*(C'\fR instruction does not return the same value if
  23555. the floating-point number is too large to fit in an integer.
  23556. .IP "\fB\-mpointers\-to\-nested\-functions\fR" 4
  23557. .IX Item "-mpointers-to-nested-functions"
  23558. .PD 0
  23559. .IP "\fB\-mno\-pointers\-to\-nested\-functions\fR" 4
  23560. .IX Item "-mno-pointers-to-nested-functions"
  23561. .PD
  23562. Generate (do not generate) code to load up the static chain register
  23563. (\f(CW\*(C`r11\*(C'\fR) when calling through a pointer on \s-1AIX\s0 and 64\-bit Linux
  23564. systems where a function pointer points to a 3\-word descriptor giving
  23565. the function address, \s-1TOC\s0 value to be loaded in register \f(CW\*(C`r2\*(C'\fR, and
  23566. static chain value to be loaded in register \f(CW\*(C`r11\*(C'\fR. The
  23567. \&\fB\-mpointers\-to\-nested\-functions\fR is on by default. You cannot
  23568. call through pointers to nested functions or pointers
  23569. to functions compiled in other languages that use the static chain if
  23570. you use \fB\-mno\-pointers\-to\-nested\-functions\fR.
  23571. .IP "\fB\-msave\-toc\-indirect\fR" 4
  23572. .IX Item "-msave-toc-indirect"
  23573. .PD 0
  23574. .IP "\fB\-mno\-save\-toc\-indirect\fR" 4
  23575. .IX Item "-mno-save-toc-indirect"
  23576. .PD
  23577. Generate (do not generate) code to save the \s-1TOC\s0 value in the reserved
  23578. stack location in the function prologue if the function calls through
  23579. a pointer on \s-1AIX\s0 and 64\-bit Linux systems. If the \s-1TOC\s0 value is not
  23580. saved in the prologue, it is saved just before the call through the
  23581. pointer. The \fB\-mno\-save\-toc\-indirect\fR option is the default.
  23582. .IP "\fB\-mcompat\-align\-parm\fR" 4
  23583. .IX Item "-mcompat-align-parm"
  23584. .PD 0
  23585. .IP "\fB\-mno\-compat\-align\-parm\fR" 4
  23586. .IX Item "-mno-compat-align-parm"
  23587. .PD
  23588. Generate (do not generate) code to pass structure parameters with a
  23589. maximum alignment of 64 bits, for compatibility with older versions
  23590. of \s-1GCC.\s0
  23591. .Sp
  23592. Older versions of \s-1GCC\s0 (prior to 4.9.0) incorrectly did not align a
  23593. structure parameter on a 128\-bit boundary when that structure contained
  23594. a member requiring 128\-bit alignment. This is corrected in more
  23595. recent versions of \s-1GCC.\s0 This option may be used to generate code
  23596. that is compatible with functions compiled with older versions of
  23597. \&\s-1GCC.\s0
  23598. .Sp
  23599. The \fB\-mno\-compat\-align\-parm\fR option is the default.
  23600. .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
  23601. .IX Item "-mstack-protector-guard=guard"
  23602. .PD 0
  23603. .IP "\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR" 4
  23604. .IX Item "-mstack-protector-guard-reg=reg"
  23605. .IP "\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR" 4
  23606. .IX Item "-mstack-protector-guard-offset=offset"
  23607. .IP "\fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR" 4
  23608. .IX Item "-mstack-protector-guard-symbol=symbol"
  23609. .PD
  23610. Generate stack protection code using canary at \fIguard\fR. Supported
  23611. locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
  23612. canary in the \s-1TLS\s0 block (the default with \s-1GNU\s0 libc version 2.4 or later).
  23613. .Sp
  23614. With the latter choice the options
  23615. \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR and
  23616. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR furthermore specify
  23617. which register to use as base register for reading the canary, and from what
  23618. offset from that base register. The default for those is as specified in the
  23619. relevant \s-1ABI.\s0 \fB\-mstack\-protector\-guard\-symbol=\fR\fIsymbol\fR overrides
  23620. the offset with a symbol reference to a canary in the \s-1TLS\s0 block.
  23621. .PP
  23622. \fI\s-1RX\s0 Options\fR
  23623. .IX Subsection "RX Options"
  23624. .PP
  23625. These command-line options are defined for \s-1RX\s0 targets:
  23626. .IP "\fB\-m64bit\-doubles\fR" 4
  23627. .IX Item "-m64bit-doubles"
  23628. .PD 0
  23629. .IP "\fB\-m32bit\-doubles\fR" 4
  23630. .IX Item "-m32bit-doubles"
  23631. .PD
  23632. Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
  23633. or 32 bits (\fB\-m32bit\-doubles\fR) in size. The default is
  23634. \&\fB\-m32bit\-doubles\fR. \fINote\fR \s-1RX\s0 floating-point hardware only
  23635. works on 32\-bit values, which is why the default is
  23636. \&\fB\-m32bit\-doubles\fR.
  23637. .IP "\fB\-fpu\fR" 4
  23638. .IX Item "-fpu"
  23639. .PD 0
  23640. .IP "\fB\-nofpu\fR" 4
  23641. .IX Item "-nofpu"
  23642. .PD
  23643. Enables (\fB\-fpu\fR) or disables (\fB\-nofpu\fR) the use of \s-1RX\s0
  23644. floating-point hardware. The default is enabled for the \s-1RX600\s0
  23645. series and disabled for the \s-1RX200\s0 series.
  23646. .Sp
  23647. Floating-point instructions are only generated for 32\-bit floating-point
  23648. values, however, so the \s-1FPU\s0 hardware is not used for doubles if the
  23649. \&\fB\-m64bit\-doubles\fR option is used.
  23650. .Sp
  23651. \&\fINote\fR If the \fB\-fpu\fR option is enabled then
  23652. \&\fB\-funsafe\-math\-optimizations\fR is also enabled automatically.
  23653. This is because the \s-1RX FPU\s0 instructions are themselves unsafe.
  23654. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  23655. .IX Item "-mcpu=name"
  23656. Selects the type of \s-1RX CPU\s0 to be targeted. Currently three types are
  23657. supported, the generic \fB\s-1RX600\s0\fR and \fB\s-1RX200\s0\fR series hardware and
  23658. the specific \fB\s-1RX610\s0\fR \s-1CPU.\s0 The default is \fB\s-1RX600\s0\fR.
  23659. .Sp
  23660. The only difference between \fB\s-1RX600\s0\fR and \fB\s-1RX610\s0\fR is that the
  23661. \&\fB\s-1RX610\s0\fR does not support the \f(CW\*(C`MVTIPL\*(C'\fR instruction.
  23662. .Sp
  23663. The \fB\s-1RX200\s0\fR series does not have a hardware floating-point unit
  23664. and so \fB\-nofpu\fR is enabled by default when this type is
  23665. selected.
  23666. .IP "\fB\-mbig\-endian\-data\fR" 4
  23667. .IX Item "-mbig-endian-data"
  23668. .PD 0
  23669. .IP "\fB\-mlittle\-endian\-data\fR" 4
  23670. .IX Item "-mlittle-endian-data"
  23671. .PD
  23672. Store data (but not code) in the big-endian format. The default is
  23673. \&\fB\-mlittle\-endian\-data\fR, i.e. to store data in the little-endian
  23674. format.
  23675. .IP "\fB\-msmall\-data\-limit=\fR\fIN\fR" 4
  23676. .IX Item "-msmall-data-limit=N"
  23677. Specifies the maximum size in bytes of global and static variables
  23678. which can be placed into the small data area. Using the small data
  23679. area can lead to smaller and faster code, but the size of area is
  23680. limited and it is up to the programmer to ensure that the area does
  23681. not overflow. Also when the small data area is used one of the \s-1RX\s0's
  23682. registers (usually \f(CW\*(C`r13\*(C'\fR) is reserved for use pointing to this
  23683. area, so it is no longer available for use by the compiler. This
  23684. could result in slower and/or larger code if variables are pushed onto
  23685. the stack instead of being held in this register.
  23686. .Sp
  23687. Note, common variables (variables that have not been initialized) and
  23688. constants are not placed into the small data area as they are assigned
  23689. to other sections in the output executable.
  23690. .Sp
  23691. The default value is zero, which disables this feature. Note, this
  23692. feature is not enabled by default with higher optimization levels
  23693. (\fB\-O2\fR etc) because of the potentially detrimental effects of
  23694. reserving a register. It is up to the programmer to experiment and
  23695. discover whether this feature is of benefit to their program. See the
  23696. description of the \fB\-mpid\fR option for a description of how the
  23697. actual register to hold the small data area pointer is chosen.
  23698. .IP "\fB\-msim\fR" 4
  23699. .IX Item "-msim"
  23700. .PD 0
  23701. .IP "\fB\-mno\-sim\fR" 4
  23702. .IX Item "-mno-sim"
  23703. .PD
  23704. Use the simulator runtime. The default is to use the libgloss
  23705. board-specific runtime.
  23706. .IP "\fB\-mas100\-syntax\fR" 4
  23707. .IX Item "-mas100-syntax"
  23708. .PD 0
  23709. .IP "\fB\-mno\-as100\-syntax\fR" 4
  23710. .IX Item "-mno-as100-syntax"
  23711. .PD
  23712. When generating assembler output use a syntax that is compatible with
  23713. Renesas's \s-1AS100\s0 assembler. This syntax can also be handled by the \s-1GAS\s0
  23714. assembler, but it has some restrictions so it is not generated by default.
  23715. .IP "\fB\-mmax\-constant\-size=\fR\fIN\fR" 4
  23716. .IX Item "-mmax-constant-size=N"
  23717. Specifies the maximum size, in bytes, of a constant that can be used as
  23718. an operand in a \s-1RX\s0 instruction. Although the \s-1RX\s0 instruction set does
  23719. allow constants of up to 4 bytes in length to be used in instructions,
  23720. a longer value equates to a longer instruction. Thus in some
  23721. circumstances it can be beneficial to restrict the size of constants
  23722. that are used in instructions. Constants that are too big are instead
  23723. placed into a constant pool and referenced via register indirection.
  23724. .Sp
  23725. The value \fIN\fR can be between 0 and 4. A value of 0 (the default)
  23726. or 4 means that constants of any size are allowed.
  23727. .IP "\fB\-mrelax\fR" 4
  23728. .IX Item "-mrelax"
  23729. Enable linker relaxation. Linker relaxation is a process whereby the
  23730. linker attempts to reduce the size of a program by finding shorter
  23731. versions of various instructions. Disabled by default.
  23732. .IP "\fB\-mint\-register=\fR\fIN\fR" 4
  23733. .IX Item "-mint-register=N"
  23734. Specify the number of registers to reserve for fast interrupt handler
  23735. functions. The value \fIN\fR can be between 0 and 4. A value of 1
  23736. means that register \f(CW\*(C`r13\*(C'\fR is reserved for the exclusive use
  23737. of fast interrupt handlers. A value of 2 reserves \f(CW\*(C`r13\*(C'\fR and
  23738. \&\f(CW\*(C`r12\*(C'\fR. A value of 3 reserves \f(CW\*(C`r13\*(C'\fR, \f(CW\*(C`r12\*(C'\fR and
  23739. \&\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.
  23740. A value of 0, the default, does not reserve any registers.
  23741. .IP "\fB\-msave\-acc\-in\-interrupts\fR" 4
  23742. .IX Item "-msave-acc-in-interrupts"
  23743. Specifies that interrupt handler functions should preserve the
  23744. accumulator register. This is only necessary if normal code might use
  23745. the accumulator register, for example because it performs 64\-bit
  23746. multiplications. The default is to ignore the accumulator as this
  23747. makes the interrupt handlers faster.
  23748. .IP "\fB\-mpid\fR" 4
  23749. .IX Item "-mpid"
  23750. .PD 0
  23751. .IP "\fB\-mno\-pid\fR" 4
  23752. .IX Item "-mno-pid"
  23753. .PD
  23754. Enables the generation of position independent data. When enabled any
  23755. access to constant data is done via an offset from a base address
  23756. held in a register. This allows the location of constant data to be
  23757. determined at run time without requiring the executable to be
  23758. relocated, which is a benefit to embedded applications with tight
  23759. memory constraints. Data that can be modified is not affected by this
  23760. option.
  23761. .Sp
  23762. Note, using this feature reserves a register, usually \f(CW\*(C`r13\*(C'\fR, for
  23763. the constant data base address. This can result in slower and/or
  23764. larger code, especially in complicated functions.
  23765. .Sp
  23766. The actual register chosen to hold the constant data base address
  23767. depends upon whether the \fB\-msmall\-data\-limit\fR and/or the
  23768. \&\fB\-mint\-register\fR command-line options are enabled. Starting
  23769. with register \f(CW\*(C`r13\*(C'\fR and proceeding downwards, registers are
  23770. allocated first to satisfy the requirements of \fB\-mint\-register\fR,
  23771. then \fB\-mpid\fR and finally \fB\-msmall\-data\-limit\fR. Thus it
  23772. is possible for the small data area register to be \f(CW\*(C`r8\*(C'\fR if both
  23773. \&\fB\-mint\-register=4\fR and \fB\-mpid\fR are specified on the
  23774. command line.
  23775. .Sp
  23776. By default this feature is not enabled. The default can be restored
  23777. via the \fB\-mno\-pid\fR command-line option.
  23778. .IP "\fB\-mno\-warn\-multiple\-fast\-interrupts\fR" 4
  23779. .IX Item "-mno-warn-multiple-fast-interrupts"
  23780. .PD 0
  23781. .IP "\fB\-mwarn\-multiple\-fast\-interrupts\fR" 4
  23782. .IX Item "-mwarn-multiple-fast-interrupts"
  23783. .PD
  23784. Prevents \s-1GCC\s0 from issuing a warning message if it finds more than one
  23785. fast interrupt handler when it is compiling a file. The default is to
  23786. issue a warning for each extra fast interrupt handler found, as the \s-1RX\s0
  23787. only supports one such interrupt.
  23788. .IP "\fB\-mallow\-string\-insns\fR" 4
  23789. .IX Item "-mallow-string-insns"
  23790. .PD 0
  23791. .IP "\fB\-mno\-allow\-string\-insns\fR" 4
  23792. .IX Item "-mno-allow-string-insns"
  23793. .PD
  23794. Enables or disables the use of the string manipulation instructions
  23795. \&\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
  23796. \&\f(CW\*(C`SWHILE\*(C'\fR and also the \f(CW\*(C`RMPA\*(C'\fR instruction. These
  23797. instructions may prefetch data, which is not safe to do if accessing
  23798. an I/O register. (See section 12.2.7 of the \s-1RX62N\s0 Group User's Manual
  23799. for more information).
  23800. .Sp
  23801. The default is to allow these instructions, but it is not possible for
  23802. \&\s-1GCC\s0 to reliably detect all circumstances where a string instruction
  23803. might be used to access an I/O register, so their use cannot be
  23804. disabled automatically. Instead it is reliant upon the programmer to
  23805. use the \fB\-mno\-allow\-string\-insns\fR option if their program
  23806. accesses I/O space.
  23807. .Sp
  23808. When the instructions are enabled \s-1GCC\s0 defines the C preprocessor
  23809. symbol \f(CW\*(C`_\|_RX_ALLOW_STRING_INSNS_\|_\*(C'\fR, otherwise it defines the
  23810. symbol \f(CW\*(C`_\|_RX_DISALLOW_STRING_INSNS_\|_\*(C'\fR.
  23811. .IP "\fB\-mjsr\fR" 4
  23812. .IX Item "-mjsr"
  23813. .PD 0
  23814. .IP "\fB\-mno\-jsr\fR" 4
  23815. .IX Item "-mno-jsr"
  23816. .PD
  23817. Use only (or not only) \f(CW\*(C`JSR\*(C'\fR instructions to access functions.
  23818. This option can be used when code size exceeds the range of \f(CW\*(C`BSR\*(C'\fR
  23819. instructions. Note that \fB\-mno\-jsr\fR does not mean to not use
  23820. \&\f(CW\*(C`JSR\*(C'\fR but instead means that any type of branch may be used.
  23821. .PP
  23822. \&\fINote:\fR The generic \s-1GCC\s0 command-line option \fB\-ffixed\-\fR\fIreg\fR
  23823. has special significance to the \s-1RX\s0 port when used with the
  23824. \&\f(CW\*(C`interrupt\*(C'\fR function attribute. This attribute indicates a
  23825. function intended to process fast interrupts. \s-1GCC\s0 ensures
  23826. that it only uses the registers \f(CW\*(C`r10\*(C'\fR, \f(CW\*(C`r11\*(C'\fR, \f(CW\*(C`r12\*(C'\fR
  23827. and/or \f(CW\*(C`r13\*(C'\fR and only provided that the normal use of the
  23828. corresponding registers have been restricted via the
  23829. \&\fB\-ffixed\-\fR\fIreg\fR or \fB\-mint\-register\fR command-line
  23830. options.
  23831. .PP
  23832. \fIS/390 and zSeries Options\fR
  23833. .IX Subsection "S/390 and zSeries Options"
  23834. .PP
  23835. These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
  23836. .IP "\fB\-mhard\-float\fR" 4
  23837. .IX Item "-mhard-float"
  23838. .PD 0
  23839. .IP "\fB\-msoft\-float\fR" 4
  23840. .IX Item "-msoft-float"
  23841. .PD
  23842. Use (do not use) the hardware floating-point instructions and registers
  23843. for floating-point operations. When \fB\-msoft\-float\fR is specified,
  23844. functions in \fIlibgcc.a\fR are used to perform floating-point
  23845. operations. When \fB\-mhard\-float\fR is specified, the compiler
  23846. generates \s-1IEEE\s0 floating-point instructions. This is the default.
  23847. .IP "\fB\-mhard\-dfp\fR" 4
  23848. .IX Item "-mhard-dfp"
  23849. .PD 0
  23850. .IP "\fB\-mno\-hard\-dfp\fR" 4
  23851. .IX Item "-mno-hard-dfp"
  23852. .PD
  23853. Use (do not use) the hardware decimal-floating-point instructions for
  23854. decimal-floating-point operations. When \fB\-mno\-hard\-dfp\fR is
  23855. specified, functions in \fIlibgcc.a\fR are used to perform
  23856. decimal-floating-point operations. When \fB\-mhard\-dfp\fR is
  23857. specified, the compiler generates decimal-floating-point hardware
  23858. instructions. This is the default for \fB\-march=z9\-ec\fR or higher.
  23859. .IP "\fB\-mlong\-double\-64\fR" 4
  23860. .IX Item "-mlong-double-64"
  23861. .PD 0
  23862. .IP "\fB\-mlong\-double\-128\fR" 4
  23863. .IX Item "-mlong-double-128"
  23864. .PD
  23865. These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
  23866. of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
  23867. type. This is the default.
  23868. .IP "\fB\-mbackchain\fR" 4
  23869. .IX Item "-mbackchain"
  23870. .PD 0
  23871. .IP "\fB\-mno\-backchain\fR" 4
  23872. .IX Item "-mno-backchain"
  23873. .PD
  23874. Store (do not store) the address of the caller's frame as backchain pointer
  23875. into the callee's stack frame.
  23876. A backchain may be needed to allow debugging using tools that do not understand
  23877. \&\s-1DWARF\s0 call frame information.
  23878. When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
  23879. at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
  23880. the backchain is placed into the topmost word of the 96/160 byte register
  23881. save area.
  23882. .Sp
  23883. In general, code compiled with \fB\-mbackchain\fR is call-compatible with
  23884. code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
  23885. for debugging purposes usually requires that the whole binary is built with
  23886. \&\fB\-mbackchain\fR. Note that the combination of \fB\-mbackchain\fR,
  23887. \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported. In order
  23888. to build a linux kernel use \fB\-msoft\-float\fR.
  23889. .Sp
  23890. The default is to not maintain the backchain.
  23891. .IP "\fB\-mpacked\-stack\fR" 4
  23892. .IX Item "-mpacked-stack"
  23893. .PD 0
  23894. .IP "\fB\-mno\-packed\-stack\fR" 4
  23895. .IX Item "-mno-packed-stack"
  23896. .PD
  23897. Use (do not use) the packed stack layout. When \fB\-mno\-packed\-stack\fR is
  23898. specified, the compiler uses the all fields of the 96/160 byte register save
  23899. area only for their default purpose; unused fields still take up stack space.
  23900. When \fB\-mpacked\-stack\fR is specified, register save slots are densely
  23901. packed at the top of the register save area; unused space is reused for other
  23902. purposes, allowing for more efficient use of the available stack space.
  23903. However, when \fB\-mbackchain\fR is also in effect, the topmost word of
  23904. the save area is always used to store the backchain, and the return address
  23905. register is always saved two words below the backchain.
  23906. .Sp
  23907. As long as the stack frame backchain is not used, code generated with
  23908. \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
  23909. \&\fB\-mno\-packed\-stack\fR. Note that some non-FSF releases of \s-1GCC 2.95\s0 for
  23910. S/390 or zSeries generated code that uses the stack frame backchain at run
  23911. time, not just for debugging purposes. Such code is not call-compatible
  23912. with code compiled with \fB\-mpacked\-stack\fR. Also, note that the
  23913. combination of \fB\-mbackchain\fR,
  23914. \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported. In order
  23915. to build a linux kernel use \fB\-msoft\-float\fR.
  23916. .Sp
  23917. The default is to not use the packed stack layout.
  23918. .IP "\fB\-msmall\-exec\fR" 4
  23919. .IX Item "-msmall-exec"
  23920. .PD 0
  23921. .IP "\fB\-mno\-small\-exec\fR" 4
  23922. .IX Item "-mno-small-exec"
  23923. .PD
  23924. Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
  23925. to do subroutine calls.
  23926. This only works reliably if the total executable size does not
  23927. exceed 64k. The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
  23928. which does not have this limitation.
  23929. .IP "\fB\-m64\fR" 4
  23930. .IX Item "-m64"
  23931. .PD 0
  23932. .IP "\fB\-m31\fR" 4
  23933. .IX Item "-m31"
  23934. .PD
  23935. When \fB\-m31\fR is specified, generate code compliant to the
  23936. GNU/Linux for S/390 \s-1ABI.\s0 When \fB\-m64\fR is specified, generate
  23937. code compliant to the GNU/Linux for zSeries \s-1ABI.\s0 This allows \s-1GCC\s0 in
  23938. particular to generate 64\-bit instructions. For the \fBs390\fR
  23939. targets, the default is \fB\-m31\fR, while the \fBs390x\fR
  23940. targets default to \fB\-m64\fR.
  23941. .IP "\fB\-mzarch\fR" 4
  23942. .IX Item "-mzarch"
  23943. .PD 0
  23944. .IP "\fB\-mesa\fR" 4
  23945. .IX Item "-mesa"
  23946. .PD
  23947. When \fB\-mzarch\fR is specified, generate code using the
  23948. instructions available on z/Architecture.
  23949. When \fB\-mesa\fR is specified, generate code using the
  23950. instructions available on \s-1ESA/390.\s0 Note that \fB\-mesa\fR is
  23951. not possible with \fB\-m64\fR.
  23952. When generating code compliant to the GNU/Linux for S/390 \s-1ABI,\s0
  23953. the default is \fB\-mesa\fR. When generating code compliant
  23954. to the GNU/Linux for zSeries \s-1ABI,\s0 the default is \fB\-mzarch\fR.
  23955. .IP "\fB\-mhtm\fR" 4
  23956. .IX Item "-mhtm"
  23957. .PD 0
  23958. .IP "\fB\-mno\-htm\fR" 4
  23959. .IX Item "-mno-htm"
  23960. .PD
  23961. The \fB\-mhtm\fR option enables a set of builtins making use of
  23962. instructions available with the transactional execution facility
  23963. introduced with the \s-1IBM\s0 zEnterprise \s-1EC12\s0 machine generation
  23964. \&\fBS/390 System z Built-in Functions\fR.
  23965. \&\fB\-mhtm\fR is enabled by default when using \fB\-march=zEC12\fR.
  23966. .IP "\fB\-mvx\fR" 4
  23967. .IX Item "-mvx"
  23968. .PD 0
  23969. .IP "\fB\-mno\-vx\fR" 4
  23970. .IX Item "-mno-vx"
  23971. .PD
  23972. When \fB\-mvx\fR is specified, generate code using the instructions
  23973. available with the vector extension facility introduced with the \s-1IBM\s0
  23974. z13 machine generation.
  23975. This option changes the \s-1ABI\s0 for some vector type values with regard to
  23976. alignment and calling conventions. In case vector type values are
  23977. being used in an ABI-relevant context a \s-1GAS\s0 \fB.gnu_attribute\fR
  23978. command will be added to mark the resulting binary with the \s-1ABI\s0 used.
  23979. \&\fB\-mvx\fR is enabled by default when using \fB\-march=z13\fR.
  23980. .IP "\fB\-mzvector\fR" 4
  23981. .IX Item "-mzvector"
  23982. .PD 0
  23983. .IP "\fB\-mno\-zvector\fR" 4
  23984. .IX Item "-mno-zvector"
  23985. .PD
  23986. The \fB\-mzvector\fR option enables vector language extensions and
  23987. builtins using instructions available with the vector extension
  23988. facility introduced with the \s-1IBM\s0 z13 machine generation.
  23989. This option adds support for \fBvector\fR to be used as a keyword to
  23990. define vector type variables and arguments. \fBvector\fR is only
  23991. available when \s-1GNU\s0 extensions are enabled. It will not be expanded
  23992. when requesting strict standard compliance e.g. with \fB\-std=c99\fR.
  23993. In addition to the \s-1GCC\s0 low-level builtins \fB\-mzvector\fR enables
  23994. a set of builtins added for compatibility with AltiVec-style
  23995. implementations like Power and Cell. In order to make use of these
  23996. builtins the header file \fIvecintrin.h\fR needs to be included.
  23997. \&\fB\-mzvector\fR is disabled by default.
  23998. .IP "\fB\-mmvcle\fR" 4
  23999. .IX Item "-mmvcle"
  24000. .PD 0
  24001. .IP "\fB\-mno\-mvcle\fR" 4
  24002. .IX Item "-mno-mvcle"
  24003. .PD
  24004. Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
  24005. to perform block moves. When \fB\-mno\-mvcle\fR is specified,
  24006. use a \f(CW\*(C`mvc\*(C'\fR loop instead. This is the default unless optimizing for
  24007. size.
  24008. .IP "\fB\-mdebug\fR" 4
  24009. .IX Item "-mdebug"
  24010. .PD 0
  24011. .IP "\fB\-mno\-debug\fR" 4
  24012. .IX Item "-mno-debug"
  24013. .PD
  24014. Print (or do not print) additional debug information when compiling.
  24015. The default is to not print debug information.
  24016. .IP "\fB\-march=\fR\fIcpu-type\fR" 4
  24017. .IX Item "-march=cpu-type"
  24018. Generate code that runs on \fIcpu-type\fR, which is the name of a
  24019. system representing a certain processor type. Possible values for
  24020. \&\fIcpu-type\fR are \fBz900\fR/\fBarch5\fR, \fBz990\fR/\fBarch6\fR,
  24021. \&\fBz9\-109\fR, \fBz9\-ec\fR/\fBarch7\fR, \fBz10\fR/\fBarch8\fR,
  24022. \&\fBz196\fR/\fBarch9\fR, \fBzEC12\fR, \fBz13\fR/\fBarch11\fR,
  24023. \&\fBz14\fR/\fBarch12\fR, and \fBnative\fR.
  24024. .Sp
  24025. The default is \fB\-march=z900\fR. \fBg5\fR/\fBarch3\fR and
  24026. \&\fBg6\fR are deprecated and will be removed with future releases.
  24027. .Sp
  24028. Specifying \fBnative\fR as cpu type can be used to select the best
  24029. architecture option for the host processor.
  24030. \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize the
  24031. processor.
  24032. .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
  24033. .IX Item "-mtune=cpu-type"
  24034. Tune to \fIcpu-type\fR everything applicable about the generated code,
  24035. except for the \s-1ABI\s0 and the set of available instructions.
  24036. The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
  24037. The default is the value used for \fB\-march\fR.
  24038. .IP "\fB\-mtpf\-trace\fR" 4
  24039. .IX Item "-mtpf-trace"
  24040. .PD 0
  24041. .IP "\fB\-mno\-tpf\-trace\fR" 4
  24042. .IX Item "-mno-tpf-trace"
  24043. .PD
  24044. Generate code that adds (does not add) in \s-1TPF OS\s0 specific branches to trace
  24045. routines in the operating system. This option is off by default, even
  24046. when compiling for the \s-1TPF OS.\s0
  24047. .IP "\fB\-mfused\-madd\fR" 4
  24048. .IX Item "-mfused-madd"
  24049. .PD 0
  24050. .IP "\fB\-mno\-fused\-madd\fR" 4
  24051. .IX Item "-mno-fused-madd"
  24052. .PD
  24053. Generate code that uses (does not use) the floating-point multiply and
  24054. accumulate instructions. These instructions are generated by default if
  24055. hardware floating point is used.
  24056. .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
  24057. .IX Item "-mwarn-framesize=framesize"
  24058. Emit a warning if the current function exceeds the given frame size. Because
  24059. this is a compile-time check it doesn't need to be a real problem when the program
  24060. runs. It is intended to identify functions that most probably cause
  24061. a stack overflow. It is useful to be used in an environment with limited stack
  24062. size e.g. the linux kernel.
  24063. .IP "\fB\-mwarn\-dynamicstack\fR" 4
  24064. .IX Item "-mwarn-dynamicstack"
  24065. Emit a warning if the function calls \f(CW\*(C`alloca\*(C'\fR or uses dynamically-sized
  24066. arrays. This is generally a bad idea with a limited stack size.
  24067. .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
  24068. .IX Item "-mstack-guard=stack-guard"
  24069. .PD 0
  24070. .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
  24071. .IX Item "-mstack-size=stack-size"
  24072. .PD
  24073. If these options are provided the S/390 back end emits additional instructions in
  24074. the function prologue that trigger a trap if the stack size is \fIstack-guard\fR
  24075. bytes above the \fIstack-size\fR (remember that the stack on S/390 grows downward).
  24076. If the \fIstack-guard\fR option is omitted the smallest power of 2 larger than
  24077. the frame size of the compiled function is chosen.
  24078. These options are intended to be used to help debugging stack overflow problems.
  24079. The additionally emitted code causes only little overhead and hence can also be
  24080. used in production-like systems without greater performance degradation. The given
  24081. values have to be exact powers of 2 and \fIstack-size\fR has to be greater than
  24082. \&\fIstack-guard\fR without exceeding 64k.
  24083. In order to be efficient the extra code makes the assumption that the stack starts
  24084. at an address aligned to the value given by \fIstack-size\fR.
  24085. The \fIstack-guard\fR option can only be used in conjunction with \fIstack-size\fR.
  24086. .IP "\fB\-mhotpatch=\fR\fIpre-halfwords\fR\fB,\fR\fIpost-halfwords\fR" 4
  24087. .IX Item "-mhotpatch=pre-halfwords,post-halfwords"
  24088. If the hotpatch option is enabled, a \*(L"hot-patching\*(R" function
  24089. prologue is generated for all functions in the compilation unit.
  24090. The funtion label is prepended with the given number of two-byte
  24091. \&\s-1NOP\s0 instructions (\fIpre-halfwords\fR, maximum 1000000). After
  24092. the label, 2 * \fIpost-halfwords\fR bytes are appended, using the
  24093. largest \s-1NOP\s0 like instructions the architecture allows (maximum
  24094. 1000000).
  24095. .Sp
  24096. If both arguments are zero, hotpatching is disabled.
  24097. .Sp
  24098. This option can be overridden for individual functions with the
  24099. \&\f(CW\*(C`hotpatch\*(C'\fR attribute.
  24100. .PP
  24101. \fIScore Options\fR
  24102. .IX Subsection "Score Options"
  24103. .PP
  24104. These options are defined for Score implementations:
  24105. .IP "\fB\-meb\fR" 4
  24106. .IX Item "-meb"
  24107. Compile code for big-endian mode. This is the default.
  24108. .IP "\fB\-mel\fR" 4
  24109. .IX Item "-mel"
  24110. Compile code for little-endian mode.
  24111. .IP "\fB\-mnhwloop\fR" 4
  24112. .IX Item "-mnhwloop"
  24113. Disable generation of \f(CW\*(C`bcnz\*(C'\fR instructions.
  24114. .IP "\fB\-muls\fR" 4
  24115. .IX Item "-muls"
  24116. Enable generation of unaligned load and store instructions.
  24117. .IP "\fB\-mmac\fR" 4
  24118. .IX Item "-mmac"
  24119. Enable the use of multiply-accumulate instructions. Disabled by default.
  24120. .IP "\fB\-mscore5\fR" 4
  24121. .IX Item "-mscore5"
  24122. Specify the \s-1SCORE5\s0 as the target architecture.
  24123. .IP "\fB\-mscore5u\fR" 4
  24124. .IX Item "-mscore5u"
  24125. Specify the \s-1SCORE5U\s0 of the target architecture.
  24126. .IP "\fB\-mscore7\fR" 4
  24127. .IX Item "-mscore7"
  24128. Specify the \s-1SCORE7\s0 as the target architecture. This is the default.
  24129. .IP "\fB\-mscore7d\fR" 4
  24130. .IX Item "-mscore7d"
  24131. Specify the \s-1SCORE7D\s0 as the target architecture.
  24132. .PP
  24133. \fI\s-1SH\s0 Options\fR
  24134. .IX Subsection "SH Options"
  24135. .PP
  24136. These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
  24137. .IP "\fB\-m1\fR" 4
  24138. .IX Item "-m1"
  24139. Generate code for the \s-1SH1.\s0
  24140. .IP "\fB\-m2\fR" 4
  24141. .IX Item "-m2"
  24142. Generate code for the \s-1SH2.\s0
  24143. .IP "\fB\-m2e\fR" 4
  24144. .IX Item "-m2e"
  24145. Generate code for the SH2e.
  24146. .IP "\fB\-m2a\-nofpu\fR" 4
  24147. .IX Item "-m2a-nofpu"
  24148. Generate code for the SH2a without \s-1FPU,\s0 or for a SH2a\-FPU in such a way
  24149. that the floating-point unit is not used.
  24150. .IP "\fB\-m2a\-single\-only\fR" 4
  24151. .IX Item "-m2a-single-only"
  24152. Generate code for the SH2a\-FPU, in such a way that no double-precision
  24153. floating-point operations are used.
  24154. .IP "\fB\-m2a\-single\fR" 4
  24155. .IX Item "-m2a-single"
  24156. Generate code for the SH2a\-FPU assuming the floating-point unit is in
  24157. single-precision mode by default.
  24158. .IP "\fB\-m2a\fR" 4
  24159. .IX Item "-m2a"
  24160. Generate code for the SH2a\-FPU assuming the floating-point unit is in
  24161. double-precision mode by default.
  24162. .IP "\fB\-m3\fR" 4
  24163. .IX Item "-m3"
  24164. Generate code for the \s-1SH3.\s0
  24165. .IP "\fB\-m3e\fR" 4
  24166. .IX Item "-m3e"
  24167. Generate code for the SH3e.
  24168. .IP "\fB\-m4\-nofpu\fR" 4
  24169. .IX Item "-m4-nofpu"
  24170. Generate code for the \s-1SH4\s0 without a floating-point unit.
  24171. .IP "\fB\-m4\-single\-only\fR" 4
  24172. .IX Item "-m4-single-only"
  24173. Generate code for the \s-1SH4\s0 with a floating-point unit that only
  24174. supports single-precision arithmetic.
  24175. .IP "\fB\-m4\-single\fR" 4
  24176. .IX Item "-m4-single"
  24177. Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
  24178. single-precision mode by default.
  24179. .IP "\fB\-m4\fR" 4
  24180. .IX Item "-m4"
  24181. Generate code for the \s-1SH4.\s0
  24182. .IP "\fB\-m4\-100\fR" 4
  24183. .IX Item "-m4-100"
  24184. Generate code for \s-1SH4\-100.\s0
  24185. .IP "\fB\-m4\-100\-nofpu\fR" 4
  24186. .IX Item "-m4-100-nofpu"
  24187. Generate code for \s-1SH4\-100\s0 in such a way that the
  24188. floating-point unit is not used.
  24189. .IP "\fB\-m4\-100\-single\fR" 4
  24190. .IX Item "-m4-100-single"
  24191. Generate code for \s-1SH4\-100\s0 assuming the floating-point unit is in
  24192. single-precision mode by default.
  24193. .IP "\fB\-m4\-100\-single\-only\fR" 4
  24194. .IX Item "-m4-100-single-only"
  24195. Generate code for \s-1SH4\-100\s0 in such a way that no double-precision
  24196. floating-point operations are used.
  24197. .IP "\fB\-m4\-200\fR" 4
  24198. .IX Item "-m4-200"
  24199. Generate code for \s-1SH4\-200.\s0
  24200. .IP "\fB\-m4\-200\-nofpu\fR" 4
  24201. .IX Item "-m4-200-nofpu"
  24202. Generate code for \s-1SH4\-200\s0 without in such a way that the
  24203. floating-point unit is not used.
  24204. .IP "\fB\-m4\-200\-single\fR" 4
  24205. .IX Item "-m4-200-single"
  24206. Generate code for \s-1SH4\-200\s0 assuming the floating-point unit is in
  24207. single-precision mode by default.
  24208. .IP "\fB\-m4\-200\-single\-only\fR" 4
  24209. .IX Item "-m4-200-single-only"
  24210. Generate code for \s-1SH4\-200\s0 in such a way that no double-precision
  24211. floating-point operations are used.
  24212. .IP "\fB\-m4\-300\fR" 4
  24213. .IX Item "-m4-300"
  24214. Generate code for \s-1SH4\-300.\s0
  24215. .IP "\fB\-m4\-300\-nofpu\fR" 4
  24216. .IX Item "-m4-300-nofpu"
  24217. Generate code for \s-1SH4\-300\s0 without in such a way that the
  24218. floating-point unit is not used.
  24219. .IP "\fB\-m4\-300\-single\fR" 4
  24220. .IX Item "-m4-300-single"
  24221. Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
  24222. floating-point operations are used.
  24223. .IP "\fB\-m4\-300\-single\-only\fR" 4
  24224. .IX Item "-m4-300-single-only"
  24225. Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
  24226. floating-point operations are used.
  24227. .IP "\fB\-m4\-340\fR" 4
  24228. .IX Item "-m4-340"
  24229. Generate code for \s-1SH4\-340\s0 (no \s-1MMU,\s0 no \s-1FPU\s0).
  24230. .IP "\fB\-m4\-500\fR" 4
  24231. .IX Item "-m4-500"
  24232. Generate code for \s-1SH4\-500\s0 (no \s-1FPU\s0). Passes \fB\-isa=sh4\-nofpu\fR to the
  24233. assembler.
  24234. .IP "\fB\-m4a\-nofpu\fR" 4
  24235. .IX Item "-m4a-nofpu"
  24236. Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
  24237. floating-point unit is not used.
  24238. .IP "\fB\-m4a\-single\-only\fR" 4
  24239. .IX Item "-m4a-single-only"
  24240. Generate code for the SH4a, in such a way that no double-precision
  24241. floating-point operations are used.
  24242. .IP "\fB\-m4a\-single\fR" 4
  24243. .IX Item "-m4a-single"
  24244. Generate code for the SH4a assuming the floating-point unit is in
  24245. single-precision mode by default.
  24246. .IP "\fB\-m4a\fR" 4
  24247. .IX Item "-m4a"
  24248. Generate code for the SH4a.
  24249. .IP "\fB\-m4al\fR" 4
  24250. .IX Item "-m4al"
  24251. Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
  24252. \&\fB\-dsp\fR to the assembler. \s-1GCC\s0 doesn't generate any \s-1DSP\s0
  24253. instructions at the moment.
  24254. .IP "\fB\-mb\fR" 4
  24255. .IX Item "-mb"
  24256. Compile code for the processor in big-endian mode.
  24257. .IP "\fB\-ml\fR" 4
  24258. .IX Item "-ml"
  24259. Compile code for the processor in little-endian mode.
  24260. .IP "\fB\-mdalign\fR" 4
  24261. .IX Item "-mdalign"
  24262. Align doubles at 64\-bit boundaries. Note that this changes the calling
  24263. conventions, and thus some functions from the standard C library do
  24264. not work unless you recompile it first with \fB\-mdalign\fR.
  24265. .IP "\fB\-mrelax\fR" 4
  24266. .IX Item "-mrelax"
  24267. Shorten some address references at link time, when possible; uses the
  24268. linker option \fB\-relax\fR.
  24269. .IP "\fB\-mbigtable\fR" 4
  24270. .IX Item "-mbigtable"
  24271. Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables. The default is to use
  24272. 16\-bit offsets.
  24273. .IP "\fB\-mbitops\fR" 4
  24274. .IX Item "-mbitops"
  24275. Enable the use of bit manipulation instructions on \s-1SH2A.\s0
  24276. .IP "\fB\-mfmovd\fR" 4
  24277. .IX Item "-mfmovd"
  24278. Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR. Check \fB\-mdalign\fR for
  24279. alignment constraints.
  24280. .IP "\fB\-mrenesas\fR" 4
  24281. .IX Item "-mrenesas"
  24282. Comply with the calling conventions defined by Renesas.
  24283. .IP "\fB\-mno\-renesas\fR" 4
  24284. .IX Item "-mno-renesas"
  24285. Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
  24286. conventions were available. This option is the default for all
  24287. targets of the \s-1SH\s0 toolchain.
  24288. .IP "\fB\-mnomacsave\fR" 4
  24289. .IX Item "-mnomacsave"
  24290. Mark the \f(CW\*(C`MAC\*(C'\fR register as call-clobbered, even if
  24291. \&\fB\-mrenesas\fR is given.
  24292. .IP "\fB\-mieee\fR" 4
  24293. .IX Item "-mieee"
  24294. .PD 0
  24295. .IP "\fB\-mno\-ieee\fR" 4
  24296. .IX Item "-mno-ieee"
  24297. .PD
  24298. Control the \s-1IEEE\s0 compliance of floating-point comparisons, which affects the
  24299. handling of cases where the result of a comparison is unordered. By default
  24300. \&\fB\-mieee\fR is implicitly enabled. If \fB\-ffinite\-math\-only\fR is
  24301. enabled \fB\-mno\-ieee\fR is implicitly set, which results in faster
  24302. floating-point greater-equal and less-equal comparisons. The implicit settings
  24303. can be overridden by specifying either \fB\-mieee\fR or \fB\-mno\-ieee\fR.
  24304. .IP "\fB\-minline\-ic_invalidate\fR" 4
  24305. .IX Item "-minline-ic_invalidate"
  24306. Inline code to invalidate instruction cache entries after setting up
  24307. nested function trampolines.
  24308. This option has no effect if \fB\-musermode\fR is in effect and the selected
  24309. code generation option (e.g. \fB\-m4\fR) does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
  24310. instruction.
  24311. If the selected code generation option does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
  24312. instruction, and \fB\-musermode\fR is not in effect, the inlined code
  24313. manipulates the instruction cache address array directly with an associative
  24314. write. This not only requires privileged mode at run time, but it also
  24315. fails if the cache line had been mapped via the \s-1TLB\s0 and has become unmapped.
  24316. .IP "\fB\-misize\fR" 4
  24317. .IX Item "-misize"
  24318. Dump instruction size and location in the assembly code.
  24319. .IP "\fB\-mpadstruct\fR" 4
  24320. .IX Item "-mpadstruct"
  24321. This option is deprecated. It pads structures to multiple of 4 bytes,
  24322. which is incompatible with the \s-1SH ABI.\s0
  24323. .IP "\fB\-matomic\-model=\fR\fImodel\fR" 4
  24324. .IX Item "-matomic-model=model"
  24325. Sets the model of atomic operations and additional parameters as a comma
  24326. separated list. For details on the atomic built-in functions see
  24327. \&\fB_\|_atomic Builtins\fR. The following models and parameters are supported:
  24328. .RS 4
  24329. .IP "\fBnone\fR" 4
  24330. .IX Item "none"
  24331. Disable compiler generated atomic sequences and emit library calls for atomic
  24332. operations. This is the default if the target is not \f(CW\*(C`sh*\-*\-linux*\*(C'\fR.
  24333. .IP "\fBsoft-gusa\fR" 4
  24334. .IX Item "soft-gusa"
  24335. Generate GNU/Linux compatible gUSA software atomic sequences for the atomic
  24336. built-in functions. The generated atomic sequences require additional support
  24337. from the interrupt/exception handling code of the system and are only suitable
  24338. for SH3* and SH4* single-core systems. This option is enabled by default when
  24339. the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH3* or SH4*. When the target is \s-1SH4A,\s0
  24340. this option also partially utilizes the hardware atomic instructions
  24341. \&\f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR to create more efficient code, unless
  24342. \&\fBstrict\fR is specified.
  24343. .IP "\fBsoft-tcb\fR" 4
  24344. .IX Item "soft-tcb"
  24345. Generate software atomic sequences that use a variable in the thread control
  24346. block. This is a variation of the gUSA sequences which can also be used on
  24347. SH1* and SH2* targets. The generated atomic sequences require additional
  24348. support from the interrupt/exception handling code of the system and are only
  24349. suitable for single-core systems. When using this model, the \fBgbr\-offset=\fR
  24350. parameter has to be specified as well.
  24351. .IP "\fBsoft-imask\fR" 4
  24352. .IX Item "soft-imask"
  24353. Generate software atomic sequences that temporarily disable interrupts by
  24354. setting \f(CW\*(C`SR.IMASK = 1111\*(C'\fR. This model works only when the program runs
  24355. in privileged mode and is only suitable for single-core systems. Additional
  24356. support from the interrupt/exception handling code of the system is not
  24357. required. This model is enabled by default when the target is
  24358. \&\f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH1* or SH2*.
  24359. .IP "\fBhard-llcs\fR" 4
  24360. .IX Item "hard-llcs"
  24361. Generate hardware atomic sequences using the \f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR
  24362. instructions only. This is only available on \s-1SH4A\s0 and is suitable for
  24363. multi-core systems. Since the hardware instructions support only 32 bit atomic
  24364. variables access to 8 or 16 bit variables is emulated with 32 bit accesses.
  24365. Code compiled with this option is also compatible with other software
  24366. atomic model interrupt/exception handling systems if executed on an \s-1SH4A\s0
  24367. system. Additional support from the interrupt/exception handling code of the
  24368. system is not required for this model.
  24369. .IP "\fBgbr\-offset=\fR" 4
  24370. .IX Item "gbr-offset="
  24371. This parameter specifies the offset in bytes of the variable in the thread
  24372. control block structure that should be used by the generated atomic sequences
  24373. when the \fBsoft-tcb\fR model has been selected. For other models this
  24374. parameter is ignored. The specified value must be an integer multiple of four
  24375. and in the range 0\-1020.
  24376. .IP "\fBstrict\fR" 4
  24377. .IX Item "strict"
  24378. This parameter prevents mixed usage of multiple atomic models, even if they
  24379. are compatible, and makes the compiler generate atomic sequences of the
  24380. specified model only.
  24381. .RE
  24382. .RS 4
  24383. .RE
  24384. .IP "\fB\-mtas\fR" 4
  24385. .IX Item "-mtas"
  24386. Generate the \f(CW\*(C`tas.b\*(C'\fR opcode for \f(CW\*(C`_\|_atomic_test_and_set\*(C'\fR.
  24387. Notice that depending on the particular hardware and software configuration
  24388. this can degrade overall performance due to the operand cache line flushes
  24389. that are implied by the \f(CW\*(C`tas.b\*(C'\fR instruction. On multi-core \s-1SH4A\s0
  24390. processors the \f(CW\*(C`tas.b\*(C'\fR instruction must be used with caution since it
  24391. can result in data corruption for certain cache configurations.
  24392. .IP "\fB\-mprefergot\fR" 4
  24393. .IX Item "-mprefergot"
  24394. When generating position-independent code, emit function calls using
  24395. the Global Offset Table instead of the Procedure Linkage Table.
  24396. .IP "\fB\-musermode\fR" 4
  24397. .IX Item "-musermode"
  24398. .PD 0
  24399. .IP "\fB\-mno\-usermode\fR" 4
  24400. .IX Item "-mno-usermode"
  24401. .PD
  24402. Don't allow (allow) the compiler generating privileged mode code. Specifying
  24403. \&\fB\-musermode\fR also implies \fB\-mno\-inline\-ic_invalidate\fR if the
  24404. inlined code would not work in user mode. \fB\-musermode\fR is the default
  24405. when the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR. If the target is SH1* or SH2*
  24406. \&\fB\-musermode\fR has no effect, since there is no user mode.
  24407. .IP "\fB\-multcost=\fR\fInumber\fR" 4
  24408. .IX Item "-multcost=number"
  24409. Set the cost to assume for a multiply insn.
  24410. .IP "\fB\-mdiv=\fR\fIstrategy\fR" 4
  24411. .IX Item "-mdiv=strategy"
  24412. Set the division strategy to be used for integer division operations.
  24413. \&\fIstrategy\fR can be one of:
  24414. .RS 4
  24415. .IP "\fBcall\-div1\fR" 4
  24416. .IX Item "call-div1"
  24417. Calls a library function that uses the single-step division instruction
  24418. \&\f(CW\*(C`div1\*(C'\fR to perform the operation. Division by zero calculates an
  24419. unspecified result and does not trap. This is the default except for \s-1SH4,
  24420. SH2A\s0 and SHcompact.
  24421. .IP "\fBcall-fp\fR" 4
  24422. .IX Item "call-fp"
  24423. Calls a library function that performs the operation in double precision
  24424. floating point. Division by zero causes a floating-point exception. This is
  24425. the default for SHcompact with \s-1FPU.\s0 Specifying this for targets that do not
  24426. have a double precision \s-1FPU\s0 defaults to \f(CW\*(C`call\-div1\*(C'\fR.
  24427. .IP "\fBcall-table\fR" 4
  24428. .IX Item "call-table"
  24429. Calls a library function that uses a lookup table for small divisors and
  24430. the \f(CW\*(C`div1\*(C'\fR instruction with case distinction for larger divisors. Division
  24431. by zero calculates an unspecified result and does not trap. This is the default
  24432. for \s-1SH4.\s0 Specifying this for targets that do not have dynamic shift
  24433. instructions defaults to \f(CW\*(C`call\-div1\*(C'\fR.
  24434. .RE
  24435. .RS 4
  24436. .Sp
  24437. When a division strategy has not been specified the default strategy is
  24438. selected based on the current target. For \s-1SH2A\s0 the default strategy is to
  24439. use the \f(CW\*(C`divs\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions instead of library function
  24440. calls.
  24441. .RE
  24442. .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
  24443. .IX Item "-maccumulate-outgoing-args"
  24444. Reserve space once for outgoing arguments in the function prologue rather
  24445. than around each call. Generally beneficial for performance and size. Also
  24446. needed for unwinding to avoid changing the stack frame around conditional code.
  24447. .IP "\fB\-mdivsi3_libfunc=\fR\fIname\fR" 4
  24448. .IX Item "-mdivsi3_libfunc=name"
  24449. Set the name of the library function used for 32\-bit signed division to
  24450. \&\fIname\fR.
  24451. This only affects the name used in the \fBcall\fR division strategies, and
  24452. the compiler still expects the same sets of input/output/clobbered registers as
  24453. if this option were not present.
  24454. .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
  24455. .IX Item "-mfixed-range=register-range"
  24456. Generate code treating the given register range as fixed registers.
  24457. A fixed register is one that the register allocator can not use. This is
  24458. useful when compiling kernel code. A register range is specified as
  24459. two registers separated by a dash. Multiple register ranges can be
  24460. specified separated by a comma.
  24461. .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
  24462. .IX Item "-mbranch-cost=num"
  24463. Assume \fInum\fR to be the cost for a branch instruction. Higher numbers
  24464. make the compiler try to generate more branch-free code if possible.
  24465. If not specified the value is selected depending on the processor type that
  24466. is being compiled for.
  24467. .IP "\fB\-mzdcbranch\fR" 4
  24468. .IX Item "-mzdcbranch"
  24469. .PD 0
  24470. .IP "\fB\-mno\-zdcbranch\fR" 4
  24471. .IX Item "-mno-zdcbranch"
  24472. .PD
  24473. Assume (do not assume) that zero displacement conditional branch instructions
  24474. \&\f(CW\*(C`bt\*(C'\fR and \f(CW\*(C`bf\*(C'\fR are fast. If \fB\-mzdcbranch\fR is specified, the
  24475. compiler prefers zero displacement branch code sequences. This is
  24476. enabled by default when generating code for \s-1SH4\s0 and \s-1SH4A.\s0 It can be explicitly
  24477. disabled by specifying \fB\-mno\-zdcbranch\fR.
  24478. .IP "\fB\-mcbranch\-force\-delay\-slot\fR" 4
  24479. .IX Item "-mcbranch-force-delay-slot"
  24480. Force the usage of delay slots for conditional branches, which stuffs the delay
  24481. slot with a \f(CW\*(C`nop\*(C'\fR if a suitable instruction cannot be found. By default
  24482. this option is disabled. It can be enabled to work around hardware bugs as
  24483. found in the original \s-1SH7055.\s0
  24484. .IP "\fB\-mfused\-madd\fR" 4
  24485. .IX Item "-mfused-madd"
  24486. .PD 0
  24487. .IP "\fB\-mno\-fused\-madd\fR" 4
  24488. .IX Item "-mno-fused-madd"
  24489. .PD
  24490. Generate code that uses (does not use) the floating-point multiply and
  24491. accumulate instructions. These instructions are generated by default
  24492. if hardware floating point is used. The machine-dependent
  24493. \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
  24494. \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
  24495. mapped to \fB\-ffp\-contract=off\fR.
  24496. .IP "\fB\-mfsca\fR" 4
  24497. .IX Item "-mfsca"
  24498. .PD 0
  24499. .IP "\fB\-mno\-fsca\fR" 4
  24500. .IX Item "-mno-fsca"
  24501. .PD
  24502. Allow or disallow the compiler to emit the \f(CW\*(C`fsca\*(C'\fR instruction for sine
  24503. and cosine approximations. The option \fB\-mfsca\fR must be used in
  24504. combination with \fB\-funsafe\-math\-optimizations\fR. It is enabled by default
  24505. when generating code for \s-1SH4A.\s0 Using \fB\-mno\-fsca\fR disables sine and cosine
  24506. approximations even if \fB\-funsafe\-math\-optimizations\fR is in effect.
  24507. .IP "\fB\-mfsrra\fR" 4
  24508. .IX Item "-mfsrra"
  24509. .PD 0
  24510. .IP "\fB\-mno\-fsrra\fR" 4
  24511. .IX Item "-mno-fsrra"
  24512. .PD
  24513. Allow or disallow the compiler to emit the \f(CW\*(C`fsrra\*(C'\fR instruction for
  24514. reciprocal square root approximations. The option \fB\-mfsrra\fR must be used
  24515. in combination with \fB\-funsafe\-math\-optimizations\fR and
  24516. \&\fB\-ffinite\-math\-only\fR. It is enabled by default when generating code for
  24517. \&\s-1SH4A.\s0 Using \fB\-mno\-fsrra\fR disables reciprocal square root approximations
  24518. even if \fB\-funsafe\-math\-optimizations\fR and \fB\-ffinite\-math\-only\fR are
  24519. in effect.
  24520. .IP "\fB\-mpretend\-cmove\fR" 4
  24521. .IX Item "-mpretend-cmove"
  24522. Prefer zero-displacement conditional branches for conditional move instruction
  24523. patterns. This can result in faster code on the \s-1SH4\s0 processor.
  24524. .IP "\fB\-mfdpic\fR" 4
  24525. .IX Item "-mfdpic"
  24526. Generate code using the \s-1FDPIC ABI.\s0
  24527. .PP
  24528. \fISolaris 2 Options\fR
  24529. .IX Subsection "Solaris 2 Options"
  24530. .PP
  24531. These \fB\-m\fR options are supported on Solaris 2:
  24532. .IP "\fB\-mclear\-hwcap\fR" 4
  24533. .IX Item "-mclear-hwcap"
  24534. \&\fB\-mclear\-hwcap\fR tells the compiler to remove the hardware
  24535. capabilities generated by the Solaris assembler. This is only necessary
  24536. when object files use \s-1ISA\s0 extensions not supported by the current
  24537. machine, but check at runtime whether or not to use them.
  24538. .IP "\fB\-mimpure\-text\fR" 4
  24539. .IX Item "-mimpure-text"
  24540. \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
  24541. the compiler to not pass \fB\-z text\fR to the linker when linking a
  24542. shared object. Using this option, you can link position-dependent
  24543. code into a shared object.
  24544. .Sp
  24545. \&\fB\-mimpure\-text\fR suppresses the \*(L"relocations remain against
  24546. allocatable but non-writable sections\*(R" linker error message.
  24547. However, the necessary relocations trigger copy-on-write, and the
  24548. shared object is not actually shared across processes. Instead of
  24549. using \fB\-mimpure\-text\fR, you should compile all source code with
  24550. \&\fB\-fpic\fR or \fB\-fPIC\fR.
  24551. .PP
  24552. These switches are supported in addition to the above on Solaris 2:
  24553. .IP "\fB\-pthreads\fR" 4
  24554. .IX Item "-pthreads"
  24555. This is a synonym for \fB\-pthread\fR.
  24556. .PP
  24557. \fI\s-1SPARC\s0 Options\fR
  24558. .IX Subsection "SPARC Options"
  24559. .PP
  24560. These \fB\-m\fR options are supported on the \s-1SPARC:\s0
  24561. .IP "\fB\-mno\-app\-regs\fR" 4
  24562. .IX Item "-mno-app-regs"
  24563. .PD 0
  24564. .IP "\fB\-mapp\-regs\fR" 4
  24565. .IX Item "-mapp-regs"
  24566. .PD
  24567. Specify \fB\-mapp\-regs\fR to generate output using the global registers
  24568. 2 through 4, which the \s-1SPARC SVR4 ABI\s0 reserves for applications. Like the
  24569. global register 1, each global register 2 through 4 is then treated as an
  24570. allocable register that is clobbered by function calls. This is the default.
  24571. .Sp
  24572. To be fully \s-1SVR4\s0 ABI-compliant at the cost of some performance loss,
  24573. specify \fB\-mno\-app\-regs\fR. You should compile libraries and system
  24574. software with this option.
  24575. .IP "\fB\-mflat\fR" 4
  24576. .IX Item "-mflat"
  24577. .PD 0
  24578. .IP "\fB\-mno\-flat\fR" 4
  24579. .IX Item "-mno-flat"
  24580. .PD
  24581. With \fB\-mflat\fR, the compiler does not generate save/restore instructions
  24582. and uses a \*(L"flat\*(R" or single register window model. This model is compatible
  24583. with the regular register window model. The local registers and the input
  24584. registers (0\-\-5) are still treated as \*(L"call-saved\*(R" registers and are
  24585. saved on the stack as needed.
  24586. .Sp
  24587. With \fB\-mno\-flat\fR (the default), the compiler generates save/restore
  24588. instructions (except for leaf functions). This is the normal operating mode.
  24589. .IP "\fB\-mfpu\fR" 4
  24590. .IX Item "-mfpu"
  24591. .PD 0
  24592. .IP "\fB\-mhard\-float\fR" 4
  24593. .IX Item "-mhard-float"
  24594. .PD
  24595. Generate output containing floating-point instructions. This is the
  24596. default.
  24597. .IP "\fB\-mno\-fpu\fR" 4
  24598. .IX Item "-mno-fpu"
  24599. .PD 0
  24600. .IP "\fB\-msoft\-float\fR" 4
  24601. .IX Item "-msoft-float"
  24602. .PD
  24603. Generate output containing library calls for floating point.
  24604. \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
  24605. targets. Normally the facilities of the machine's usual C compiler are
  24606. used, but this cannot be done directly in cross-compilation. You must make
  24607. your own arrangements to provide suitable library functions for
  24608. cross-compilation. The embedded targets \fBsparc\-*\-aout\fR and
  24609. \&\fBsparclite\-*\-*\fR do provide software floating-point support.
  24610. .Sp
  24611. \&\fB\-msoft\-float\fR changes the calling convention in the output file;
  24612. therefore, it is only useful if you compile \fIall\fR of a program with
  24613. this option. In particular, you need to compile \fIlibgcc.a\fR, the
  24614. library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
  24615. this to work.
  24616. .IP "\fB\-mhard\-quad\-float\fR" 4
  24617. .IX Item "-mhard-quad-float"
  24618. Generate output containing quad-word (long double) floating-point
  24619. instructions.
  24620. .IP "\fB\-msoft\-quad\-float\fR" 4
  24621. .IX Item "-msoft-quad-float"
  24622. Generate output containing library calls for quad-word (long double)
  24623. floating-point instructions. The functions called are those specified
  24624. in the \s-1SPARC ABI.\s0 This is the default.
  24625. .Sp
  24626. As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
  24627. support for the quad-word floating-point instructions. They all invoke
  24628. a trap handler for one of these instructions, and then the trap handler
  24629. emulates the effect of the instruction. Because of the trap handler overhead,
  24630. this is much slower than calling the \s-1ABI\s0 library routines. Thus the
  24631. \&\fB\-msoft\-quad\-float\fR option is the default.
  24632. .IP "\fB\-mno\-unaligned\-doubles\fR" 4
  24633. .IX Item "-mno-unaligned-doubles"
  24634. .PD 0
  24635. .IP "\fB\-munaligned\-doubles\fR" 4
  24636. .IX Item "-munaligned-doubles"
  24637. .PD
  24638. Assume that doubles have 8\-byte alignment. This is the default.
  24639. .Sp
  24640. With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8\-byte
  24641. alignment only if they are contained in another type, or if they have an
  24642. absolute address. Otherwise, it assumes they have 4\-byte alignment.
  24643. Specifying this option avoids some rare compatibility problems with code
  24644. generated by other compilers. It is not the default because it results
  24645. in a performance loss, especially for floating-point code.
  24646. .IP "\fB\-muser\-mode\fR" 4
  24647. .IX Item "-muser-mode"
  24648. .PD 0
  24649. .IP "\fB\-mno\-user\-mode\fR" 4
  24650. .IX Item "-mno-user-mode"
  24651. .PD
  24652. Do not generate code that can only run in supervisor mode. This is relevant
  24653. only for the \f(CW\*(C`casa\*(C'\fR instruction emitted for the \s-1LEON3\s0 processor. This
  24654. is the default.
  24655. .IP "\fB\-mfaster\-structs\fR" 4
  24656. .IX Item "-mfaster-structs"
  24657. .PD 0
  24658. .IP "\fB\-mno\-faster\-structs\fR" 4
  24659. .IX Item "-mno-faster-structs"
  24660. .PD
  24661. With \fB\-mfaster\-structs\fR, the compiler assumes that structures
  24662. should have 8\-byte alignment. This enables the use of pairs of
  24663. \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
  24664. assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
  24665. However, the use of this changed alignment directly violates the \s-1SPARC
  24666. ABI.\s0 Thus, it's intended only for use on targets where the developer
  24667. acknowledges that their resulting code is not directly in line with
  24668. the rules of the \s-1ABI.\s0
  24669. .IP "\fB\-mstd\-struct\-return\fR" 4
  24670. .IX Item "-mstd-struct-return"
  24671. .PD 0
  24672. .IP "\fB\-mno\-std\-struct\-return\fR" 4
  24673. .IX Item "-mno-std-struct-return"
  24674. .PD
  24675. With \fB\-mstd\-struct\-return\fR, the compiler generates checking code
  24676. in functions returning structures or unions to detect size mismatches
  24677. between the two sides of function calls, as per the 32\-bit \s-1ABI.\s0
  24678. .Sp
  24679. The default is \fB\-mno\-std\-struct\-return\fR. This option has no effect
  24680. in 64\-bit mode.
  24681. .IP "\fB\-mlra\fR" 4
  24682. .IX Item "-mlra"
  24683. .PD 0
  24684. .IP "\fB\-mno\-lra\fR" 4
  24685. .IX Item "-mno-lra"
  24686. .PD
  24687. Enable Local Register Allocation. This is the default for \s-1SPARC\s0 since \s-1GCC 7\s0
  24688. so \fB\-mno\-lra\fR needs to be passed to get old Reload.
  24689. .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
  24690. .IX Item "-mcpu=cpu_type"
  24691. Set the instruction set, register set, and instruction scheduling parameters
  24692. for machine type \fIcpu_type\fR. Supported values for \fIcpu_type\fR are
  24693. \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBhypersparc\fR,
  24694. \&\fBleon\fR, \fBleon3\fR, \fBleon3v7\fR, \fBsparclite\fR, \fBf930\fR,
  24695. \&\fBf934\fR, \fBsparclite86x\fR, \fBsparclet\fR, \fBtsc701\fR, \fBv9\fR,
  24696. \&\fBultrasparc\fR, \fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR,
  24697. \&\fBniagara3\fR, \fBniagara4\fR, \fBniagara7\fR and \fBm8\fR.
  24698. .Sp
  24699. Native Solaris and GNU/Linux toolchains also support the value \fBnative\fR,
  24700. which selects the best architecture option for the host processor.
  24701. \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
  24702. the processor.
  24703. .Sp
  24704. Default instruction scheduling parameters are used for values that select
  24705. an architecture and not an implementation. These are \fBv7\fR, \fBv8\fR,
  24706. \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
  24707. .Sp
  24708. Here is a list of each supported architecture and their supported
  24709. implementations.
  24710. .RS 4
  24711. .IP "v7" 4
  24712. .IX Item "v7"
  24713. cypress, leon3v7
  24714. .IP "v8" 4
  24715. .IX Item "v8"
  24716. supersparc, hypersparc, leon, leon3
  24717. .IP "sparclite" 4
  24718. .IX Item "sparclite"
  24719. f930, f934, sparclite86x
  24720. .IP "sparclet" 4
  24721. .IX Item "sparclet"
  24722. tsc701
  24723. .IP "v9" 4
  24724. .IX Item "v9"
  24725. ultrasparc, ultrasparc3, niagara, niagara2, niagara3, niagara4,
  24726. niagara7, m8
  24727. .RE
  24728. .RS 4
  24729. .Sp
  24730. By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
  24731. variant of the \s-1SPARC\s0 architecture. With \fB\-mcpu=cypress\fR, the compiler
  24732. additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
  24733. SPARCStation/SPARCServer 3xx series. This is also appropriate for the older
  24734. SPARCStation 1, 2, \s-1IPX\s0 etc.
  24735. .Sp
  24736. With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
  24737. architecture. The only difference from V7 code is that the compiler emits
  24738. the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
  24739. but not in \s-1SPARC\-V7.\s0 With \fB\-mcpu=supersparc\fR, the compiler additionally
  24740. optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
  24741. 2000 series.
  24742. .Sp
  24743. With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
  24744. the \s-1SPARC\s0 architecture. This adds the integer multiply, integer divide step
  24745. and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7.\s0
  24746. With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
  24747. Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU.\s0 With
  24748. \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
  24749. \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU.\s0
  24750. .Sp
  24751. With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
  24752. the \s-1SPARC\s0 architecture. This adds the integer multiply, multiply/accumulate,
  24753. integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
  24754. but not in \s-1SPARC\-V7.\s0 With \fB\-mcpu=tsc701\fR, the compiler additionally
  24755. optimizes it for the \s-1TEMIC\s0 SPARClet chip.
  24756. .Sp
  24757. With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
  24758. architecture. This adds 64\-bit integer and floating-point move instructions,
  24759. 3 additional floating-point condition code registers and conditional move
  24760. instructions. With \fB\-mcpu=ultrasparc\fR, the compiler additionally
  24761. optimizes it for the Sun UltraSPARC I/II/IIi chips. With
  24762. \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
  24763. Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+ chips. With
  24764. \&\fB\-mcpu=niagara\fR, the compiler additionally optimizes it for
  24765. Sun UltraSPARC T1 chips. With \fB\-mcpu=niagara2\fR, the compiler
  24766. additionally optimizes it for Sun UltraSPARC T2 chips. With
  24767. \&\fB\-mcpu=niagara3\fR, the compiler additionally optimizes it for Sun
  24768. UltraSPARC T3 chips. With \fB\-mcpu=niagara4\fR, the compiler
  24769. additionally optimizes it for Sun UltraSPARC T4 chips. With
  24770. \&\fB\-mcpu=niagara7\fR, the compiler additionally optimizes it for
  24771. Oracle \s-1SPARC M7\s0 chips. With \fB\-mcpu=m8\fR, the compiler
  24772. additionally optimizes it for Oracle M8 chips.
  24773. .RE
  24774. .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
  24775. .IX Item "-mtune=cpu_type"
  24776. Set the instruction scheduling parameters for machine type
  24777. \&\fIcpu_type\fR, but do not set the instruction set or register set that the
  24778. option \fB\-mcpu=\fR\fIcpu_type\fR does.
  24779. .Sp
  24780. The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
  24781. \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
  24782. that select a particular \s-1CPU\s0 implementation. Those are
  24783. \&\fBcypress\fR, \fBsupersparc\fR, \fBhypersparc\fR, \fBleon\fR,
  24784. \&\fBleon3\fR, \fBleon3v7\fR, \fBf930\fR, \fBf934\fR,
  24785. \&\fBsparclite86x\fR, \fBtsc701\fR, \fBultrasparc\fR,
  24786. \&\fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR, \fBniagara3\fR,
  24787. \&\fBniagara4\fR, \fBniagara7\fR and \fBm8\fR. With native Solaris
  24788. and GNU/Linux toolchains, \fBnative\fR can also be used.
  24789. .IP "\fB\-mv8plus\fR" 4
  24790. .IX Item "-mv8plus"
  24791. .PD 0
  24792. .IP "\fB\-mno\-v8plus\fR" 4
  24793. .IX Item "-mno-v8plus"
  24794. .PD
  24795. With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+ ABI.\s0 The
  24796. difference from the V8 \s-1ABI\s0 is that the global and out registers are
  24797. considered 64 bits wide. This is enabled by default on Solaris in 32\-bit
  24798. mode for all \s-1SPARC\-V9\s0 processors.
  24799. .IP "\fB\-mvis\fR" 4
  24800. .IX Item "-mvis"
  24801. .PD 0
  24802. .IP "\fB\-mno\-vis\fR" 4
  24803. .IX Item "-mno-vis"
  24804. .PD
  24805. With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  24806. Visual Instruction Set extensions. The default is \fB\-mno\-vis\fR.
  24807. .IP "\fB\-mvis2\fR" 4
  24808. .IX Item "-mvis2"
  24809. .PD 0
  24810. .IP "\fB\-mno\-vis2\fR" 4
  24811. .IX Item "-mno-vis2"
  24812. .PD
  24813. With \fB\-mvis2\fR, \s-1GCC\s0 generates code that takes advantage of
  24814. version 2.0 of the UltraSPARC Visual Instruction Set extensions. The
  24815. default is \fB\-mvis2\fR when targeting a cpu that supports such
  24816. instructions, such as UltraSPARC-III and later. Setting \fB\-mvis2\fR
  24817. also sets \fB\-mvis\fR.
  24818. .IP "\fB\-mvis3\fR" 4
  24819. .IX Item "-mvis3"
  24820. .PD 0
  24821. .IP "\fB\-mno\-vis3\fR" 4
  24822. .IX Item "-mno-vis3"
  24823. .PD
  24824. With \fB\-mvis3\fR, \s-1GCC\s0 generates code that takes advantage of
  24825. version 3.0 of the UltraSPARC Visual Instruction Set extensions. The
  24826. default is \fB\-mvis3\fR when targeting a cpu that supports such
  24827. instructions, such as niagara\-3 and later. Setting \fB\-mvis3\fR
  24828. also sets \fB\-mvis2\fR and \fB\-mvis\fR.
  24829. .IP "\fB\-mvis4\fR" 4
  24830. .IX Item "-mvis4"
  24831. .PD 0
  24832. .IP "\fB\-mno\-vis4\fR" 4
  24833. .IX Item "-mno-vis4"
  24834. .PD
  24835. With \fB\-mvis4\fR, \s-1GCC\s0 generates code that takes advantage of
  24836. version 4.0 of the UltraSPARC Visual Instruction Set extensions. The
  24837. default is \fB\-mvis4\fR when targeting a cpu that supports such
  24838. instructions, such as niagara\-7 and later. Setting \fB\-mvis4\fR
  24839. also sets \fB\-mvis3\fR, \fB\-mvis2\fR and \fB\-mvis\fR.
  24840. .IP "\fB\-mvis4b\fR" 4
  24841. .IX Item "-mvis4b"
  24842. .PD 0
  24843. .IP "\fB\-mno\-vis4b\fR" 4
  24844. .IX Item "-mno-vis4b"
  24845. .PD
  24846. With \fB\-mvis4b\fR, \s-1GCC\s0 generates code that takes advantage of
  24847. version 4.0 of the UltraSPARC Visual Instruction Set extensions, plus
  24848. the additional \s-1VIS\s0 instructions introduced in the Oracle \s-1SPARC\s0
  24849. Architecture 2017. The default is \fB\-mvis4b\fR when targeting a
  24850. cpu that supports such instructions, such as m8 and later. Setting
  24851. \&\fB\-mvis4b\fR also sets \fB\-mvis4\fR, \fB\-mvis3\fR,
  24852. \&\fB\-mvis2\fR and \fB\-mvis\fR.
  24853. .IP "\fB\-mcbcond\fR" 4
  24854. .IX Item "-mcbcond"
  24855. .PD 0
  24856. .IP "\fB\-mno\-cbcond\fR" 4
  24857. .IX Item "-mno-cbcond"
  24858. .PD
  24859. With \fB\-mcbcond\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  24860. Compare-and-Branch-on-Condition instructions. The default is \fB\-mcbcond\fR
  24861. when targeting a \s-1CPU\s0 that supports such instructions, such as Niagara\-4 and
  24862. later.
  24863. .IP "\fB\-mfmaf\fR" 4
  24864. .IX Item "-mfmaf"
  24865. .PD 0
  24866. .IP "\fB\-mno\-fmaf\fR" 4
  24867. .IX Item "-mno-fmaf"
  24868. .PD
  24869. With \fB\-mfmaf\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  24870. Fused Multiply-Add Floating-point instructions. The default is \fB\-mfmaf\fR
  24871. when targeting a \s-1CPU\s0 that supports such instructions, such as Niagara\-3 and
  24872. later.
  24873. .IP "\fB\-mfsmuld\fR" 4
  24874. .IX Item "-mfsmuld"
  24875. .PD 0
  24876. .IP "\fB\-mno\-fsmuld\fR" 4
  24877. .IX Item "-mno-fsmuld"
  24878. .PD
  24879. With \fB\-mfsmuld\fR, \s-1GCC\s0 generates code that takes advantage of the
  24880. Floating-point Multiply Single to Double (FsMULd) instruction. The default is
  24881. \&\fB\-mfsmuld\fR when targeting a \s-1CPU\s0 supporting the architecture versions V8
  24882. or V9 with \s-1FPU\s0 except \fB\-mcpu=leon\fR.
  24883. .IP "\fB\-mpopc\fR" 4
  24884. .IX Item "-mpopc"
  24885. .PD 0
  24886. .IP "\fB\-mno\-popc\fR" 4
  24887. .IX Item "-mno-popc"
  24888. .PD
  24889. With \fB\-mpopc\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  24890. Population Count instruction. The default is \fB\-mpopc\fR
  24891. when targeting a \s-1CPU\s0 that supports such an instruction, such as Niagara\-2 and
  24892. later.
  24893. .IP "\fB\-msubxc\fR" 4
  24894. .IX Item "-msubxc"
  24895. .PD 0
  24896. .IP "\fB\-mno\-subxc\fR" 4
  24897. .IX Item "-mno-subxc"
  24898. .PD
  24899. With \fB\-msubxc\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  24900. Subtract-Extended-with-Carry instruction. The default is \fB\-msubxc\fR
  24901. when targeting a \s-1CPU\s0 that supports such an instruction, such as Niagara\-7 and
  24902. later.
  24903. .IP "\fB\-mfix\-at697f\fR" 4
  24904. .IX Item "-mfix-at697f"
  24905. Enable the documented workaround for the single erratum of the Atmel \s-1AT697F\s0
  24906. processor (which corresponds to erratum #13 of the \s-1AT697E\s0 processor).
  24907. .IP "\fB\-mfix\-ut699\fR" 4
  24908. .IX Item "-mfix-ut699"
  24909. Enable the documented workarounds for the floating-point errata and the data
  24910. cache nullify errata of the \s-1UT699\s0 processor.
  24911. .IP "\fB\-mfix\-ut700\fR" 4
  24912. .IX Item "-mfix-ut700"
  24913. Enable the documented workaround for the back-to-back store errata of
  24914. the \s-1UT699E/UT700\s0 processor.
  24915. .IP "\fB\-mfix\-gr712rc\fR" 4
  24916. .IX Item "-mfix-gr712rc"
  24917. Enable the documented workaround for the back-to-back store errata of
  24918. the \s-1GR712RC\s0 processor.
  24919. .PP
  24920. These \fB\-m\fR options are supported in addition to the above
  24921. on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
  24922. .IP "\fB\-m32\fR" 4
  24923. .IX Item "-m32"
  24924. .PD 0
  24925. .IP "\fB\-m64\fR" 4
  24926. .IX Item "-m64"
  24927. .PD
  24928. Generate code for a 32\-bit or 64\-bit environment.
  24929. The 32\-bit environment sets int, long and pointer to 32 bits.
  24930. The 64\-bit environment sets int to 32 bits and long and pointer
  24931. to 64 bits.
  24932. .IP "\fB\-mcmodel=\fR\fIwhich\fR" 4
  24933. .IX Item "-mcmodel=which"
  24934. Set the code model to one of
  24935. .RS 4
  24936. .IP "\fBmedlow\fR" 4
  24937. .IX Item "medlow"
  24938. The Medium/Low code model: 64\-bit addresses, programs
  24939. must be linked in the low 32 bits of memory. Programs can be statically
  24940. or dynamically linked.
  24941. .IP "\fBmedmid\fR" 4
  24942. .IX Item "medmid"
  24943. The Medium/Middle code model: 64\-bit addresses, programs
  24944. must be linked in the low 44 bits of memory, the text and data segments must
  24945. be less than 2GB in size and the data segment must be located within 2GB of
  24946. the text segment.
  24947. .IP "\fBmedany\fR" 4
  24948. .IX Item "medany"
  24949. The Medium/Anywhere code model: 64\-bit addresses, programs
  24950. may be linked anywhere in memory, the text and data segments must be less
  24951. than 2GB in size and the data segment must be located within 2GB of the
  24952. text segment.
  24953. .IP "\fBembmedany\fR" 4
  24954. .IX Item "embmedany"
  24955. The Medium/Anywhere code model for embedded systems:
  24956. 64\-bit addresses, the text and data segments must be less than 2GB in
  24957. size, both starting anywhere in memory (determined at link time). The
  24958. global register \f(CW%g4\fR points to the base of the data segment. Programs
  24959. are statically linked and \s-1PIC\s0 is not supported.
  24960. .RE
  24961. .RS 4
  24962. .RE
  24963. .IP "\fB\-mmemory\-model=\fR\fImem-model\fR" 4
  24964. .IX Item "-mmemory-model=mem-model"
  24965. Set the memory model in force on the processor to one of
  24966. .RS 4
  24967. .IP "\fBdefault\fR" 4
  24968. .IX Item "default"
  24969. The default memory model for the processor and operating system.
  24970. .IP "\fBrmo\fR" 4
  24971. .IX Item "rmo"
  24972. Relaxed Memory Order
  24973. .IP "\fBpso\fR" 4
  24974. .IX Item "pso"
  24975. Partial Store Order
  24976. .IP "\fBtso\fR" 4
  24977. .IX Item "tso"
  24978. Total Store Order
  24979. .IP "\fBsc\fR" 4
  24980. .IX Item "sc"
  24981. Sequential Consistency
  24982. .RE
  24983. .RS 4
  24984. .Sp
  24985. These memory models are formally defined in Appendix D of the \s-1SPARC\-V9\s0
  24986. architecture manual, as set in the processor's \f(CW\*(C`PSTATE.MM\*(C'\fR field.
  24987. .RE
  24988. .IP "\fB\-mstack\-bias\fR" 4
  24989. .IX Item "-mstack-bias"
  24990. .PD 0
  24991. .IP "\fB\-mno\-stack\-bias\fR" 4
  24992. .IX Item "-mno-stack-bias"
  24993. .PD
  24994. With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
  24995. frame pointer if present, are offset by \-2047 which must be added back
  24996. when making stack frame references. This is the default in 64\-bit mode.
  24997. Otherwise, assume no such offset is present.
  24998. .PP
  24999. \fI\s-1SPU\s0 Options\fR
  25000. .IX Subsection "SPU Options"
  25001. .PP
  25002. These \fB\-m\fR options are supported on the \s-1SPU:\s0
  25003. .IP "\fB\-mwarn\-reloc\fR" 4
  25004. .IX Item "-mwarn-reloc"
  25005. .PD 0
  25006. .IP "\fB\-merror\-reloc\fR" 4
  25007. .IX Item "-merror-reloc"
  25008. .PD
  25009. The loader for \s-1SPU\s0 does not handle dynamic relocations. By default, \s-1GCC\s0
  25010. gives an error when it generates code that requires a dynamic
  25011. relocation. \fB\-mno\-error\-reloc\fR disables the error,
  25012. \&\fB\-mwarn\-reloc\fR generates a warning instead.
  25013. .IP "\fB\-msafe\-dma\fR" 4
  25014. .IX Item "-msafe-dma"
  25015. .PD 0
  25016. .IP "\fB\-munsafe\-dma\fR" 4
  25017. .IX Item "-munsafe-dma"
  25018. .PD
  25019. Instructions that initiate or test completion of \s-1DMA\s0 must not be
  25020. reordered with respect to loads and stores of the memory that is being
  25021. accessed.
  25022. With \fB\-munsafe\-dma\fR you must use the \f(CW\*(C`volatile\*(C'\fR keyword to protect
  25023. memory accesses, but that can lead to inefficient code in places where the
  25024. memory is known to not change. Rather than mark the memory as volatile,
  25025. you can use \fB\-msafe\-dma\fR to tell the compiler to treat
  25026. the \s-1DMA\s0 instructions as potentially affecting all memory.
  25027. .IP "\fB\-mbranch\-hints\fR" 4
  25028. .IX Item "-mbranch-hints"
  25029. By default, \s-1GCC\s0 generates a branch hint instruction to avoid
  25030. pipeline stalls for always-taken or probably-taken branches. A hint
  25031. is not generated closer than 8 instructions away from its branch.
  25032. There is little reason to disable them, except for debugging purposes,
  25033. or to make an object a little bit smaller.
  25034. .IP "\fB\-msmall\-mem\fR" 4
  25035. .IX Item "-msmall-mem"
  25036. .PD 0
  25037. .IP "\fB\-mlarge\-mem\fR" 4
  25038. .IX Item "-mlarge-mem"
  25039. .PD
  25040. By default, \s-1GCC\s0 generates code assuming that addresses are never larger
  25041. than 18 bits. With \fB\-mlarge\-mem\fR code is generated that assumes
  25042. a full 32\-bit address.
  25043. .IP "\fB\-mstdmain\fR" 4
  25044. .IX Item "-mstdmain"
  25045. By default, \s-1GCC\s0 links against startup code that assumes the SPU-style
  25046. main function interface (which has an unconventional parameter list).
  25047. With \fB\-mstdmain\fR, \s-1GCC\s0 links your program against startup
  25048. code that assumes a C99\-style interface to \f(CW\*(C`main\*(C'\fR, including a
  25049. local copy of \f(CW\*(C`argv\*(C'\fR strings.
  25050. .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
  25051. .IX Item "-mfixed-range=register-range"
  25052. Generate code treating the given register range as fixed registers.
  25053. A fixed register is one that the register allocator cannot use. This is
  25054. useful when compiling kernel code. A register range is specified as
  25055. two registers separated by a dash. Multiple register ranges can be
  25056. specified separated by a comma.
  25057. .IP "\fB\-mea32\fR" 4
  25058. .IX Item "-mea32"
  25059. .PD 0
  25060. .IP "\fB\-mea64\fR" 4
  25061. .IX Item "-mea64"
  25062. .PD
  25063. Compile code assuming that pointers to the \s-1PPU\s0 address space accessed
  25064. via the \f(CW\*(C`_\|_ea\*(C'\fR named address space qualifier are either 32 or 64
  25065. bits wide. The default is 32 bits. As this is an ABI-changing option,
  25066. all object code in an executable must be compiled with the same setting.
  25067. .IP "\fB\-maddress\-space\-conversion\fR" 4
  25068. .IX Item "-maddress-space-conversion"
  25069. .PD 0
  25070. .IP "\fB\-mno\-address\-space\-conversion\fR" 4
  25071. .IX Item "-mno-address-space-conversion"
  25072. .PD
  25073. Allow/disallow treating the \f(CW\*(C`_\|_ea\*(C'\fR address space as superset
  25074. of the generic address space. This enables explicit type casts
  25075. between \f(CW\*(C`_\|_ea\*(C'\fR and generic pointer as well as implicit
  25076. conversions of generic pointers to \f(CW\*(C`_\|_ea\*(C'\fR pointers. The
  25077. default is to allow address space pointer conversions.
  25078. .IP "\fB\-mcache\-size=\fR\fIcache-size\fR" 4
  25079. .IX Item "-mcache-size=cache-size"
  25080. This option controls the version of libgcc that the compiler links to an
  25081. executable and selects a software-managed cache for accessing variables
  25082. in the \f(CW\*(C`_\|_ea\*(C'\fR address space with a particular cache size. Possible
  25083. options for \fIcache-size\fR are \fB8\fR, \fB16\fR, \fB32\fR, \fB64\fR
  25084. and \fB128\fR. The default cache size is 64KB.
  25085. .IP "\fB\-matomic\-updates\fR" 4
  25086. .IX Item "-matomic-updates"
  25087. .PD 0
  25088. .IP "\fB\-mno\-atomic\-updates\fR" 4
  25089. .IX Item "-mno-atomic-updates"
  25090. .PD
  25091. This option controls the version of libgcc that the compiler links to an
  25092. executable and selects whether atomic updates to the software-managed
  25093. cache of PPU-side variables are used. If you use atomic updates, changes
  25094. to a \s-1PPU\s0 variable from \s-1SPU\s0 code using the \f(CW\*(C`_\|_ea\*(C'\fR named address space
  25095. qualifier do not interfere with changes to other \s-1PPU\s0 variables residing
  25096. in the same cache line from \s-1PPU\s0 code. If you do not use atomic updates,
  25097. such interference may occur; however, writing back cache lines is
  25098. more efficient. The default behavior is to use atomic updates.
  25099. .IP "\fB\-mdual\-nops\fR" 4
  25100. .IX Item "-mdual-nops"
  25101. .PD 0
  25102. .IP "\fB\-mdual\-nops=\fR\fIn\fR" 4
  25103. .IX Item "-mdual-nops=n"
  25104. .PD
  25105. By default, \s-1GCC\s0 inserts NOPs to increase dual issue when it expects
  25106. it to increase performance. \fIn\fR can be a value from 0 to 10. A
  25107. smaller \fIn\fR inserts fewer NOPs. 10 is the default, 0 is the
  25108. same as \fB\-mno\-dual\-nops\fR. Disabled with \fB\-Os\fR.
  25109. .IP "\fB\-mhint\-max\-nops=\fR\fIn\fR" 4
  25110. .IX Item "-mhint-max-nops=n"
  25111. Maximum number of NOPs to insert for a branch hint. A branch hint must
  25112. be at least 8 instructions away from the branch it is affecting. \s-1GCC\s0
  25113. inserts up to \fIn\fR NOPs to enforce this, otherwise it does not
  25114. generate the branch hint.
  25115. .IP "\fB\-mhint\-max\-distance=\fR\fIn\fR" 4
  25116. .IX Item "-mhint-max-distance=n"
  25117. The encoding of the branch hint instruction limits the hint to be within
  25118. 256 instructions of the branch it is affecting. By default, \s-1GCC\s0 makes
  25119. sure it is within 125.
  25120. .IP "\fB\-msafe\-hints\fR" 4
  25121. .IX Item "-msafe-hints"
  25122. Work around a hardware bug that causes the \s-1SPU\s0 to stall indefinitely.
  25123. By default, \s-1GCC\s0 inserts the \f(CW\*(C`hbrp\*(C'\fR instruction to make sure
  25124. this stall won't happen.
  25125. .PP
  25126. \fIOptions for System V\fR
  25127. .IX Subsection "Options for System V"
  25128. .PP
  25129. These additional options are available on System V Release 4 for
  25130. compatibility with other compilers on those systems:
  25131. .IP "\fB\-G\fR" 4
  25132. .IX Item "-G"
  25133. Create a shared object.
  25134. It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
  25135. .IP "\fB\-Qy\fR" 4
  25136. .IX Item "-Qy"
  25137. Identify the versions of each tool used by the compiler, in a
  25138. \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
  25139. .IP "\fB\-Qn\fR" 4
  25140. .IX Item "-Qn"
  25141. Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
  25142. the default).
  25143. .IP "\fB\-YP,\fR\fIdirs\fR" 4
  25144. .IX Item "-YP,dirs"
  25145. Search the directories \fIdirs\fR, and no others, for libraries
  25146. specified with \fB\-l\fR.
  25147. .IP "\fB\-Ym,\fR\fIdir\fR" 4
  25148. .IX Item "-Ym,dir"
  25149. Look in the directory \fIdir\fR to find the M4 preprocessor.
  25150. The assembler uses this option.
  25151. .PP
  25152. \fITILE-Gx Options\fR
  25153. .IX Subsection "TILE-Gx Options"
  25154. .PP
  25155. These \fB\-m\fR options are supported on the TILE-Gx:
  25156. .IP "\fB\-mcmodel=small\fR" 4
  25157. .IX Item "-mcmodel=small"
  25158. Generate code for the small model. The distance for direct calls is
  25159. limited to 500M in either direction. PC-relative addresses are 32
  25160. bits. Absolute addresses support the full address range.
  25161. .IP "\fB\-mcmodel=large\fR" 4
  25162. .IX Item "-mcmodel=large"
  25163. Generate code for the large model. There is no limitation on call
  25164. distance, pc-relative addresses, or absolute addresses.
  25165. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  25166. .IX Item "-mcpu=name"
  25167. Selects the type of \s-1CPU\s0 to be targeted. Currently the only supported
  25168. type is \fBtilegx\fR.
  25169. .IP "\fB\-m32\fR" 4
  25170. .IX Item "-m32"
  25171. .PD 0
  25172. .IP "\fB\-m64\fR" 4
  25173. .IX Item "-m64"
  25174. .PD
  25175. Generate code for a 32\-bit or 64\-bit environment. The 32\-bit
  25176. environment sets int, long, and pointer to 32 bits. The 64\-bit
  25177. environment sets int to 32 bits and long and pointer to 64 bits.
  25178. .IP "\fB\-mbig\-endian\fR" 4
  25179. .IX Item "-mbig-endian"
  25180. .PD 0
  25181. .IP "\fB\-mlittle\-endian\fR" 4
  25182. .IX Item "-mlittle-endian"
  25183. .PD
  25184. Generate code in big/little endian mode, respectively.
  25185. .PP
  25186. \fITILEPro Options\fR
  25187. .IX Subsection "TILEPro Options"
  25188. .PP
  25189. These \fB\-m\fR options are supported on the TILEPro:
  25190. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  25191. .IX Item "-mcpu=name"
  25192. Selects the type of \s-1CPU\s0 to be targeted. Currently the only supported
  25193. type is \fBtilepro\fR.
  25194. .IP "\fB\-m32\fR" 4
  25195. .IX Item "-m32"
  25196. Generate code for a 32\-bit environment, which sets int, long, and
  25197. pointer to 32 bits. This is the only supported behavior so the flag
  25198. is essentially ignored.
  25199. .PP
  25200. \fIV850 Options\fR
  25201. .IX Subsection "V850 Options"
  25202. .PP
  25203. These \fB\-m\fR options are defined for V850 implementations:
  25204. .IP "\fB\-mlong\-calls\fR" 4
  25205. .IX Item "-mlong-calls"
  25206. .PD 0
  25207. .IP "\fB\-mno\-long\-calls\fR" 4
  25208. .IX Item "-mno-long-calls"
  25209. .PD
  25210. Treat all calls as being far away (near). If calls are assumed to be
  25211. far away, the compiler always loads the function's address into a
  25212. register, and calls indirect through the pointer.
  25213. .IP "\fB\-mno\-ep\fR" 4
  25214. .IX Item "-mno-ep"
  25215. .PD 0
  25216. .IP "\fB\-mep\fR" 4
  25217. .IX Item "-mep"
  25218. .PD
  25219. Do not optimize (do optimize) basic blocks that use the same index
  25220. pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
  25221. use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions. The \fB\-mep\fR
  25222. option is on by default if you optimize.
  25223. .IP "\fB\-mno\-prolog\-function\fR" 4
  25224. .IX Item "-mno-prolog-function"
  25225. .PD 0
  25226. .IP "\fB\-mprolog\-function\fR" 4
  25227. .IX Item "-mprolog-function"
  25228. .PD
  25229. Do not use (do use) external functions to save and restore registers
  25230. at the prologue and epilogue of a function. The external functions
  25231. are slower, but use less code space if more than one function saves
  25232. the same number of registers. The \fB\-mprolog\-function\fR option
  25233. is on by default if you optimize.
  25234. .IP "\fB\-mspace\fR" 4
  25235. .IX Item "-mspace"
  25236. Try to make the code as small as possible. At present, this just turns
  25237. on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
  25238. .IP "\fB\-mtda=\fR\fIn\fR" 4
  25239. .IX Item "-mtda=n"
  25240. Put static or global variables whose size is \fIn\fR bytes or less into
  25241. the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to. The tiny data
  25242. area can hold up to 256 bytes in total (128 bytes for byte references).
  25243. .IP "\fB\-msda=\fR\fIn\fR" 4
  25244. .IX Item "-msda=n"
  25245. Put static or global variables whose size is \fIn\fR bytes or less into
  25246. the small data area that register \f(CW\*(C`gp\*(C'\fR points to. The small data
  25247. area can hold up to 64 kilobytes.
  25248. .IP "\fB\-mzda=\fR\fIn\fR" 4
  25249. .IX Item "-mzda=n"
  25250. Put static or global variables whose size is \fIn\fR bytes or less into
  25251. the first 32 kilobytes of memory.
  25252. .IP "\fB\-mv850\fR" 4
  25253. .IX Item "-mv850"
  25254. Specify that the target processor is the V850.
  25255. .IP "\fB\-mv850e3v5\fR" 4
  25256. .IX Item "-mv850e3v5"
  25257. Specify that the target processor is the V850E3V5. The preprocessor
  25258. constant \f(CW\*(C`_\|_v850e3v5_\|_\*(C'\fR is defined if this option is used.
  25259. .IP "\fB\-mv850e2v4\fR" 4
  25260. .IX Item "-mv850e2v4"
  25261. Specify that the target processor is the V850E3V5. This is an alias for
  25262. the \fB\-mv850e3v5\fR option.
  25263. .IP "\fB\-mv850e2v3\fR" 4
  25264. .IX Item "-mv850e2v3"
  25265. Specify that the target processor is the V850E2V3. The preprocessor
  25266. constant \f(CW\*(C`_\|_v850e2v3_\|_\*(C'\fR is defined if this option is used.
  25267. .IP "\fB\-mv850e2\fR" 4
  25268. .IX Item "-mv850e2"
  25269. Specify that the target processor is the V850E2. The preprocessor
  25270. constant \f(CW\*(C`_\|_v850e2_\|_\*(C'\fR is defined if this option is used.
  25271. .IP "\fB\-mv850e1\fR" 4
  25272. .IX Item "-mv850e1"
  25273. Specify that the target processor is the V850E1. The preprocessor
  25274. constants \f(CW\*(C`_\|_v850e1_\|_\*(C'\fR and \f(CW\*(C`_\|_v850e_\|_\*(C'\fR are defined if
  25275. this option is used.
  25276. .IP "\fB\-mv850es\fR" 4
  25277. .IX Item "-mv850es"
  25278. Specify that the target processor is the V850ES. This is an alias for
  25279. the \fB\-mv850e1\fR option.
  25280. .IP "\fB\-mv850e\fR" 4
  25281. .IX Item "-mv850e"
  25282. Specify that the target processor is the V850E. The preprocessor
  25283. constant \f(CW\*(C`_\|_v850e_\|_\*(C'\fR is defined if this option is used.
  25284. .Sp
  25285. If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
  25286. nor \fB\-mv850e2\fR nor \fB\-mv850e2v3\fR nor \fB\-mv850e3v5\fR
  25287. are defined then a default target processor is chosen and the
  25288. relevant \fB_\|_v850*_\|_\fR preprocessor constant is defined.
  25289. .Sp
  25290. The preprocessor constants \f(CW\*(C`_\|_v850\*(C'\fR and \f(CW\*(C`_\|_v851_\|_\*(C'\fR are always
  25291. defined, regardless of which processor variant is the target.
  25292. .IP "\fB\-mdisable\-callt\fR" 4
  25293. .IX Item "-mdisable-callt"
  25294. .PD 0
  25295. .IP "\fB\-mno\-disable\-callt\fR" 4
  25296. .IX Item "-mno-disable-callt"
  25297. .PD
  25298. This option suppresses generation of the \f(CW\*(C`CALLT\*(C'\fR instruction for the
  25299. v850e, v850e1, v850e2, v850e2v3 and v850e3v5 flavors of the v850
  25300. architecture.
  25301. .Sp
  25302. This option is enabled by default when the \s-1RH850 ABI\s0 is
  25303. in use (see \fB\-mrh850\-abi\fR), and disabled by default when the
  25304. \&\s-1GCC ABI\s0 is in use. If \f(CW\*(C`CALLT\*(C'\fR instructions are being generated
  25305. then the C preprocessor symbol \f(CW\*(C`_\|_V850_CALLT_\|_\*(C'\fR is defined.
  25306. .IP "\fB\-mrelax\fR" 4
  25307. .IX Item "-mrelax"
  25308. .PD 0
  25309. .IP "\fB\-mno\-relax\fR" 4
  25310. .IX Item "-mno-relax"
  25311. .PD
  25312. Pass on (or do not pass on) the \fB\-mrelax\fR command-line option
  25313. to the assembler.
  25314. .IP "\fB\-mlong\-jumps\fR" 4
  25315. .IX Item "-mlong-jumps"
  25316. .PD 0
  25317. .IP "\fB\-mno\-long\-jumps\fR" 4
  25318. .IX Item "-mno-long-jumps"
  25319. .PD
  25320. Disable (or re-enable) the generation of PC-relative jump instructions.
  25321. .IP "\fB\-msoft\-float\fR" 4
  25322. .IX Item "-msoft-float"
  25323. .PD 0
  25324. .IP "\fB\-mhard\-float\fR" 4
  25325. .IX Item "-mhard-float"
  25326. .PD
  25327. Disable (or re-enable) the generation of hardware floating point
  25328. instructions. This option is only significant when the target
  25329. architecture is \fBV850E2V3\fR or higher. If hardware floating point
  25330. instructions are being generated then the C preprocessor symbol
  25331. \&\f(CW\*(C`_\|_FPU_OK_\|_\*(C'\fR is defined, otherwise the symbol
  25332. \&\f(CW\*(C`_\|_NO_FPU_\|_\*(C'\fR is defined.
  25333. .IP "\fB\-mloop\fR" 4
  25334. .IX Item "-mloop"
  25335. Enables the use of the e3v5 \s-1LOOP\s0 instruction. The use of this
  25336. instruction is not enabled by default when the e3v5 architecture is
  25337. selected because its use is still experimental.
  25338. .IP "\fB\-mrh850\-abi\fR" 4
  25339. .IX Item "-mrh850-abi"
  25340. .PD 0
  25341. .IP "\fB\-mghs\fR" 4
  25342. .IX Item "-mghs"
  25343. .PD
  25344. Enables support for the \s-1RH850\s0 version of the V850 \s-1ABI.\s0 This is the
  25345. default. With this version of the \s-1ABI\s0 the following rules apply:
  25346. .RS 4
  25347. .IP "*" 4
  25348. Integer sized structures and unions are returned via a memory pointer
  25349. rather than a register.
  25350. .IP "*" 4
  25351. Large structures and unions (more than 8 bytes in size) are passed by
  25352. value.
  25353. .IP "*" 4
  25354. Functions are aligned to 16\-bit boundaries.
  25355. .IP "*" 4
  25356. The \fB\-m8byte\-align\fR command-line option is supported.
  25357. .IP "*" 4
  25358. The \fB\-mdisable\-callt\fR command-line option is enabled by
  25359. default. The \fB\-mno\-disable\-callt\fR command-line option is not
  25360. supported.
  25361. .RE
  25362. .RS 4
  25363. .Sp
  25364. When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
  25365. \&\f(CW\*(C`_\|_V850_RH850_ABI_\|_\*(C'\fR is defined.
  25366. .RE
  25367. .IP "\fB\-mgcc\-abi\fR" 4
  25368. .IX Item "-mgcc-abi"
  25369. Enables support for the old \s-1GCC\s0 version of the V850 \s-1ABI.\s0 With this
  25370. version of the \s-1ABI\s0 the following rules apply:
  25371. .RS 4
  25372. .IP "*" 4
  25373. Integer sized structures and unions are returned in register \f(CW\*(C`r10\*(C'\fR.
  25374. .IP "*" 4
  25375. Large structures and unions (more than 8 bytes in size) are passed by
  25376. reference.
  25377. .IP "*" 4
  25378. Functions are aligned to 32\-bit boundaries, unless optimizing for
  25379. size.
  25380. .IP "*" 4
  25381. The \fB\-m8byte\-align\fR command-line option is not supported.
  25382. .IP "*" 4
  25383. The \fB\-mdisable\-callt\fR command-line option is supported but not
  25384. enabled by default.
  25385. .RE
  25386. .RS 4
  25387. .Sp
  25388. When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
  25389. \&\f(CW\*(C`_\|_V850_GCC_ABI_\|_\*(C'\fR is defined.
  25390. .RE
  25391. .IP "\fB\-m8byte\-align\fR" 4
  25392. .IX Item "-m8byte-align"
  25393. .PD 0
  25394. .IP "\fB\-mno\-8byte\-align\fR" 4
  25395. .IX Item "-mno-8byte-align"
  25396. .PD
  25397. Enables support for \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long long\*(C'\fR types to be
  25398. aligned on 8\-byte boundaries. The default is to restrict the
  25399. alignment of all objects to at most 4\-bytes. When
  25400. \&\fB\-m8byte\-align\fR is in effect the C preprocessor symbol
  25401. \&\f(CW\*(C`_\|_V850_8BYTE_ALIGN_\|_\*(C'\fR is defined.
  25402. .IP "\fB\-mbig\-switch\fR" 4
  25403. .IX Item "-mbig-switch"
  25404. Generate code suitable for big switch tables. Use this option only if
  25405. the assembler/linker complain about out of range branches within a switch
  25406. table.
  25407. .IP "\fB\-mapp\-regs\fR" 4
  25408. .IX Item "-mapp-regs"
  25409. This option causes r2 and r5 to be used in the code generated by
  25410. the compiler. This setting is the default.
  25411. .IP "\fB\-mno\-app\-regs\fR" 4
  25412. .IX Item "-mno-app-regs"
  25413. This option causes r2 and r5 to be treated as fixed registers.
  25414. .PP
  25415. \fI\s-1VAX\s0 Options\fR
  25416. .IX Subsection "VAX Options"
  25417. .PP
  25418. These \fB\-m\fR options are defined for the \s-1VAX:\s0
  25419. .IP "\fB\-munix\fR" 4
  25420. .IX Item "-munix"
  25421. Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
  25422. that the Unix assembler for the \s-1VAX\s0 cannot handle across long
  25423. ranges.
  25424. .IP "\fB\-mgnu\fR" 4
  25425. .IX Item "-mgnu"
  25426. Do output those jump instructions, on the assumption that the
  25427. \&\s-1GNU\s0 assembler is being used.
  25428. .IP "\fB\-mg\fR" 4
  25429. .IX Item "-mg"
  25430. Output code for G\-format floating-point numbers instead of D\-format.
  25431. .PP
  25432. \fIVisium Options\fR
  25433. .IX Subsection "Visium Options"
  25434. .IP "\fB\-mdebug\fR" 4
  25435. .IX Item "-mdebug"
  25436. A program which performs file I/O and is destined to run on an \s-1MCM\s0 target
  25437. should be linked with this option. It causes the libraries libc.a and
  25438. libdebug.a to be linked. The program should be run on the target under
  25439. the control of the \s-1GDB\s0 remote debugging stub.
  25440. .IP "\fB\-msim\fR" 4
  25441. .IX Item "-msim"
  25442. A program which performs file I/O and is destined to run on the simulator
  25443. should be linked with option. This causes libraries libc.a and libsim.a to
  25444. be linked.
  25445. .IP "\fB\-mfpu\fR" 4
  25446. .IX Item "-mfpu"
  25447. .PD 0
  25448. .IP "\fB\-mhard\-float\fR" 4
  25449. .IX Item "-mhard-float"
  25450. .PD
  25451. Generate code containing floating-point instructions. This is the
  25452. default.
  25453. .IP "\fB\-mno\-fpu\fR" 4
  25454. .IX Item "-mno-fpu"
  25455. .PD 0
  25456. .IP "\fB\-msoft\-float\fR" 4
  25457. .IX Item "-msoft-float"
  25458. .PD
  25459. Generate code containing library calls for floating-point.
  25460. .Sp
  25461. \&\fB\-msoft\-float\fR changes the calling convention in the output file;
  25462. therefore, it is only useful if you compile \fIall\fR of a program with
  25463. this option. In particular, you need to compile \fIlibgcc.a\fR, the
  25464. library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
  25465. this to work.
  25466. .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
  25467. .IX Item "-mcpu=cpu_type"
  25468. Set the instruction set, register set, and instruction scheduling parameters
  25469. for machine type \fIcpu_type\fR. Supported values for \fIcpu_type\fR are
  25470. \&\fBmcm\fR, \fBgr5\fR and \fBgr6\fR.
  25471. .Sp
  25472. \&\fBmcm\fR is a synonym of \fBgr5\fR present for backward compatibility.
  25473. .Sp
  25474. By default (unless configured otherwise), \s-1GCC\s0 generates code for the \s-1GR5\s0
  25475. variant of the Visium architecture.
  25476. .Sp
  25477. With \fB\-mcpu=gr6\fR, \s-1GCC\s0 generates code for the \s-1GR6\s0 variant of the Visium
  25478. architecture. The only difference from \s-1GR5\s0 code is that the compiler will
  25479. generate block move instructions.
  25480. .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
  25481. .IX Item "-mtune=cpu_type"
  25482. Set the instruction scheduling parameters for machine type \fIcpu_type\fR,
  25483. but do not set the instruction set or register set that the option
  25484. \&\fB\-mcpu=\fR\fIcpu_type\fR would.
  25485. .IP "\fB\-msv\-mode\fR" 4
  25486. .IX Item "-msv-mode"
  25487. Generate code for the supervisor mode, where there are no restrictions on
  25488. the access to general registers. This is the default.
  25489. .IP "\fB\-muser\-mode\fR" 4
  25490. .IX Item "-muser-mode"
  25491. Generate code for the user mode, where the access to some general registers
  25492. is forbidden: on the \s-1GR5,\s0 registers r24 to r31 cannot be accessed in this
  25493. mode; on the \s-1GR6,\s0 only registers r29 to r31 are affected.
  25494. .PP
  25495. \fI\s-1VMS\s0 Options\fR
  25496. .IX Subsection "VMS Options"
  25497. .PP
  25498. These \fB\-m\fR options are defined for the \s-1VMS\s0 implementations:
  25499. .IP "\fB\-mvms\-return\-codes\fR" 4
  25500. .IX Item "-mvms-return-codes"
  25501. Return \s-1VMS\s0 condition codes from \f(CW\*(C`main\*(C'\fR. The default is to return POSIX-style
  25502. condition (e.g. error) codes.
  25503. .IP "\fB\-mdebug\-main=\fR\fIprefix\fR" 4
  25504. .IX Item "-mdebug-main=prefix"
  25505. Flag the first routine whose name starts with \fIprefix\fR as the main
  25506. routine for the debugger.
  25507. .IP "\fB\-mmalloc64\fR" 4
  25508. .IX Item "-mmalloc64"
  25509. Default to 64\-bit memory allocation routines.
  25510. .IP "\fB\-mpointer\-size=\fR\fIsize\fR" 4
  25511. .IX Item "-mpointer-size=size"
  25512. Set the default size of pointers. Possible options for \fIsize\fR are
  25513. \&\fB32\fR or \fBshort\fR for 32 bit pointers, \fB64\fR or \fBlong\fR
  25514. for 64 bit pointers, and \fBno\fR for supporting only 32 bit pointers.
  25515. The later option disables \f(CW\*(C`pragma pointer_size\*(C'\fR.
  25516. .PP
  25517. \fIVxWorks Options\fR
  25518. .IX Subsection "VxWorks Options"
  25519. .PP
  25520. The options in this section are defined for all VxWorks targets.
  25521. Options specific to the target hardware are listed with the other
  25522. options for that target.
  25523. .IP "\fB\-mrtp\fR" 4
  25524. .IX Item "-mrtp"
  25525. \&\s-1GCC\s0 can generate code for both VxWorks kernels and real time processes
  25526. (RTPs). This option switches from the former to the latter. It also
  25527. defines the preprocessor macro \f(CW\*(C`_\|_RTP_\|_\*(C'\fR.
  25528. .IP "\fB\-non\-static\fR" 4
  25529. .IX Item "-non-static"
  25530. Link an \s-1RTP\s0 executable against shared libraries rather than static
  25531. libraries. The options \fB\-static\fR and \fB\-shared\fR can
  25532. also be used for RTPs; \fB\-static\fR
  25533. is the default.
  25534. .IP "\fB\-Bstatic\fR" 4
  25535. .IX Item "-Bstatic"
  25536. .PD 0
  25537. .IP "\fB\-Bdynamic\fR" 4
  25538. .IX Item "-Bdynamic"
  25539. .PD
  25540. These options are passed down to the linker. They are defined for
  25541. compatibility with Diab.
  25542. .IP "\fB\-Xbind\-lazy\fR" 4
  25543. .IX Item "-Xbind-lazy"
  25544. Enable lazy binding of function calls. This option is equivalent to
  25545. \&\fB\-Wl,\-z,now\fR and is defined for compatibility with Diab.
  25546. .IP "\fB\-Xbind\-now\fR" 4
  25547. .IX Item "-Xbind-now"
  25548. Disable lazy binding of function calls. This option is the default and
  25549. is defined for compatibility with Diab.
  25550. .PP
  25551. \fIx86 Options\fR
  25552. .IX Subsection "x86 Options"
  25553. .PP
  25554. These \fB\-m\fR options are defined for the x86 family of computers.
  25555. .IP "\fB\-march=\fR\fIcpu-type\fR" 4
  25556. .IX Item "-march=cpu-type"
  25557. Generate instructions for the machine type \fIcpu-type\fR. In contrast to
  25558. \&\fB\-mtune=\fR\fIcpu-type\fR, which merely tunes the generated code
  25559. for the specified \fIcpu-type\fR, \fB\-march=\fR\fIcpu-type\fR allows \s-1GCC\s0
  25560. to generate code that may not run at all on processors other than the one
  25561. indicated. Specifying \fB\-march=\fR\fIcpu-type\fR implies
  25562. \&\fB\-mtune=\fR\fIcpu-type\fR.
  25563. .Sp
  25564. The choices for \fIcpu-type\fR are:
  25565. .RS 4
  25566. .IP "\fBnative\fR" 4
  25567. .IX Item "native"
  25568. This selects the \s-1CPU\s0 to generate code for at compilation time by determining
  25569. the processor type of the compiling machine. Using \fB\-march=native\fR
  25570. enables all instruction subsets supported by the local machine (hence
  25571. the result might not run on different machines). Using \fB\-mtune=native\fR
  25572. produces code optimized for the local machine under the constraints
  25573. of the selected instruction set.
  25574. .IP "\fBx86\-64\fR" 4
  25575. .IX Item "x86-64"
  25576. A generic \s-1CPU\s0 with 64\-bit extensions.
  25577. .IP "\fBi386\fR" 4
  25578. .IX Item "i386"
  25579. Original Intel i386 \s-1CPU.\s0
  25580. .IP "\fBi486\fR" 4
  25581. .IX Item "i486"
  25582. Intel i486 \s-1CPU.\s0 (No scheduling is implemented for this chip.)
  25583. .IP "\fBi586\fR" 4
  25584. .IX Item "i586"
  25585. .PD 0
  25586. .IP "\fBpentium\fR" 4
  25587. .IX Item "pentium"
  25588. .PD
  25589. Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
  25590. .IP "\fBlakemont\fR" 4
  25591. .IX Item "lakemont"
  25592. Intel Lakemont \s-1MCU,\s0 based on Intel Pentium \s-1CPU.\s0
  25593. .IP "\fBpentium-mmx\fR" 4
  25594. .IX Item "pentium-mmx"
  25595. Intel Pentium \s-1MMX CPU,\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
  25596. .IP "\fBpentiumpro\fR" 4
  25597. .IX Item "pentiumpro"
  25598. Intel Pentium Pro \s-1CPU.\s0
  25599. .IP "\fBi686\fR" 4
  25600. .IX Item "i686"
  25601. When used with \fB\-march\fR, the Pentium Pro
  25602. instruction set is used, so the code runs on all i686 family chips.
  25603. When used with \fB\-mtune\fR, it has the same meaning as \fBgeneric\fR.
  25604. .IP "\fBpentium2\fR" 4
  25605. .IX Item "pentium2"
  25606. Intel Pentium \s-1II CPU,\s0 based on Pentium Pro core with \s-1MMX\s0 instruction set
  25607. support.
  25608. .IP "\fBpentium3\fR" 4
  25609. .IX Item "pentium3"
  25610. .PD 0
  25611. .IP "\fBpentium3m\fR" 4
  25612. .IX Item "pentium3m"
  25613. .PD
  25614. Intel Pentium \s-1III CPU,\s0 based on Pentium Pro core with \s-1MMX\s0 and \s-1SSE\s0 instruction
  25615. set support.
  25616. .IP "\fBpentium-m\fR" 4
  25617. .IX Item "pentium-m"
  25618. Intel Pentium M; low-power version of Intel Pentium \s-1III CPU\s0
  25619. with \s-1MMX, SSE\s0 and \s-1SSE2\s0 instruction set support. Used by Centrino notebooks.
  25620. .IP "\fBpentium4\fR" 4
  25621. .IX Item "pentium4"
  25622. .PD 0
  25623. .IP "\fBpentium4m\fR" 4
  25624. .IX Item "pentium4m"
  25625. .PD
  25626. Intel Pentium 4 \s-1CPU\s0 with \s-1MMX, SSE\s0 and \s-1SSE2\s0 instruction set support.
  25627. .IP "\fBprescott\fR" 4
  25628. .IX Item "prescott"
  25629. Improved version of Intel Pentium 4 \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction
  25630. set support.
  25631. .IP "\fBnocona\fR" 4
  25632. .IX Item "nocona"
  25633. Improved version of Intel Pentium 4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE,
  25634. SSE2\s0 and \s-1SSE3\s0 instruction set support.
  25635. .IP "\fBcore2\fR" 4
  25636. .IX Item "core2"
  25637. Intel Core 2 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  25638. instruction set support.
  25639. .IP "\fBnehalem\fR" 4
  25640. .IX Item "nehalem"
  25641. Intel Nehalem \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
  25642. SSE4.1, SSE4.2\s0 and \s-1POPCNT\s0 instruction set support.
  25643. .IP "\fBwestmere\fR" 4
  25644. .IX Item "westmere"
  25645. Intel Westmere \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
  25646. SSE4.1, SSE4.2, POPCNT, AES\s0 and \s-1PCLMUL\s0 instruction set support.
  25647. .IP "\fBsandybridge\fR" 4
  25648. .IX Item "sandybridge"
  25649. Intel Sandy Bridge \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
  25650. SSE4.1, SSE4.2, POPCNT, AVX, AES\s0 and \s-1PCLMUL\s0 instruction set support.
  25651. .IP "\fBivybridge\fR" 4
  25652. .IX Item "ivybridge"
  25653. Intel Ivy Bridge \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
  25654. SSE4.1, SSE4.2, POPCNT, AVX, AES, PCLMUL, FSGSBASE, RDRND\s0 and F16C
  25655. instruction set support.
  25656. .IP "\fBhaswell\fR" 4
  25657. .IX Item "haswell"
  25658. Intel Haswell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  25659. SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  25660. BMI, BMI2\s0 and F16C instruction set support.
  25661. .IP "\fBbroadwell\fR" 4
  25662. .IX Item "broadwell"
  25663. Intel Broadwell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  25664. SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  25665. BMI, BMI2, F16C, RDSEED, ADCX\s0 and \s-1PREFETCHW\s0 instruction set support.
  25666. .IP "\fBskylake\fR" 4
  25667. .IX Item "skylake"
  25668. Intel Skylake \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  25669. SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  25670. BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC\s0 and
  25671. \&\s-1XSAVES\s0 instruction set support.
  25672. .IP "\fBbonnell\fR" 4
  25673. .IX Item "bonnell"
  25674. Intel Bonnell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  25675. instruction set support.
  25676. .IP "\fBsilvermont\fR" 4
  25677. .IX Item "silvermont"
  25678. Intel Silvermont \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  25679. SSE4.1, SSE4.2, POPCNT, AES, PCLMUL\s0 and \s-1RDRND\s0 instruction set support.
  25680. .IP "\fBknl\fR" 4
  25681. .IX Item "knl"
  25682. Intel Knight's Landing \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
  25683. SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  25684. BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER\s0 and
  25685. \&\s-1AVX512CD\s0 instruction set support.
  25686. .IP "\fBknm\fR" 4
  25687. .IX Item "knm"
  25688. Intel Knights Mill \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
  25689. SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  25690. BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER, AVX512CD,
  25691. AVX5124VNNIW, AVX5124FMAPS\s0 and \s-1AVX512VPOPCNTDQ\s0 instruction set support.
  25692. .IP "\fBskylake\-avx512\fR" 4
  25693. .IX Item "skylake-avx512"
  25694. Intel Skylake Server \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
  25695. SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  25696. BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  25697. CLWB, AVX512VL, AVX512BW, AVX512DQ\s0 and \s-1AVX512CD\s0 instruction set support.
  25698. .IP "\fBcannonlake\fR" 4
  25699. .IX Item "cannonlake"
  25700. Intel Cannonlake Server \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2,
  25701. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE,
  25702. RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC,
  25703. XSAVES, AVX512F, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  25704. AVX512IFMA, SHA\s0 and \s-1UMIP\s0 instruction set support.
  25705. .IP "\fBicelake-client\fR" 4
  25706. .IX Item "icelake-client"
  25707. Intel Icelake Client \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2,
  25708. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE,
  25709. RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC,
  25710. XSAVES, AVX512F, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  25711. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2, AVX512VPOPCNTDQ,
  25712. AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES\s0 instruction set support.
  25713. .IP "\fBicelake-server\fR" 4
  25714. .IX Item "icelake-server"
  25715. Intel Icelake Server \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2,
  25716. SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE,
  25717. RDRND, FMA, BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC,
  25718. XSAVES, AVX512F, AVX512VL, AVX512BW, AVX512DQ, AVX512CD, AVX512VBMI,
  25719. AVX512IFMA, SHA, CLWB, UMIP, RDPID, GFNI, AVX512VBMI2, AVX512VPOPCNTDQ,
  25720. AVX512BITALG, AVX512VNNI, VPCLMULQDQ, VAES, PCONFIG\s0 and \s-1WBNOINVD\s0 instruction
  25721. set support.
  25722. .IP "\fBk6\fR" 4
  25723. .IX Item "k6"
  25724. \&\s-1AMD K6 CPU\s0 with \s-1MMX\s0 instruction set support.
  25725. .IP "\fBk6\-2\fR" 4
  25726. .IX Item "k6-2"
  25727. .PD 0
  25728. .IP "\fBk6\-3\fR" 4
  25729. .IX Item "k6-3"
  25730. .PD
  25731. Improved versions of \s-1AMD K6 CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
  25732. .IP "\fBathlon\fR" 4
  25733. .IX Item "athlon"
  25734. .PD 0
  25735. .IP "\fBathlon-tbird\fR" 4
  25736. .IX Item "athlon-tbird"
  25737. .PD
  25738. \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX,\s0 3dNOW!, enhanced 3DNow! and \s-1SSE\s0 prefetch instructions
  25739. support.
  25740. .IP "\fBathlon\-4\fR" 4
  25741. .IX Item "athlon-4"
  25742. .PD 0
  25743. .IP "\fBathlon-xp\fR" 4
  25744. .IX Item "athlon-xp"
  25745. .IP "\fBathlon-mp\fR" 4
  25746. .IX Item "athlon-mp"
  25747. .PD
  25748. Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX,\s0 3DNow!, enhanced 3DNow! and full \s-1SSE\s0
  25749. instruction set support.
  25750. .IP "\fBk8\fR" 4
  25751. .IX Item "k8"
  25752. .PD 0
  25753. .IP "\fBopteron\fR" 4
  25754. .IX Item "opteron"
  25755. .IP "\fBathlon64\fR" 4
  25756. .IX Item "athlon64"
  25757. .IP "\fBathlon-fx\fR" 4
  25758. .IX Item "athlon-fx"
  25759. .PD
  25760. Processors based on the \s-1AMD K8\s0 core with x86\-64 instruction set support,
  25761. including the \s-1AMD\s0 Opteron, Athlon 64, and Athlon 64 \s-1FX\s0 processors.
  25762. (This supersets \s-1MMX, SSE, SSE2,\s0 3DNow!, enhanced 3DNow! and 64\-bit
  25763. instruction set extensions.)
  25764. .IP "\fBk8\-sse3\fR" 4
  25765. .IX Item "k8-sse3"
  25766. .PD 0
  25767. .IP "\fBopteron\-sse3\fR" 4
  25768. .IX Item "opteron-sse3"
  25769. .IP "\fBathlon64\-sse3\fR" 4
  25770. .IX Item "athlon64-sse3"
  25771. .PD
  25772. Improved versions of \s-1AMD K8\s0 cores with \s-1SSE3\s0 instruction set support.
  25773. .IP "\fBamdfam10\fR" 4
  25774. .IX Item "amdfam10"
  25775. .PD 0
  25776. .IP "\fBbarcelona\fR" 4
  25777. .IX Item "barcelona"
  25778. .PD
  25779. CPUs based on \s-1AMD\s0 Family 10h cores with x86\-64 instruction set support. (This
  25780. supersets \s-1MMX, SSE, SSE2, SSE3, SSE4A,\s0 3DNow!, enhanced 3DNow!, \s-1ABM\s0 and 64\-bit
  25781. instruction set extensions.)
  25782. .IP "\fBbdver1\fR" 4
  25783. .IX Item "bdver1"
  25784. CPUs based on \s-1AMD\s0 Family 15h cores with x86\-64 instruction set support. (This
  25785. supersets \s-1FMA4, AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A,
  25786. SSSE3, SSE4.1, SSE4.2, ABM\s0 and 64\-bit instruction set extensions.)
  25787. .IP "\fBbdver2\fR" 4
  25788. .IX Item "bdver2"
  25789. \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support. (This
  25790. supersets \s-1BMI, TBM, F16C, FMA, FMA4, AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX,
  25791. SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM\s0 and 64\-bit instruction set
  25792. extensions.)
  25793. .IP "\fBbdver3\fR" 4
  25794. .IX Item "bdver3"
  25795. \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support. (This
  25796. supersets \s-1BMI, TBM, F16C, FMA, FMA4, FSGSBASE, AVX, XOP, LWP, AES,\s0
  25797. \&\s-1PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM\s0 and
  25798. 64\-bit instruction set extensions.
  25799. .IP "\fBbdver4\fR" 4
  25800. .IX Item "bdver4"
  25801. \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support. (This
  25802. supersets \s-1BMI, BMI2, TBM, F16C, FMA, FMA4, FSGSBASE, AVX, AVX2, XOP, LWP,\s0
  25803. \&\s-1AES, PCL_MUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1,\s0
  25804. \&\s-1SSE4.2, ABM\s0 and 64\-bit instruction set extensions.
  25805. .IP "\fBznver1\fR" 4
  25806. .IX Item "znver1"
  25807. \&\s-1AMD\s0 Family 17h core based CPUs with x86\-64 instruction set support. (This
  25808. supersets \s-1BMI, BMI2, F16C, FMA, FSGSBASE, AVX, AVX2, ADCX, RDSEED, MWAITX,
  25809. SHA, CLZERO, AES, PCL_MUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
  25810. SSE4.1, SSE4.2, ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT,\s0 and 64\-bit
  25811. instruction set extensions.
  25812. .IP "\fBbtver1\fR" 4
  25813. .IX Item "btver1"
  25814. CPUs based on \s-1AMD\s0 Family 14h cores with x86\-64 instruction set support. (This
  25815. supersets \s-1MMX, SSE, SSE2, SSE3, SSSE3, SSE4A, CX16, ABM\s0 and 64\-bit
  25816. instruction set extensions.)
  25817. .IP "\fBbtver2\fR" 4
  25818. .IX Item "btver2"
  25819. CPUs based on \s-1AMD\s0 Family 16h cores with x86\-64 instruction set support. This
  25820. includes \s-1MOVBE, F16C, BMI, AVX, PCL_MUL, AES, SSE4.2, SSE4.1, CX16, ABM,
  25821. SSE4A, SSSE3, SSE3, SSE2, SSE, MMX\s0 and 64\-bit instruction set extensions.
  25822. .IP "\fBwinchip\-c6\fR" 4
  25823. .IX Item "winchip-c6"
  25824. \&\s-1IDT\s0 WinChip C6 \s-1CPU,\s0 dealt in same way as i486 with additional \s-1MMX\s0 instruction
  25825. set support.
  25826. .IP "\fBwinchip2\fR" 4
  25827. .IX Item "winchip2"
  25828. \&\s-1IDT\s0 WinChip 2 \s-1CPU,\s0 dealt in same way as i486 with additional \s-1MMX\s0 and 3DNow!
  25829. instruction set support.
  25830. .IP "\fBc3\fR" 4
  25831. .IX Item "c3"
  25832. \&\s-1VIA C3 CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
  25833. (No scheduling is implemented for this chip.)
  25834. .IP "\fBc3\-2\fR" 4
  25835. .IX Item "c3-2"
  25836. \&\s-1VIA C3\-2\s0 (Nehemiah/C5XL) \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.
  25837. (No scheduling is implemented for this chip.)
  25838. .IP "\fBc7\fR" 4
  25839. .IX Item "c7"
  25840. \&\s-1VIA C7\s0 (Esther) \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
  25841. (No scheduling is implemented for this chip.)
  25842. .IP "\fBsamuel\-2\fR" 4
  25843. .IX Item "samuel-2"
  25844. \&\s-1VIA\s0 Eden Samuel 2 \s-1CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
  25845. (No scheduling is implemented for this chip.)
  25846. .IP "\fBnehemiah\fR" 4
  25847. .IX Item "nehemiah"
  25848. \&\s-1VIA\s0 Eden Nehemiah \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.
  25849. (No scheduling is implemented for this chip.)
  25850. .IP "\fBesther\fR" 4
  25851. .IX Item "esther"
  25852. \&\s-1VIA\s0 Eden Esther \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
  25853. (No scheduling is implemented for this chip.)
  25854. .IP "\fBeden\-x2\fR" 4
  25855. .IX Item "eden-x2"
  25856. \&\s-1VIA\s0 Eden X2 \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
  25857. (No scheduling is implemented for this chip.)
  25858. .IP "\fBeden\-x4\fR" 4
  25859. .IX Item "eden-x4"
  25860. \&\s-1VIA\s0 Eden X4 \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2,
  25861. AVX\s0 and \s-1AVX2\s0 instruction set support.
  25862. (No scheduling is implemented for this chip.)
  25863. .IP "\fBnano\fR" 4
  25864. .IX Item "nano"
  25865. Generic \s-1VIA\s0 Nano \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  25866. instruction set support.
  25867. (No scheduling is implemented for this chip.)
  25868. .IP "\fBnano\-1000\fR" 4
  25869. .IX Item "nano-1000"
  25870. \&\s-1VIA\s0 Nano 1xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  25871. instruction set support.
  25872. (No scheduling is implemented for this chip.)
  25873. .IP "\fBnano\-2000\fR" 4
  25874. .IX Item "nano-2000"
  25875. \&\s-1VIA\s0 Nano 2xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  25876. instruction set support.
  25877. (No scheduling is implemented for this chip.)
  25878. .IP "\fBnano\-3000\fR" 4
  25879. .IX Item "nano-3000"
  25880. \&\s-1VIA\s0 Nano 3xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
  25881. instruction set support.
  25882. (No scheduling is implemented for this chip.)
  25883. .IP "\fBnano\-x2\fR" 4
  25884. .IX Item "nano-x2"
  25885. \&\s-1VIA\s0 Nano Dual Core \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
  25886. instruction set support.
  25887. (No scheduling is implemented for this chip.)
  25888. .IP "\fBnano\-x4\fR" 4
  25889. .IX Item "nano-x4"
  25890. \&\s-1VIA\s0 Nano Quad Core \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
  25891. instruction set support.
  25892. (No scheduling is implemented for this chip.)
  25893. .IP "\fBgeode\fR" 4
  25894. .IX Item "geode"
  25895. \&\s-1AMD\s0 Geode embedded processor with \s-1MMX\s0 and 3DNow! instruction set support.
  25896. .RE
  25897. .RS 4
  25898. .RE
  25899. .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
  25900. .IX Item "-mtune=cpu-type"
  25901. Tune to \fIcpu-type\fR everything applicable about the generated code, except
  25902. for the \s-1ABI\s0 and the set of available instructions.
  25903. While picking a specific \fIcpu-type\fR schedules things appropriately
  25904. for that particular chip, the compiler does not generate any code that
  25905. cannot run on the default machine type unless you use a
  25906. \&\fB\-march=\fR\fIcpu-type\fR option.
  25907. For example, if \s-1GCC\s0 is configured for i686\-pc\-linux\-gnu
  25908. then \fB\-mtune=pentium4\fR generates code that is tuned for Pentium 4
  25909. but still runs on i686 machines.
  25910. .Sp
  25911. The choices for \fIcpu-type\fR are the same as for \fB\-march\fR.
  25912. In addition, \fB\-mtune\fR supports 2 extra choices for \fIcpu-type\fR:
  25913. .RS 4
  25914. .IP "\fBgeneric\fR" 4
  25915. .IX Item "generic"
  25916. Produce code optimized for the most common \s-1IA32/AMD64/EM64T\s0 processors.
  25917. If you know the \s-1CPU\s0 on which your code will run, then you should use
  25918. the corresponding \fB\-mtune\fR or \fB\-march\fR option instead of
  25919. \&\fB\-mtune=generic\fR. But, if you do not know exactly what \s-1CPU\s0 users
  25920. of your application will have, then you should use this option.
  25921. .Sp
  25922. As new processors are deployed in the marketplace, the behavior of this
  25923. option will change. Therefore, if you upgrade to a newer version of
  25924. \&\s-1GCC,\s0 code generation controlled by this option will change to reflect
  25925. the processors
  25926. that are most common at the time that version of \s-1GCC\s0 is released.
  25927. .Sp
  25928. There is no \fB\-march=generic\fR option because \fB\-march\fR
  25929. indicates the instruction set the compiler can use, and there is no
  25930. generic instruction set applicable to all processors. In contrast,
  25931. \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
  25932. processors) for which the code is optimized.
  25933. .IP "\fBintel\fR" 4
  25934. .IX Item "intel"
  25935. Produce code optimized for the most current Intel processors, which are
  25936. Haswell and Silvermont for this version of \s-1GCC.\s0 If you know the \s-1CPU\s0
  25937. on which your code will run, then you should use the corresponding
  25938. \&\fB\-mtune\fR or \fB\-march\fR option instead of \fB\-mtune=intel\fR.
  25939. But, if you want your application performs better on both Haswell and
  25940. Silvermont, then you should use this option.
  25941. .Sp
  25942. As new Intel processors are deployed in the marketplace, the behavior of
  25943. this option will change. Therefore, if you upgrade to a newer version of
  25944. \&\s-1GCC,\s0 code generation controlled by this option will change to reflect
  25945. the most current Intel processors at the time that version of \s-1GCC\s0 is
  25946. released.
  25947. .Sp
  25948. There is no \fB\-march=intel\fR option because \fB\-march\fR indicates
  25949. the instruction set the compiler can use, and there is no common
  25950. instruction set applicable to all processors. In contrast,
  25951. \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
  25952. processors) for which the code is optimized.
  25953. .RE
  25954. .RS 4
  25955. .RE
  25956. .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
  25957. .IX Item "-mcpu=cpu-type"
  25958. A deprecated synonym for \fB\-mtune\fR.
  25959. .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
  25960. .IX Item "-mfpmath=unit"
  25961. Generate floating-point arithmetic for selected unit \fIunit\fR. The choices
  25962. for \fIunit\fR are:
  25963. .RS 4
  25964. .IP "\fB387\fR" 4
  25965. .IX Item "387"
  25966. Use the standard 387 floating-point coprocessor present on the majority of chips and
  25967. emulated otherwise. Code compiled with this option runs almost everywhere.
  25968. The temporary results are computed in 80\-bit precision instead of the precision
  25969. specified by the type, resulting in slightly different results compared to most
  25970. of other chips. See \fB\-ffloat\-store\fR for more detailed description.
  25971. .Sp
  25972. This is the default choice for non-Darwin x86\-32 targets.
  25973. .IP "\fBsse\fR" 4
  25974. .IX Item "sse"
  25975. Use scalar floating-point instructions present in the \s-1SSE\s0 instruction set.
  25976. This instruction set is supported by Pentium \s-1III\s0 and newer chips,
  25977. and in the \s-1AMD\s0 line
  25978. by Athlon\-4, Athlon \s-1XP\s0 and Athlon \s-1MP\s0 chips. The earlier version of the \s-1SSE\s0
  25979. instruction set supports only single-precision arithmetic, thus the double and
  25980. extended-precision arithmetic are still done using 387. A later version, present
  25981. only in Pentium 4 and \s-1AMD\s0 x86\-64 chips, supports double-precision
  25982. arithmetic too.
  25983. .Sp
  25984. For the x86\-32 compiler, you must use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
  25985. or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
  25986. effective. For the x86\-64 compiler, these extensions are enabled by default.
  25987. .Sp
  25988. The resulting code should be considerably faster in the majority of cases and avoid
  25989. the numerical instability problems of 387 code, but may break some existing
  25990. code that expects temporaries to be 80 bits.
  25991. .Sp
  25992. This is the default choice for the x86\-64 compiler, Darwin x86\-32 targets,
  25993. and the default choice for x86\-32 targets with the \s-1SSE2\s0 instruction set
  25994. when \fB\-ffast\-math\fR is enabled.
  25995. .IP "\fBsse,387\fR" 4
  25996. .IX Item "sse,387"
  25997. .PD 0
  25998. .IP "\fBsse+387\fR" 4
  25999. .IX Item "sse+387"
  26000. .IP "\fBboth\fR" 4
  26001. .IX Item "both"
  26002. .PD
  26003. Attempt to utilize both instruction sets at once. This effectively doubles the
  26004. amount of available registers, and on chips with separate execution units for
  26005. 387 and \s-1SSE\s0 the execution resources too. Use this option with care, as it is
  26006. still experimental, because the \s-1GCC\s0 register allocator does not model separate
  26007. functional units well, resulting in unstable performance.
  26008. .RE
  26009. .RS 4
  26010. .RE
  26011. .IP "\fB\-masm=\fR\fIdialect\fR" 4
  26012. .IX Item "-masm=dialect"
  26013. Output assembly instructions using selected \fIdialect\fR. Also affects
  26014. which dialect is used for basic \f(CW\*(C`asm\*(C'\fR and
  26015. extended \f(CW\*(C`asm\*(C'\fR. Supported choices (in dialect
  26016. order) are \fBatt\fR or \fBintel\fR. The default is \fBatt\fR. Darwin does
  26017. not support \fBintel\fR.
  26018. .IP "\fB\-mieee\-fp\fR" 4
  26019. .IX Item "-mieee-fp"
  26020. .PD 0
  26021. .IP "\fB\-mno\-ieee\-fp\fR" 4
  26022. .IX Item "-mno-ieee-fp"
  26023. .PD
  26024. Control whether or not the compiler uses \s-1IEEE\s0 floating-point
  26025. comparisons. These correctly handle the case where the result of a
  26026. comparison is unordered.
  26027. .IP "\fB\-m80387\fR" 4
  26028. .IX Item "-m80387"
  26029. .PD 0
  26030. .IP "\fB\-mhard\-float\fR" 4
  26031. .IX Item "-mhard-float"
  26032. .PD
  26033. Generate output containing 80387 instructions for floating point.
  26034. .IP "\fB\-mno\-80387\fR" 4
  26035. .IX Item "-mno-80387"
  26036. .PD 0
  26037. .IP "\fB\-msoft\-float\fR" 4
  26038. .IX Item "-msoft-float"
  26039. .PD
  26040. Generate output containing library calls for floating point.
  26041. .Sp
  26042. \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC.\s0
  26043. Normally the facilities of the machine's usual C compiler are used, but
  26044. this cannot be done directly in cross-compilation. You must make your
  26045. own arrangements to provide suitable library functions for
  26046. cross-compilation.
  26047. .Sp
  26048. On machines where a function returns floating-point results in the 80387
  26049. register stack, some floating-point opcodes may be emitted even if
  26050. \&\fB\-msoft\-float\fR is used.
  26051. .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
  26052. .IX Item "-mno-fp-ret-in-387"
  26053. Do not use the \s-1FPU\s0 registers for return values of functions.
  26054. .Sp
  26055. The usual calling convention has functions return values of types
  26056. \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
  26057. is no \s-1FPU.\s0 The idea is that the operating system should emulate
  26058. an \s-1FPU.\s0
  26059. .Sp
  26060. The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
  26061. in ordinary \s-1CPU\s0 registers instead.
  26062. .IP "\fB\-mno\-fancy\-math\-387\fR" 4
  26063. .IX Item "-mno-fancy-math-387"
  26064. Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
  26065. \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387. Specify this option to avoid
  26066. generating those instructions. This option is the default on
  26067. OpenBSD and NetBSD. This option is overridden when \fB\-march\fR
  26068. indicates that the target \s-1CPU\s0 always has an \s-1FPU\s0 and so the
  26069. instruction does not need emulation. These
  26070. instructions are not generated unless you also use the
  26071. \&\fB\-funsafe\-math\-optimizations\fR switch.
  26072. .IP "\fB\-malign\-double\fR" 4
  26073. .IX Item "-malign-double"
  26074. .PD 0
  26075. .IP "\fB\-mno\-align\-double\fR" 4
  26076. .IX Item "-mno-align-double"
  26077. .PD
  26078. Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
  26079. \&\f(CW\*(C`long long\*(C'\fR variables on a two-word boundary or a one-word
  26080. boundary. Aligning \f(CW\*(C`double\*(C'\fR variables on a two-word boundary
  26081. produces code that runs somewhat faster on a Pentium at the
  26082. expense of more memory.
  26083. .Sp
  26084. On x86\-64, \fB\-malign\-double\fR is enabled by default.
  26085. .Sp
  26086. \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
  26087. structures containing the above types are aligned differently than
  26088. the published application binary interface specifications for the x86\-32
  26089. and are not binary compatible with structures in code compiled
  26090. without that switch.
  26091. .IP "\fB\-m96bit\-long\-double\fR" 4
  26092. .IX Item "-m96bit-long-double"
  26093. .PD 0
  26094. .IP "\fB\-m128bit\-long\-double\fR" 4
  26095. .IX Item "-m128bit-long-double"
  26096. .PD
  26097. These switches control the size of \f(CW\*(C`long double\*(C'\fR type. The x86\-32
  26098. application binary interface specifies the size to be 96 bits,
  26099. so \fB\-m96bit\-long\-double\fR is the default in 32\-bit mode.
  26100. .Sp
  26101. Modern architectures (Pentium and newer) prefer \f(CW\*(C`long double\*(C'\fR
  26102. to be aligned to an 8\- or 16\-byte boundary. In arrays or structures
  26103. conforming to the \s-1ABI,\s0 this is not possible. So specifying
  26104. \&\fB\-m128bit\-long\-double\fR aligns \f(CW\*(C`long double\*(C'\fR
  26105. to a 16\-byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
  26106. 32\-bit zero.
  26107. .Sp
  26108. In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
  26109. its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is aligned on 16\-byte boundary.
  26110. .Sp
  26111. Notice that neither of these options enable any extra precision over the x87
  26112. standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
  26113. .Sp
  26114. \&\fBWarning:\fR if you override the default value for your target \s-1ABI,\s0 this
  26115. changes the size of
  26116. structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
  26117. as well as modifying the function calling convention for functions taking
  26118. \&\f(CW\*(C`long double\*(C'\fR. Hence they are not binary-compatible
  26119. with code compiled without that switch.
  26120. .IP "\fB\-mlong\-double\-64\fR" 4
  26121. .IX Item "-mlong-double-64"
  26122. .PD 0
  26123. .IP "\fB\-mlong\-double\-80\fR" 4
  26124. .IX Item "-mlong-double-80"
  26125. .IP "\fB\-mlong\-double\-128\fR" 4
  26126. .IX Item "-mlong-double-128"
  26127. .PD
  26128. These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
  26129. of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
  26130. type. This is the default for 32\-bit Bionic C library. A size
  26131. of 128 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the
  26132. \&\f(CW\*(C`_\|_float128\*(C'\fR type. This is the default for 64\-bit Bionic C library.
  26133. .Sp
  26134. \&\fBWarning:\fR if you override the default value for your target \s-1ABI,\s0 this
  26135. changes the size of
  26136. structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
  26137. as well as modifying the function calling convention for functions taking
  26138. \&\f(CW\*(C`long double\*(C'\fR. Hence they are not binary-compatible
  26139. with code compiled without that switch.
  26140. .IP "\fB\-malign\-data=\fR\fItype\fR" 4
  26141. .IX Item "-malign-data=type"
  26142. Control how \s-1GCC\s0 aligns variables. Supported values for \fItype\fR are
  26143. \&\fBcompat\fR uses increased alignment value compatible uses \s-1GCC 4.8\s0
  26144. and earlier, \fBabi\fR uses alignment value as specified by the
  26145. psABI, and \fBcacheline\fR uses increased alignment value to match
  26146. the cache line size. \fBcompat\fR is the default.
  26147. .IP "\fB\-mlarge\-data\-threshold=\fR\fIthreshold\fR" 4
  26148. .IX Item "-mlarge-data-threshold=threshold"
  26149. When \fB\-mcmodel=medium\fR is specified, data objects larger than
  26150. \&\fIthreshold\fR are placed in the large data section. This value must be the
  26151. same across all objects linked into the binary, and defaults to 65535.
  26152. .IP "\fB\-mrtd\fR" 4
  26153. .IX Item "-mrtd"
  26154. Use a different function-calling convention, in which functions that
  26155. take a fixed number of arguments return with the \f(CW\*(C`ret \f(CInum\f(CW\*(C'\fR
  26156. instruction, which pops their arguments while returning. This saves one
  26157. instruction in the caller since there is no need to pop the arguments
  26158. there.
  26159. .Sp
  26160. You can specify that an individual function is called with this calling
  26161. sequence with the function attribute \f(CW\*(C`stdcall\*(C'\fR. You can also
  26162. override the \fB\-mrtd\fR option by using the function attribute
  26163. \&\f(CW\*(C`cdecl\*(C'\fR.
  26164. .Sp
  26165. \&\fBWarning:\fR this calling convention is incompatible with the one
  26166. normally used on Unix, so you cannot use it if you need to call
  26167. libraries compiled with the Unix compiler.
  26168. .Sp
  26169. Also, you must provide function prototypes for all functions that
  26170. take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
  26171. otherwise incorrect code is generated for calls to those
  26172. functions.
  26173. .Sp
  26174. In addition, seriously incorrect code results if you call a
  26175. function with too many arguments. (Normally, extra arguments are
  26176. harmlessly ignored.)
  26177. .IP "\fB\-mregparm=\fR\fInum\fR" 4
  26178. .IX Item "-mregparm=num"
  26179. Control how many registers are used to pass integer arguments. By
  26180. default, no registers are used to pass arguments, and at most 3
  26181. registers can be used. You can control this behavior for a specific
  26182. function by using the function attribute \f(CW\*(C`regparm\*(C'\fR.
  26183. .Sp
  26184. \&\fBWarning:\fR if you use this switch, and
  26185. \&\fInum\fR is nonzero, then you must build all modules with the same
  26186. value, including any libraries. This includes the system libraries and
  26187. startup modules.
  26188. .IP "\fB\-msseregparm\fR" 4
  26189. .IX Item "-msseregparm"
  26190. Use \s-1SSE\s0 register passing conventions for float and double arguments
  26191. and return values. You can control this behavior for a specific
  26192. function by using the function attribute \f(CW\*(C`sseregparm\*(C'\fR.
  26193. .Sp
  26194. \&\fBWarning:\fR if you use this switch then you must build all
  26195. modules with the same value, including any libraries. This includes
  26196. the system libraries and startup modules.
  26197. .IP "\fB\-mvect8\-ret\-in\-mem\fR" 4
  26198. .IX Item "-mvect8-ret-in-mem"
  26199. Return 8\-byte vectors in memory instead of \s-1MMX\s0 registers. This is the
  26200. default on Solaris@tie{}8 and 9 and VxWorks to match the \s-1ABI\s0 of the Sun
  26201. Studio compilers until version 12. Later compiler versions (starting
  26202. with Studio 12 Update@tie{}1) follow the \s-1ABI\s0 used by other x86 targets, which
  26203. is the default on Solaris@tie{}10 and later. \fIOnly\fR use this option if
  26204. you need to remain compatible with existing code produced by those
  26205. previous compiler versions or older versions of \s-1GCC.\s0
  26206. .IP "\fB\-mpc32\fR" 4
  26207. .IX Item "-mpc32"
  26208. .PD 0
  26209. .IP "\fB\-mpc64\fR" 4
  26210. .IX Item "-mpc64"
  26211. .IP "\fB\-mpc80\fR" 4
  26212. .IX Item "-mpc80"
  26213. .PD
  26214. Set 80387 floating-point precision to 32, 64 or 80 bits. When \fB\-mpc32\fR
  26215. is specified, the significands of results of floating-point operations are
  26216. rounded to 24 bits (single precision); \fB\-mpc64\fR rounds the
  26217. significands of results of floating-point operations to 53 bits (double
  26218. precision) and \fB\-mpc80\fR rounds the significands of results of
  26219. floating-point operations to 64 bits (extended double precision), which is
  26220. the default. When this option is used, floating-point operations in higher
  26221. precisions are not available to the programmer without setting the \s-1FPU\s0
  26222. control word explicitly.
  26223. .Sp
  26224. Setting the rounding of floating-point operations to less than the default
  26225. 80 bits can speed some programs by 2% or more. Note that some mathematical
  26226. libraries assume that extended-precision (80\-bit) floating-point operations
  26227. are enabled by default; routines in such libraries could suffer significant
  26228. loss of accuracy, typically through so-called \*(L"catastrophic cancellation\*(R",
  26229. when this option is used to set the precision to less than extended precision.
  26230. .IP "\fB\-mstackrealign\fR" 4
  26231. .IX Item "-mstackrealign"
  26232. Realign the stack at entry. On the x86, the \fB\-mstackrealign\fR
  26233. option generates an alternate prologue and epilogue that realigns the
  26234. run-time stack if necessary. This supports mixing legacy codes that keep
  26235. 4\-byte stack alignment with modern codes that keep 16\-byte stack alignment for
  26236. \&\s-1SSE\s0 compatibility. See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
  26237. applicable to individual functions.
  26238. .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
  26239. .IX Item "-mpreferred-stack-boundary=num"
  26240. Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
  26241. byte boundary. If \fB\-mpreferred\-stack\-boundary\fR is not specified,
  26242. the default is 4 (16 bytes or 128 bits).
  26243. .Sp
  26244. \&\fBWarning:\fR When generating code for the x86\-64 architecture with
  26245. \&\s-1SSE\s0 extensions disabled, \fB\-mpreferred\-stack\-boundary=3\fR can be
  26246. used to keep the stack boundary aligned to 8 byte boundary. Since
  26247. x86\-64 \s-1ABI\s0 require 16 byte stack alignment, this is \s-1ABI\s0 incompatible and
  26248. intended to be used in controlled environment where stack space is
  26249. important limitation. This option leads to wrong code when functions
  26250. compiled with 16 byte stack alignment (such as functions from a standard
  26251. library) are called with misaligned stack. In this case, \s-1SSE\s0
  26252. instructions may lead to misaligned memory access traps. In addition,
  26253. variable arguments are handled incorrectly for 16 byte aligned
  26254. objects (including x87 long double and _\|_int128), leading to wrong
  26255. results. You must build all modules with
  26256. \&\fB\-mpreferred\-stack\-boundary=3\fR, including any libraries. This
  26257. includes the system libraries and startup modules.
  26258. .IP "\fB\-mincoming\-stack\-boundary=\fR\fInum\fR" 4
  26259. .IX Item "-mincoming-stack-boundary=num"
  26260. Assume the incoming stack is aligned to a 2 raised to \fInum\fR byte
  26261. boundary. If \fB\-mincoming\-stack\-boundary\fR is not specified,
  26262. the one specified by \fB\-mpreferred\-stack\-boundary\fR is used.
  26263. .Sp
  26264. On Pentium and Pentium Pro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
  26265. should be aligned to an 8\-byte boundary (see \fB\-malign\-double\fR) or
  26266. suffer significant run time performance penalties. On Pentium \s-1III,\s0 the
  26267. Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR may not work
  26268. properly if it is not 16\-byte aligned.
  26269. .Sp
  26270. To ensure proper alignment of this values on the stack, the stack boundary
  26271. must be as aligned as that required by any value stored on the stack.
  26272. Further, every function must be generated such that it keeps the stack
  26273. aligned. Thus calling a function compiled with a higher preferred
  26274. stack boundary from a function compiled with a lower preferred stack
  26275. boundary most likely misaligns the stack. It is recommended that
  26276. libraries that use callbacks always use the default setting.
  26277. .Sp
  26278. This extra alignment does consume extra stack space, and generally
  26279. increases code size. Code that is sensitive to stack space usage, such
  26280. as embedded systems and operating system kernels, may want to reduce the
  26281. preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
  26282. .IP "\fB\-mmmx\fR" 4
  26283. .IX Item "-mmmx"
  26284. .PD 0
  26285. .IP "\fB\-msse\fR" 4
  26286. .IX Item "-msse"
  26287. .IP "\fB\-msse2\fR" 4
  26288. .IX Item "-msse2"
  26289. .IP "\fB\-msse3\fR" 4
  26290. .IX Item "-msse3"
  26291. .IP "\fB\-mssse3\fR" 4
  26292. .IX Item "-mssse3"
  26293. .IP "\fB\-msse4\fR" 4
  26294. .IX Item "-msse4"
  26295. .IP "\fB\-msse4a\fR" 4
  26296. .IX Item "-msse4a"
  26297. .IP "\fB\-msse4.1\fR" 4
  26298. .IX Item "-msse4.1"
  26299. .IP "\fB\-msse4.2\fR" 4
  26300. .IX Item "-msse4.2"
  26301. .IP "\fB\-mavx\fR" 4
  26302. .IX Item "-mavx"
  26303. .IP "\fB\-mavx2\fR" 4
  26304. .IX Item "-mavx2"
  26305. .IP "\fB\-mavx512f\fR" 4
  26306. .IX Item "-mavx512f"
  26307. .IP "\fB\-mavx512pf\fR" 4
  26308. .IX Item "-mavx512pf"
  26309. .IP "\fB\-mavx512er\fR" 4
  26310. .IX Item "-mavx512er"
  26311. .IP "\fB\-mavx512cd\fR" 4
  26312. .IX Item "-mavx512cd"
  26313. .IP "\fB\-mavx512vl\fR" 4
  26314. .IX Item "-mavx512vl"
  26315. .IP "\fB\-mavx512bw\fR" 4
  26316. .IX Item "-mavx512bw"
  26317. .IP "\fB\-mavx512dq\fR" 4
  26318. .IX Item "-mavx512dq"
  26319. .IP "\fB\-mavx512ifma\fR" 4
  26320. .IX Item "-mavx512ifma"
  26321. .IP "\fB\-mavx512vbmi\fR" 4
  26322. .IX Item "-mavx512vbmi"
  26323. .IP "\fB\-msha\fR" 4
  26324. .IX Item "-msha"
  26325. .IP "\fB\-maes\fR" 4
  26326. .IX Item "-maes"
  26327. .IP "\fB\-mpclmul\fR" 4
  26328. .IX Item "-mpclmul"
  26329. .IP "\fB\-mclflushopt\fR" 4
  26330. .IX Item "-mclflushopt"
  26331. .IP "\fB\-mclwb\fR" 4
  26332. .IX Item "-mclwb"
  26333. .IP "\fB\-mfsgsbase\fR" 4
  26334. .IX Item "-mfsgsbase"
  26335. .IP "\fB\-mrdrnd\fR" 4
  26336. .IX Item "-mrdrnd"
  26337. .IP "\fB\-mf16c\fR" 4
  26338. .IX Item "-mf16c"
  26339. .IP "\fB\-mfma\fR" 4
  26340. .IX Item "-mfma"
  26341. .IP "\fB\-mpconfig\fR" 4
  26342. .IX Item "-mpconfig"
  26343. .IP "\fB\-mwbnoinvd\fR" 4
  26344. .IX Item "-mwbnoinvd"
  26345. .IP "\fB\-mfma4\fR" 4
  26346. .IX Item "-mfma4"
  26347. .IP "\fB\-mprfchw\fR" 4
  26348. .IX Item "-mprfchw"
  26349. .IP "\fB\-mrdpid\fR" 4
  26350. .IX Item "-mrdpid"
  26351. .IP "\fB\-mprefetchwt1\fR" 4
  26352. .IX Item "-mprefetchwt1"
  26353. .IP "\fB\-mrdseed\fR" 4
  26354. .IX Item "-mrdseed"
  26355. .IP "\fB\-msgx\fR" 4
  26356. .IX Item "-msgx"
  26357. .IP "\fB\-mxop\fR" 4
  26358. .IX Item "-mxop"
  26359. .IP "\fB\-mlwp\fR" 4
  26360. .IX Item "-mlwp"
  26361. .IP "\fB\-m3dnow\fR" 4
  26362. .IX Item "-m3dnow"
  26363. .IP "\fB\-m3dnowa\fR" 4
  26364. .IX Item "-m3dnowa"
  26365. .IP "\fB\-mpopcnt\fR" 4
  26366. .IX Item "-mpopcnt"
  26367. .IP "\fB\-mabm\fR" 4
  26368. .IX Item "-mabm"
  26369. .IP "\fB\-madx\fR" 4
  26370. .IX Item "-madx"
  26371. .IP "\fB\-mbmi\fR" 4
  26372. .IX Item "-mbmi"
  26373. .IP "\fB\-mbmi2\fR" 4
  26374. .IX Item "-mbmi2"
  26375. .IP "\fB\-mlzcnt\fR" 4
  26376. .IX Item "-mlzcnt"
  26377. .IP "\fB\-mfxsr\fR" 4
  26378. .IX Item "-mfxsr"
  26379. .IP "\fB\-mxsave\fR" 4
  26380. .IX Item "-mxsave"
  26381. .IP "\fB\-mxsaveopt\fR" 4
  26382. .IX Item "-mxsaveopt"
  26383. .IP "\fB\-mxsavec\fR" 4
  26384. .IX Item "-mxsavec"
  26385. .IP "\fB\-mxsaves\fR" 4
  26386. .IX Item "-mxsaves"
  26387. .IP "\fB\-mrtm\fR" 4
  26388. .IX Item "-mrtm"
  26389. .IP "\fB\-mhle\fR" 4
  26390. .IX Item "-mhle"
  26391. .IP "\fB\-mtbm\fR" 4
  26392. .IX Item "-mtbm"
  26393. .IP "\fB\-mmpx\fR" 4
  26394. .IX Item "-mmpx"
  26395. .IP "\fB\-mmwaitx\fR" 4
  26396. .IX Item "-mmwaitx"
  26397. .IP "\fB\-mclzero\fR" 4
  26398. .IX Item "-mclzero"
  26399. .IP "\fB\-mpku\fR" 4
  26400. .IX Item "-mpku"
  26401. .IP "\fB\-mavx512vbmi2\fR" 4
  26402. .IX Item "-mavx512vbmi2"
  26403. .IP "\fB\-mgfni\fR" 4
  26404. .IX Item "-mgfni"
  26405. .IP "\fB\-mvaes\fR" 4
  26406. .IX Item "-mvaes"
  26407. .IP "\fB\-mvpclmulqdq\fR" 4
  26408. .IX Item "-mvpclmulqdq"
  26409. .IP "\fB\-mavx512bitalg\fR" 4
  26410. .IX Item "-mavx512bitalg"
  26411. .IP "\fB\-mmovdiri\fR" 4
  26412. .IX Item "-mmovdiri"
  26413. .IP "\fB\-mmovdir64b\fR" 4
  26414. .IX Item "-mmovdir64b"
  26415. .IP "\fB\-mavx512vpopcntdq\fR" 4
  26416. .IX Item "-mavx512vpopcntdq"
  26417. .IP "\fB\-mavx5124fmaps\fR" 4
  26418. .IX Item "-mavx5124fmaps"
  26419. .IP "\fB\-mavx512vnni\fR" 4
  26420. .IX Item "-mavx512vnni"
  26421. .IP "\fB\-mavx5124vnniw\fR" 4
  26422. .IX Item "-mavx5124vnniw"
  26423. .PD
  26424. These switches enable the use of instructions in the \s-1MMX, SSE,
  26425. SSE2, SSE3, SSSE3, SSE4, SSE4A, SSE4.1, SSE4.2, AVX, AVX2, AVX512F, AVX512PF,
  26426. AVX512ER, AVX512CD, AVX512VL, AVX512BW, AVX512DQ, AVX512IFMA, AVX512VBMI, SHA,
  26427. AES, PCLMUL, CLFLUSHOPT, CLWB, FSGSBASE, RDRND, F16C, FMA, PCONFIG,
  26428. WBNOINVD, FMA4, PREFETCHW, RDPID, PREFETCHWT1, RDSEED, SGX, XOP, LWP,\s0
  26429. 3DNow!, enhanced 3DNow!, \s-1POPCNT, ABM, ADX, BMI, BMI2, LZCNT, FXSR, XSAVE,
  26430. XSAVEOPT, XSAVEC, XSAVES, RTM, HLE, TBM, MPX, MWAITX, CLZERO, PKU, AVX512VBMI2,
  26431. GFNI, VAES, VPCLMULQDQ, AVX512BITALG, MOVDIRI, MOVDIR64B,
  26432. AVX512VPOPCNTDQ, AVX5124FMAPS, AVX512VNNI,\s0 or \s-1AVX5124VNNIW\s0
  26433. extended instruction sets. Each has a corresponding \fB\-mno\-\fR option to
  26434. disable use of these instructions.
  26435. .Sp
  26436. These extensions are also available as built-in functions: see
  26437. \&\fBx86 Built-in Functions\fR, for details of the functions enabled and
  26438. disabled by these switches.
  26439. .Sp
  26440. To generate \s-1SSE/SSE2\s0 instructions automatically from floating-point
  26441. code (as opposed to 387 instructions), see \fB\-mfpmath=sse\fR.
  26442. .Sp
  26443. \&\s-1GCC\s0 depresses SSEx instructions when \fB\-mavx\fR is used. Instead, it
  26444. generates new \s-1AVX\s0 instructions or \s-1AVX\s0 equivalence for all SSEx instructions
  26445. when needed.
  26446. .Sp
  26447. These options enable \s-1GCC\s0 to use these extended instructions in
  26448. generated code, even without \fB\-mfpmath=sse\fR. Applications that
  26449. perform run-time \s-1CPU\s0 detection must compile separate files for each
  26450. supported architecture, using the appropriate flags. In particular,
  26451. the file containing the \s-1CPU\s0 detection code should be compiled without
  26452. these options.
  26453. .IP "\fB\-mdump\-tune\-features\fR" 4
  26454. .IX Item "-mdump-tune-features"
  26455. This option instructs \s-1GCC\s0 to dump the names of the x86 performance
  26456. tuning features and default settings. The names can be used in
  26457. \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR.
  26458. .IP "\fB\-mtune\-ctrl=\fR\fIfeature-list\fR" 4
  26459. .IX Item "-mtune-ctrl=feature-list"
  26460. This option is used to do fine grain control of x86 code generation features.
  26461. \&\fIfeature-list\fR is a comma separated list of \fIfeature\fR names. See also
  26462. \&\fB\-mdump\-tune\-features\fR. When specified, the \fIfeature\fR is turned
  26463. on if it is not preceded with \fB^\fR, otherwise, it is turned off.
  26464. \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR is intended to be used by \s-1GCC\s0
  26465. developers. Using it may lead to code paths not covered by testing and can
  26466. potentially result in compiler ICEs or runtime errors.
  26467. .IP "\fB\-mno\-default\fR" 4
  26468. .IX Item "-mno-default"
  26469. This option instructs \s-1GCC\s0 to turn off all tunable features. See also
  26470. \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR and \fB\-mdump\-tune\-features\fR.
  26471. .IP "\fB\-mcld\fR" 4
  26472. .IX Item "-mcld"
  26473. This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`cld\*(C'\fR instruction in the prologue
  26474. of functions that use string instructions. String instructions depend on
  26475. the \s-1DF\s0 flag to select between autoincrement or autodecrement mode. While the
  26476. \&\s-1ABI\s0 specifies the \s-1DF\s0 flag to be cleared on function entry, some operating
  26477. systems violate this specification by not clearing the \s-1DF\s0 flag in their
  26478. exception dispatchers. The exception handler can be invoked with the \s-1DF\s0 flag
  26479. set, which leads to wrong direction mode when string instructions are used.
  26480. This option can be enabled by default on 32\-bit x86 targets by configuring
  26481. \&\s-1GCC\s0 with the \fB\-\-enable\-cld\fR configure option. Generation of \f(CW\*(C`cld\*(C'\fR
  26482. instructions can be suppressed with the \fB\-mno\-cld\fR compiler option
  26483. in this case.
  26484. .IP "\fB\-mvzeroupper\fR" 4
  26485. .IX Item "-mvzeroupper"
  26486. This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`vzeroupper\*(C'\fR instruction
  26487. before a transfer of control flow out of the function to minimize
  26488. the \s-1AVX\s0 to \s-1SSE\s0 transition penalty as well as remove unnecessary \f(CW\*(C`zeroupper\*(C'\fR
  26489. intrinsics.
  26490. .IP "\fB\-mprefer\-avx128\fR" 4
  26491. .IX Item "-mprefer-avx128"
  26492. This option instructs \s-1GCC\s0 to use 128\-bit \s-1AVX\s0 instructions instead of
  26493. 256\-bit \s-1AVX\s0 instructions in the auto-vectorizer.
  26494. .IP "\fB\-mprefer\-vector\-width=\fR\fIopt\fR" 4
  26495. .IX Item "-mprefer-vector-width=opt"
  26496. This option instructs \s-1GCC\s0 to use \fIopt\fR\-bit vector width in instructions
  26497. instead of default on the selected platform.
  26498. .RS 4
  26499. .IP "\fBnone\fR" 4
  26500. .IX Item "none"
  26501. No extra limitations applied to \s-1GCC\s0 other than defined by the selected platform.
  26502. .IP "\fB128\fR" 4
  26503. .IX Item "128"
  26504. Prefer 128\-bit vector width for instructions.
  26505. .IP "\fB256\fR" 4
  26506. .IX Item "256"
  26507. Prefer 256\-bit vector width for instructions.
  26508. .IP "\fB512\fR" 4
  26509. .IX Item "512"
  26510. Prefer 512\-bit vector width for instructions.
  26511. .RE
  26512. .RS 4
  26513. .RE
  26514. .IP "\fB\-mcx16\fR" 4
  26515. .IX Item "-mcx16"
  26516. This option enables \s-1GCC\s0 to generate \f(CW\*(C`CMPXCHG16B\*(C'\fR instructions in 64\-bit
  26517. code to implement compare-and-exchange operations on 16\-byte aligned 128\-bit
  26518. objects. This is useful for atomic updates of data structures exceeding one
  26519. machine word in size. The compiler uses this instruction to implement
  26520. \&\fB_\|_sync Builtins\fR. However, for \fB_\|_atomic Builtins\fR operating on
  26521. 128\-bit integers, a library call is always used.
  26522. .IP "\fB\-msahf\fR" 4
  26523. .IX Item "-msahf"
  26524. This option enables generation of \f(CW\*(C`SAHF\*(C'\fR instructions in 64\-bit code.
  26525. Early Intel Pentium 4 CPUs with Intel 64 support,
  26526. prior to the introduction of Pentium 4 G1 step in December 2005,
  26527. lacked the \f(CW\*(C`LAHF\*(C'\fR and \f(CW\*(C`SAHF\*(C'\fR instructions
  26528. which are supported by \s-1AMD64.\s0
  26529. These are load and store instructions, respectively, for certain status flags.
  26530. In 64\-bit mode, the \f(CW\*(C`SAHF\*(C'\fR instruction is used to optimize \f(CW\*(C`fmod\*(C'\fR,
  26531. \&\f(CW\*(C`drem\*(C'\fR, and \f(CW\*(C`remainder\*(C'\fR built-in functions;
  26532. see \fBOther Builtins\fR for details.
  26533. .IP "\fB\-mmovbe\fR" 4
  26534. .IX Item "-mmovbe"
  26535. This option enables use of the \f(CW\*(C`movbe\*(C'\fR instruction to implement
  26536. \&\f(CW\*(C`_\|_builtin_bswap32\*(C'\fR and \f(CW\*(C`_\|_builtin_bswap64\*(C'\fR.
  26537. .IP "\fB\-mshstk\fR" 4
  26538. .IX Item "-mshstk"
  26539. The \fB\-mshstk\fR option enables shadow stack built-in functions
  26540. from x86 Control-flow Enforcement Technology (\s-1CET\s0).
  26541. .IP "\fB\-mcrc32\fR" 4
  26542. .IX Item "-mcrc32"
  26543. This option enables built-in functions \f(CW\*(C`_\|_builtin_ia32_crc32qi\*(C'\fR,
  26544. \&\f(CW\*(C`_\|_builtin_ia32_crc32hi\*(C'\fR, \f(CW\*(C`_\|_builtin_ia32_crc32si\*(C'\fR and
  26545. \&\f(CW\*(C`_\|_builtin_ia32_crc32di\*(C'\fR to generate the \f(CW\*(C`crc32\*(C'\fR machine instruction.
  26546. .IP "\fB\-mrecip\fR" 4
  26547. .IX Item "-mrecip"
  26548. This option enables use of \f(CW\*(C`RCPSS\*(C'\fR and \f(CW\*(C`RSQRTSS\*(C'\fR instructions
  26549. (and their vectorized variants \f(CW\*(C`RCPPS\*(C'\fR and \f(CW\*(C`RSQRTPS\*(C'\fR)
  26550. with an additional Newton-Raphson step
  26551. to increase precision instead of \f(CW\*(C`DIVSS\*(C'\fR and \f(CW\*(C`SQRTSS\*(C'\fR
  26552. (and their vectorized
  26553. variants) for single-precision floating-point arguments. These instructions
  26554. are generated only when \fB\-funsafe\-math\-optimizations\fR is enabled
  26555. together with \fB\-ffinite\-math\-only\fR and \fB\-fno\-trapping\-math\fR.
  26556. Note that while the throughput of the sequence is higher than the throughput
  26557. of the non-reciprocal instruction, the precision of the sequence can be
  26558. decreased by up to 2 ulp (i.e. the inverse of 1.0 equals 0.99999994).
  26559. .Sp
  26560. 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
  26561. (or \f(CW\*(C`RSQRTPS\*(C'\fR) already with \fB\-ffast\-math\fR (or the above option
  26562. combination), and doesn't need \fB\-mrecip\fR.
  26563. .Sp
  26564. Also note that \s-1GCC\s0 emits the above sequence with additional Newton-Raphson step
  26565. for vectorized single-float division and vectorized \f(CW\*(C`sqrtf(\f(CIx\f(CW)\*(C'\fR
  26566. already with \fB\-ffast\-math\fR (or the above option combination), and
  26567. doesn't need \fB\-mrecip\fR.
  26568. .IP "\fB\-mrecip=\fR\fIopt\fR" 4
  26569. .IX Item "-mrecip=opt"
  26570. This option controls which reciprocal estimate instructions
  26571. may be used. \fIopt\fR is a comma-separated list of options, which may
  26572. be preceded by a \fB!\fR to invert the option:
  26573. .RS 4
  26574. .IP "\fBall\fR" 4
  26575. .IX Item "all"
  26576. Enable all estimate instructions.
  26577. .IP "\fBdefault\fR" 4
  26578. .IX Item "default"
  26579. Enable the default instructions, equivalent to \fB\-mrecip\fR.
  26580. .IP "\fBnone\fR" 4
  26581. .IX Item "none"
  26582. Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
  26583. .IP "\fBdiv\fR" 4
  26584. .IX Item "div"
  26585. Enable the approximation for scalar division.
  26586. .IP "\fBvec-div\fR" 4
  26587. .IX Item "vec-div"
  26588. Enable the approximation for vectorized division.
  26589. .IP "\fBsqrt\fR" 4
  26590. .IX Item "sqrt"
  26591. Enable the approximation for scalar square root.
  26592. .IP "\fBvec-sqrt\fR" 4
  26593. .IX Item "vec-sqrt"
  26594. Enable the approximation for vectorized square root.
  26595. .RE
  26596. .RS 4
  26597. .Sp
  26598. So, for example, \fB\-mrecip=all,!sqrt\fR enables
  26599. all of the reciprocal approximations, except for square root.
  26600. .RE
  26601. .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
  26602. .IX Item "-mveclibabi=type"
  26603. Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
  26604. external library. Supported values for \fItype\fR are \fBsvml\fR
  26605. for the Intel short
  26606. vector math library and \fBacml\fR for the \s-1AMD\s0 math core library.
  26607. To use this option, both \fB\-ftree\-vectorize\fR and
  26608. \&\fB\-funsafe\-math\-optimizations\fR have to be enabled, and an \s-1SVML\s0 or \s-1ACML\s0
  26609. ABI-compatible library must be specified at link time.
  26610. .Sp
  26611. \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`vmldExp2\*(C'\fR,
  26612. \&\f(CW\*(C`vmldLn2\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldPow2\*(C'\fR,
  26613. \&\f(CW\*(C`vmldTanh2\*(C'\fR, \f(CW\*(C`vmldTan2\*(C'\fR, \f(CW\*(C`vmldAtan2\*(C'\fR, \f(CW\*(C`vmldAtanh2\*(C'\fR,
  26614. \&\f(CW\*(C`vmldCbrt2\*(C'\fR, \f(CW\*(C`vmldSinh2\*(C'\fR, \f(CW\*(C`vmldSin2\*(C'\fR, \f(CW\*(C`vmldAsinh2\*(C'\fR,
  26615. \&\f(CW\*(C`vmldAsin2\*(C'\fR, \f(CW\*(C`vmldCosh2\*(C'\fR, \f(CW\*(C`vmldCos2\*(C'\fR, \f(CW\*(C`vmldAcosh2\*(C'\fR,
  26616. \&\f(CW\*(C`vmldAcos2\*(C'\fR, \f(CW\*(C`vmlsExp4\*(C'\fR, \f(CW\*(C`vmlsLn4\*(C'\fR,
  26617. \&\f(CW\*(C`vmlsLog104\*(C'\fR, \f(CW\*(C`vmlsPow4\*(C'\fR, \f(CW\*(C`vmlsTanh4\*(C'\fR, \f(CW\*(C`vmlsTan4\*(C'\fR,
  26618. \&\f(CW\*(C`vmlsAtan4\*(C'\fR, \f(CW\*(C`vmlsAtanh4\*(C'\fR, \f(CW\*(C`vmlsCbrt4\*(C'\fR, \f(CW\*(C`vmlsSinh4\*(C'\fR,
  26619. \&\f(CW\*(C`vmlsSin4\*(C'\fR, \f(CW\*(C`vmlsAsinh4\*(C'\fR, \f(CW\*(C`vmlsAsin4\*(C'\fR, \f(CW\*(C`vmlsCosh4\*(C'\fR,
  26620. \&\f(CW\*(C`vmlsCos4\*(C'\fR, \f(CW\*(C`vmlsAcosh4\*(C'\fR and \f(CW\*(C`vmlsAcos4\*(C'\fR for corresponding
  26621. function type when \fB\-mveclibabi=svml\fR is used, and \f(CW\*(C`_\|_vrd2_sin\*(C'\fR,
  26622. \&\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,
  26623. \&\f(CW\*(C`_\|_vrd2_log10\*(C'\fR, \f(CW\*(C`_\|_vrs4_sinf\*(C'\fR, \f(CW\*(C`_\|_vrs4_cosf\*(C'\fR,
  26624. \&\f(CW\*(C`_\|_vrs4_expf\*(C'\fR, \f(CW\*(C`_\|_vrs4_logf\*(C'\fR, \f(CW\*(C`_\|_vrs4_log2f\*(C'\fR,
  26625. \&\f(CW\*(C`_\|_vrs4_log10f\*(C'\fR and \f(CW\*(C`_\|_vrs4_powf\*(C'\fR for the corresponding function type
  26626. when \fB\-mveclibabi=acml\fR is used.
  26627. .IP "\fB\-mabi=\fR\fIname\fR" 4
  26628. .IX Item "-mabi=name"
  26629. Generate code for the specified calling convention. Permissible values
  26630. are \fBsysv\fR for the \s-1ABI\s0 used on GNU/Linux and other systems, and
  26631. \&\fBms\fR for the Microsoft \s-1ABI.\s0 The default is to use the Microsoft
  26632. \&\s-1ABI\s0 when targeting Microsoft Windows and the SysV \s-1ABI\s0 on all other systems.
  26633. You can control this behavior for specific functions by
  26634. using the function attributes \f(CW\*(C`ms_abi\*(C'\fR and \f(CW\*(C`sysv_abi\*(C'\fR.
  26635. .IP "\fB\-mforce\-indirect\-call\fR" 4
  26636. .IX Item "-mforce-indirect-call"
  26637. Force all calls to functions to be indirect. This is useful
  26638. when using Intel Processor Trace where it generates more precise timing
  26639. information for function calls.
  26640. .IP "\fB\-mcall\-ms2sysv\-xlogues\fR" 4
  26641. .IX Item "-mcall-ms2sysv-xlogues"
  26642. Due to differences in 64\-bit ABIs, any Microsoft \s-1ABI\s0 function that calls a
  26643. System V \s-1ABI\s0 function must consider \s-1RSI, RDI\s0 and \s-1XMM6\-15\s0 as clobbered. By
  26644. default, the code for saving and restoring these registers is emitted inline,
  26645. resulting in fairly lengthy prologues and epilogues. Using
  26646. \&\fB\-mcall\-ms2sysv\-xlogues\fR emits prologues and epilogues that
  26647. use stubs in the static portion of libgcc to perform these saves and restores,
  26648. thus reducing function size at the cost of a few extra instructions.
  26649. .IP "\fB\-mtls\-dialect=\fR\fItype\fR" 4
  26650. .IX Item "-mtls-dialect=type"
  26651. Generate code to access thread-local storage using the \fBgnu\fR or
  26652. \&\fBgnu2\fR conventions. \fBgnu\fR is the conservative default;
  26653. \&\fBgnu2\fR is more efficient, but it may add compile\- and run-time
  26654. requirements that cannot be satisfied on all systems.
  26655. .IP "\fB\-mpush\-args\fR" 4
  26656. .IX Item "-mpush-args"
  26657. .PD 0
  26658. .IP "\fB\-mno\-push\-args\fR" 4
  26659. .IX Item "-mno-push-args"
  26660. .PD
  26661. Use \s-1PUSH\s0 operations to store outgoing parameters. This method is shorter
  26662. and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
  26663. by default. In some cases disabling it may improve performance because of
  26664. improved scheduling and reduced dependencies.
  26665. .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
  26666. .IX Item "-maccumulate-outgoing-args"
  26667. If enabled, the maximum amount of space required for outgoing arguments is
  26668. computed in the function prologue. This is faster on most modern CPUs
  26669. because of reduced dependencies, improved scheduling and reduced stack usage
  26670. when the preferred stack boundary is not equal to 2. The drawback is a notable
  26671. increase in code size. This switch implies \fB\-mno\-push\-args\fR.
  26672. .IP "\fB\-mthreads\fR" 4
  26673. .IX Item "-mthreads"
  26674. Support thread-safe exception handling on MinGW. Programs that rely
  26675. on thread-safe exception handling must compile and link all code with the
  26676. \&\fB\-mthreads\fR option. When compiling, \fB\-mthreads\fR defines
  26677. \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
  26678. \&\fB\-lmingwthrd\fR which cleans up per-thread exception-handling data.
  26679. .IP "\fB\-mms\-bitfields\fR" 4
  26680. .IX Item "-mms-bitfields"
  26681. .PD 0
  26682. .IP "\fB\-mno\-ms\-bitfields\fR" 4
  26683. .IX Item "-mno-ms-bitfields"
  26684. .PD
  26685. Enable/disable bit-field layout compatible with the native Microsoft
  26686. Windows compiler.
  26687. .Sp
  26688. If \f(CW\*(C`packed\*(C'\fR is used on a structure, or if bit-fields are used,
  26689. it may be that the Microsoft \s-1ABI\s0 lays out the structure differently
  26690. than the way \s-1GCC\s0 normally does. Particularly when moving packed
  26691. data between functions compiled with \s-1GCC\s0 and the native Microsoft compiler
  26692. (either via function call or as data in a file), it may be necessary to access
  26693. either format.
  26694. .Sp
  26695. This option is enabled by default for Microsoft Windows
  26696. targets. This behavior can also be controlled locally by use of variable
  26697. or type attributes. For more information, see \fBx86 Variable Attributes\fR
  26698. and \fBx86 Type Attributes\fR.
  26699. .Sp
  26700. The Microsoft structure layout algorithm is fairly simple with the exception
  26701. of the bit-field packing.
  26702. The padding and alignment of members of structures and whether a bit-field
  26703. can straddle a storage-unit boundary are determine by these rules:
  26704. .RS 4
  26705. .IP "1. Structure members are stored sequentially in the order in which they are" 4
  26706. .IX Item "1. Structure members are stored sequentially in the order in which they are"
  26707. declared: the first member has the lowest memory address and the last member
  26708. the highest.
  26709. .IP "2. Every data object has an alignment requirement. The alignment requirement" 4
  26710. .IX Item "2. Every data object has an alignment requirement. The alignment requirement"
  26711. for all data except structures, unions, and arrays is either the size of the
  26712. object or the current packing size (specified with either the
  26713. \&\f(CW\*(C`aligned\*(C'\fR attribute or the \f(CW\*(C`pack\*(C'\fR pragma),
  26714. whichever is less. For structures, unions, and arrays,
  26715. the alignment requirement is the largest alignment requirement of its members.
  26716. Every object is allocated an offset so that:
  26717. .Sp
  26718. .Vb 1
  26719. \& offset % alignment_requirement == 0
  26720. .Ve
  26721. .IP "3. Adjacent bit-fields are packed into the same 1\-, 2\-, or 4\-byte allocation" 4
  26722. .IX Item "3. Adjacent bit-fields are packed into the same 1-, 2-, or 4-byte allocation"
  26723. unit if the integral types are the same size and if the next bit-field fits
  26724. into the current allocation unit without crossing the boundary imposed by the
  26725. common alignment requirements of the bit-fields.
  26726. .RE
  26727. .RS 4
  26728. .Sp
  26729. \&\s-1MSVC\s0 interprets zero-length bit-fields in the following ways:
  26730. .IP "1. If a zero-length bit-field is inserted between two bit-fields that" 4
  26731. .IX Item "1. If a zero-length bit-field is inserted between two bit-fields that"
  26732. are normally coalesced, the bit-fields are not coalesced.
  26733. .Sp
  26734. For example:
  26735. .Sp
  26736. .Vb 6
  26737. \& struct
  26738. \& {
  26739. \& unsigned long bf_1 : 12;
  26740. \& unsigned long : 0;
  26741. \& unsigned long bf_2 : 12;
  26742. \& } t1;
  26743. .Ve
  26744. .Sp
  26745. The size of \f(CW\*(C`t1\*(C'\fR is 8 bytes with the zero-length bit-field. If the
  26746. zero-length bit-field were removed, \f(CW\*(C`t1\*(C'\fR's size would be 4 bytes.
  26747. .ie n .IP "2. If a zero-length bit-field is inserted after a bit-field, ""foo"", and the" 4
  26748. .el .IP "2. If a zero-length bit-field is inserted after a bit-field, \f(CWfoo\fR, and the" 4
  26749. .IX Item "2. If a zero-length bit-field is inserted after a bit-field, foo, and the"
  26750. alignment of the zero-length bit-field is greater than the member that follows it,
  26751. \&\f(CW\*(C`bar\*(C'\fR, \f(CW\*(C`bar\*(C'\fR is aligned as the type of the zero-length bit-field.
  26752. .Sp
  26753. For example:
  26754. .Sp
  26755. .Vb 6
  26756. \& struct
  26757. \& {
  26758. \& char foo : 4;
  26759. \& short : 0;
  26760. \& char bar;
  26761. \& } t2;
  26762. \&
  26763. \& struct
  26764. \& {
  26765. \& char foo : 4;
  26766. \& short : 0;
  26767. \& double bar;
  26768. \& } t3;
  26769. .Ve
  26770. .Sp
  26771. For \f(CW\*(C`t2\*(C'\fR, \f(CW\*(C`bar\*(C'\fR is placed at offset 2, rather than offset 1.
  26772. Accordingly, the size of \f(CW\*(C`t2\*(C'\fR is 4. For \f(CW\*(C`t3\*(C'\fR, the zero-length
  26773. bit-field does not affect the alignment of \f(CW\*(C`bar\*(C'\fR or, as a result, the size
  26774. of the structure.
  26775. .Sp
  26776. Taking this into account, it is important to note the following:
  26777. .RS 4
  26778. .IP "1. If a zero-length bit-field follows a normal bit-field, the type of the" 4
  26779. .IX Item "1. If a zero-length bit-field follows a normal bit-field, the type of the"
  26780. zero-length bit-field may affect the alignment of the structure as whole. For
  26781. example, \f(CW\*(C`t2\*(C'\fR has a size of 4 bytes, since the zero-length bit-field follows a
  26782. normal bit-field, and is of type short.
  26783. .IP "2. Even if a zero-length bit-field is not followed by a normal bit-field, it may" 4
  26784. .IX Item "2. Even if a zero-length bit-field is not followed by a normal bit-field, it may"
  26785. still affect the alignment of the structure:
  26786. .Sp
  26787. .Vb 5
  26788. \& struct
  26789. \& {
  26790. \& char foo : 6;
  26791. \& long : 0;
  26792. \& } t4;
  26793. .Ve
  26794. .Sp
  26795. Here, \f(CW\*(C`t4\*(C'\fR takes up 4 bytes.
  26796. .RE
  26797. .RS 4
  26798. .RE
  26799. .IP "3. Zero-length bit-fields following non-bit-field members are ignored:" 4
  26800. .IX Item "3. Zero-length bit-fields following non-bit-field members are ignored:"
  26801. .Vb 6
  26802. \& struct
  26803. \& {
  26804. \& char foo;
  26805. \& long : 0;
  26806. \& char bar;
  26807. \& } t5;
  26808. .Ve
  26809. .Sp
  26810. Here, \f(CW\*(C`t5\*(C'\fR takes up 2 bytes.
  26811. .RE
  26812. .RS 4
  26813. .RE
  26814. .IP "\fB\-mno\-align\-stringops\fR" 4
  26815. .IX Item "-mno-align-stringops"
  26816. Do not align the destination of inlined string operations. This switch reduces
  26817. code size and improves performance in case the destination is already aligned,
  26818. but \s-1GCC\s0 doesn't know about it.
  26819. .IP "\fB\-minline\-all\-stringops\fR" 4
  26820. .IX Item "-minline-all-stringops"
  26821. By default \s-1GCC\s0 inlines string operations only when the destination is
  26822. known to be aligned to least a 4\-byte boundary.
  26823. This enables more inlining and increases code
  26824. size, but may improve performance of code that depends on fast
  26825. \&\f(CW\*(C`memcpy\*(C'\fR, \f(CW\*(C`strlen\*(C'\fR,
  26826. and \f(CW\*(C`memset\*(C'\fR for short lengths.
  26827. .IP "\fB\-minline\-stringops\-dynamically\fR" 4
  26828. .IX Item "-minline-stringops-dynamically"
  26829. For string operations of unknown size, use run-time checks with
  26830. inline code for small blocks and a library call for large blocks.
  26831. .IP "\fB\-mstringop\-strategy=\fR\fIalg\fR" 4
  26832. .IX Item "-mstringop-strategy=alg"
  26833. Override the internal decision heuristic for the particular algorithm to use
  26834. for inlining string operations. The allowed values for \fIalg\fR are:
  26835. .RS 4
  26836. .IP "\fBrep_byte\fR" 4
  26837. .IX Item "rep_byte"
  26838. .PD 0
  26839. .IP "\fBrep_4byte\fR" 4
  26840. .IX Item "rep_4byte"
  26841. .IP "\fBrep_8byte\fR" 4
  26842. .IX Item "rep_8byte"
  26843. .PD
  26844. Expand using i386 \f(CW\*(C`rep\*(C'\fR prefix of the specified size.
  26845. .IP "\fBbyte_loop\fR" 4
  26846. .IX Item "byte_loop"
  26847. .PD 0
  26848. .IP "\fBloop\fR" 4
  26849. .IX Item "loop"
  26850. .IP "\fBunrolled_loop\fR" 4
  26851. .IX Item "unrolled_loop"
  26852. .PD
  26853. Expand into an inline loop.
  26854. .IP "\fBlibcall\fR" 4
  26855. .IX Item "libcall"
  26856. Always use a library call.
  26857. .RE
  26858. .RS 4
  26859. .RE
  26860. .IP "\fB\-mmemcpy\-strategy=\fR\fIstrategy\fR" 4
  26861. .IX Item "-mmemcpy-strategy=strategy"
  26862. Override the internal decision heuristic to decide if \f(CW\*(C`_\|_builtin_memcpy\*(C'\fR
  26863. should be inlined and what inline algorithm to use when the expected size
  26864. of the copy operation is known. \fIstrategy\fR
  26865. is a comma-separated list of \fIalg\fR:\fImax_size\fR:\fIdest_align\fR triplets.
  26866. \&\fIalg\fR is specified in \fB\-mstringop\-strategy\fR, \fImax_size\fR specifies
  26867. the max byte size with which inline algorithm \fIalg\fR is allowed. For the last
  26868. triplet, the \fImax_size\fR must be \f(CW\*(C`\-1\*(C'\fR. The \fImax_size\fR of the triplets
  26869. in the list must be specified in increasing order. The minimal byte size for
  26870. \&\fIalg\fR is \f(CW0\fR for the first triplet and \f(CW\*(C`\f(CImax_size\f(CW + 1\*(C'\fR of the
  26871. preceding range.
  26872. .IP "\fB\-mmemset\-strategy=\fR\fIstrategy\fR" 4
  26873. .IX Item "-mmemset-strategy=strategy"
  26874. The option is similar to \fB\-mmemcpy\-strategy=\fR except that it is to control
  26875. \&\f(CW\*(C`_\|_builtin_memset\*(C'\fR expansion.
  26876. .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
  26877. .IX Item "-momit-leaf-frame-pointer"
  26878. Don't keep the frame pointer in a register for leaf functions. This
  26879. avoids the instructions to save, set up, and restore frame pointers and
  26880. makes an extra register available in leaf functions. The option
  26881. \&\fB\-fomit\-leaf\-frame\-pointer\fR removes the frame pointer for leaf functions,
  26882. which might make debugging harder.
  26883. .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
  26884. .IX Item "-mtls-direct-seg-refs"
  26885. .PD 0
  26886. .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
  26887. .IX Item "-mno-tls-direct-seg-refs"
  26888. .PD
  26889. Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
  26890. \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
  26891. or whether the thread base pointer must be added. Whether or not this
  26892. is valid depends on the operating system, and whether it maps the
  26893. segment to cover the entire \s-1TLS\s0 area.
  26894. .Sp
  26895. For systems that use the \s-1GNU C\s0 Library, the default is on.
  26896. .IP "\fB\-msse2avx\fR" 4
  26897. .IX Item "-msse2avx"
  26898. .PD 0
  26899. .IP "\fB\-mno\-sse2avx\fR" 4
  26900. .IX Item "-mno-sse2avx"
  26901. .PD
  26902. Specify that the assembler should encode \s-1SSE\s0 instructions with \s-1VEX\s0
  26903. prefix. The option \fB\-mavx\fR turns this on by default.
  26904. .IP "\fB\-mfentry\fR" 4
  26905. .IX Item "-mfentry"
  26906. .PD 0
  26907. .IP "\fB\-mno\-fentry\fR" 4
  26908. .IX Item "-mno-fentry"
  26909. .PD
  26910. If profiling is active (\fB\-pg\fR), put the profiling
  26911. counter call before the prologue.
  26912. Note: On x86 architectures the attribute \f(CW\*(C`ms_hook_prologue\*(C'\fR
  26913. isn't possible at the moment for \fB\-mfentry\fR and \fB\-pg\fR.
  26914. .IP "\fB\-mrecord\-mcount\fR" 4
  26915. .IX Item "-mrecord-mcount"
  26916. .PD 0
  26917. .IP "\fB\-mno\-record\-mcount\fR" 4
  26918. .IX Item "-mno-record-mcount"
  26919. .PD
  26920. If profiling is active (\fB\-pg\fR), generate a _\|_mcount_loc section
  26921. that contains pointers to each profiling call. This is useful for
  26922. automatically patching and out calls.
  26923. .IP "\fB\-mnop\-mcount\fR" 4
  26924. .IX Item "-mnop-mcount"
  26925. .PD 0
  26926. .IP "\fB\-mno\-nop\-mcount\fR" 4
  26927. .IX Item "-mno-nop-mcount"
  26928. .PD
  26929. If profiling is active (\fB\-pg\fR), generate the calls to
  26930. the profiling functions as NOPs. This is useful when they
  26931. should be patched in later dynamically. This is likely only
  26932. useful together with \fB\-mrecord\-mcount\fR.
  26933. .IP "\fB\-mskip\-rax\-setup\fR" 4
  26934. .IX Item "-mskip-rax-setup"
  26935. .PD 0
  26936. .IP "\fB\-mno\-skip\-rax\-setup\fR" 4
  26937. .IX Item "-mno-skip-rax-setup"
  26938. .PD
  26939. When generating code for the x86\-64 architecture with \s-1SSE\s0 extensions
  26940. disabled, \fB\-mskip\-rax\-setup\fR can be used to skip setting up \s-1RAX\s0
  26941. register when there are no variable arguments passed in vector registers.
  26942. .Sp
  26943. \&\fBWarning:\fR Since \s-1RAX\s0 register is used to avoid unnecessarily
  26944. saving vector registers on stack when passing variable arguments, the
  26945. impacts of this option are callees may waste some stack space,
  26946. misbehave or jump to a random location. \s-1GCC 4.4\s0 or newer don't have
  26947. those issues, regardless the \s-1RAX\s0 register value.
  26948. .IP "\fB\-m8bit\-idiv\fR" 4
  26949. .IX Item "-m8bit-idiv"
  26950. .PD 0
  26951. .IP "\fB\-mno\-8bit\-idiv\fR" 4
  26952. .IX Item "-mno-8bit-idiv"
  26953. .PD
  26954. On some processors, like Intel Atom, 8\-bit unsigned integer divide is
  26955. much faster than 32\-bit/64\-bit integer divide. This option generates a
  26956. run-time check. If both dividend and divisor are within range of 0
  26957. to 255, 8\-bit unsigned integer divide is used instead of
  26958. 32\-bit/64\-bit integer divide.
  26959. .IP "\fB\-mavx256\-split\-unaligned\-load\fR" 4
  26960. .IX Item "-mavx256-split-unaligned-load"
  26961. .PD 0
  26962. .IP "\fB\-mavx256\-split\-unaligned\-store\fR" 4
  26963. .IX Item "-mavx256-split-unaligned-store"
  26964. .PD
  26965. Split 32\-byte \s-1AVX\s0 unaligned load and store.
  26966. .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
  26967. .IX Item "-mstack-protector-guard=guard"
  26968. .PD 0
  26969. .IP "\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR" 4
  26970. .IX Item "-mstack-protector-guard-reg=reg"
  26971. .IP "\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR" 4
  26972. .IX Item "-mstack-protector-guard-offset=offset"
  26973. .PD
  26974. Generate stack protection code using canary at \fIguard\fR. Supported
  26975. locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
  26976. canary in the \s-1TLS\s0 block (the default). This option has effect only when
  26977. \&\fB\-fstack\-protector\fR or \fB\-fstack\-protector\-all\fR is specified.
  26978. .Sp
  26979. With the latter choice the options
  26980. \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR and
  26981. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR furthermore specify
  26982. which segment register (\f(CW%fs\fR or \f(CW%gs\fR) to use as base register
  26983. for reading the canary, and from what offset from that base register.
  26984. The default for those is as specified in the relevant \s-1ABI.\s0
  26985. .IP "\fB\-mmitigate\-rop\fR" 4
  26986. .IX Item "-mmitigate-rop"
  26987. Try to avoid generating code sequences that contain unintended return
  26988. opcodes, to mitigate against certain forms of attack. At the moment,
  26989. this option is limited in what it can do and should not be relied
  26990. on to provide serious protection.
  26991. .IP "\fB\-mgeneral\-regs\-only\fR" 4
  26992. .IX Item "-mgeneral-regs-only"
  26993. Generate code that uses only the general-purpose registers. This
  26994. prevents the compiler from using floating-point, vector, mask and bound
  26995. registers.
  26996. .IP "\fB\-mindirect\-branch=\fR\fIchoice\fR" 4
  26997. .IX Item "-mindirect-branch=choice"
  26998. Convert indirect call and jump with \fIchoice\fR. The default is
  26999. \&\fBkeep\fR, which keeps indirect call and jump unmodified.
  27000. \&\fBthunk\fR converts indirect call and jump to call and return thunk.
  27001. \&\fBthunk-inline\fR converts indirect call and jump to inlined call
  27002. and return thunk. \fBthunk-extern\fR converts indirect call and jump
  27003. to external call and return thunk provided in a separate object file.
  27004. You can control this behavior for a specific function by using the
  27005. function attribute \f(CW\*(C`indirect_branch\*(C'\fR.
  27006. .Sp
  27007. Note that \fB\-mcmodel=large\fR is incompatible with
  27008. \&\fB\-mindirect\-branch=thunk\fR and
  27009. \&\fB\-mindirect\-branch=thunk\-extern\fR since the thunk function may
  27010. not be reachable in the large code model.
  27011. .Sp
  27012. Note that \fB\-mindirect\-branch=thunk\-extern\fR is incompatible with
  27013. \&\fB\-fcf\-protection=branch\fR and \fB\-fcheck\-pointer\-bounds\fR
  27014. since the external thunk can not be modified to disable control-flow
  27015. check.
  27016. .IP "\fB\-mfunction\-return=\fR\fIchoice\fR" 4
  27017. .IX Item "-mfunction-return=choice"
  27018. Convert function return with \fIchoice\fR. The default is \fBkeep\fR,
  27019. which keeps function return unmodified. \fBthunk\fR converts function
  27020. return to call and return thunk. \fBthunk-inline\fR converts function
  27021. return to inlined call and return thunk. \fBthunk-extern\fR converts
  27022. function return to external call and return thunk provided in a separate
  27023. object file. You can control this behavior for a specific function by
  27024. using the function attribute \f(CW\*(C`function_return\*(C'\fR.
  27025. .Sp
  27026. Note that \fB\-mcmodel=large\fR is incompatible with
  27027. \&\fB\-mfunction\-return=thunk\fR and
  27028. \&\fB\-mfunction\-return=thunk\-extern\fR since the thunk function may
  27029. not be reachable in the large code model.
  27030. .IP "\fB\-mindirect\-branch\-register\fR" 4
  27031. .IX Item "-mindirect-branch-register"
  27032. Force indirect call and jump via register.
  27033. .PP
  27034. These \fB\-m\fR switches are supported in addition to the above
  27035. on x86\-64 processors in 64\-bit environments.
  27036. .IP "\fB\-m32\fR" 4
  27037. .IX Item "-m32"
  27038. .PD 0
  27039. .IP "\fB\-m64\fR" 4
  27040. .IX Item "-m64"
  27041. .IP "\fB\-mx32\fR" 4
  27042. .IX Item "-mx32"
  27043. .IP "\fB\-m16\fR" 4
  27044. .IX Item "-m16"
  27045. .IP "\fB\-miamcu\fR" 4
  27046. .IX Item "-miamcu"
  27047. .PD
  27048. Generate code for a 16\-bit, 32\-bit or 64\-bit environment.
  27049. The \fB\-m32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
  27050. to 32 bits, and
  27051. generates code that runs on any i386 system.
  27052. .Sp
  27053. The \fB\-m64\fR option sets \f(CW\*(C`int\*(C'\fR to 32 bits and \f(CW\*(C`long\*(C'\fR and pointer
  27054. types to 64 bits, and generates code for the x86\-64 architecture.
  27055. For Darwin only the \fB\-m64\fR option also turns off the \fB\-fno\-pic\fR
  27056. and \fB\-mdynamic\-no\-pic\fR options.
  27057. .Sp
  27058. The \fB\-mx32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
  27059. to 32 bits, and
  27060. generates code for the x86\-64 architecture.
  27061. .Sp
  27062. The \fB\-m16\fR option is the same as \fB\-m32\fR, except for that
  27063. it outputs the \f(CW\*(C`.code16gcc\*(C'\fR assembly directive at the beginning of
  27064. the assembly output so that the binary can run in 16\-bit mode.
  27065. .Sp
  27066. The \fB\-miamcu\fR option generates code which conforms to Intel \s-1MCU\s0
  27067. psABI. It requires the \fB\-m32\fR option to be turned on.
  27068. .IP "\fB\-mno\-red\-zone\fR" 4
  27069. .IX Item "-mno-red-zone"
  27070. Do not use a so-called \*(L"red zone\*(R" for x86\-64 code. The red zone is mandated
  27071. by the x86\-64 \s-1ABI\s0; it is a 128\-byte area beyond the location of the
  27072. stack pointer that is not modified by signal or interrupt handlers
  27073. and therefore can be used for temporary data without adjusting the stack
  27074. pointer. The flag \fB\-mno\-red\-zone\fR disables this red zone.
  27075. .IP "\fB\-mcmodel=small\fR" 4
  27076. .IX Item "-mcmodel=small"
  27077. Generate code for the small code model: the program and its symbols must
  27078. be linked in the lower 2 \s-1GB\s0 of the address space. Pointers are 64 bits.
  27079. Programs can be statically or dynamically linked. This is the default
  27080. code model.
  27081. .IP "\fB\-mcmodel=kernel\fR" 4
  27082. .IX Item "-mcmodel=kernel"
  27083. Generate code for the kernel code model. The kernel runs in the
  27084. negative 2 \s-1GB\s0 of the address space.
  27085. This model has to be used for Linux kernel code.
  27086. .IP "\fB\-mcmodel=medium\fR" 4
  27087. .IX Item "-mcmodel=medium"
  27088. Generate code for the medium model: the program is linked in the lower 2
  27089. \&\s-1GB\s0 of the address space. Small symbols are also placed there. Symbols
  27090. with sizes larger than \fB\-mlarge\-data\-threshold\fR are put into
  27091. large data or \s-1BSS\s0 sections and can be located above 2GB. Programs can
  27092. be statically or dynamically linked.
  27093. .IP "\fB\-mcmodel=large\fR" 4
  27094. .IX Item "-mcmodel=large"
  27095. Generate code for the large model. This model makes no assumptions
  27096. about addresses and sizes of sections.
  27097. .IP "\fB\-maddress\-mode=long\fR" 4
  27098. .IX Item "-maddress-mode=long"
  27099. Generate code for long address mode. This is only supported for 64\-bit
  27100. and x32 environments. It is the default address mode for 64\-bit
  27101. environments.
  27102. .IP "\fB\-maddress\-mode=short\fR" 4
  27103. .IX Item "-maddress-mode=short"
  27104. Generate code for short address mode. This is only supported for 32\-bit
  27105. and x32 environments. It is the default address mode for 32\-bit and
  27106. x32 environments.
  27107. .PP
  27108. \fIx86 Windows Options\fR
  27109. .IX Subsection "x86 Windows Options"
  27110. .PP
  27111. These additional options are available for Microsoft Windows targets:
  27112. .IP "\fB\-mconsole\fR" 4
  27113. .IX Item "-mconsole"
  27114. This option
  27115. specifies that a console application is to be generated, by
  27116. instructing the linker to set the \s-1PE\s0 header subsystem type
  27117. required for console applications.
  27118. This option is available for Cygwin and MinGW targets and is
  27119. enabled by default on those targets.
  27120. .IP "\fB\-mdll\fR" 4
  27121. .IX Item "-mdll"
  27122. This option is available for Cygwin and MinGW targets. It
  27123. specifies that a DLL\-\-\-a dynamic link library\-\-\-is to be
  27124. generated, enabling the selection of the required runtime
  27125. startup object and entry point.
  27126. .IP "\fB\-mnop\-fun\-dllimport\fR" 4
  27127. .IX Item "-mnop-fun-dllimport"
  27128. This option is available for Cygwin and MinGW targets. It
  27129. specifies that the \f(CW\*(C`dllimport\*(C'\fR attribute should be ignored.
  27130. .IP "\fB\-mthread\fR" 4
  27131. .IX Item "-mthread"
  27132. This option is available for MinGW targets. It specifies
  27133. that MinGW-specific thread support is to be used.
  27134. .IP "\fB\-municode\fR" 4
  27135. .IX Item "-municode"
  27136. This option is available for MinGW\-w64 targets. It causes
  27137. the \f(CW\*(C`UNICODE\*(C'\fR preprocessor macro to be predefined, and
  27138. chooses Unicode-capable runtime startup code.
  27139. .IP "\fB\-mwin32\fR" 4
  27140. .IX Item "-mwin32"
  27141. This option is available for Cygwin and MinGW targets. It
  27142. specifies that the typical Microsoft Windows predefined macros are to
  27143. be set in the pre-processor, but does not influence the choice
  27144. of runtime library/startup code.
  27145. .IP "\fB\-mwindows\fR" 4
  27146. .IX Item "-mwindows"
  27147. This option is available for Cygwin and MinGW targets. It
  27148. specifies that a \s-1GUI\s0 application is to be generated by
  27149. instructing the linker to set the \s-1PE\s0 header subsystem type
  27150. appropriately.
  27151. .IP "\fB\-fno\-set\-stack\-executable\fR" 4
  27152. .IX Item "-fno-set-stack-executable"
  27153. This option is available for MinGW targets. It specifies that
  27154. the executable flag for the stack used by nested functions isn't
  27155. set. This is necessary for binaries running in kernel mode of
  27156. Microsoft Windows, as there the User32 \s-1API,\s0 which is used to set executable
  27157. privileges, isn't available.
  27158. .IP "\fB\-fwritable\-relocated\-rdata\fR" 4
  27159. .IX Item "-fwritable-relocated-rdata"
  27160. This option is available for MinGW and Cygwin targets. It specifies
  27161. that relocated-data in read-only section is put into the \f(CW\*(C`.data\*(C'\fR
  27162. section. This is a necessary for older runtimes not supporting
  27163. modification of \f(CW\*(C`.rdata\*(C'\fR sections for pseudo-relocation.
  27164. .IP "\fB\-mpe\-aligned\-commons\fR" 4
  27165. .IX Item "-mpe-aligned-commons"
  27166. This option is available for Cygwin and MinGW targets. It
  27167. specifies that the \s-1GNU\s0 extension to the \s-1PE\s0 file format that
  27168. permits the correct alignment of \s-1COMMON\s0 variables should be
  27169. used when generating code. It is enabled by default if
  27170. \&\s-1GCC\s0 detects that the target assembler found during configuration
  27171. supports the feature.
  27172. .PP
  27173. See also under \fBx86 Options\fR for standard options.
  27174. .PP
  27175. \fIXstormy16 Options\fR
  27176. .IX Subsection "Xstormy16 Options"
  27177. .PP
  27178. These options are defined for Xstormy16:
  27179. .IP "\fB\-msim\fR" 4
  27180. .IX Item "-msim"
  27181. Choose startup files and linker script suitable for the simulator.
  27182. .PP
  27183. \fIXtensa Options\fR
  27184. .IX Subsection "Xtensa Options"
  27185. .PP
  27186. These options are supported for Xtensa targets:
  27187. .IP "\fB\-mconst16\fR" 4
  27188. .IX Item "-mconst16"
  27189. .PD 0
  27190. .IP "\fB\-mno\-const16\fR" 4
  27191. .IX Item "-mno-const16"
  27192. .PD
  27193. Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
  27194. constant values. The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
  27195. standard option from Tensilica. When enabled, \f(CW\*(C`CONST16\*(C'\fR
  27196. instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
  27197. instructions. The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
  27198. the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
  27199. .IP "\fB\-mfused\-madd\fR" 4
  27200. .IX Item "-mfused-madd"
  27201. .PD 0
  27202. .IP "\fB\-mno\-fused\-madd\fR" 4
  27203. .IX Item "-mno-fused-madd"
  27204. .PD
  27205. Enable or disable use of fused multiply/add and multiply/subtract
  27206. instructions in the floating-point option. This has no effect if the
  27207. floating-point option is not also enabled. Disabling fused multiply/add
  27208. and multiply/subtract instructions forces the compiler to use separate
  27209. instructions for the multiply and add/subtract operations. This may be
  27210. desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
  27211. required: the fused multiply add/subtract instructions do not round the
  27212. intermediate result, thereby producing results with \fImore\fR bits of
  27213. precision than specified by the \s-1IEEE\s0 standard. Disabling fused multiply
  27214. add/subtract instructions also ensures that the program output is not
  27215. sensitive to the compiler's ability to combine multiply and add/subtract
  27216. operations.
  27217. .IP "\fB\-mserialize\-volatile\fR" 4
  27218. .IX Item "-mserialize-volatile"
  27219. .PD 0
  27220. .IP "\fB\-mno\-serialize\-volatile\fR" 4
  27221. .IX Item "-mno-serialize-volatile"
  27222. .PD
  27223. When this option is enabled, \s-1GCC\s0 inserts \f(CW\*(C`MEMW\*(C'\fR instructions before
  27224. \&\f(CW\*(C`volatile\*(C'\fR memory references to guarantee sequential consistency.
  27225. The default is \fB\-mserialize\-volatile\fR. Use
  27226. \&\fB\-mno\-serialize\-volatile\fR to omit the \f(CW\*(C`MEMW\*(C'\fR instructions.
  27227. .IP "\fB\-mforce\-no\-pic\fR" 4
  27228. .IX Item "-mforce-no-pic"
  27229. For targets, like GNU/Linux, where all user-mode Xtensa code must be
  27230. position-independent code (\s-1PIC\s0), this option disables \s-1PIC\s0 for compiling
  27231. kernel code.
  27232. .IP "\fB\-mtext\-section\-literals\fR" 4
  27233. .IX Item "-mtext-section-literals"
  27234. .PD 0
  27235. .IP "\fB\-mno\-text\-section\-literals\fR" 4
  27236. .IX Item "-mno-text-section-literals"
  27237. .PD
  27238. These options control the treatment of literal pools. The default is
  27239. \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
  27240. section in the output file. This allows the literal pool to be placed
  27241. in a data \s-1RAM/ROM,\s0 and it also allows the linker to combine literal
  27242. pools from separate object files to remove redundant literals and
  27243. improve code size. With \fB\-mtext\-section\-literals\fR, the literals
  27244. are interspersed in the text section in order to keep them as close as
  27245. possible to their references. This may be necessary for large assembly
  27246. files. Literals for each function are placed right before that function.
  27247. .IP "\fB\-mauto\-litpools\fR" 4
  27248. .IX Item "-mauto-litpools"
  27249. .PD 0
  27250. .IP "\fB\-mno\-auto\-litpools\fR" 4
  27251. .IX Item "-mno-auto-litpools"
  27252. .PD
  27253. These options control the treatment of literal pools. The default is
  27254. \&\fB\-mno\-auto\-litpools\fR, which places literals in a separate
  27255. section in the output file unless \fB\-mtext\-section\-literals\fR is
  27256. used. With \fB\-mauto\-litpools\fR the literals are interspersed in
  27257. the text section by the assembler. Compiler does not produce explicit
  27258. \&\f(CW\*(C`.literal\*(C'\fR directives and loads literals into registers with
  27259. \&\f(CW\*(C`MOVI\*(C'\fR instructions instead of \f(CW\*(C`L32R\*(C'\fR to let the assembler
  27260. do relaxation and place literals as necessary. This option allows
  27261. assembler to create several literal pools per function and assemble
  27262. very big functions, which may not be possible with
  27263. \&\fB\-mtext\-section\-literals\fR.
  27264. .IP "\fB\-mtarget\-align\fR" 4
  27265. .IX Item "-mtarget-align"
  27266. .PD 0
  27267. .IP "\fB\-mno\-target\-align\fR" 4
  27268. .IX Item "-mno-target-align"
  27269. .PD
  27270. When this option is enabled, \s-1GCC\s0 instructs the assembler to
  27271. automatically align instructions to reduce branch penalties at the
  27272. expense of some code density. The assembler attempts to widen density
  27273. instructions to align branch targets and the instructions following call
  27274. instructions. If there are not enough preceding safe density
  27275. instructions to align a target, no widening is performed. The
  27276. default is \fB\-mtarget\-align\fR. These options do not affect the
  27277. treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
  27278. assembler always aligns, either by widening density instructions or
  27279. by inserting \s-1NOP\s0 instructions.
  27280. .IP "\fB\-mlongcalls\fR" 4
  27281. .IX Item "-mlongcalls"
  27282. .PD 0
  27283. .IP "\fB\-mno\-longcalls\fR" 4
  27284. .IX Item "-mno-longcalls"
  27285. .PD
  27286. When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
  27287. direct calls to indirect calls unless it can determine that the target
  27288. of a direct call is in the range allowed by the call instruction. This
  27289. translation typically occurs for calls to functions in other source
  27290. files. Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
  27291. instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
  27292. The default is \fB\-mno\-longcalls\fR. This option should be used in
  27293. programs where the call target can potentially be out of range. This
  27294. option is implemented in the assembler, not the compiler, so the
  27295. assembly code generated by \s-1GCC\s0 still shows direct call
  27296. instructions\-\-\-look at the disassembled object code to see the actual
  27297. instructions. Note that the assembler uses an indirect call for
  27298. every cross-file call, not just those that really are out of range.
  27299. .PP
  27300. \fIzSeries Options\fR
  27301. .IX Subsection "zSeries Options"
  27302. .PP
  27303. These are listed under
  27304. .SH "ENVIRONMENT"
  27305. .IX Header "ENVIRONMENT"
  27306. This section describes several environment variables that affect how \s-1GCC\s0
  27307. operates. Some of them work by specifying directories or prefixes to use
  27308. when searching for various kinds of files. Some are used to specify other
  27309. aspects of the compilation environment.
  27310. .PP
  27311. Note that you can also specify places to search using options such as
  27312. \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR. These
  27313. take precedence over places specified using environment variables, which
  27314. in turn take precedence over those specified by the configuration of \s-1GCC.\s0
  27315. .IP "\fB\s-1LANG\s0\fR" 4
  27316. .IX Item "LANG"
  27317. .PD 0
  27318. .IP "\fB\s-1LC_CTYPE\s0\fR" 4
  27319. .IX Item "LC_CTYPE"
  27320. .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
  27321. .IX Item "LC_MESSAGES"
  27322. .IP "\fB\s-1LC_ALL\s0\fR" 4
  27323. .IX Item "LC_ALL"
  27324. .PD
  27325. These environment variables control the way that \s-1GCC\s0 uses
  27326. localization information which allows \s-1GCC\s0 to work with different
  27327. national conventions. \s-1GCC\s0 inspects the locale categories
  27328. \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
  27329. so. These locale categories can be set to any value supported by your
  27330. installation. A typical value is \fBen_GB.UTF\-8\fR for English in the United
  27331. Kingdom encoded in \s-1UTF\-8.\s0
  27332. .Sp
  27333. The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
  27334. classification. \s-1GCC\s0 uses it to determine the character boundaries in
  27335. a string; this is needed for some multibyte encodings that contain quote
  27336. and escape characters that are otherwise interpreted as a string
  27337. end or escape.
  27338. .Sp
  27339. The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
  27340. use in diagnostic messages.
  27341. .Sp
  27342. If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
  27343. of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
  27344. and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
  27345. environment variable. If none of these variables are set, \s-1GCC\s0
  27346. defaults to traditional C English behavior.
  27347. .IP "\fB\s-1TMPDIR\s0\fR" 4
  27348. .IX Item "TMPDIR"
  27349. If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
  27350. files. \s-1GCC\s0 uses temporary files to hold the output of one stage of
  27351. compilation which is to be used as input to the next stage: for example,
  27352. the output of the preprocessor, which is the input to the compiler
  27353. proper.
  27354. .IP "\fB\s-1GCC_COMPARE_DEBUG\s0\fR" 4
  27355. .IX Item "GCC_COMPARE_DEBUG"
  27356. Setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR is nearly equivalent to passing
  27357. \&\fB\-fcompare\-debug\fR to the compiler driver. See the documentation
  27358. of this option for more details.
  27359. .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
  27360. .IX Item "GCC_EXEC_PREFIX"
  27361. If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
  27362. names of the subprograms executed by the compiler. No slash is added
  27363. when this prefix is combined with the name of a subprogram, but you can
  27364. specify a prefix that ends with a slash if you wish.
  27365. .Sp
  27366. If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 attempts to figure out
  27367. an appropriate prefix to use based on the pathname it is invoked with.
  27368. .Sp
  27369. If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
  27370. tries looking in the usual places for the subprogram.
  27371. .Sp
  27372. The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
  27373. \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the prefix to
  27374. the installed compiler. In many cases \fIprefix\fR is the value
  27375. of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
  27376. .Sp
  27377. Other prefixes specified with \fB\-B\fR take precedence over this prefix.
  27378. .Sp
  27379. This prefix is also used for finding files such as \fIcrt0.o\fR that are
  27380. used for linking.
  27381. .Sp
  27382. In addition, the prefix is used in an unusual way in finding the
  27383. directories to search for header files. For each of the standard
  27384. directories whose name normally begins with \fB/usr/local/lib/gcc\fR
  27385. (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
  27386. replacing that beginning with the specified prefix to produce an
  27387. alternate directory name. Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 searches
  27388. \&\fIfoo/bar\fR just before it searches the standard directory
  27389. \&\fI/usr/local/lib/bar\fR.
  27390. If a standard directory begins with the configured
  27391. \&\fIprefix\fR then the value of \fIprefix\fR is replaced by
  27392. \&\fB\s-1GCC_EXEC_PREFIX\s0\fR when looking for header files.
  27393. .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
  27394. .IX Item "COMPILER_PATH"
  27395. The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
  27396. directories, much like \fB\s-1PATH\s0\fR. \s-1GCC\s0 tries the directories thus
  27397. specified when searching for subprograms, if it cannot find the
  27398. subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
  27399. .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
  27400. .IX Item "LIBRARY_PATH"
  27401. The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
  27402. directories, much like \fB\s-1PATH\s0\fR. When configured as a native compiler,
  27403. \&\s-1GCC\s0 tries the directories thus specified when searching for special
  27404. linker files, if it cannot find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR. Linking
  27405. using \s-1GCC\s0 also uses these directories when searching for ordinary
  27406. libraries for the \fB\-l\fR option (but directories specified with
  27407. \&\fB\-L\fR come first).
  27408. .IP "\fB\s-1LANG\s0\fR" 4
  27409. .IX Item "LANG"
  27410. This variable is used to pass locale information to the compiler. One way in
  27411. which this information is used is to determine the character set to be used
  27412. when character literals, string literals and comments are parsed in C and \*(C+.
  27413. When the compiler is configured to allow multibyte characters,
  27414. the following values for \fB\s-1LANG\s0\fR are recognized:
  27415. .RS 4
  27416. .IP "\fBC\-JIS\fR" 4
  27417. .IX Item "C-JIS"
  27418. Recognize \s-1JIS\s0 characters.
  27419. .IP "\fBC\-SJIS\fR" 4
  27420. .IX Item "C-SJIS"
  27421. Recognize \s-1SJIS\s0 characters.
  27422. .IP "\fBC\-EUCJP\fR" 4
  27423. .IX Item "C-EUCJP"
  27424. Recognize \s-1EUCJP\s0 characters.
  27425. .RE
  27426. .RS 4
  27427. .Sp
  27428. If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
  27429. compiler uses \f(CW\*(C`mblen\*(C'\fR and \f(CW\*(C`mbtowc\*(C'\fR as defined by the default locale to
  27430. recognize and translate multibyte characters.
  27431. .RE
  27432. .PP
  27433. Some additional environment variables affect the behavior of the
  27434. preprocessor.
  27435. .IP "\fB\s-1CPATH\s0\fR" 4
  27436. .IX Item "CPATH"
  27437. .PD 0
  27438. .IP "\fBC_INCLUDE_PATH\fR" 4
  27439. .IX Item "C_INCLUDE_PATH"
  27440. .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
  27441. .IX Item "CPLUS_INCLUDE_PATH"
  27442. .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
  27443. .IX Item "OBJC_INCLUDE_PATH"
  27444. .PD
  27445. Each variable's value is a list of directories separated by a special
  27446. character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
  27447. The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
  27448. determined at \s-1GCC\s0 build time. For Microsoft Windows-based targets it is a
  27449. semicolon, and for almost all other targets it is a colon.
  27450. .Sp
  27451. \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
  27452. specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
  27453. options on the command line. This environment variable is used
  27454. regardless of which language is being preprocessed.
  27455. .Sp
  27456. The remaining environment variables apply only when preprocessing the
  27457. particular language indicated. Each specifies a list of directories
  27458. to be searched as if specified with \fB\-isystem\fR, but after any
  27459. paths given with \fB\-isystem\fR options on the command line.
  27460. .Sp
  27461. In all these variables, an empty element instructs the compiler to
  27462. search its current working directory. Empty elements can appear at the
  27463. beginning or end of a path. For instance, if the value of
  27464. \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
  27465. effect as \fB\-I.\ \-I/special/include\fR.
  27466. .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
  27467. .IX Item "DEPENDENCIES_OUTPUT"
  27468. If this variable is set, its value specifies how to output
  27469. dependencies for Make based on the non-system header files processed
  27470. by the compiler. System header files are ignored in the dependency
  27471. output.
  27472. .Sp
  27473. The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
  27474. which case the Make rules are written to that file, guessing the target
  27475. name from the source file name. Or the value can have the form
  27476. \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
  27477. file \fIfile\fR using \fItarget\fR as the target name.
  27478. .Sp
  27479. In other words, this environment variable is equivalent to combining
  27480. the options \fB\-MM\fR and \fB\-MF\fR,
  27481. with an optional \fB\-MT\fR switch too.
  27482. .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
  27483. .IX Item "SUNPRO_DEPENDENCIES"
  27484. This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
  27485. except that system header files are not ignored, so it implies
  27486. \&\fB\-M\fR rather than \fB\-MM\fR. However, the dependence on the
  27487. main input file is omitted.
  27488. .IP "\fB\s-1SOURCE_DATE_EPOCH\s0\fR" 4
  27489. .IX Item "SOURCE_DATE_EPOCH"
  27490. If this variable is set, its value specifies a \s-1UNIX\s0 timestamp to be
  27491. used in replacement of the current date and time in the \f(CW\*(C`_\|_DATE_\|_\*(C'\fR
  27492. and \f(CW\*(C`_\|_TIME_\|_\*(C'\fR macros, so that the embedded timestamps become
  27493. reproducible.
  27494. .Sp
  27495. The value of \fB\s-1SOURCE_DATE_EPOCH\s0\fR must be a \s-1UNIX\s0 timestamp,
  27496. defined as the number of seconds (excluding leap seconds) since
  27497. 01 Jan 1970 00:00:00 represented in \s-1ASCII\s0; identical to the output of
  27498. \&\fB\f(CB@command\fB{date +%s\fR} on GNU/Linux and other systems that support the
  27499. \&\f(CW%s\fR extension in the \f(CW\*(C`date\*(C'\fR command.
  27500. .Sp
  27501. The value should be a known timestamp such as the last modification
  27502. time of the source or package and it should be set by the build
  27503. process.
  27504. .SH "BUGS"
  27505. .IX Header "BUGS"
  27506. For instructions on reporting bugs, see
  27507. <\fBhttps://github.com/sifive/freedom\-tools/issues\fR>.
  27508. .SH "FOOTNOTES"
  27509. .IX Header "FOOTNOTES"
  27510. .IP "1." 4
  27511. On some systems, \fBgcc \-shared\fR
  27512. needs to build supplementary stub code for constructors to work. On
  27513. multi-libbed systems, \fBgcc \-shared\fR must select the correct support
  27514. libraries to link against. Failing to supply the correct flags may lead
  27515. to subtle defects. Supplying them in cases where they are not necessary
  27516. is innocuous.
  27517. .SH "SEE ALSO"
  27518. .IX Header "SEE ALSO"
  27519. \&\fBgpl\fR\|(7), \fBgfdl\fR\|(7), \fBfsf\-funding\fR\|(7),
  27520. \&\fBcpp\fR\|(1), \fBgcov\fR\|(1), \fBas\fR\|(1), \fBld\fR\|(1), \fBgdb\fR\|(1), \fBdbx\fR\|(1)
  27521. and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
  27522. \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
  27523. .SH "AUTHOR"
  27524. .IX Header "AUTHOR"
  27525. See the Info entry for \fBgcc\fR, or
  27526. <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
  27527. for contributors to \s-1GCC.\s0
  27528. .SH "COPYRIGHT"
  27529. .IX Header "COPYRIGHT"
  27530. Copyright (c) 1988\-2018 Free Software Foundation, Inc.
  27531. .PP
  27532. Permission is granted to copy, distribute and/or modify this document
  27533. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or
  27534. any later version published by the Free Software Foundation; with the
  27535. Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
  27536. Free Software\*(R", the Front-Cover texts being (a) (see below), and with
  27537. the Back-Cover Texts being (b) (see below). A copy of the license is
  27538. included in the \fBgfdl\fR\|(7) man page.
  27539. .PP
  27540. (a) The \s-1FSF\s0's Front-Cover Text is:
  27541. .PP
  27542. .Vb 1
  27543. \& A GNU Manual
  27544. .Ve
  27545. .PP
  27546. (b) The \s-1FSF\s0's Back-Cover Text is:
  27547. .PP
  27548. .Vb 3
  27549. \& You have freedom to copy and modify this GNU Manual, like GNU
  27550. \& software. Copies published by the Free Software Foundation raise
  27551. \& funds for GNU development.
  27552. .Ve