arm-linux-gnueabihf-gcc.1 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244
  1. .\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
  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 turned on, 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-11-14" "gcc-7.5.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\-fplugin=\fR\fIfile\fR \fB\-fplugin\-arg\-\fR\fIname\fR\fB=\fR\fIarg\fR
  208. \&\fB\-fdump\-ada\-spec\fR[\fB\-slim\fR] \fB\-fada\-spec\-parent=\fR\fIunit\fR \fB\-fdump\-go\-spec=\fR\fIfile\fR
  209. .IP "\fIC Language Options\fR" 4
  210. .IX Item "C Language Options"
  211. \&\fB\-ansi \-std=\fR\fIstandard\fR \fB\-fgnu89\-inline
  212. \&\-fpermitted\-flt\-eval\-methods=\fR\fIstandard\fR
  213. \&\fB\-aux\-info\fR \fIfilename\fR \fB\-fallow\-parameterless\-variadic\-functions
  214. \&\-fno\-asm \-fno\-builtin \-fno\-builtin\-\fR\fIfunction\fR \fB\-fgimple
  215. \&\-fhosted \-ffreestanding \-fopenacc \-fopenmp \-fopenmp\-simd
  216. \&\-fms\-extensions \-fplan9\-extensions \-fsso\-struct=\fR\fIendianness\fR
  217. \&\fB\-fallow\-single\-precision \-fcond\-mismatch \-flax\-vector\-conversions
  218. \&\-fsigned\-bitfields \-fsigned\-char
  219. \&\-funsigned\-bitfields \-funsigned\-char\fR
  220. .IP "\fI\*(C+ Language Options\fR" 4
  221. .IX Item " Language Options"
  222. \&\fB\-fabi\-version=\fR\fIn\fR \fB\-fno\-access\-control
  223. \&\-faligned\-new=\fR\fIn\fR \fB\-fargs\-in\-order=\fR\fIn\fR \fB\-fcheck\-new
  224. \&\-fconstexpr\-depth=\fR\fIn\fR \fB\-fconstexpr\-loop\-limit=\fR\fIn\fR
  225. \&\fB\-ffriend\-injection
  226. \&\-fno\-elide\-constructors
  227. \&\-fno\-enforce\-eh\-specs
  228. \&\-ffor\-scope \-fno\-for\-scope \-fno\-gnu\-keywords
  229. \&\-fno\-implicit\-templates
  230. \&\-fno\-implicit\-inline\-templates
  231. \&\-fno\-implement\-inlines \-fms\-extensions
  232. \&\-fnew\-inheriting\-ctors
  233. \&\-fnew\-ttp\-matching
  234. \&\-fno\-nonansi\-builtins \-fnothrow\-opt \-fno\-operator\-names
  235. \&\-fno\-optional\-diags \-fpermissive
  236. \&\-fno\-pretty\-templates
  237. \&\-frepo \-fno\-rtti \-fsized\-deallocation
  238. \&\-ftemplate\-backtrace\-limit=\fR\fIn\fR
  239. \&\fB\-ftemplate\-depth=\fR\fIn\fR
  240. \&\fB\-fno\-threadsafe\-statics \-fuse\-cxa\-atexit
  241. \&\-fno\-weak \-nostdinc++
  242. \&\-fvisibility\-inlines\-hidden
  243. \&\-fvisibility\-ms\-compat
  244. \&\-fext\-numeric\-literals
  245. \&\-Wabi=\fR\fIn\fR \fB\-Wabi\-tag \-Wconversion\-null \-Wctor\-dtor\-privacy
  246. \&\-Wdelete\-non\-virtual\-dtor \-Wliteral\-suffix \-Wmultiple\-inheritance
  247. \&\-Wnamespaces \-Wnarrowing
  248. \&\-Wnoexcept \-Wnoexcept\-type \-Wnon\-virtual\-dtor \-Wreorder \-Wregister
  249. \&\-Weffc++ \-Wstrict\-null\-sentinel \-Wtemplates
  250. \&\-Wno\-non\-template\-friend \-Wold\-style\-cast
  251. \&\-Woverloaded\-virtual \-Wno\-pmf\-conversions
  252. \&\-Wsign\-promo \-Wvirtual\-inheritance\fR
  253. .IP "\fIObjective-C and Objective\-\*(C+ Language Options\fR" 4
  254. .IX Item "Objective-C and Objective- Language Options"
  255. \&\fB\-fconstant\-string\-class=\fR\fIclass-name\fR
  256. \&\fB\-fgnu\-runtime \-fnext\-runtime
  257. \&\-fno\-nil\-receivers
  258. \&\-fobjc\-abi\-version=\fR\fIn\fR
  259. \&\fB\-fobjc\-call\-cxx\-cdtors
  260. \&\-fobjc\-direct\-dispatch
  261. \&\-fobjc\-exceptions
  262. \&\-fobjc\-gc
  263. \&\-fobjc\-nilcheck
  264. \&\-fobjc\-std=objc1
  265. \&\-fno\-local\-ivars
  266. \&\-fivar\-visibility=\fR[\fBpublic\fR|\fBprotected\fR|\fBprivate\fR|\fBpackage\fR]
  267. \&\fB\-freplace\-objc\-classes
  268. \&\-fzero\-link
  269. \&\-gen\-decls
  270. \&\-Wassign\-intercept
  271. \&\-Wno\-protocol \-Wselector
  272. \&\-Wstrict\-selector\-match
  273. \&\-Wundeclared\-selector\fR
  274. .IP "\fIDiagnostic Message Formatting Options\fR" 4
  275. .IX Item "Diagnostic Message Formatting Options"
  276. \&\fB\-fmessage\-length=\fR\fIn\fR
  277. \&\fB\-fdiagnostics\-show\-location=\fR[\fBonce\fR|\fBevery-line\fR]
  278. \&\fB\-fdiagnostics\-color=\fR[\fBauto\fR|\fBnever\fR|\fBalways\fR]
  279. \&\fB\-fno\-diagnostics\-show\-option \-fno\-diagnostics\-show\-caret
  280. \&\-fdiagnostics\-parseable\-fixits \-fdiagnostics\-generate\-patch
  281. \&\-fno\-show\-column\fR
  282. .IP "\fIWarning Options\fR" 4
  283. .IX Item "Warning Options"
  284. \&\fB\-fsyntax\-only \-fmax\-errors=\fR\fIn\fR \fB\-Wpedantic
  285. \&\-pedantic\-errors
  286. \&\-w \-Wextra \-Wall \-Waddress \-Waggregate\-return \-Waligned\-new
  287. \&\-Walloc\-zero \-Walloc\-size\-larger\-than=\fR\fIn\fR
  288. \&\fB\-Walloca \-Walloca\-larger\-than=\fR\fIn\fR
  289. \&\fB\-Wno\-aggressive\-loop\-optimizations \-Warray\-bounds \-Warray\-bounds=\fR\fIn\fR
  290. \&\fB\-Wno\-attributes \-Wbool\-compare \-Wbool\-operation
  291. \&\-Wno\-builtin\-declaration\-mismatch
  292. \&\-Wno\-builtin\-macro\-redefined \-Wc90\-c99\-compat \-Wc99\-c11\-compat
  293. \&\-Wc++\-compat \-Wc++11\-compat \-Wc++14\-compat \-Wcast\-align \-Wcast\-qual
  294. \&\-Wchar\-subscripts \-Wchkp \-Wclobbered \-Wcomment
  295. \&\-Wconditionally\-supported
  296. \&\-Wconversion \-Wcoverage\-mismatch \-Wno\-cpp \-Wdangling\-else \-Wdate\-time
  297. \&\-Wdelete\-incomplete
  298. \&\-Wno\-deprecated \-Wno\-deprecated\-declarations \-Wno\-designated\-init
  299. \&\-Wdisabled\-optimization
  300. \&\-Wno\-discarded\-qualifiers \-Wno\-discarded\-array\-qualifiers
  301. \&\-Wno\-div\-by\-zero \-Wdouble\-promotion
  302. \&\-Wduplicated\-branches \-Wduplicated\-cond
  303. \&\-Wempty\-body \-Wenum\-compare \-Wno\-endif\-labels \-Wexpansion\-to\-defined
  304. \&\-Werror \-Werror=* \-Wfatal\-errors \-Wfloat\-equal \-Wformat \-Wformat=2
  305. \&\-Wno\-format\-contains\-nul \-Wno\-format\-extra\-args
  306. \&\-Wformat\-nonliteral \-Wformat\-overflow=\fR\fIn\fR
  307. \&\fB\-Wformat\-security \-Wformat\-signedness \-Wformat\-truncation=\fR\fIn\fR
  308. \&\fB\-Wformat\-y2k \-Wframe\-address
  309. \&\-Wframe\-larger\-than=\fR\fIlen\fR \fB\-Wno\-free\-nonheap\-object \-Wjump\-misses\-init
  310. \&\-Wignored\-qualifiers \-Wignored\-attributes \-Wincompatible\-pointer\-types
  311. \&\-Wimplicit \-Wimplicit\-fallthrough \-Wimplicit\-fallthrough=\fR\fIn\fR
  312. \&\fB\-Wimplicit\-function\-declaration \-Wimplicit\-int
  313. \&\-Winit\-self \-Winline \-Wno\-int\-conversion \-Wint\-in\-bool\-context
  314. \&\-Wno\-int\-to\-pointer\-cast \-Winvalid\-memory\-model \-Wno\-invalid\-offsetof
  315. \&\-Winvalid\-pch \-Wlarger\-than=\fR\fIlen\fR
  316. \&\fB\-Wlogical\-op \-Wlogical\-not\-parentheses \-Wlong\-long
  317. \&\-Wmain \-Wmaybe\-uninitialized \-Wmemset\-elt\-size \-Wmemset\-transposed\-args
  318. \&\-Wmisleading\-indentation \-Wmissing\-braces
  319. \&\-Wmissing\-field\-initializers \-Wmissing\-include\-dirs
  320. \&\-Wno\-multichar \-Wnonnull \-Wnonnull\-compare
  321. \&\-Wnormalized=\fR[\fBnone\fR|\fBid\fR|\fBnfc\fR|\fBnfkc\fR]
  322. \&\fB\-Wnull\-dereference \-Wodr \-Wno\-overflow \-Wopenmp\-simd
  323. \&\-Woverride\-init\-side\-effects \-Woverlength\-strings
  324. \&\-Wpacked \-Wpacked\-bitfield\-compat \-Wpadded
  325. \&\-Wparentheses \-Wno\-pedantic\-ms\-format
  326. \&\-Wplacement\-new \-Wplacement\-new=\fR\fIn\fR
  327. \&\fB\-Wpointer\-arith \-Wpointer\-compare \-Wno\-pointer\-to\-int\-cast
  328. \&\-Wno\-pragmas \-Wredundant\-decls \-Wrestrict \-Wno\-return\-local\-addr
  329. \&\-Wreturn\-type \-Wsequence\-point \-Wshadow \-Wno\-shadow\-ivar
  330. \&\-Wshadow=global, \-Wshadow=local, \-Wshadow=compatible\-local
  331. \&\-Wshift\-overflow \-Wshift\-overflow=\fR\fIn\fR
  332. \&\fB\-Wshift\-count\-negative \-Wshift\-count\-overflow \-Wshift\-negative\-value
  333. \&\-Wsign\-compare \-Wsign\-conversion \-Wfloat\-conversion
  334. \&\-Wno\-scalar\-storage\-order
  335. \&\-Wsizeof\-pointer\-memaccess \-Wsizeof\-array\-argument
  336. \&\-Wstack\-protector \-Wstack\-usage=\fR\fIlen\fR \fB\-Wstrict\-aliasing
  337. \&\-Wstrict\-aliasing=n \-Wstrict\-overflow \-Wstrict\-overflow=\fR\fIn\fR
  338. \&\fB\-Wstringop\-overflow=\fR\fIn\fR
  339. \&\fB\-Wsuggest\-attribute=\fR[\fBpure\fR|\fBconst\fR|\fBnoreturn\fR|\fBformat\fR]
  340. \&\fB\-Wsuggest\-final\-types \-Wsuggest\-final\-methods \-Wsuggest\-override
  341. \&\-Wmissing\-format\-attribute \-Wsubobject\-linkage
  342. \&\-Wswitch \-Wswitch\-bool \-Wswitch\-default \-Wswitch\-enum
  343. \&\-Wswitch\-unreachable \-Wsync\-nand
  344. \&\-Wsystem\-headers \-Wtautological\-compare \-Wtrampolines \-Wtrigraphs
  345. \&\-Wtype\-limits \-Wundef
  346. \&\-Wuninitialized \-Wunknown\-pragmas \-Wunsafe\-loop\-optimizations
  347. \&\-Wunsuffixed\-float\-constants \-Wunused \-Wunused\-function
  348. \&\-Wunused\-label \-Wunused\-local\-typedefs \-Wunused\-macros
  349. \&\-Wunused\-parameter \-Wno\-unused\-result
  350. \&\-Wunused\-value \-Wunused\-variable
  351. \&\-Wunused\-const\-variable \-Wunused\-const\-variable=\fR\fIn\fR
  352. \&\fB\-Wunused\-but\-set\-parameter \-Wunused\-but\-set\-variable
  353. \&\-Wuseless\-cast \-Wvariadic\-macros \-Wvector\-operation\-performance
  354. \&\-Wvla \-Wvla\-larger\-than=\fR\fIn\fR \fB\-Wvolatile\-register\-var \-Wwrite\-strings
  355. \&\-Wzero\-as\-null\-pointer\-constant \-Whsa\fR
  356. .IP "\fIC and Objective-C-only Warning Options\fR" 4
  357. .IX Item "C and Objective-C-only Warning Options"
  358. \&\fB\-Wbad\-function\-cast \-Wmissing\-declarations
  359. \&\-Wmissing\-parameter\-type \-Wmissing\-prototypes \-Wnested\-externs
  360. \&\-Wold\-style\-declaration \-Wold\-style\-definition
  361. \&\-Wstrict\-prototypes \-Wtraditional \-Wtraditional\-conversion
  362. \&\-Wdeclaration\-after\-statement \-Wpointer\-sign\fR
  363. .IP "\fIDebugging Options\fR" 4
  364. .IX Item "Debugging Options"
  365. \&\fB\-g \-g\fR\fIlevel\fR \fB\-gcoff \-gdwarf \-gdwarf\-\fR\fIversion\fR
  366. \&\fB\-ggdb \-grecord\-gcc\-switches \-gno\-record\-gcc\-switches
  367. \&\-gstabs \-gstabs+ \-gstrict\-dwarf \-gno\-strict\-dwarf
  368. \&\-gcolumn\-info \-gno\-column\-info
  369. \&\-gvms \-gxcoff \-gxcoff+ \-gz\fR[\fB=\fR\fItype\fR]
  370. \&\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR \fB\-fdebug\-types\-section
  371. \&\-feliminate\-dwarf2\-dups \-fno\-eliminate\-unused\-debug\-types
  372. \&\-femit\-struct\-debug\-baseonly \-femit\-struct\-debug\-reduced
  373. \&\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]
  374. \&\fB\-feliminate\-unused\-debug\-symbols \-femit\-class\-debug\-always
  375. \&\-fno\-merge\-debug\-strings \-fno\-dwarf2\-cfi\-asm
  376. \&\-fvar\-tracking \-fvar\-tracking\-assignments\fR
  377. .IP "\fIOptimization Options\fR" 4
  378. .IX Item "Optimization Options"
  379. \&\fB\-faggressive\-loop\-optimizations \-falign\-functions[=\fR\fIn\fR\fB]
  380. \&\-falign\-jumps[=\fR\fIn\fR\fB]
  381. \&\-falign\-labels[=\fR\fIn\fR\fB] \-falign\-loops[=\fR\fIn\fR\fB]
  382. \&\-fassociative\-math \-fauto\-profile \-fauto\-profile[=\fR\fIpath\fR\fB]
  383. \&\-fauto\-inc\-dec \-fbranch\-probabilities
  384. \&\-fbranch\-target\-load\-optimize \-fbranch\-target\-load\-optimize2
  385. \&\-fbtr\-bb\-exclusive \-fcaller\-saves
  386. \&\-fcombine\-stack\-adjustments \-fconserve\-stack
  387. \&\-fcompare\-elim \-fcprop\-registers \-fcrossjumping
  388. \&\-fcse\-follow\-jumps \-fcse\-skip\-blocks \-fcx\-fortran\-rules
  389. \&\-fcx\-limited\-range
  390. \&\-fdata\-sections \-fdce \-fdelayed\-branch
  391. \&\-fdelete\-null\-pointer\-checks \-fdevirtualize \-fdevirtualize\-speculatively
  392. \&\-fdevirtualize\-at\-ltrans \-fdse
  393. \&\-fearly\-inlining \-fipa\-sra \-fexpensive\-optimizations \-ffat\-lto\-objects
  394. \&\-ffast\-math \-ffinite\-math\-only \-ffloat\-store \-fexcess\-precision=\fR\fIstyle\fR
  395. \&\fB\-fforward\-propagate \-ffp\-contract=\fR\fIstyle\fR \fB\-ffunction\-sections
  396. \&\-fgcse \-fgcse\-after\-reload \-fgcse\-las \-fgcse\-lm \-fgraphite\-identity
  397. \&\-fgcse\-sm \-fhoist\-adjacent\-loads \-fif\-conversion
  398. \&\-fif\-conversion2 \-findirect\-inlining
  399. \&\-finline\-functions \-finline\-functions\-called\-once \-finline\-limit=\fR\fIn\fR
  400. \&\fB\-finline\-small\-functions \-fipa\-cp \-fipa\-cp\-clone
  401. \&\-fipa\-bit\-cp \-fipa\-vrp
  402. \&\-fipa\-pta \-fipa\-profile \-fipa\-pure\-const \-fipa\-reference \-fipa\-icf
  403. \&\-fira\-algorithm=\fR\fIalgorithm\fR
  404. \&\fB\-fira\-region=\fR\fIregion\fR \fB\-fira\-hoist\-pressure
  405. \&\-fira\-loop\-pressure \-fno\-ira\-share\-save\-slots
  406. \&\-fno\-ira\-share\-spill\-slots
  407. \&\-fisolate\-erroneous\-paths\-dereference \-fisolate\-erroneous\-paths\-attribute
  408. \&\-fivopts \-fkeep\-inline\-functions \-fkeep\-static\-functions
  409. \&\-fkeep\-static\-consts \-flimit\-function\-alignment \-flive\-range\-shrinkage
  410. \&\-floop\-block \-floop\-interchange \-floop\-strip\-mine
  411. \&\-floop\-unroll\-and\-jam \-floop\-nest\-optimize
  412. \&\-floop\-parallelize\-all \-flra\-remat \-flto \-flto\-compression\-level
  413. \&\-flto\-partition=\fR\fIalg\fR \fB\-fmerge\-all\-constants
  414. \&\-fmerge\-constants \-fmodulo\-sched \-fmodulo\-sched\-allow\-regmoves
  415. \&\-fmove\-loop\-invariants \-fno\-branch\-count\-reg
  416. \&\-fno\-defer\-pop \-fno\-fp\-int\-builtin\-inexact \-fno\-function\-cse
  417. \&\-fno\-guess\-branch\-probability \-fno\-inline \-fno\-math\-errno \-fno\-peephole
  418. \&\-fno\-peephole2 \-fno\-printf\-return\-value \-fno\-sched\-interblock
  419. \&\-fno\-sched\-spec \-fno\-signed\-zeros
  420. \&\-fno\-toplevel\-reorder \-fno\-trapping\-math \-fno\-zero\-initialized\-in\-bss
  421. \&\-fomit\-frame\-pointer \-foptimize\-sibling\-calls
  422. \&\-fpartial\-inlining \-fpeel\-loops \-fpredictive\-commoning
  423. \&\-fprefetch\-loop\-arrays
  424. \&\-fprofile\-correction
  425. \&\-fprofile\-use \-fprofile\-use=\fR\fIpath\fR \fB\-fprofile\-values
  426. \&\-fprofile\-reorder\-functions
  427. \&\-freciprocal\-math \-free \-frename\-registers \-freorder\-blocks
  428. \&\-freorder\-blocks\-algorithm=\fR\fIalgorithm\fR
  429. \&\fB\-freorder\-blocks\-and\-partition \-freorder\-functions
  430. \&\-frerun\-cse\-after\-loop \-freschedule\-modulo\-scheduled\-loops
  431. \&\-frounding\-math \-fsched2\-use\-superblocks \-fsched\-pressure
  432. \&\-fsched\-spec\-load \-fsched\-spec\-load\-dangerous
  433. \&\-fsched\-stalled\-insns\-dep[=\fR\fIn\fR\fB] \-fsched\-stalled\-insns[=\fR\fIn\fR\fB]
  434. \&\-fsched\-group\-heuristic \-fsched\-critical\-path\-heuristic
  435. \&\-fsched\-spec\-insn\-heuristic \-fsched\-rank\-heuristic
  436. \&\-fsched\-last\-insn\-heuristic \-fsched\-dep\-count\-heuristic
  437. \&\-fschedule\-fusion
  438. \&\-fschedule\-insns \-fschedule\-insns2 \-fsection\-anchors
  439. \&\-fselective\-scheduling \-fselective\-scheduling2
  440. \&\-fsel\-sched\-pipelining \-fsel\-sched\-pipelining\-outer\-loops
  441. \&\-fsemantic\-interposition \-fshrink\-wrap \-fshrink\-wrap\-separate
  442. \&\-fsignaling\-nans
  443. \&\-fsingle\-precision\-constant \-fsplit\-ivs\-in\-unroller \-fsplit\-loops
  444. \&\-fsplit\-paths
  445. \&\-fsplit\-wide\-types \-fssa\-backprop \-fssa\-phiopt
  446. \&\-fstdarg\-opt \-fstore\-merging \-fstrict\-aliasing
  447. \&\-fstrict\-overflow \-fthread\-jumps \-ftracer \-ftree\-bit\-ccp
  448. \&\-ftree\-builtin\-call\-dce \-ftree\-ccp \-ftree\-ch
  449. \&\-ftree\-coalesce\-vars \-ftree\-copy\-prop \-ftree\-dce \-ftree\-dominator\-opts
  450. \&\-ftree\-dse \-ftree\-forwprop \-ftree\-fre \-fcode\-hoisting
  451. \&\-ftree\-loop\-if\-convert \-ftree\-loop\-im
  452. \&\-ftree\-phiprop \-ftree\-loop\-distribution \-ftree\-loop\-distribute\-patterns
  453. \&\-ftree\-loop\-ivcanon \-ftree\-loop\-linear \-ftree\-loop\-optimize
  454. \&\-ftree\-loop\-vectorize
  455. \&\-ftree\-parallelize\-loops=\fR\fIn\fR \fB\-ftree\-pre \-ftree\-partial\-pre \-ftree\-pta
  456. \&\-ftree\-reassoc \-ftree\-sink \-ftree\-slsr \-ftree\-sra
  457. \&\-ftree\-switch\-conversion \-ftree\-tail\-merge
  458. \&\-ftree\-ter \-ftree\-vectorize \-ftree\-vrp \-funconstrained\-commons
  459. \&\-funit\-at\-a\-time \-funroll\-all\-loops \-funroll\-loops
  460. \&\-funsafe\-math\-optimizations \-funswitch\-loops
  461. \&\-fipa\-ra \-fvariable\-expansion\-in\-unroller \-fvect\-cost\-model \-fvpt
  462. \&\-fweb \-fwhole\-program \-fwpa \-fuse\-linker\-plugin
  463. \&\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR
  464. \&\fB\-O \-O0 \-O1 \-O2 \-O3 \-Os \-Ofast \-Og\fR
  465. .IP "\fIProgram Instrumentation Options\fR" 4
  466. .IX Item "Program Instrumentation Options"
  467. \&\fB\-p \-pg \-fprofile\-arcs \-\-coverage \-ftest\-coverage
  468. \&\-fprofile\-dir=\fR\fIpath\fR \fB\-fprofile\-generate \-fprofile\-generate=\fR\fIpath\fR
  469. \&\fB\-fsanitize=\fR\fIstyle\fR \fB\-fsanitize\-recover \-fsanitize\-recover=\fR\fIstyle\fR
  470. \&\fB\-fasan\-shadow\-offset=\fR\fInumber\fR \fB\-fsanitize\-sections=\fR\fIs1\fR\fB,\fR\fIs2\fR\fB,...
  471. \&\-fsanitize\-undefined\-trap\-on\-error \-fbounds\-check
  472. \&\-fcheck\-pointer\-bounds \-fchkp\-check\-incomplete\-type
  473. \&\-fchkp\-first\-field\-has\-own\-bounds \-fchkp\-narrow\-bounds
  474. \&\-fchkp\-narrow\-to\-innermost\-array \-fchkp\-optimize
  475. \&\-fchkp\-use\-fast\-string\-functions \-fchkp\-use\-nochk\-string\-functions
  476. \&\-fchkp\-use\-static\-bounds \-fchkp\-use\-static\-const\-bounds
  477. \&\-fchkp\-treat\-zero\-dynamic\-size\-as\-infinite \-fchkp\-check\-read
  478. \&\-fchkp\-check\-read \-fchkp\-check\-write \-fchkp\-store\-bounds
  479. \&\-fchkp\-instrument\-calls \-fchkp\-instrument\-marked\-only
  480. \&\-fchkp\-use\-wrappers \-fchkp\-flexible\-struct\-trailing\-arrays
  481. \&\-fstack\-protector \-fstack\-protector\-all \-fstack\-protector\-strong
  482. \&\-fstack\-protector\-explicit \-fstack\-check
  483. \&\-fstack\-limit\-register=\fR\fIreg\fR \fB\-fstack\-limit\-symbol=\fR\fIsym\fR
  484. \&\fB\-fno\-stack\-limit \-fsplit\-stack
  485. \&\-fvtable\-verify=\fR[\fBstd\fR|\fBpreinit\fR|\fBnone\fR]
  486. \&\fB\-fvtv\-counts \-fvtv\-debug
  487. \&\-finstrument\-functions
  488. \&\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...
  489. \&\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR
  490. .IP "\fIPreprocessor Options\fR" 4
  491. .IX Item "Preprocessor Options"
  492. \&\fB\-A\fR\fIquestion\fR\fB=\fR\fIanswer\fR
  493. \&\fB\-A\-\fR\fIquestion\fR[\fB=\fR\fIanswer\fR]
  494. \&\fB\-C \-CC \-D\fR\fImacro\fR[\fB=\fR\fIdefn\fR]
  495. \&\fB\-dD \-dI \-dM \-dN \-dU
  496. \&\-fdebug\-cpp \-fdirectives\-only \-fdollars\-in\-identifiers
  497. \&\-fexec\-charset=\fR\fIcharset\fR \fB\-fextended\-identifiers
  498. \&\-finput\-charset=\fR\fIcharset\fR \fB\-fno\-canonical\-system\-headers
  499. \&\-fpch\-deps \-fpch\-preprocess \-fpreprocessed
  500. \&\-ftabstop=\fR\fIwidth\fR \fB\-ftrack\-macro\-expansion
  501. \&\-fwide\-exec\-charset=\fR\fIcharset\fR \fB\-fworking\-directory
  502. \&\-H \-imacros\fR \fIfile\fR \fB\-include\fR \fIfile\fR
  503. \&\fB\-M \-MD \-MF \-MG \-MM \-MMD \-MP \-MQ \-MT
  504. \&\-no\-integrated\-cpp \-P \-pthread \-remap
  505. \&\-traditional \-traditional\-cpp \-trigraphs
  506. \&\-U\fR\fImacro\fR \fB\-undef
  507. \&\-Wp,\fR\fIoption\fR \fB\-Xpreprocessor\fR \fIoption\fR
  508. .IP "\fIAssembler Options\fR" 4
  509. .IX Item "Assembler Options"
  510. \&\fB\-Wa,\fR\fIoption\fR \fB\-Xassembler\fR \fIoption\fR
  511. .IP "\fILinker Options\fR" 4
  512. .IX Item "Linker Options"
  513. \&\fIobject-file-name\fR \fB\-fuse\-ld=\fR\fIlinker\fR \fB\-l\fR\fIlibrary\fR
  514. \&\fB\-nostartfiles \-nodefaultlibs \-nostdlib \-pie \-pthread \-rdynamic
  515. \&\-s \-static \-static\-libgcc \-static\-libstdc++
  516. \&\-static\-libasan \-static\-libtsan \-static\-liblsan \-static\-libubsan
  517. \&\-static\-libmpx \-static\-libmpxwrappers
  518. \&\-shared \-shared\-libgcc \-symbolic
  519. \&\-T\fR \fIscript\fR \fB\-Wl,\fR\fIoption\fR \fB\-Xlinker\fR \fIoption\fR
  520. \&\fB\-u\fR \fIsymbol\fR \fB\-z\fR \fIkeyword\fR
  521. .IP "\fIDirectory Options\fR" 4
  522. .IX Item "Directory Options"
  523. \&\fB\-B\fR\fIprefix\fR \fB\-I\fR\fIdir\fR \fB\-I\-
  524. \&\-idirafter\fR \fIdir\fR
  525. \&\fB\-imacros\fR \fIfile\fR \fB\-imultilib\fR \fIdir\fR
  526. \&\fB\-iplugindir=\fR\fIdir\fR \fB\-iprefix\fR \fIfile\fR
  527. \&\fB\-iquote\fR \fIdir\fR \fB\-isysroot\fR \fIdir\fR \fB\-isystem\fR \fIdir\fR
  528. \&\fB\-iwithprefix\fR \fIdir\fR \fB\-iwithprefixbefore\fR \fIdir\fR
  529. \&\fB\-L\fR\fIdir\fR \fB\-no\-canonical\-prefixes \-\-no\-sysroot\-suffix
  530. \&\-nostdinc \-nostdinc++ \-\-sysroot=\fR\fIdir\fR
  531. .IP "\fICode Generation Options\fR" 4
  532. .IX Item "Code Generation Options"
  533. \&\fB\-fcall\-saved\-\fR\fIreg\fR \fB\-fcall\-used\-\fR\fIreg\fR
  534. \&\fB\-ffixed\-\fR\fIreg\fR \fB\-fexceptions
  535. \&\-fnon\-call\-exceptions \-fdelete\-dead\-exceptions \-funwind\-tables
  536. \&\-fasynchronous\-unwind\-tables
  537. \&\-fno\-gnu\-unique
  538. \&\-finhibit\-size\-directive \-fno\-common \-fno\-ident
  539. \&\-fpcc\-struct\-return \-fpic \-fPIC \-fpie \-fPIE \-fno\-plt
  540. \&\-fno\-jump\-tables
  541. \&\-frecord\-gcc\-switches
  542. \&\-freg\-struct\-return \-fshort\-enums \-fshort\-wchar
  543. \&\-fverbose\-asm \-fpack\-struct[=\fR\fIn\fR\fB]
  544. \&\-fleading\-underscore \-ftls\-model=\fR\fImodel\fR
  545. \&\fB\-fstack\-reuse=\fR\fIreuse_level\fR
  546. \&\fB\-ftrampolines \-ftrapv \-fwrapv
  547. \&\-fvisibility=\fR[\fBdefault\fR|\fBinternal\fR|\fBhidden\fR|\fBprotected\fR]
  548. \&\fB\-fstrict\-volatile\-bitfields \-fsync\-libcalls\fR
  549. .IP "\fIDeveloper Options\fR" 4
  550. .IX Item "Developer Options"
  551. \&\fB\-d\fR\fIletters\fR \fB\-dumpspecs \-dumpmachine \-dumpversion
  552. \&\-dumpfullversion \-fchecking \-fchecking=\fR\fIn\fR \fB\-fdbg\-cnt\-list
  553. \&\-fdbg\-cnt=\fR\fIcounter-value-list\fR
  554. \&\fB\-fdisable\-ipa\-\fR\fIpass_name\fR
  555. \&\fB\-fdisable\-rtl\-\fR\fIpass_name\fR
  556. \&\fB\-fdisable\-rtl\-\fR\fIpass-name\fR\fB=\fR\fIrange-list\fR
  557. \&\fB\-fdisable\-tree\-\fR\fIpass_name\fR
  558. \&\fB\-fdisable\-tree\-\fR\fIpass-name\fR\fB=\fR\fIrange-list\fR
  559. \&\fB\-fdump\-noaddr \-fdump\-unnumbered \-fdump\-unnumbered\-links
  560. \&\-fdump\-translation\-unit\fR[\fB\-\fR\fIn\fR]
  561. \&\fB\-fdump\-class\-hierarchy\fR[\fB\-\fR\fIn\fR]
  562. \&\fB\-fdump\-ipa\-all \-fdump\-ipa\-cgraph \-fdump\-ipa\-inline
  563. \&\-fdump\-passes
  564. \&\-fdump\-rtl\-\fR\fIpass\fR \fB\-fdump\-rtl\-\fR\fIpass\fR\fB=\fR\fIfilename\fR
  565. \&\fB\-fdump\-statistics
  566. \&\-fdump\-final\-insns\fR[\fB=\fR\fIfile\fR]
  567. \&\fB\-fdump\-tree\-all
  568. \&\-fdump\-tree\-\fR\fIswitch\fR
  569. \&\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR
  570. \&\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR
  571. \&\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR] \fB\-fcompare\-debug\-second
  572. \&\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR
  573. \&\fB\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR
  574. \&\fB\-fira\-verbose=\fR\fIn\fR
  575. \&\fB\-flto\-report \-flto\-report\-wpa \-fmem\-report\-wpa
  576. \&\-fmem\-report \-fpre\-ipa\-mem\-report \-fpost\-ipa\-mem\-report
  577. \&\-fopt\-info \-fopt\-info\-\fR\fIoptions\fR[\fB=\fR\fIfile\fR]
  578. \&\fB\-fprofile\-report
  579. \&\-frandom\-seed=\fR\fIstring\fR \fB\-fsched\-verbose=\fR\fIn\fR
  580. \&\fB\-fsel\-sched\-verbose \-fsel\-sched\-dump\-cfg \-fsel\-sched\-pipelining\-verbose
  581. \&\-fstats \-fstack\-usage \-ftime\-report \-ftime\-report\-details
  582. \&\-fvar\-tracking\-assignments\-toggle \-gtoggle
  583. \&\-print\-file\-name=\fR\fIlibrary\fR \fB\-print\-libgcc\-file\-name
  584. \&\-print\-multi\-directory \-print\-multi\-lib \-print\-multi\-os\-directory
  585. \&\-print\-prog\-name=\fR\fIprogram\fR \fB\-print\-search\-dirs \-Q
  586. \&\-print\-sysroot \-print\-sysroot\-headers\-suffix
  587. \&\-save\-temps \-save\-temps=cwd \-save\-temps=obj \-time\fR[\fB=\fR\fIfile\fR]
  588. .IP "\fIMachine-Dependent Options\fR" 4
  589. .IX Item "Machine-Dependent Options"
  590. \&\fIAArch64 Options\fR
  591. \&\fB\-mabi=\fR\fIname\fR \fB\-mbig\-endian \-mlittle\-endian
  592. \&\-mgeneral\-regs\-only
  593. \&\-mcmodel=tiny \-mcmodel=small \-mcmodel=large
  594. \&\-mstrict\-align
  595. \&\-momit\-leaf\-frame\-pointer
  596. \&\-mtls\-dialect=desc \-mtls\-dialect=traditional
  597. \&\-mtls\-size=\fR\fIsize\fR
  598. \&\fB\-mfix\-cortex\-a53\-835769 \-mfix\-cortex\-a53\-843419
  599. \&\-mlow\-precision\-recip\-sqrt \-mlow\-precision\-sqrt \-mlow\-precision\-div
  600. \&\-mpc\-relative\-literal\-loads
  601. \&\-msign\-return\-address=\fR\fIscope\fR
  602. \&\fB\-march=\fR\fIname\fR \fB\-mcpu=\fR\fIname\fR \fB\-mtune=\fR\fIname\fR \fB\-moverride=\fR\fIstring\fR
  603. .Sp
  604. \&\fIAdapteva Epiphany Options\fR
  605. \&\fB\-mhalf\-reg\-file \-mprefer\-short\-insn\-regs
  606. \&\-mbranch\-cost=\fR\fInum\fR \fB\-mcmove \-mnops=\fR\fInum\fR \fB\-msoft\-cmpsf
  607. \&\-msplit\-lohi \-mpost\-inc \-mpost\-modify \-mstack\-offset=\fR\fInum\fR
  608. \&\fB\-mround\-nearest \-mlong\-calls \-mshort\-calls \-msmall16
  609. \&\-mfp\-mode=\fR\fImode\fR \fB\-mvect\-double \-max\-vect\-align=\fR\fInum\fR
  610. \&\fB\-msplit\-vecmove\-early \-m1reg\-\fR\fIreg\fR
  611. .Sp
  612. \&\fI\s-1ARC\s0 Options\fR
  613. \&\fB\-mbarrel\-shifter
  614. \&\-mcpu=\fR\fIcpu\fR \fB\-mA6 \-mARC600 \-mA7 \-mARC700
  615. \&\-mdpfp \-mdpfp\-compact \-mdpfp\-fast \-mno\-dpfp\-lrsr
  616. \&\-mea \-mno\-mpy \-mmul32x16 \-mmul64 \-matomic
  617. \&\-mnorm \-mspfp \-mspfp\-compact \-mspfp\-fast \-msimd \-msoft\-float \-mswap
  618. \&\-mcrc \-mdsp\-packa \-mdvbf \-mlock \-mmac\-d16 \-mmac\-24 \-mrtsc \-mswape
  619. \&\-mtelephony \-mxy \-misize \-mannotate\-align \-marclinux \-marclinux_prof
  620. \&\-mlong\-calls \-mmedium\-calls \-msdata
  621. \&\-mvolatile\-cache \-mtp\-regno=\fR\fIregno\fR
  622. \&\fB\-malign\-call \-mauto\-modify\-reg \-mbbit\-peephole \-mno\-brcc
  623. \&\-mcase\-vector\-pcrel \-mcompact\-casesi \-mno\-cond\-exec \-mearly\-cbranchsi
  624. \&\-mexpand\-adddi \-mindexed\-loads \-mlra \-mlra\-priority\-none
  625. \&\-mlra\-priority\-compact mlra-priority-noncompact \-mno\-millicode
  626. \&\-mmixed\-code \-mq\-class \-mRcq \-mRcw \-msize\-level=\fR\fIlevel\fR
  627. \&\fB\-mtune=\fR\fIcpu\fR \fB\-mmultcost=\fR\fInum\fR
  628. \&\fB\-munalign\-prob\-threshold=\fR\fIprobability\fR \fB\-mmpy\-option=\fR\fImulto\fR
  629. \&\fB\-mdiv\-rem \-mcode\-density \-mll64 \-mfpu=\fR\fIfpu\fR
  630. .Sp
  631. \&\fI\s-1ARM\s0 Options\fR
  632. \&\fB\-mapcs\-frame \-mno\-apcs\-frame
  633. \&\-mabi=\fR\fIname\fR
  634. \&\fB\-mapcs\-stack\-check \-mno\-apcs\-stack\-check
  635. \&\-mapcs\-reentrant \-mno\-apcs\-reentrant
  636. \&\-msched\-prolog \-mno\-sched\-prolog
  637. \&\-mlittle\-endian \-mbig\-endian
  638. \&\-mfloat\-abi=\fR\fIname\fR
  639. \&\fB\-mfp16\-format=\fR\fIname\fR
  640. \&\fB\-mthumb\-interwork \-mno\-thumb\-interwork
  641. \&\-mcpu=\fR\fIname\fR \fB\-march=\fR\fIname\fR \fB\-mfpu=\fR\fIname\fR
  642. \&\fB\-mtune=\fR\fIname\fR \fB\-mprint\-tune\-info
  643. \&\-mstructure\-size\-boundary=\fR\fIn\fR
  644. \&\fB\-mabort\-on\-noreturn
  645. \&\-mlong\-calls \-mno\-long\-calls
  646. \&\-msingle\-pic\-base \-mno\-single\-pic\-base
  647. \&\-mpic\-register=\fR\fIreg\fR
  648. \&\fB\-mnop\-fun\-dllimport
  649. \&\-mpoke\-function\-name
  650. \&\-mthumb \-marm
  651. \&\-mtpcs\-frame \-mtpcs\-leaf\-frame
  652. \&\-mcaller\-super\-interworking \-mcallee\-super\-interworking
  653. \&\-mtp=\fR\fIname\fR \fB\-mtls\-dialect=\fR\fIdialect\fR
  654. \&\fB\-mword\-relocations
  655. \&\-mfix\-cortex\-m3\-ldrd
  656. \&\-munaligned\-access
  657. \&\-mneon\-for\-64bits
  658. \&\-mslow\-flash\-data
  659. \&\-masm\-syntax\-unified
  660. \&\-mrestrict\-it
  661. \&\-mpure\-code
  662. \&\-mcmse\fR
  663. .Sp
  664. \&\fI\s-1AVR\s0 Options\fR
  665. \&\fB\-mmcu=\fR\fImcu\fR \fB\-mabsdata \-maccumulate\-args
  666. \&\-mbranch\-cost=\fR\fIcost\fR
  667. \&\fB\-mcall\-prologues \-mint8 \-mn_flash=\fR\fIsize\fR \fB\-mno\-interrupts
  668. \&\-mrelax \-mrmw \-mstrict\-X \-mtiny\-stack \-mfract\-convert\-truncate
  669. \&\-nodevicelib
  670. \&\-Waddr\-space\-convert \-Wmisspelled\-isr\fR
  671. .Sp
  672. \&\fIBlackfin Options\fR
  673. \&\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]
  674. \&\fB\-msim \-momit\-leaf\-frame\-pointer \-mno\-omit\-leaf\-frame\-pointer
  675. \&\-mspecld\-anomaly \-mno\-specld\-anomaly \-mcsync\-anomaly \-mno\-csync\-anomaly
  676. \&\-mlow\-64k \-mno\-low64k \-mstack\-check\-l1 \-mid\-shared\-library
  677. \&\-mno\-id\-shared\-library \-mshared\-library\-id=\fR\fIn\fR
  678. \&\fB\-mleaf\-id\-shared\-library \-mno\-leaf\-id\-shared\-library
  679. \&\-msep\-data \-mno\-sep\-data \-mlong\-calls \-mno\-long\-calls
  680. \&\-mfast\-fp \-minline\-plt \-mmulticore \-mcorea \-mcoreb \-msdram
  681. \&\-micplb\fR
  682. .Sp
  683. \&\fIC6X Options\fR
  684. \&\fB\-mbig\-endian \-mlittle\-endian \-march=\fR\fIcpu\fR
  685. \&\fB\-msim \-msdata=\fR\fIsdata-type\fR
  686. .Sp
  687. \&\fI\s-1CRIS\s0 Options\fR
  688. \&\fB\-mcpu=\fR\fIcpu\fR \fB\-march=\fR\fIcpu\fR \fB\-mtune=\fR\fIcpu\fR
  689. \&\fB\-mmax\-stack\-frame=\fR\fIn\fR \fB\-melinux\-stacksize=\fR\fIn\fR
  690. \&\fB\-metrax4 \-metrax100 \-mpdebug \-mcc\-init \-mno\-side\-effects
  691. \&\-mstack\-align \-mdata\-align \-mconst\-align
  692. \&\-m32\-bit \-m16\-bit \-m8\-bit \-mno\-prologue\-epilogue \-mno\-gotplt
  693. \&\-melf \-maout \-melinux \-mlinux \-sim \-sim2
  694. \&\-mmul\-bug\-workaround \-mno\-mul\-bug\-workaround\fR
  695. .Sp
  696. \&\fI\s-1CR16\s0 Options\fR
  697. \&\fB\-mmac
  698. \&\-mcr16cplus \-mcr16c
  699. \&\-msim \-mint32 \-mbit\-ops
  700. \&\-mdata\-model=\fR\fImodel\fR
  701. .Sp
  702. \&\fIDarwin Options\fR
  703. \&\fB\-all_load \-allowable_client \-arch \-arch_errors_fatal
  704. \&\-arch_only \-bind_at_load \-bundle \-bundle_loader
  705. \&\-client_name \-compatibility_version \-current_version
  706. \&\-dead_strip
  707. \&\-dependency\-file \-dylib_file \-dylinker_install_name
  708. \&\-dynamic \-dynamiclib \-exported_symbols_list
  709. \&\-filelist \-flat_namespace \-force_cpusubtype_ALL
  710. \&\-force_flat_namespace \-headerpad_max_install_names
  711. \&\-iframework
  712. \&\-image_base \-init \-install_name \-keep_private_externs
  713. \&\-multi_module \-multiply_defined \-multiply_defined_unused
  714. \&\-noall_load \-no_dead_strip_inits_and_terms
  715. \&\-nofixprebinding \-nomultidefs \-noprebind \-noseglinkedit
  716. \&\-pagezero_size \-prebind \-prebind_all_twolevel_modules
  717. \&\-private_bundle \-read_only_relocs \-sectalign
  718. \&\-sectobjectsymbols \-whyload \-seg1addr
  719. \&\-sectcreate \-sectobjectsymbols \-sectorder
  720. \&\-segaddr \-segs_read_only_addr \-segs_read_write_addr
  721. \&\-seg_addr_table \-seg_addr_table_filename \-seglinkedit
  722. \&\-segprot \-segs_read_only_addr \-segs_read_write_addr
  723. \&\-single_module \-static \-sub_library \-sub_umbrella
  724. \&\-twolevel_namespace \-umbrella \-undefined
  725. \&\-unexported_symbols_list \-weak_reference_mismatches
  726. \&\-whatsloaded \-F \-gused \-gfull \-mmacosx\-version\-min=\fR\fIversion\fR
  727. \&\fB\-mkernel \-mone\-byte\-bool\fR
  728. .Sp
  729. \&\fI\s-1DEC\s0 Alpha Options\fR
  730. \&\fB\-mno\-fp\-regs \-msoft\-float
  731. \&\-mieee \-mieee\-with\-inexact \-mieee\-conformant
  732. \&\-mfp\-trap\-mode=\fR\fImode\fR \fB\-mfp\-rounding\-mode=\fR\fImode\fR
  733. \&\fB\-mtrap\-precision=\fR\fImode\fR \fB\-mbuild\-constants
  734. \&\-mcpu=\fR\fIcpu-type\fR \fB\-mtune=\fR\fIcpu-type\fR
  735. \&\fB\-mbwx \-mmax \-mfix \-mcix
  736. \&\-mfloat\-vax \-mfloat\-ieee
  737. \&\-mexplicit\-relocs \-msmall\-data \-mlarge\-data
  738. \&\-msmall\-text \-mlarge\-text
  739. \&\-mmemory\-latency=\fR\fItime\fR
  740. .Sp
  741. \&\fI\s-1FR30\s0 Options\fR
  742. \&\fB\-msmall\-model \-mno\-lsim\fR
  743. .Sp
  744. \&\fI\s-1FT32\s0 Options\fR
  745. \&\fB\-msim \-mlra \-mnodiv\fR
  746. .Sp
  747. \&\fI\s-1FRV\s0 Options\fR
  748. \&\fB\-mgpr\-32 \-mgpr\-64 \-mfpr\-32 \-mfpr\-64
  749. \&\-mhard\-float \-msoft\-float
  750. \&\-malloc\-cc \-mfixed\-cc \-mdword \-mno\-dword
  751. \&\-mdouble \-mno\-double
  752. \&\-mmedia \-mno\-media \-mmuladd \-mno\-muladd
  753. \&\-mfdpic \-minline\-plt \-mgprel\-ro \-multilib\-library\-pic
  754. \&\-mlinked\-fp \-mlong\-calls \-malign\-labels
  755. \&\-mlibrary\-pic \-macc\-4 \-macc\-8
  756. \&\-mpack \-mno\-pack \-mno\-eflags \-mcond\-move \-mno\-cond\-move
  757. \&\-moptimize\-membar \-mno\-optimize\-membar
  758. \&\-mscc \-mno\-scc \-mcond\-exec \-mno\-cond\-exec
  759. \&\-mvliw\-branch \-mno\-vliw\-branch
  760. \&\-mmulti\-cond\-exec \-mno\-multi\-cond\-exec \-mnested\-cond\-exec
  761. \&\-mno\-nested\-cond\-exec \-mtomcat\-stats
  762. \&\-mTLS \-mtls
  763. \&\-mcpu=\fR\fIcpu\fR
  764. .Sp
  765. \&\fIGNU/Linux Options\fR
  766. \&\fB\-mglibc \-muclibc \-mmusl \-mbionic \-mandroid
  767. \&\-tno\-android\-cc \-tno\-android\-ld\fR
  768. .Sp
  769. \&\fIH8/300 Options\fR
  770. \&\fB\-mrelax \-mh \-ms \-mn \-mexr \-mno\-exr \-mint32 \-malign\-300\fR
  771. .Sp
  772. \&\fI\s-1HPPA\s0 Options\fR
  773. \&\fB\-march=\fR\fIarchitecture-type\fR
  774. \&\fB\-mcaller\-copies \-mdisable\-fpregs \-mdisable\-indexing
  775. \&\-mfast\-indirect\-calls \-mgas \-mgnu\-ld \-mhp\-ld
  776. \&\-mfixed\-range=\fR\fIregister-range\fR
  777. \&\fB\-mjump\-in\-delay \-mlinker\-opt \-mlong\-calls
  778. \&\-mlong\-load\-store \-mno\-disable\-fpregs
  779. \&\-mno\-disable\-indexing \-mno\-fast\-indirect\-calls \-mno\-gas
  780. \&\-mno\-jump\-in\-delay \-mno\-long\-load\-store
  781. \&\-mno\-portable\-runtime \-mno\-soft\-float
  782. \&\-mno\-space\-regs \-msoft\-float \-mpa\-risc\-1\-0
  783. \&\-mpa\-risc\-1\-1 \-mpa\-risc\-2\-0 \-mportable\-runtime
  784. \&\-mschedule=\fR\fIcpu-type\fR \fB\-mspace\-regs \-msio \-mwsio
  785. \&\-munix=\fR\fIunix-std\fR \fB\-nolibdld \-static \-threads\fR
  786. .Sp
  787. \&\fI\s-1IA\-64\s0 Options\fR
  788. \&\fB\-mbig\-endian \-mlittle\-endian \-mgnu\-as \-mgnu\-ld \-mno\-pic
  789. \&\-mvolatile\-asm\-stop \-mregister\-names \-msdata \-mno\-sdata
  790. \&\-mconstant\-gp \-mauto\-pic \-mfused\-madd
  791. \&\-minline\-float\-divide\-min\-latency
  792. \&\-minline\-float\-divide\-max\-throughput
  793. \&\-mno\-inline\-float\-divide
  794. \&\-minline\-int\-divide\-min\-latency
  795. \&\-minline\-int\-divide\-max\-throughput
  796. \&\-mno\-inline\-int\-divide
  797. \&\-minline\-sqrt\-min\-latency \-minline\-sqrt\-max\-throughput
  798. \&\-mno\-inline\-sqrt
  799. \&\-mdwarf2\-asm \-mearly\-stop\-bits
  800. \&\-mfixed\-range=\fR\fIregister-range\fR \fB\-mtls\-size=\fR\fItls-size\fR
  801. \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-milp32 \-mlp64
  802. \&\-msched\-br\-data\-spec \-msched\-ar\-data\-spec \-msched\-control\-spec
  803. \&\-msched\-br\-in\-data\-spec \-msched\-ar\-in\-data\-spec \-msched\-in\-control\-spec
  804. \&\-msched\-spec\-ldc \-msched\-spec\-control\-ldc
  805. \&\-msched\-prefer\-non\-data\-spec\-insns \-msched\-prefer\-non\-control\-spec\-insns
  806. \&\-msched\-stop\-bits\-after\-every\-cycle \-msched\-count\-spec\-in\-critical\-path
  807. \&\-msel\-sched\-dont\-check\-control\-spec \-msched\-fp\-mem\-deps\-zero\-cost
  808. \&\-msched\-max\-memory\-insns\-hard\-limit \-msched\-max\-memory\-insns=\fR\fImax-insns\fR
  809. .Sp
  810. \&\fI\s-1LM32\s0 Options\fR
  811. \&\fB\-mbarrel\-shift\-enabled \-mdivide\-enabled \-mmultiply\-enabled
  812. \&\-msign\-extend\-enabled \-muser\-enabled\fR
  813. .Sp
  814. \&\fIM32R/D Options\fR
  815. \&\fB\-m32r2 \-m32rx \-m32r
  816. \&\-mdebug
  817. \&\-malign\-loops \-mno\-align\-loops
  818. \&\-missue\-rate=\fR\fInumber\fR
  819. \&\fB\-mbranch\-cost=\fR\fInumber\fR
  820. \&\fB\-mmodel=\fR\fIcode-size-model-type\fR
  821. \&\fB\-msdata=\fR\fIsdata-type\fR
  822. \&\fB\-mno\-flush\-func \-mflush\-func=\fR\fIname\fR
  823. \&\fB\-mno\-flush\-trap \-mflush\-trap=\fR\fInumber\fR
  824. \&\fB\-G\fR \fInum\fR
  825. .Sp
  826. \&\fIM32C Options\fR
  827. \&\fB\-mcpu=\fR\fIcpu\fR \fB\-msim \-memregs=\fR\fInumber\fR
  828. .Sp
  829. \&\fIM680x0 Options\fR
  830. \&\fB\-march=\fR\fIarch\fR \fB\-mcpu=\fR\fIcpu\fR \fB\-mtune=\fR\fItune\fR
  831. \&\fB\-m68000 \-m68020 \-m68020\-40 \-m68020\-60 \-m68030 \-m68040
  832. \&\-m68060 \-mcpu32 \-m5200 \-m5206e \-m528x \-m5307 \-m5407
  833. \&\-mcfv4e \-mbitfield \-mno\-bitfield \-mc68000 \-mc68020
  834. \&\-mnobitfield \-mrtd \-mno\-rtd \-mdiv \-mno\-div \-mshort
  835. \&\-mno\-short \-mhard\-float \-m68881 \-msoft\-float \-mpcrel
  836. \&\-malign\-int \-mstrict\-align \-msep\-data \-mno\-sep\-data
  837. \&\-mshared\-library\-id=n \-mid\-shared\-library \-mno\-id\-shared\-library
  838. \&\-mxgot \-mno\-xgot \-mlong\-jump\-table\-offsets\fR
  839. .Sp
  840. \&\fIMCore Options\fR
  841. \&\fB\-mhardlit \-mno\-hardlit \-mdiv \-mno\-div \-mrelax\-immediates
  842. \&\-mno\-relax\-immediates \-mwide\-bitfields \-mno\-wide\-bitfields
  843. \&\-m4byte\-functions \-mno\-4byte\-functions \-mcallgraph\-data
  844. \&\-mno\-callgraph\-data \-mslow\-bytes \-mno\-slow\-bytes \-mno\-lsim
  845. \&\-mlittle\-endian \-mbig\-endian \-m210 \-m340 \-mstack\-increment\fR
  846. .Sp
  847. \&\fIMeP Options\fR
  848. \&\fB\-mabsdiff \-mall\-opts \-maverage \-mbased=\fR\fIn\fR \fB\-mbitops
  849. \&\-mc=\fR\fIn\fR \fB\-mclip \-mconfig=\fR\fIname\fR \fB\-mcop \-mcop32 \-mcop64 \-mivc2
  850. \&\-mdc \-mdiv \-meb \-mel \-mio\-volatile \-ml \-mleadz \-mm \-mminmax
  851. \&\-mmult \-mno\-opts \-mrepeat \-ms \-msatur \-msdram \-msim \-msimnovec \-mtf
  852. \&\-mtiny=\fR\fIn\fR
  853. .Sp
  854. \&\fIMicroBlaze Options\fR
  855. \&\fB\-msoft\-float \-mhard\-float \-msmall\-divides \-mcpu=\fR\fIcpu\fR
  856. \&\fB\-mmemcpy \-mxl\-soft\-mul \-mxl\-soft\-div \-mxl\-barrel\-shift
  857. \&\-mxl\-pattern\-compare \-mxl\-stack\-check \-mxl\-gp\-opt \-mno\-clearbss
  858. \&\-mxl\-multiply\-high \-mxl\-float\-convert \-mxl\-float\-sqrt
  859. \&\-mbig\-endian \-mlittle\-endian \-mxl\-reorder \-mxl\-mode\-\fR\fIapp-model\fR
  860. .Sp
  861. \&\fI\s-1MIPS\s0 Options\fR
  862. \&\fB\-EL \-EB \-march=\fR\fIarch\fR \fB\-mtune=\fR\fIarch\fR
  863. \&\fB\-mips1 \-mips2 \-mips3 \-mips4 \-mips32 \-mips32r2 \-mips32r3 \-mips32r5
  864. \&\-mips32r6 \-mips64 \-mips64r2 \-mips64r3 \-mips64r5 \-mips64r6
  865. \&\-mips16 \-mno\-mips16 \-mflip\-mips16
  866. \&\-minterlink\-compressed \-mno\-interlink\-compressed
  867. \&\-minterlink\-mips16 \-mno\-interlink\-mips16
  868. \&\-mabi=\fR\fIabi\fR \fB\-mabicalls \-mno\-abicalls
  869. \&\-mshared \-mno\-shared \-mplt \-mno\-plt \-mxgot \-mno\-xgot
  870. \&\-mgp32 \-mgp64 \-mfp32 \-mfpxx \-mfp64 \-mhard\-float \-msoft\-float
  871. \&\-mno\-float \-msingle\-float \-mdouble\-float
  872. \&\-modd\-spreg \-mno\-odd\-spreg
  873. \&\-mabs=\fR\fImode\fR \fB\-mnan=\fR\fIencoding\fR
  874. \&\fB\-mdsp \-mno\-dsp \-mdspr2 \-mno\-dspr2
  875. \&\-mmcu \-mmno\-mcu
  876. \&\-meva \-mno\-eva
  877. \&\-mvirt \-mno\-virt
  878. \&\-mxpa \-mno\-xpa
  879. \&\-mmicromips \-mno\-micromips
  880. \&\-mmsa \-mno\-msa
  881. \&\-mfpu=\fR\fIfpu-type\fR
  882. \&\fB\-msmartmips \-mno\-smartmips
  883. \&\-mpaired\-single \-mno\-paired\-single \-mdmx \-mno\-mdmx
  884. \&\-mips3d \-mno\-mips3d \-mmt \-mno\-mt \-mllsc \-mno\-llsc
  885. \&\-mlong64 \-mlong32 \-msym32 \-mno\-sym32
  886. \&\-G\fR\fInum\fR \fB\-mlocal\-sdata \-mno\-local\-sdata
  887. \&\-mextern\-sdata \-mno\-extern\-sdata \-mgpopt \-mno\-gopt
  888. \&\-membedded\-data \-mno\-embedded\-data
  889. \&\-muninit\-const\-in\-rodata \-mno\-uninit\-const\-in\-rodata
  890. \&\-mcode\-readable=\fR\fIsetting\fR
  891. \&\fB\-msplit\-addresses \-mno\-split\-addresses
  892. \&\-mexplicit\-relocs \-mno\-explicit\-relocs
  893. \&\-mcheck\-zero\-division \-mno\-check\-zero\-division
  894. \&\-mdivide\-traps \-mdivide\-breaks
  895. \&\-mload\-store\-pairs \-mno\-load\-store\-pairs
  896. \&\-mmemcpy \-mno\-memcpy \-mlong\-calls \-mno\-long\-calls
  897. \&\-mmad \-mno\-mad \-mimadd \-mno\-imadd \-mfused\-madd \-mno\-fused\-madd \-nocpp
  898. \&\-mfix\-24k \-mno\-fix\-24k
  899. \&\-mfix\-r4000 \-mno\-fix\-r4000 \-mfix\-r4400 \-mno\-fix\-r4400
  900. \&\-mfix\-r10000 \-mno\-fix\-r10000 \-mfix\-rm7000 \-mno\-fix\-rm7000
  901. \&\-mfix\-vr4120 \-mno\-fix\-vr4120
  902. \&\-mfix\-vr4130 \-mno\-fix\-vr4130 \-mfix\-sb1 \-mno\-fix\-sb1
  903. \&\-mflush\-func=\fR\fIfunc\fR \fB\-mno\-flush\-func
  904. \&\-mbranch\-cost=\fR\fInum\fR \fB\-mbranch\-likely \-mno\-branch\-likely
  905. \&\-mcompact\-branches=\fR\fIpolicy\fR
  906. \&\fB\-mfp\-exceptions \-mno\-fp\-exceptions
  907. \&\-mvr4130\-align \-mno\-vr4130\-align \-msynci \-mno\-synci
  908. \&\-mlxc1\-sxc1 \-mno\-lxc1\-sxc1 \-mmadd4 \-mno\-madd4
  909. \&\-mrelax\-pic\-calls \-mno\-relax\-pic\-calls \-mmcount\-ra\-address
  910. \&\-mframe\-header\-opt \-mno\-frame\-header\-opt\fR
  911. .Sp
  912. \&\fI\s-1MMIX\s0 Options\fR
  913. \&\fB\-mlibfuncs \-mno\-libfuncs \-mepsilon \-mno\-epsilon \-mabi=gnu
  914. \&\-mabi=mmixware \-mzero\-extend \-mknuthdiv \-mtoplevel\-symbols
  915. \&\-melf \-mbranch\-predict \-mno\-branch\-predict \-mbase\-addresses
  916. \&\-mno\-base\-addresses \-msingle\-exit \-mno\-single\-exit\fR
  917. .Sp
  918. \&\fI\s-1MN10300\s0 Options\fR
  919. \&\fB\-mmult\-bug \-mno\-mult\-bug
  920. \&\-mno\-am33 \-mam33 \-mam33\-2 \-mam34
  921. \&\-mtune=\fR\fIcpu-type\fR
  922. \&\fB\-mreturn\-pointer\-on\-d0
  923. \&\-mno\-crt0 \-mrelax \-mliw \-msetlb\fR
  924. .Sp
  925. \&\fIMoxie Options\fR
  926. \&\fB\-meb \-mel \-mmul.x \-mno\-crt0\fR
  927. .Sp
  928. \&\fI\s-1MSP430\s0 Options\fR
  929. \&\fB\-msim \-masm\-hex \-mmcu= \-mcpu= \-mlarge \-msmall \-mrelax
  930. \&\-mwarn\-mcu
  931. \&\-mcode\-region= \-mdata\-region=
  932. \&\-msilicon\-errata= \-msilicon\-errata\-warn=
  933. \&\-mhwmult= \-minrt\fR
  934. .Sp
  935. \&\fI\s-1NDS32\s0 Options\fR
  936. \&\fB\-mbig\-endian \-mlittle\-endian
  937. \&\-mreduced\-regs \-mfull\-regs
  938. \&\-mcmov \-mno\-cmov
  939. \&\-mperf\-ext \-mno\-perf\-ext
  940. \&\-mv3push \-mno\-v3push
  941. \&\-m16bit \-mno\-16bit
  942. \&\-misr\-vector\-size=\fR\fInum\fR
  943. \&\fB\-mcache\-block\-size=\fR\fInum\fR
  944. \&\fB\-march=\fR\fIarch\fR
  945. \&\fB\-mcmodel=\fR\fIcode-model\fR
  946. \&\fB\-mctor\-dtor \-mrelax\fR
  947. .Sp
  948. \&\fINios \s-1II\s0 Options\fR
  949. \&\fB\-G\fR \fInum\fR \fB\-mgpopt=\fR\fIoption\fR \fB\-mgpopt \-mno\-gpopt
  950. \&\-mel \-meb
  951. \&\-mno\-bypass\-cache \-mbypass\-cache
  952. \&\-mno\-cache\-volatile \-mcache\-volatile
  953. \&\-mno\-fast\-sw\-div \-mfast\-sw\-div
  954. \&\-mhw\-mul \-mno\-hw\-mul \-mhw\-mulx \-mno\-hw\-mulx \-mno\-hw\-div \-mhw\-div
  955. \&\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR \fB\-mno\-custom\-\fR\fIinsn\fR
  956. \&\fB\-mcustom\-fpu\-cfg=\fR\fIname\fR
  957. \&\fB\-mhal \-msmallc \-msys\-crt0=\fR\fIname\fR \fB\-msys\-lib=\fR\fIname\fR
  958. \&\fB\-march=\fR\fIarch\fR \fB\-mbmx \-mno\-bmx \-mcdx \-mno\-cdx\fR
  959. .Sp
  960. \&\fINvidia \s-1PTX\s0 Options\fR
  961. \&\fB\-m32 \-m64 \-mmainkernel \-moptimize\fR
  962. .Sp
  963. \&\fI\s-1PDP\-11\s0 Options\fR
  964. \&\fB\-mfpu \-msoft\-float \-mac0 \-mno\-ac0 \-m40 \-m45 \-m10
  965. \&\-mbcopy \-mbcopy\-builtin \-mint32 \-mno\-int16
  966. \&\-mint16 \-mno\-int32 \-mfloat32 \-mno\-float64
  967. \&\-mfloat64 \-mno\-float32 \-mabshi \-mno\-abshi
  968. \&\-mbranch\-expensive \-mbranch\-cheap
  969. \&\-munix\-asm \-mdec\-asm\fR
  970. .Sp
  971. \&\fIpicoChip Options\fR
  972. \&\fB\-mae=\fR\fIae_type\fR \fB\-mvliw\-lookahead=\fR\fIN\fR
  973. \&\fB\-msymbol\-as\-address \-mno\-inefficient\-warnings\fR
  974. .Sp
  975. \&\fIPowerPC Options\fR
  976. See \s-1RS/6000\s0 and PowerPC Options.
  977. .Sp
  978. \&\fIRISC-V Options\fR
  979. \&\fB\-mbranch\-cost=\fR\fIN\-instruction\fR
  980. \&\fB\-mplt \-mno\-plt
  981. \&\-mabi=\fR\fIABI-string\fR
  982. \&\fB\-mfdiv \-mno\-fdiv
  983. \&\-mdiv \-mno\-div
  984. \&\-march=\fR\fIISA-string\fR
  985. \&\fB\-mtune=\fR\fIprocessor-string\fR
  986. \&\fB\-msmall\-data\-limit=\fR\fIN\-bytes\fR
  987. \&\fB\-msave\-restore \-mno\-save\-restore
  988. \&\-mstrict\-align \-mno\-strict\-align
  989. \&\-mcmodel=medlow \-mcmodel=medany
  990. \&\-mexplicit\-relocs \-mno\-explicit\-relocs\fR
  991. .Sp
  992. \&\fI\s-1RL78\s0 Options\fR
  993. \&\fB\-msim \-mmul=none \-mmul=g13 \-mmul=g14 \-mallregs
  994. \&\-mcpu=g10 \-mcpu=g13 \-mcpu=g14 \-mg10 \-mg13 \-mg14
  995. \&\-m64bit\-doubles \-m32bit\-doubles \-msave\-mduc\-in\-interrupts\fR
  996. .Sp
  997. \&\fI\s-1RS/6000\s0 and PowerPC Options\fR
  998. \&\fB\-mcpu=\fR\fIcpu-type\fR
  999. \&\fB\-mtune=\fR\fIcpu-type\fR
  1000. \&\fB\-mcmodel=\fR\fIcode-model\fR
  1001. \&\fB\-mpowerpc64
  1002. \&\-maltivec \-mno\-altivec
  1003. \&\-mpowerpc\-gpopt \-mno\-powerpc\-gpopt
  1004. \&\-mpowerpc\-gfxopt \-mno\-powerpc\-gfxopt
  1005. \&\-mmfcrf \-mno\-mfcrf \-mpopcntb \-mno\-popcntb \-mpopcntd \-mno\-popcntd
  1006. \&\-mfprnd \-mno\-fprnd
  1007. \&\-mcmpb \-mno\-cmpb \-mmfpgpr \-mno\-mfpgpr \-mhard\-dfp \-mno\-hard\-dfp
  1008. \&\-mfull\-toc \-mminimal\-toc \-mno\-fp\-in\-toc \-mno\-sum\-in\-toc
  1009. \&\-m64 \-m32 \-mxl\-compat \-mno\-xl\-compat \-mpe
  1010. \&\-malign\-power \-malign\-natural
  1011. \&\-msoft\-float \-mhard\-float \-mmultiple \-mno\-multiple
  1012. \&\-msingle\-float \-mdouble\-float \-msimple\-fpu
  1013. \&\-mstring \-mno\-string \-mupdate \-mno\-update
  1014. \&\-mavoid\-indexed\-addresses \-mno\-avoid\-indexed\-addresses
  1015. \&\-mfused\-madd \-mno\-fused\-madd \-mbit\-align \-mno\-bit\-align
  1016. \&\-mstrict\-align \-mno\-strict\-align \-mrelocatable
  1017. \&\-mno\-relocatable \-mrelocatable\-lib \-mno\-relocatable\-lib
  1018. \&\-mtoc \-mno\-toc \-mlittle \-mlittle\-endian \-mbig \-mbig\-endian
  1019. \&\-mdynamic\-no\-pic \-maltivec \-mswdiv \-msingle\-pic\-base
  1020. \&\-mprioritize\-restricted\-insns=\fR\fIpriority\fR
  1021. \&\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR
  1022. \&\fB\-minsert\-sched\-nops=\fR\fIscheme\fR
  1023. \&\fB\-mcall\-sysv \-mcall\-netbsd
  1024. \&\-maix\-struct\-return \-msvr4\-struct\-return
  1025. \&\-mabi=\fR\fIabi-type\fR \fB\-msecure\-plt \-mbss\-plt
  1026. \&\-mblock\-move\-inline\-limit=\fR\fInum\fR
  1027. \&\fB\-misel \-mno\-isel
  1028. \&\-misel=yes \-misel=no
  1029. \&\-mspe \-mno\-spe
  1030. \&\-mspe=yes \-mspe=no
  1031. \&\-mpaired
  1032. \&\-mgen\-cell\-microcode \-mwarn\-cell\-microcode
  1033. \&\-mvrsave \-mno\-vrsave
  1034. \&\-mmulhw \-mno\-mulhw
  1035. \&\-mdlmzb \-mno\-dlmzb
  1036. \&\-mfloat\-gprs=yes \-mfloat\-gprs=no \-mfloat\-gprs=single \-mfloat\-gprs=double
  1037. \&\-mprototype \-mno\-prototype
  1038. \&\-msim \-mmvme \-mads \-myellowknife \-memb \-msdata
  1039. \&\-msdata=\fR\fIopt\fR \fB\-mreadonly\-in\-sdata \-mvxworks \-G\fR \fInum\fR
  1040. \&\fB\-mrecip \-mrecip=\fR\fIopt\fR \fB\-mno\-recip \-mrecip\-precision
  1041. \&\-mno\-recip\-precision
  1042. \&\-mveclibabi=\fR\fItype\fR \fB\-mfriz \-mno\-friz
  1043. \&\-mpointers\-to\-nested\-functions \-mno\-pointers\-to\-nested\-functions
  1044. \&\-msave\-toc\-indirect \-mno\-save\-toc\-indirect
  1045. \&\-mpower8\-fusion \-mno\-mpower8\-fusion \-mpower8\-vector \-mno\-power8\-vector
  1046. \&\-mcrypto \-mno\-crypto \-mhtm \-mno\-htm \-mdirect\-move \-mno\-direct\-move
  1047. \&\-mquad\-memory \-mno\-quad\-memory
  1048. \&\-mquad\-memory\-atomic \-mno\-quad\-memory\-atomic
  1049. \&\-mcompat\-align\-parm \-mno\-compat\-align\-parm
  1050. \&\-mupper\-regs\-df \-mno\-upper\-regs\-df \-mupper\-regs\-sf \-mno\-upper\-regs\-sf
  1051. \&\-mupper\-regs\-di \-mno\-upper\-regs\-di
  1052. \&\-mupper\-regs \-mno\-upper\-regs
  1053. \&\-mfloat128 \-mno\-float128 \-mfloat128\-hardware \-mno\-float128\-hardware
  1054. \&\-mgnu\-attribute \-mno\-gnu\-attribute
  1055. \&\-mstack\-protector\-guard=\fR\fIguard\fR \fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR
  1056. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR
  1057. \&\fB\-mlra \-mno\-lra\fR
  1058. .Sp
  1059. \&\fI\s-1RX\s0 Options\fR
  1060. \&\fB\-m64bit\-doubles \-m32bit\-doubles \-fpu \-nofpu
  1061. \&\-mcpu=
  1062. \&\-mbig\-endian\-data \-mlittle\-endian\-data
  1063. \&\-msmall\-data
  1064. \&\-msim \-mno\-sim
  1065. \&\-mas100\-syntax \-mno\-as100\-syntax
  1066. \&\-mrelax
  1067. \&\-mmax\-constant\-size=
  1068. \&\-mint\-register=
  1069. \&\-mpid
  1070. \&\-mallow\-string\-insns \-mno\-allow\-string\-insns
  1071. \&\-mjsr
  1072. \&\-mno\-warn\-multiple\-fast\-interrupts
  1073. \&\-msave\-acc\-in\-interrupts\fR
  1074. .Sp
  1075. \&\fIS/390 and zSeries Options\fR
  1076. \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-march=\fR\fIcpu-type\fR
  1077. \&\fB\-mhard\-float \-msoft\-float \-mhard\-dfp \-mno\-hard\-dfp
  1078. \&\-mlong\-double\-64 \-mlong\-double\-128
  1079. \&\-mbackchain \-mno\-backchain \-mpacked\-stack \-mno\-packed\-stack
  1080. \&\-msmall\-exec \-mno\-small\-exec \-mmvcle \-mno\-mvcle
  1081. \&\-m64 \-m31 \-mdebug \-mno\-debug \-mesa \-mzarch
  1082. \&\-mhtm \-mvx \-mzvector
  1083. \&\-mtpf\-trace \-mno\-tpf\-trace \-mfused\-madd \-mno\-fused\-madd
  1084. \&\-mwarn\-framesize \-mwarn\-dynamicstack \-mstack\-size \-mstack\-guard
  1085. \&\-mhotpatch=\fR\fIhalfwords\fR\fB,\fR\fIhalfwords\fR
  1086. .Sp
  1087. \&\fIScore Options\fR
  1088. \&\fB\-meb \-mel
  1089. \&\-mnhwloop
  1090. \&\-muls
  1091. \&\-mmac
  1092. \&\-mscore5 \-mscore5u \-mscore7 \-mscore7d\fR
  1093. .Sp
  1094. \&\fI\s-1SH\s0 Options\fR
  1095. \&\fB\-m1 \-m2 \-m2e
  1096. \&\-m2a\-nofpu \-m2a\-single\-only \-m2a\-single \-m2a
  1097. \&\-m3 \-m3e
  1098. \&\-m4\-nofpu \-m4\-single\-only \-m4\-single \-m4
  1099. \&\-m4a\-nofpu \-m4a\-single\-only \-m4a\-single \-m4a \-m4al
  1100. \&\-mb \-ml \-mdalign \-mrelax
  1101. \&\-mbigtable \-mfmovd \-mrenesas \-mno\-renesas \-mnomacsave
  1102. \&\-mieee \-mno\-ieee \-mbitops \-misize \-minline\-ic_invalidate \-mpadstruct
  1103. \&\-mprefergot \-musermode \-multcost=\fR\fInumber\fR \fB\-mdiv=\fR\fIstrategy\fR
  1104. \&\fB\-mdivsi3_libfunc=\fR\fIname\fR \fB\-mfixed\-range=\fR\fIregister-range\fR
  1105. \&\fB\-maccumulate\-outgoing\-args
  1106. \&\-matomic\-model=\fR\fIatomic-model\fR
  1107. \&\fB\-mbranch\-cost=\fR\fInum\fR \fB\-mzdcbranch \-mno\-zdcbranch
  1108. \&\-mcbranch\-force\-delay\-slot
  1109. \&\-mfused\-madd \-mno\-fused\-madd \-mfsca \-mno\-fsca \-mfsrra \-mno\-fsrra
  1110. \&\-mpretend\-cmove \-mtas\fR
  1111. .Sp
  1112. \&\fISolaris 2 Options\fR
  1113. \&\fB\-mclear\-hwcap \-mno\-clear\-hwcap \-mimpure\-text \-mno\-impure\-text
  1114. \&\-pthreads\fR
  1115. .Sp
  1116. \&\fI\s-1SPARC\s0 Options\fR
  1117. \&\fB\-mcpu=\fR\fIcpu-type\fR
  1118. \&\fB\-mtune=\fR\fIcpu-type\fR
  1119. \&\fB\-mcmodel=\fR\fIcode-model\fR
  1120. \&\fB\-mmemory\-model=\fR\fImem-model\fR
  1121. \&\fB\-m32 \-m64 \-mapp\-regs \-mno\-app\-regs
  1122. \&\-mfaster\-structs \-mno\-faster\-structs \-mflat \-mno\-flat
  1123. \&\-mfpu \-mno\-fpu \-mhard\-float \-msoft\-float
  1124. \&\-mhard\-quad\-float \-msoft\-quad\-float
  1125. \&\-mstack\-bias \-mno\-stack\-bias
  1126. \&\-mstd\-struct\-return \-mno\-std\-struct\-return
  1127. \&\-munaligned\-doubles \-mno\-unaligned\-doubles
  1128. \&\-muser\-mode \-mno\-user\-mode
  1129. \&\-mv8plus \-mno\-v8plus \-mvis \-mno\-vis
  1130. \&\-mvis2 \-mno\-vis2 \-mvis3 \-mno\-vis3
  1131. \&\-mvis4 \-mno\-vis4 \-mvis4b \-mno\-vis4b
  1132. \&\-mcbcond \-mno\-cbcond \-mfmaf \-mno\-fmaf \-mfsmuld \-mno\-fsmuld
  1133. \&\-mpopc \-mno\-popc \-msubxc \-mno\-subxc
  1134. \&\-mfix\-at697f \-mfix\-ut699 \-mfix\-ut700 \-mfix\-gr712rc
  1135. \&\-mlra \-mno\-lra\fR
  1136. .Sp
  1137. \&\fI\s-1SPU\s0 Options\fR
  1138. \&\fB\-mwarn\-reloc \-merror\-reloc
  1139. \&\-msafe\-dma \-munsafe\-dma
  1140. \&\-mbranch\-hints
  1141. \&\-msmall\-mem \-mlarge\-mem \-mstdmain
  1142. \&\-mfixed\-range=\fR\fIregister-range\fR
  1143. \&\fB\-mea32 \-mea64
  1144. \&\-maddress\-space\-conversion \-mno\-address\-space\-conversion
  1145. \&\-mcache\-size=\fR\fIcache-size\fR
  1146. \&\fB\-matomic\-updates \-mno\-atomic\-updates\fR
  1147. .Sp
  1148. \&\fISystem V Options\fR
  1149. \&\fB\-Qy \-Qn \-YP,\fR\fIpaths\fR \fB\-Ym,\fR\fIdir\fR
  1150. .Sp
  1151. \&\fITILE-Gx Options\fR
  1152. \&\fB\-mcpu=CPU \-m32 \-m64 \-mbig\-endian \-mlittle\-endian
  1153. \&\-mcmodel=\fR\fIcode-model\fR
  1154. .Sp
  1155. \&\fITILEPro Options\fR
  1156. \&\fB\-mcpu=\fR\fIcpu\fR \fB\-m32\fR
  1157. .Sp
  1158. \&\fIV850 Options\fR
  1159. \&\fB\-mlong\-calls \-mno\-long\-calls \-mep \-mno\-ep
  1160. \&\-mprolog\-function \-mno\-prolog\-function \-mspace
  1161. \&\-mtda=\fR\fIn\fR \fB\-msda=\fR\fIn\fR \fB\-mzda=\fR\fIn\fR
  1162. \&\fB\-mapp\-regs \-mno\-app\-regs
  1163. \&\-mdisable\-callt \-mno\-disable\-callt
  1164. \&\-mv850e2v3 \-mv850e2 \-mv850e1 \-mv850es
  1165. \&\-mv850e \-mv850 \-mv850e3v5
  1166. \&\-mloop
  1167. \&\-mrelax
  1168. \&\-mlong\-jumps
  1169. \&\-msoft\-float
  1170. \&\-mhard\-float
  1171. \&\-mgcc\-abi
  1172. \&\-mrh850\-abi
  1173. \&\-mbig\-switch\fR
  1174. .Sp
  1175. \&\fI\s-1VAX\s0 Options\fR
  1176. \&\fB\-mg \-mgnu \-munix\fR
  1177. .Sp
  1178. \&\fIVisium Options\fR
  1179. \&\fB\-mdebug \-msim \-mfpu \-mno\-fpu \-mhard\-float \-msoft\-float
  1180. \&\-mcpu=\fR\fIcpu-type\fR \fB\-mtune=\fR\fIcpu-type\fR \fB\-msv\-mode \-muser\-mode\fR
  1181. .Sp
  1182. \&\fI\s-1VMS\s0 Options\fR
  1183. \&\fB\-mvms\-return\-codes \-mdebug\-main=\fR\fIprefix\fR \fB\-mmalloc64
  1184. \&\-mpointer\-size=\fR\fIsize\fR
  1185. .Sp
  1186. \&\fIVxWorks Options\fR
  1187. \&\fB\-mrtp \-non\-static \-Bstatic \-Bdynamic
  1188. \&\-Xbind\-lazy \-Xbind\-now\fR
  1189. .Sp
  1190. \&\fIx86 Options\fR
  1191. \&\fB\-mtune=\fR\fIcpu-type\fR \fB\-march=\fR\fIcpu-type\fR
  1192. \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR \fB\-mdump\-tune\-features \-mno\-default
  1193. \&\-mfpmath=\fR\fIunit\fR
  1194. \&\fB\-masm=\fR\fIdialect\fR \fB\-mno\-fancy\-math\-387
  1195. \&\-mno\-fp\-ret\-in\-387 \-m80387 \-mhard\-float \-msoft\-float
  1196. \&\-mno\-wide\-multiply \-mrtd \-malign\-double
  1197. \&\-mpreferred\-stack\-boundary=\fR\fInum\fR
  1198. \&\fB\-mincoming\-stack\-boundary=\fR\fInum\fR
  1199. \&\fB\-mcld \-mcx16 \-msahf \-mmovbe \-mcrc32
  1200. \&\-mrecip \-mrecip=\fR\fIopt\fR
  1201. \&\fB\-mvzeroupper \-mprefer\-avx128
  1202. \&\-mmmx \-msse \-msse2 \-msse3 \-mssse3 \-msse4.1 \-msse4.2 \-msse4 \-mavx
  1203. \&\-mavx2 \-mavx512f \-mavx512pf \-mavx512er \-mavx512cd \-mavx512vl
  1204. \&\-mavx512bw \-mavx512dq \-mavx512ifma \-mavx512vbmi \-msha \-maes
  1205. \&\-mpclmul \-mfsgsbase \-mrdrnd \-mf16c \-mfma
  1206. \&\-mprefetchwt1 \-mclflushopt \-mxsavec \-mxsaves
  1207. \&\-msse4a \-m3dnow \-m3dnowa \-mpopcnt \-mabm \-mbmi \-mtbm \-mfma4 \-mxop
  1208. \&\-mlzcnt \-mbmi2 \-mfxsr \-mxsave \-mxsaveopt \-mrtm \-mlwp \-mmpx
  1209. \&\-mmwaitx \-mclzero \-mpku \-mthreads
  1210. \&\-mms\-bitfields \-mno\-align\-stringops \-minline\-all\-stringops
  1211. \&\-minline\-stringops\-dynamically \-mstringop\-strategy=\fR\fIalg\fR
  1212. \&\fB\-mmemcpy\-strategy=\fR\fIstrategy\fR \fB\-mmemset\-strategy=\fR\fIstrategy\fR
  1213. \&\fB\-mpush\-args \-maccumulate\-outgoing\-args \-m128bit\-long\-double
  1214. \&\-m96bit\-long\-double \-mlong\-double\-64 \-mlong\-double\-80 \-mlong\-double\-128
  1215. \&\-mregparm=\fR\fInum\fR \fB\-msseregparm
  1216. \&\-mveclibabi=\fR\fItype\fR \fB\-mvect8\-ret\-in\-mem
  1217. \&\-mpc32 \-mpc64 \-mpc80 \-mstackrealign
  1218. \&\-momit\-leaf\-frame\-pointer \-mno\-red\-zone \-mno\-tls\-direct\-seg\-refs
  1219. \&\-mcmodel=\fR\fIcode-model\fR \fB\-mabi=\fR\fIname\fR \fB\-maddress\-mode=\fR\fImode\fR
  1220. \&\fB\-m32 \-m64 \-mx32 \-m16 \-miamcu \-mlarge\-data\-threshold=\fR\fInum\fR
  1221. \&\fB\-msse2avx \-mfentry \-mrecord\-mcount \-mnop\-mcount \-m8bit\-idiv
  1222. \&\-mavx256\-split\-unaligned\-load \-mavx256\-split\-unaligned\-store
  1223. \&\-malign\-data=\fR\fItype\fR \fB\-mstack\-protector\-guard=\fR\fIguard\fR
  1224. \&\fB\-mmitigate\-rop \-mgeneral\-regs\-only
  1225. \&\-mindirect\-branch=\fR\fIchoice\fR \fB\-mfunction\-return=\fR\fIchoice\fR
  1226. \&\fB\-mindirect\-branch\-register\fR
  1227. .Sp
  1228. \&\fIx86 Windows Options\fR
  1229. \&\fB\-mconsole \-mcygwin \-mno\-cygwin \-mdll
  1230. \&\-mnop\-fun\-dllimport \-mthread
  1231. \&\-municode \-mwin32 \-mwindows \-fno\-set\-stack\-executable\fR
  1232. .Sp
  1233. \&\fIXstormy16 Options\fR
  1234. \&\fB\-msim\fR
  1235. .Sp
  1236. \&\fIXtensa Options\fR
  1237. \&\fB\-mconst16 \-mno\-const16
  1238. \&\-mfused\-madd \-mno\-fused\-madd
  1239. \&\-mforce\-no\-pic
  1240. \&\-mserialize\-volatile \-mno\-serialize\-volatile
  1241. \&\-mtext\-section\-literals \-mno\-text\-section\-literals
  1242. \&\-mauto\-litpools \-mno\-auto\-litpools
  1243. \&\-mtarget\-align \-mno\-target\-align
  1244. \&\-mlongcalls \-mno\-longcalls\fR
  1245. .Sp
  1246. \&\fIzSeries Options\fR
  1247. See S/390 and zSeries Options.
  1248. .SS "Options Controlling the Kind of Output"
  1249. .IX Subsection "Options Controlling the Kind of Output"
  1250. Compilation can involve up to four stages: preprocessing, compilation
  1251. proper, assembly and linking, always in that order. \s-1GCC\s0 is capable of
  1252. preprocessing and compiling several files either into several
  1253. assembler input files, or into one assembler input file; then each
  1254. assembler input file produces an object file, and linking combines all
  1255. the object files (those newly compiled, and those specified as input)
  1256. into an executable file.
  1257. .PP
  1258. For any given input file, the file name suffix determines what kind of
  1259. compilation is done:
  1260. .IP "\fIfile\fR\fB.c\fR" 4
  1261. .IX Item "file.c"
  1262. C source code that must be preprocessed.
  1263. .IP "\fIfile\fR\fB.i\fR" 4
  1264. .IX Item "file.i"
  1265. C source code that should not be preprocessed.
  1266. .IP "\fIfile\fR\fB.ii\fR" 4
  1267. .IX Item "file.ii"
  1268. \&\*(C+ source code that should not be preprocessed.
  1269. .IP "\fIfile\fR\fB.m\fR" 4
  1270. .IX Item "file.m"
  1271. Objective-C source code. Note that you must link with the \fIlibobjc\fR
  1272. library to make an Objective-C program work.
  1273. .IP "\fIfile\fR\fB.mi\fR" 4
  1274. .IX Item "file.mi"
  1275. Objective-C source code that should not be preprocessed.
  1276. .IP "\fIfile\fR\fB.mm\fR" 4
  1277. .IX Item "file.mm"
  1278. .PD 0
  1279. .IP "\fIfile\fR\fB.M\fR" 4
  1280. .IX Item "file.M"
  1281. .PD
  1282. Objective\-\*(C+ source code. Note that you must link with the \fIlibobjc\fR
  1283. library to make an Objective\-\*(C+ program work. Note that \fB.M\fR refers
  1284. to a literal capital M.
  1285. .IP "\fIfile\fR\fB.mii\fR" 4
  1286. .IX Item "file.mii"
  1287. Objective\-\*(C+ source code that should not be preprocessed.
  1288. .IP "\fIfile\fR\fB.h\fR" 4
  1289. .IX Item "file.h"
  1290. C, \*(C+, Objective-C or Objective\-\*(C+ header file to be turned into a
  1291. precompiled header (default), or C, \*(C+ header file to be turned into an
  1292. Ada spec (via the \fB\-fdump\-ada\-spec\fR switch).
  1293. .IP "\fIfile\fR\fB.cc\fR" 4
  1294. .IX Item "file.cc"
  1295. .PD 0
  1296. .IP "\fIfile\fR\fB.cp\fR" 4
  1297. .IX Item "file.cp"
  1298. .IP "\fIfile\fR\fB.cxx\fR" 4
  1299. .IX Item "file.cxx"
  1300. .IP "\fIfile\fR\fB.cpp\fR" 4
  1301. .IX Item "file.cpp"
  1302. .IP "\fIfile\fR\fB.CPP\fR" 4
  1303. .IX Item "file.CPP"
  1304. .IP "\fIfile\fR\fB.c++\fR" 4
  1305. .IX Item "file.c++"
  1306. .IP "\fIfile\fR\fB.C\fR" 4
  1307. .IX Item "file.C"
  1308. .PD
  1309. \&\*(C+ source code that must be preprocessed. Note that in \fB.cxx\fR,
  1310. the last two letters must both be literally \fBx\fR. Likewise,
  1311. \&\fB.C\fR refers to a literal capital C.
  1312. .IP "\fIfile\fR\fB.mm\fR" 4
  1313. .IX Item "file.mm"
  1314. .PD 0
  1315. .IP "\fIfile\fR\fB.M\fR" 4
  1316. .IX Item "file.M"
  1317. .PD
  1318. Objective\-\*(C+ source code that must be preprocessed.
  1319. .IP "\fIfile\fR\fB.mii\fR" 4
  1320. .IX Item "file.mii"
  1321. Objective\-\*(C+ source code that should not be preprocessed.
  1322. .IP "\fIfile\fR\fB.hh\fR" 4
  1323. .IX Item "file.hh"
  1324. .PD 0
  1325. .IP "\fIfile\fR\fB.H\fR" 4
  1326. .IX Item "file.H"
  1327. .IP "\fIfile\fR\fB.hp\fR" 4
  1328. .IX Item "file.hp"
  1329. .IP "\fIfile\fR\fB.hxx\fR" 4
  1330. .IX Item "file.hxx"
  1331. .IP "\fIfile\fR\fB.hpp\fR" 4
  1332. .IX Item "file.hpp"
  1333. .IP "\fIfile\fR\fB.HPP\fR" 4
  1334. .IX Item "file.HPP"
  1335. .IP "\fIfile\fR\fB.h++\fR" 4
  1336. .IX Item "file.h++"
  1337. .IP "\fIfile\fR\fB.tcc\fR" 4
  1338. .IX Item "file.tcc"
  1339. .PD
  1340. \&\*(C+ header file to be turned into a precompiled header or Ada spec.
  1341. .IP "\fIfile\fR\fB.f\fR" 4
  1342. .IX Item "file.f"
  1343. .PD 0
  1344. .IP "\fIfile\fR\fB.for\fR" 4
  1345. .IX Item "file.for"
  1346. .IP "\fIfile\fR\fB.ftn\fR" 4
  1347. .IX Item "file.ftn"
  1348. .PD
  1349. Fixed form Fortran source code that should not be preprocessed.
  1350. .IP "\fIfile\fR\fB.F\fR" 4
  1351. .IX Item "file.F"
  1352. .PD 0
  1353. .IP "\fIfile\fR\fB.FOR\fR" 4
  1354. .IX Item "file.FOR"
  1355. .IP "\fIfile\fR\fB.fpp\fR" 4
  1356. .IX Item "file.fpp"
  1357. .IP "\fIfile\fR\fB.FPP\fR" 4
  1358. .IX Item "file.FPP"
  1359. .IP "\fIfile\fR\fB.FTN\fR" 4
  1360. .IX Item "file.FTN"
  1361. .PD
  1362. Fixed form Fortran source code that must be preprocessed (with the traditional
  1363. preprocessor).
  1364. .IP "\fIfile\fR\fB.f90\fR" 4
  1365. .IX Item "file.f90"
  1366. .PD 0
  1367. .IP "\fIfile\fR\fB.f95\fR" 4
  1368. .IX Item "file.f95"
  1369. .IP "\fIfile\fR\fB.f03\fR" 4
  1370. .IX Item "file.f03"
  1371. .IP "\fIfile\fR\fB.f08\fR" 4
  1372. .IX Item "file.f08"
  1373. .PD
  1374. Free form Fortran source code that should not be preprocessed.
  1375. .IP "\fIfile\fR\fB.F90\fR" 4
  1376. .IX Item "file.F90"
  1377. .PD 0
  1378. .IP "\fIfile\fR\fB.F95\fR" 4
  1379. .IX Item "file.F95"
  1380. .IP "\fIfile\fR\fB.F03\fR" 4
  1381. .IX Item "file.F03"
  1382. .IP "\fIfile\fR\fB.F08\fR" 4
  1383. .IX Item "file.F08"
  1384. .PD
  1385. Free form Fortran source code that must be preprocessed (with the
  1386. traditional preprocessor).
  1387. .IP "\fIfile\fR\fB.go\fR" 4
  1388. .IX Item "file.go"
  1389. Go source code.
  1390. .IP "\fIfile\fR\fB.brig\fR" 4
  1391. .IX Item "file.brig"
  1392. \&\s-1BRIG\s0 files (binary representation of \s-1HSAIL\s0).
  1393. .IP "\fIfile\fR\fB.ads\fR" 4
  1394. .IX Item "file.ads"
  1395. Ada source code file that contains a library unit declaration (a
  1396. declaration of a package, subprogram, or generic, or a generic
  1397. instantiation), or a library unit renaming declaration (a package,
  1398. generic, or subprogram renaming declaration). Such files are also
  1399. called \fIspecs\fR.
  1400. .IP "\fIfile\fR\fB.adb\fR" 4
  1401. .IX Item "file.adb"
  1402. Ada source code file containing a library unit body (a subprogram or
  1403. package body). Such files are also called \fIbodies\fR.
  1404. .IP "\fIfile\fR\fB.s\fR" 4
  1405. .IX Item "file.s"
  1406. Assembler code.
  1407. .IP "\fIfile\fR\fB.S\fR" 4
  1408. .IX Item "file.S"
  1409. .PD 0
  1410. .IP "\fIfile\fR\fB.sx\fR" 4
  1411. .IX Item "file.sx"
  1412. .PD
  1413. Assembler code that must be preprocessed.
  1414. .IP "\fIother\fR" 4
  1415. .IX Item "other"
  1416. An object file to be fed straight into linking.
  1417. Any file name with no recognized suffix is treated this way.
  1418. .PP
  1419. You can specify the input language explicitly with the \fB\-x\fR option:
  1420. .IP "\fB\-x\fR \fIlanguage\fR" 4
  1421. .IX Item "-x language"
  1422. Specify explicitly the \fIlanguage\fR for the following input files
  1423. (rather than letting the compiler choose a default based on the file
  1424. name suffix). This option applies to all following input files until
  1425. the next \fB\-x\fR option. Possible values for \fIlanguage\fR are:
  1426. .Sp
  1427. .Vb 9
  1428. \& c c\-header cpp\-output
  1429. \& c++ c++\-header c++\-cpp\-output
  1430. \& objective\-c objective\-c\-header objective\-c\-cpp\-output
  1431. \& objective\-c++ objective\-c++\-header objective\-c++\-cpp\-output
  1432. \& assembler assembler\-with\-cpp
  1433. \& ada
  1434. \& f77 f77\-cpp\-input f95 f95\-cpp\-input
  1435. \& go
  1436. \& brig
  1437. .Ve
  1438. .IP "\fB\-x none\fR" 4
  1439. .IX Item "-x none"
  1440. Turn off any specification of a language, so that subsequent files are
  1441. handled according to their file name suffixes (as they are if \fB\-x\fR
  1442. has not been used at all).
  1443. .PP
  1444. If you only want some of the stages of compilation, you can use
  1445. \&\fB\-x\fR (or filename suffixes) to tell \fBgcc\fR where to start, and
  1446. one of the options \fB\-c\fR, \fB\-S\fR, or \fB\-E\fR to say where
  1447. \&\fBgcc\fR is to stop. Note that some combinations (for example,
  1448. \&\fB\-x cpp-output \-E\fR) instruct \fBgcc\fR to do nothing at all.
  1449. .IP "\fB\-c\fR" 4
  1450. .IX Item "-c"
  1451. Compile or assemble the source files, but do not link. The linking
  1452. stage simply is not done. The ultimate output is in the form of an
  1453. object file for each source file.
  1454. .Sp
  1455. By default, the object file name for a source file is made by replacing
  1456. the suffix \fB.c\fR, \fB.i\fR, \fB.s\fR, etc., with \fB.o\fR.
  1457. .Sp
  1458. Unrecognized input files, not requiring compilation or assembly, are
  1459. ignored.
  1460. .IP "\fB\-S\fR" 4
  1461. .IX Item "-S"
  1462. Stop after the stage of compilation proper; do not assemble. The output
  1463. is in the form of an assembler code file for each non-assembler input
  1464. file specified.
  1465. .Sp
  1466. By default, the assembler file name for a source file is made by
  1467. replacing the suffix \fB.c\fR, \fB.i\fR, etc., with \fB.s\fR.
  1468. .Sp
  1469. Input files that don't require compilation are ignored.
  1470. .IP "\fB\-E\fR" 4
  1471. .IX Item "-E"
  1472. Stop after the preprocessing stage; do not run the compiler proper. The
  1473. output is in the form of preprocessed source code, which is sent to the
  1474. standard output.
  1475. .Sp
  1476. Input files that don't require preprocessing are ignored.
  1477. .IP "\fB\-o\fR \fIfile\fR" 4
  1478. .IX Item "-o file"
  1479. Place output in file \fIfile\fR. This applies to whatever
  1480. sort of output is being produced, whether it be an executable file,
  1481. an object file, an assembler file or preprocessed C code.
  1482. .Sp
  1483. If \fB\-o\fR is not specified, the default is to put an executable
  1484. file in \fIa.out\fR, the object file for
  1485. \&\fI\fIsource\fI.\fIsuffix\fI\fR in \fI\fIsource\fI.o\fR, its
  1486. assembler file in \fI\fIsource\fI.s\fR, a precompiled header file in
  1487. \&\fI\fIsource\fI.\fIsuffix\fI.gch\fR, and all preprocessed C source on
  1488. standard output.
  1489. .IP "\fB\-v\fR" 4
  1490. .IX Item "-v"
  1491. Print (on standard error output) the commands executed to run the stages
  1492. of compilation. Also print the version number of the compiler driver
  1493. program and of the preprocessor and the compiler proper.
  1494. .IP "\fB\-###\fR" 4
  1495. .IX Item "-###"
  1496. Like \fB\-v\fR except the commands are not executed and arguments
  1497. are quoted unless they contain only alphanumeric characters or \f(CW\*(C`./\-_\*(C'\fR.
  1498. This is useful for shell scripts to capture the driver-generated command lines.
  1499. .IP "\fB\-\-help\fR" 4
  1500. .IX Item "--help"
  1501. Print (on the standard output) a description of the command-line options
  1502. understood by \fBgcc\fR. If the \fB\-v\fR option is also specified
  1503. then \fB\-\-help\fR is also passed on to the various processes
  1504. invoked by \fBgcc\fR, so that they can display the command-line options
  1505. they accept. If the \fB\-Wextra\fR option has also been specified
  1506. (prior to the \fB\-\-help\fR option), then command-line options that
  1507. have no documentation associated with them are also displayed.
  1508. .IP "\fB\-\-target\-help\fR" 4
  1509. .IX Item "--target-help"
  1510. Print (on the standard output) a description of target-specific command-line
  1511. options for each tool. For some targets extra target-specific
  1512. information may also be printed.
  1513. .IP "\fB\-\-help={\fR\fIclass\fR|[\fB^\fR]\fIqualifier\fR\fB}\fR[\fB,...\fR]" 4
  1514. .IX Item "--help={class|[^]qualifier}[,...]"
  1515. Print (on the standard output) a description of the command-line
  1516. options understood by the compiler that fit into all specified classes
  1517. and qualifiers. These are the supported classes:
  1518. .RS 4
  1519. .IP "\fBoptimizers\fR" 4
  1520. .IX Item "optimizers"
  1521. Display all of the optimization options supported by the
  1522. compiler.
  1523. .IP "\fBwarnings\fR" 4
  1524. .IX Item "warnings"
  1525. Display all of the options controlling warning messages
  1526. produced by the compiler.
  1527. .IP "\fBtarget\fR" 4
  1528. .IX Item "target"
  1529. Display target-specific options. Unlike the
  1530. \&\fB\-\-target\-help\fR option however, target-specific options of the
  1531. linker and assembler are not displayed. This is because those
  1532. tools do not currently support the extended \fB\-\-help=\fR syntax.
  1533. .IP "\fBparams\fR" 4
  1534. .IX Item "params"
  1535. Display the values recognized by the \fB\-\-param\fR
  1536. option.
  1537. .IP "\fIlanguage\fR" 4
  1538. .IX Item "language"
  1539. Display the options supported for \fIlanguage\fR, where
  1540. \&\fIlanguage\fR is the name of one of the languages supported in this
  1541. version of \s-1GCC.\s0
  1542. .IP "\fBcommon\fR" 4
  1543. .IX Item "common"
  1544. Display the options that are common to all languages.
  1545. .RE
  1546. .RS 4
  1547. .Sp
  1548. These are the supported qualifiers:
  1549. .IP "\fBundocumented\fR" 4
  1550. .IX Item "undocumented"
  1551. Display only those options that are undocumented.
  1552. .IP "\fBjoined\fR" 4
  1553. .IX Item "joined"
  1554. Display options taking an argument that appears after an equal
  1555. sign in the same continuous piece of text, such as:
  1556. \&\fB\-\-help=target\fR.
  1557. .IP "\fBseparate\fR" 4
  1558. .IX Item "separate"
  1559. Display options taking an argument that appears as a separate word
  1560. following the original option, such as: \fB\-o output-file\fR.
  1561. .RE
  1562. .RS 4
  1563. .Sp
  1564. Thus for example to display all the undocumented target-specific
  1565. switches supported by the compiler, use:
  1566. .Sp
  1567. .Vb 1
  1568. \& \-\-help=target,undocumented
  1569. .Ve
  1570. .Sp
  1571. The sense of a qualifier can be inverted by prefixing it with the
  1572. \&\fB^\fR character, so for example to display all binary warning
  1573. options (i.e., ones that are either on or off and that do not take an
  1574. argument) that have a description, use:
  1575. .Sp
  1576. .Vb 1
  1577. \& \-\-help=warnings,^joined,^undocumented
  1578. .Ve
  1579. .Sp
  1580. The argument to \fB\-\-help=\fR should not consist solely of inverted
  1581. qualifiers.
  1582. .Sp
  1583. Combining several classes is possible, although this usually
  1584. restricts the output so much that there is nothing to display. One
  1585. case where it does work, however, is when one of the classes is
  1586. \&\fItarget\fR. For example, to display all the target-specific
  1587. optimization options, use:
  1588. .Sp
  1589. .Vb 1
  1590. \& \-\-help=target,optimizers
  1591. .Ve
  1592. .Sp
  1593. The \fB\-\-help=\fR option can be repeated on the command line. Each
  1594. successive use displays its requested class of options, skipping
  1595. those that have already been displayed.
  1596. .Sp
  1597. If the \fB\-Q\fR option appears on the command line before the
  1598. \&\fB\-\-help=\fR option, then the descriptive text displayed by
  1599. \&\fB\-\-help=\fR is changed. Instead of describing the displayed
  1600. options, an indication is given as to whether the option is enabled,
  1601. disabled or set to a specific value (assuming that the compiler
  1602. knows this at the point where the \fB\-\-help=\fR option is used).
  1603. .Sp
  1604. Here is a truncated example from the \s-1ARM\s0 port of \fBgcc\fR:
  1605. .Sp
  1606. .Vb 5
  1607. \& % gcc \-Q \-mabi=2 \-\-help=target \-c
  1608. \& The following options are target specific:
  1609. \& \-mabi= 2
  1610. \& \-mabort\-on\-noreturn [disabled]
  1611. \& \-mapcs [disabled]
  1612. .Ve
  1613. .Sp
  1614. The output is sensitive to the effects of previous command-line
  1615. options, so for example it is possible to find out which optimizations
  1616. are enabled at \fB\-O2\fR by using:
  1617. .Sp
  1618. .Vb 1
  1619. \& \-Q \-O2 \-\-help=optimizers
  1620. .Ve
  1621. .Sp
  1622. Alternatively you can discover which binary optimizations are enabled
  1623. by \fB\-O3\fR by using:
  1624. .Sp
  1625. .Vb 3
  1626. \& gcc \-c \-Q \-O3 \-\-help=optimizers > /tmp/O3\-opts
  1627. \& gcc \-c \-Q \-O2 \-\-help=optimizers > /tmp/O2\-opts
  1628. \& diff /tmp/O2\-opts /tmp/O3\-opts | grep enabled
  1629. .Ve
  1630. .RE
  1631. .IP "\fB\-\-version\fR" 4
  1632. .IX Item "--version"
  1633. Display the version number and copyrights of the invoked \s-1GCC.\s0
  1634. .IP "\fB\-pass\-exit\-codes\fR" 4
  1635. .IX Item "-pass-exit-codes"
  1636. Normally the \fBgcc\fR program exits with the code of 1 if any
  1637. phase of the compiler returns a non-success return code. If you specify
  1638. \&\fB\-pass\-exit\-codes\fR, the \fBgcc\fR program instead returns with
  1639. the numerically highest error produced by any phase returning an error
  1640. indication. The C, \*(C+, and Fortran front ends return 4 if an internal
  1641. compiler error is encountered.
  1642. .IP "\fB\-pipe\fR" 4
  1643. .IX Item "-pipe"
  1644. Use pipes rather than temporary files for communication between the
  1645. various stages of compilation. This fails to work on some systems where
  1646. the assembler is unable to read from a pipe; but the \s-1GNU\s0 assembler has
  1647. no trouble.
  1648. .IP "\fB\-specs=\fR\fIfile\fR" 4
  1649. .IX Item "-specs=file"
  1650. Process \fIfile\fR after the compiler reads in the standard \fIspecs\fR
  1651. file, in order to override the defaults which the \fBgcc\fR driver
  1652. program uses when determining what switches to pass to \fBcc1\fR,
  1653. \&\fBcc1plus\fR, \fBas\fR, \fBld\fR, etc. More than one
  1654. \&\fB\-specs=\fR\fIfile\fR can be specified on the command line, and they
  1655. are processed in order, from left to right.
  1656. .IP "\fB\-wrapper\fR" 4
  1657. .IX Item "-wrapper"
  1658. Invoke all subcommands under a wrapper program. The name of the
  1659. wrapper program and its parameters are passed as a comma separated
  1660. list.
  1661. .Sp
  1662. .Vb 1
  1663. \& gcc \-c t.c \-wrapper gdb,\-\-args
  1664. .Ve
  1665. .Sp
  1666. This invokes all subprograms of \fBgcc\fR under
  1667. \&\fBgdb \-\-args\fR, thus the invocation of \fBcc1\fR is
  1668. \&\fBgdb \-\-args cc1 ...\fR.
  1669. .IP "\fB\-fplugin=\fR\fIname\fR\fB.so\fR" 4
  1670. .IX Item "-fplugin=name.so"
  1671. Load the plugin code in file \fIname\fR.so, assumed to be a
  1672. shared object to be dlopen'd by the compiler. The base name of
  1673. the shared object file is used to identify the plugin for the
  1674. purposes of argument parsing (See
  1675. \&\fB\-fplugin\-arg\-\fR\fIname\fR\fB\-\fR\fIkey\fR\fB=\fR\fIvalue\fR below).
  1676. Each plugin should define the callback functions specified in the
  1677. Plugins \s-1API.\s0
  1678. .IP "\fB\-fplugin\-arg\-\fR\fIname\fR\fB\-\fR\fIkey\fR\fB=\fR\fIvalue\fR" 4
  1679. .IX Item "-fplugin-arg-name-key=value"
  1680. Define an argument called \fIkey\fR with a value of \fIvalue\fR
  1681. for the plugin called \fIname\fR.
  1682. .IP "\fB\-fdump\-ada\-spec\fR[\fB\-slim\fR]" 4
  1683. .IX Item "-fdump-ada-spec[-slim]"
  1684. For C and \*(C+ source and include files, generate corresponding Ada specs.
  1685. .IP "\fB\-fada\-spec\-parent=\fR\fIunit\fR" 4
  1686. .IX Item "-fada-spec-parent=unit"
  1687. In conjunction with \fB\-fdump\-ada\-spec\fR[\fB\-slim\fR] above, generate
  1688. Ada specs as child units of parent \fIunit\fR.
  1689. .IP "\fB\-fdump\-go\-spec=\fR\fIfile\fR" 4
  1690. .IX Item "-fdump-go-spec=file"
  1691. For input files in any language, generate corresponding Go
  1692. declarations in \fIfile\fR. This generates Go \f(CW\*(C`const\*(C'\fR,
  1693. \&\f(CW\*(C`type\*(C'\fR, \f(CW\*(C`var\*(C'\fR, and \f(CW\*(C`func\*(C'\fR declarations which may be a
  1694. useful way to start writing a Go interface to code written in some
  1695. other language.
  1696. .IP "\fB@\fR\fIfile\fR" 4
  1697. .IX Item "@file"
  1698. Read command-line options from \fIfile\fR. The options read are
  1699. inserted in place of the original @\fIfile\fR option. If \fIfile\fR
  1700. does not exist, or cannot be read, then the option will be treated
  1701. literally, and not removed.
  1702. .Sp
  1703. Options in \fIfile\fR are separated by whitespace. A whitespace
  1704. character may be included in an option by surrounding the entire
  1705. option in either single or double quotes. Any character (including a
  1706. backslash) may be included by prefixing the character to be included
  1707. with a backslash. The \fIfile\fR may itself contain additional
  1708. @\fIfile\fR options; any such options will be processed recursively.
  1709. .SS "Compiling \*(C+ Programs"
  1710. .IX Subsection "Compiling Programs"
  1711. \&\*(C+ source files conventionally use one of the suffixes \fB.C\fR,
  1712. \&\fB.cc\fR, \fB.cpp\fR, \fB.CPP\fR, \fB.c++\fR, \fB.cp\fR, or
  1713. \&\fB.cxx\fR; \*(C+ header files often use \fB.hh\fR, \fB.hpp\fR,
  1714. \&\fB.H\fR, or (for shared template code) \fB.tcc\fR; and
  1715. preprocessed \*(C+ files use the suffix \fB.ii\fR. \s-1GCC\s0 recognizes
  1716. files with these names and compiles them as \*(C+ programs even if you
  1717. call the compiler the same way as for compiling C programs (usually
  1718. with the name \fBgcc\fR).
  1719. .PP
  1720. However, the use of \fBgcc\fR does not add the \*(C+ library.
  1721. \&\fBg++\fR is a program that calls \s-1GCC\s0 and automatically specifies linking
  1722. against the \*(C+ library. It treats \fB.c\fR,
  1723. \&\fB.h\fR and \fB.i\fR files as \*(C+ source files instead of C source
  1724. files unless \fB\-x\fR is used. This program is also useful when
  1725. precompiling a C header file with a \fB.h\fR extension for use in \*(C+
  1726. compilations. On many systems, \fBg++\fR is also installed with
  1727. the name \fBc++\fR.
  1728. .PP
  1729. When you compile \*(C+ programs, you may specify many of the same
  1730. command-line options that you use for compiling programs in any
  1731. language; or command-line options meaningful for C and related
  1732. languages; or options that are meaningful only for \*(C+ programs.
  1733. .SS "Options Controlling C Dialect"
  1734. .IX Subsection "Options Controlling C Dialect"
  1735. The following options control the dialect of C (or languages derived
  1736. from C, such as \*(C+, Objective-C and Objective\-\*(C+) that the compiler
  1737. accepts:
  1738. .IP "\fB\-ansi\fR" 4
  1739. .IX Item "-ansi"
  1740. In C mode, this is equivalent to \fB\-std=c90\fR. In \*(C+ mode, it is
  1741. equivalent to \fB\-std=c++98\fR.
  1742. .Sp
  1743. This turns off certain features of \s-1GCC\s0 that are incompatible with \s-1ISO
  1744. C90 \s0(when compiling C code), or of standard \*(C+ (when compiling \*(C+ code),
  1745. such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, and
  1746. predefined macros such as \f(CW\*(C`unix\*(C'\fR and \f(CW\*(C`vax\*(C'\fR that identify the
  1747. type of system you are using. It also enables the undesirable and
  1748. rarely used \s-1ISO\s0 trigraph feature. For the C compiler,
  1749. it disables recognition of \*(C+ style \fB//\fR comments as well as
  1750. the \f(CW\*(C`inline\*(C'\fR keyword.
  1751. .Sp
  1752. The alternate keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_extension_\|_\*(C'\fR,
  1753. \&\f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR continue to work despite
  1754. \&\fB\-ansi\fR. You would not want to use them in an \s-1ISO C\s0 program, of
  1755. course, but it is useful to put them in header files that might be included
  1756. in compilations done with \fB\-ansi\fR. Alternate predefined macros
  1757. such as \f(CW\*(C`_\|_unix_\|_\*(C'\fR and \f(CW\*(C`_\|_vax_\|_\*(C'\fR are also available, with or
  1758. without \fB\-ansi\fR.
  1759. .Sp
  1760. The \fB\-ansi\fR option does not cause non-ISO programs to be
  1761. rejected gratuitously. For that, \fB\-Wpedantic\fR is required in
  1762. addition to \fB\-ansi\fR.
  1763. .Sp
  1764. The macro \f(CW\*(C`_\|_STRICT_ANSI_\|_\*(C'\fR is predefined when the \fB\-ansi\fR
  1765. option is used. Some header files may notice this macro and refrain
  1766. from declaring certain functions or defining certain macros that the
  1767. \&\s-1ISO\s0 standard doesn't call for; this is to avoid interfering with any
  1768. programs that might use these names for other things.
  1769. .Sp
  1770. Functions that are normally built in but do not have semantics
  1771. 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
  1772. functions when \fB\-ansi\fR is used.
  1773. .IP "\fB\-std=\fR" 4
  1774. .IX Item "-std="
  1775. Determine the language standard. This option
  1776. is currently only supported when compiling C or \*(C+.
  1777. .Sp
  1778. The compiler can accept several base standards, such as \fBc90\fR or
  1779. \&\fBc++98\fR, and \s-1GNU\s0 dialects of those standards, such as
  1780. \&\fBgnu90\fR or \fBgnu++98\fR. When a base standard is specified, the
  1781. compiler accepts all programs following that standard plus those
  1782. using \s-1GNU\s0 extensions that do not contradict it. For example,
  1783. \&\fB\-std=c90\fR turns off certain features of \s-1GCC\s0 that are
  1784. incompatible with \s-1ISO C90,\s0 such as the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR
  1785. keywords, but not other \s-1GNU\s0 extensions that do not have a meaning in
  1786. \&\s-1ISO C90,\s0 such as omitting the middle term of a \f(CW\*(C`?:\*(C'\fR
  1787. expression. On the other hand, when a \s-1GNU\s0 dialect of a standard is
  1788. specified, all features supported by the compiler are enabled, even when
  1789. those features change the meaning of the base standard. As a result, some
  1790. strict-conforming programs may be rejected. The particular standard
  1791. is used by \fB\-Wpedantic\fR to identify which features are \s-1GNU\s0
  1792. extensions given that version of the standard. For example
  1793. \&\fB\-std=gnu90 \-Wpedantic\fR warns about \*(C+ style \fB//\fR
  1794. comments, while \fB\-std=gnu99 \-Wpedantic\fR does not.
  1795. .Sp
  1796. A value for this option must be provided; possible values are
  1797. .RS 4
  1798. .IP "\fBc90\fR" 4
  1799. .IX Item "c90"
  1800. .PD 0
  1801. .IP "\fBc89\fR" 4
  1802. .IX Item "c89"
  1803. .IP "\fBiso9899:1990\fR" 4
  1804. .IX Item "iso9899:1990"
  1805. .PD
  1806. Support all \s-1ISO C90\s0 programs (certain \s-1GNU\s0 extensions that conflict
  1807. with \s-1ISO C90\s0 are disabled). Same as \fB\-ansi\fR for C code.
  1808. .IP "\fBiso9899:199409\fR" 4
  1809. .IX Item "iso9899:199409"
  1810. \&\s-1ISO C90\s0 as modified in amendment 1.
  1811. .IP "\fBc99\fR" 4
  1812. .IX Item "c99"
  1813. .PD 0
  1814. .IP "\fBc9x\fR" 4
  1815. .IX Item "c9x"
  1816. .IP "\fBiso9899:1999\fR" 4
  1817. .IX Item "iso9899:1999"
  1818. .IP "\fBiso9899:199x\fR" 4
  1819. .IX Item "iso9899:199x"
  1820. .PD
  1821. \&\s-1ISO C99. \s0 This standard is substantially completely supported, modulo
  1822. bugs and floating-point issues
  1823. (mainly but not entirely relating to optional C99 features from
  1824. Annexes F and G). See
  1825. <\fBhttp://gcc.gnu.org/c99status.html\fR> for more information. The
  1826. names \fBc9x\fR and \fBiso9899:199x\fR are deprecated.
  1827. .IP "\fBc11\fR" 4
  1828. .IX Item "c11"
  1829. .PD 0
  1830. .IP "\fBc1x\fR" 4
  1831. .IX Item "c1x"
  1832. .IP "\fBiso9899:2011\fR" 4
  1833. .IX Item "iso9899:2011"
  1834. .PD
  1835. \&\s-1ISO C11,\s0 the 2011 revision of the \s-1ISO C\s0 standard. This standard is
  1836. substantially completely supported, modulo bugs, floating-point issues
  1837. (mainly but not entirely relating to optional C11 features from
  1838. Annexes F and G) and the optional Annexes K (Bounds-checking
  1839. interfaces) and L (Analyzability). The name \fBc1x\fR is deprecated.
  1840. .IP "\fBgnu90\fR" 4
  1841. .IX Item "gnu90"
  1842. .PD 0
  1843. .IP "\fBgnu89\fR" 4
  1844. .IX Item "gnu89"
  1845. .PD
  1846. \&\s-1GNU\s0 dialect of \s-1ISO C90 \s0(including some C99 features).
  1847. .IP "\fBgnu99\fR" 4
  1848. .IX Item "gnu99"
  1849. .PD 0
  1850. .IP "\fBgnu9x\fR" 4
  1851. .IX Item "gnu9x"
  1852. .PD
  1853. \&\s-1GNU\s0 dialect of \s-1ISO C99. \s0 The name \fBgnu9x\fR is deprecated.
  1854. .IP "\fBgnu11\fR" 4
  1855. .IX Item "gnu11"
  1856. .PD 0
  1857. .IP "\fBgnu1x\fR" 4
  1858. .IX Item "gnu1x"
  1859. .PD
  1860. \&\s-1GNU\s0 dialect of \s-1ISO C11. \s0 This is the default for C code.
  1861. The name \fBgnu1x\fR is deprecated.
  1862. .IP "\fBc++98\fR" 4
  1863. .IX Item "c++98"
  1864. .PD 0
  1865. .IP "\fBc++03\fR" 4
  1866. .IX Item "c++03"
  1867. .PD
  1868. The 1998 \s-1ISO \*(C+\s0 standard plus the 2003 technical corrigendum and some
  1869. additional defect reports. Same as \fB\-ansi\fR for \*(C+ code.
  1870. .IP "\fBgnu++98\fR" 4
  1871. .IX Item "gnu++98"
  1872. .PD 0
  1873. .IP "\fBgnu++03\fR" 4
  1874. .IX Item "gnu++03"
  1875. .PD
  1876. \&\s-1GNU\s0 dialect of \fB\-std=c++98\fR.
  1877. .IP "\fBc++11\fR" 4
  1878. .IX Item "c++11"
  1879. .PD 0
  1880. .IP "\fBc++0x\fR" 4
  1881. .IX Item "c++0x"
  1882. .PD
  1883. The 2011 \s-1ISO \*(C+\s0 standard plus amendments.
  1884. The name \fBc++0x\fR is deprecated.
  1885. .IP "\fBgnu++11\fR" 4
  1886. .IX Item "gnu++11"
  1887. .PD 0
  1888. .IP "\fBgnu++0x\fR" 4
  1889. .IX Item "gnu++0x"
  1890. .PD
  1891. \&\s-1GNU\s0 dialect of \fB\-std=c++11\fR.
  1892. The name \fBgnu++0x\fR is deprecated.
  1893. .IP "\fBc++14\fR" 4
  1894. .IX Item "c++14"
  1895. .PD 0
  1896. .IP "\fBc++1y\fR" 4
  1897. .IX Item "c++1y"
  1898. .PD
  1899. The 2014 \s-1ISO \*(C+\s0 standard plus amendments.
  1900. The name \fBc++1y\fR is deprecated.
  1901. .IP "\fBgnu++14\fR" 4
  1902. .IX Item "gnu++14"
  1903. .PD 0
  1904. .IP "\fBgnu++1y\fR" 4
  1905. .IX Item "gnu++1y"
  1906. .PD
  1907. \&\s-1GNU\s0 dialect of \fB\-std=c++14\fR.
  1908. This is the default for \*(C+ code.
  1909. The name \fBgnu++1y\fR is deprecated.
  1910. .IP "\fBc++1z\fR" 4
  1911. .IX Item "c++1z"
  1912. The next revision of the \s-1ISO \*(C+\s0 standard, tentatively planned for
  1913. 2017. Support is highly experimental, and will almost certainly
  1914. change in incompatible ways in future releases.
  1915. .IP "\fBgnu++1z\fR" 4
  1916. .IX Item "gnu++1z"
  1917. \&\s-1GNU\s0 dialect of \fB\-std=c++1z\fR. Support is highly experimental,
  1918. and will almost certainly change in incompatible ways in future
  1919. releases.
  1920. .RE
  1921. .RS 4
  1922. .RE
  1923. .IP "\fB\-fgnu89\-inline\fR" 4
  1924. .IX Item "-fgnu89-inline"
  1925. The option \fB\-fgnu89\-inline\fR tells \s-1GCC\s0 to use the traditional
  1926. \&\s-1GNU\s0 semantics for \f(CW\*(C`inline\*(C'\fR functions when in C99 mode.
  1927. .Sp
  1928. Using this option is roughly equivalent to adding the
  1929. \&\f(CW\*(C`gnu_inline\*(C'\fR function attribute to all inline functions.
  1930. .Sp
  1931. The option \fB\-fno\-gnu89\-inline\fR explicitly tells \s-1GCC\s0 to use the
  1932. C99 semantics for \f(CW\*(C`inline\*(C'\fR when in C99 or gnu99 mode (i.e., it
  1933. specifies the default behavior).
  1934. This option is not supported in \fB\-std=c90\fR or
  1935. \&\fB\-std=gnu90\fR mode.
  1936. .Sp
  1937. The preprocessor macros \f(CW\*(C`_\|_GNUC_GNU_INLINE_\|_\*(C'\fR and
  1938. \&\f(CW\*(C`_\|_GNUC_STDC_INLINE_\|_\*(C'\fR may be used to check which semantics are
  1939. in effect for \f(CW\*(C`inline\*(C'\fR functions.
  1940. .IP "\fB\-fpermitted\-flt\-eval\-methods=\fR\fIstyle\fR" 4
  1941. .IX Item "-fpermitted-flt-eval-methods=style"
  1942. \&\s-1ISO/IEC TS 18661\-3\s0 defines new permissible values for
  1943. \&\f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR that indicate that operations and constants with
  1944. a semantic type that is an interchange or extended format should be
  1945. evaluated to the precision and range of that type. These new values are
  1946. a superset of those permitted under C99/C11, which does not specify the
  1947. meaning of other positive values of \f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR. As such, code
  1948. conforming to C11 may not have been written expecting the possibility of
  1949. the new values.
  1950. .Sp
  1951. \&\fB\-fpermitted\-flt\-eval\-methods\fR specifies whether the compiler
  1952. should allow only the values of \f(CW\*(C`FLT_EVAL_METHOD\*(C'\fR specified in C99/C11,
  1953. or the extended set of values specified in \s-1ISO/IEC TS 18661\-3.\s0
  1954. .Sp
  1955. \&\fIstyle\fR is either \f(CW\*(C`c11\*(C'\fR or \f(CW\*(C`ts\-18661\-3\*(C'\fR as appropriate.
  1956. .Sp
  1957. The default when in a standards compliant mode (\fB\-std=c11\fR or similar)
  1958. is \fB\-fpermitted\-flt\-eval\-methods=c11\fR. The default when in a \s-1GNU\s0
  1959. dialect (\fB\-std=gnu11\fR or similar) is
  1960. \&\fB\-fpermitted\-flt\-eval\-methods=ts\-18661\-3\fR.
  1961. .IP "\fB\-aux\-info\fR \fIfilename\fR" 4
  1962. .IX Item "-aux-info filename"
  1963. Output to the given filename prototyped declarations for all functions
  1964. declared and/or defined in a translation unit, including those in header
  1965. files. This option is silently ignored in any language other than C.
  1966. .Sp
  1967. Besides declarations, the file indicates, in comments, the origin of
  1968. each declaration (source file and line), whether the declaration was
  1969. implicit, prototyped or unprototyped (\fBI\fR, \fBN\fR for new or
  1970. \&\fBO\fR for old, respectively, in the first character after the line
  1971. number and the colon), and whether it came from a declaration or a
  1972. definition (\fBC\fR or \fBF\fR, respectively, in the following
  1973. character). In the case of function definitions, a K&R\-style list of
  1974. arguments followed by their declarations is also provided, inside
  1975. comments, after the declaration.
  1976. .IP "\fB\-fallow\-parameterless\-variadic\-functions\fR" 4
  1977. .IX Item "-fallow-parameterless-variadic-functions"
  1978. Accept variadic functions without named parameters.
  1979. .Sp
  1980. Although it is possible to define such a function, this is not very
  1981. useful as it is not possible to read the arguments. This is only
  1982. supported for C as this construct is allowed by \*(C+.
  1983. .IP "\fB\-fno\-asm\fR" 4
  1984. .IX Item "-fno-asm"
  1985. Do not recognize \f(CW\*(C`asm\*(C'\fR, \f(CW\*(C`inline\*(C'\fR or \f(CW\*(C`typeof\*(C'\fR as a
  1986. keyword, so that code can use these words as identifiers. You can use
  1987. the keywords \f(CW\*(C`_\|_asm_\|_\*(C'\fR, \f(CW\*(C`_\|_inline_\|_\*(C'\fR and \f(CW\*(C`_\|_typeof_\|_\*(C'\fR
  1988. instead. \fB\-ansi\fR implies \fB\-fno\-asm\fR.
  1989. .Sp
  1990. In \*(C+, this switch only affects the \f(CW\*(C`typeof\*(C'\fR keyword, since
  1991. \&\f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`inline\*(C'\fR are standard keywords. You may want to
  1992. use the \fB\-fno\-gnu\-keywords\fR flag instead, which has the same
  1993. effect. In C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this
  1994. switch only affects the \f(CW\*(C`asm\*(C'\fR and \f(CW\*(C`typeof\*(C'\fR keywords, since
  1995. \&\f(CW\*(C`inline\*(C'\fR is a standard keyword in \s-1ISO C99.\s0
  1996. .IP "\fB\-fno\-builtin\fR" 4
  1997. .IX Item "-fno-builtin"
  1998. .PD 0
  1999. .IP "\fB\-fno\-builtin\-\fR\fIfunction\fR" 4
  2000. .IX Item "-fno-builtin-function"
  2001. .PD
  2002. Don't recognize built-in functions that do not begin with
  2003. \&\fB_\|_builtin_\fR as prefix.
  2004. .Sp
  2005. \&\s-1GCC\s0 normally generates special code to handle certain built-in functions
  2006. more efficiently; for instance, calls to \f(CW\*(C`alloca\*(C'\fR may become single
  2007. instructions which adjust the stack directly, and calls to \f(CW\*(C`memcpy\*(C'\fR
  2008. may become inline copy loops. The resulting code is often both smaller
  2009. and faster, but since the function calls no longer appear as such, you
  2010. cannot set a breakpoint on those calls, nor can you change the behavior
  2011. of the functions by linking with a different library. In addition,
  2012. when a function is recognized as a built-in function, \s-1GCC\s0 may use
  2013. information about that function to warn about problems with calls to
  2014. that function, or to generate more efficient code, even if the
  2015. resulting code still contains calls to that function. For example,
  2016. warnings are given with \fB\-Wformat\fR for bad calls to
  2017. \&\f(CW\*(C`printf\*(C'\fR when \f(CW\*(C`printf\*(C'\fR is built in and \f(CW\*(C`strlen\*(C'\fR is
  2018. known not to modify global memory.
  2019. .Sp
  2020. With the \fB\-fno\-builtin\-\fR\fIfunction\fR option
  2021. only the built-in function \fIfunction\fR is
  2022. disabled. \fIfunction\fR must not begin with \fB_\|_builtin_\fR. If a
  2023. function is named that is not built-in in this version of \s-1GCC,\s0 this
  2024. option is ignored. There is no corresponding
  2025. \&\fB\-fbuiltin\-\fR\fIfunction\fR option; if you wish to enable
  2026. built-in functions selectively when using \fB\-fno\-builtin\fR or
  2027. \&\fB\-ffreestanding\fR, you may define macros such as:
  2028. .Sp
  2029. .Vb 2
  2030. \& #define abs(n) _\|_builtin_abs ((n))
  2031. \& #define strcpy(d, s) _\|_builtin_strcpy ((d), (s))
  2032. .Ve
  2033. .IP "\fB\-fgimple\fR" 4
  2034. .IX Item "-fgimple"
  2035. Enable parsing of function definitions marked with \f(CW\*(C`_\|_GIMPLE\*(C'\fR.
  2036. This is an experimental feature that allows unit testing of \s-1GIMPLE\s0
  2037. passes.
  2038. .IP "\fB\-fhosted\fR" 4
  2039. .IX Item "-fhosted"
  2040. Assert that compilation targets a hosted environment. This implies
  2041. \&\fB\-fbuiltin\fR. A hosted environment is one in which the
  2042. entire standard library is available, and in which \f(CW\*(C`main\*(C'\fR has a return
  2043. type of \f(CW\*(C`int\*(C'\fR. Examples are nearly everything except a kernel.
  2044. This is equivalent to \fB\-fno\-freestanding\fR.
  2045. .IP "\fB\-ffreestanding\fR" 4
  2046. .IX Item "-ffreestanding"
  2047. Assert that compilation targets a freestanding environment. This
  2048. implies \fB\-fno\-builtin\fR. A freestanding environment
  2049. is one in which the standard library may not exist, and program startup may
  2050. not necessarily be at \f(CW\*(C`main\*(C'\fR. The most obvious example is an \s-1OS\s0 kernel.
  2051. This is equivalent to \fB\-fno\-hosted\fR.
  2052. .IP "\fB\-fopenacc\fR" 4
  2053. .IX Item "-fopenacc"
  2054. Enable handling of OpenACC directives \f(CW\*(C`#pragma acc\*(C'\fR in C/\*(C+ and
  2055. \&\f(CW\*(C`!$acc\*(C'\fR in Fortran. When \fB\-fopenacc\fR is specified, the
  2056. compiler generates accelerated code according to the OpenACC Application
  2057. Programming Interface v2.0 <\fBhttp://www.openacc.org/\fR>. This option
  2058. implies \fB\-pthread\fR, and thus is only supported on targets that
  2059. have support for \fB\-pthread\fR.
  2060. .IP "\fB\-fopenacc\-dim=\fR\fIgeom\fR" 4
  2061. .IX Item "-fopenacc-dim=geom"
  2062. Specify default compute dimensions for parallel offload regions that do
  2063. not explicitly specify. The \fIgeom\fR value is a triple of
  2064. \&':'\-separated sizes, in order 'gang', 'worker' and, 'vector'. A size
  2065. can be omitted, to use a target-specific default value.
  2066. .IP "\fB\-fopenmp\fR" 4
  2067. .IX Item "-fopenmp"
  2068. Enable handling of OpenMP directives \f(CW\*(C`#pragma omp\*(C'\fR in C/\*(C+ and
  2069. \&\f(CW\*(C`!$omp\*(C'\fR in Fortran. When \fB\-fopenmp\fR is specified, the
  2070. compiler generates parallel code according to the OpenMP Application
  2071. Program Interface v4.5 <\fBhttp://www.openmp.org/\fR>. This option
  2072. implies \fB\-pthread\fR, and thus is only supported on targets that
  2073. have support for \fB\-pthread\fR. \fB\-fopenmp\fR implies
  2074. \&\fB\-fopenmp\-simd\fR.
  2075. .IP "\fB\-fopenmp\-simd\fR" 4
  2076. .IX Item "-fopenmp-simd"
  2077. Enable handling of OpenMP's \s-1SIMD\s0 directives with \f(CW\*(C`#pragma omp\*(C'\fR
  2078. in C/\*(C+ and \f(CW\*(C`!$omp\*(C'\fR in Fortran. Other OpenMP directives
  2079. are ignored.
  2080. .IP "\fB\-fcilkplus\fR" 4
  2081. .IX Item "-fcilkplus"
  2082. Enable the usage of Cilk Plus language extension features for C/\*(C+.
  2083. When the option \fB\-fcilkplus\fR is specified, enable the usage of
  2084. the Cilk Plus Language extension features for C/\*(C+. The present
  2085. implementation follows \s-1ABI\s0 version 1.2. This is an experimental
  2086. feature that is only partially complete, and whose interface may
  2087. change in future versions of \s-1GCC\s0 as the official specification
  2088. changes. Currently, all features but \f(CW\*(C`_Cilk_for\*(C'\fR have been
  2089. implemented.
  2090. .IP "\fB\-fgnu\-tm\fR" 4
  2091. .IX Item "-fgnu-tm"
  2092. When the option \fB\-fgnu\-tm\fR is specified, the compiler
  2093. generates code for the Linux variant of Intel's current Transactional
  2094. Memory \s-1ABI\s0 specification document (Revision 1.1, May 6 2009). This is
  2095. an experimental feature whose interface may change in future versions
  2096. of \s-1GCC,\s0 as the official specification changes. Please note that not
  2097. all architectures are supported for this feature.
  2098. .Sp
  2099. For more information on \s-1GCC\s0's support for transactional memory,
  2100. .Sp
  2101. Note that the transactional memory feature is not supported with
  2102. non-call exceptions (\fB\-fnon\-call\-exceptions\fR).
  2103. .IP "\fB\-fms\-extensions\fR" 4
  2104. .IX Item "-fms-extensions"
  2105. Accept some non-standard constructs used in Microsoft header files.
  2106. .Sp
  2107. In \*(C+ code, this allows member names in structures to be similar
  2108. to previous types declarations.
  2109. .Sp
  2110. .Vb 4
  2111. \& typedef int UOW;
  2112. \& struct ABC {
  2113. \& UOW UOW;
  2114. \& };
  2115. .Ve
  2116. .Sp
  2117. Some cases of unnamed fields in structures and unions are only
  2118. accepted with this option.
  2119. .Sp
  2120. Note that this option is off for all targets but x86
  2121. targets using ms-abi.
  2122. .IP "\fB\-fplan9\-extensions\fR" 4
  2123. .IX Item "-fplan9-extensions"
  2124. Accept some non-standard constructs used in Plan 9 code.
  2125. .Sp
  2126. This enables \fB\-fms\-extensions\fR, permits passing pointers to
  2127. structures with anonymous fields to functions that expect pointers to
  2128. elements of the type of the field, and permits referring to anonymous
  2129. fields declared using a typedef. This is only
  2130. supported for C, not \*(C+.
  2131. .IP "\fB\-fcond\-mismatch\fR" 4
  2132. .IX Item "-fcond-mismatch"
  2133. Allow conditional expressions with mismatched types in the second and
  2134. third arguments. The value of such an expression is void. This option
  2135. is not supported for \*(C+.
  2136. .IP "\fB\-flax\-vector\-conversions\fR" 4
  2137. .IX Item "-flax-vector-conversions"
  2138. Allow implicit conversions between vectors with differing numbers of
  2139. elements and/or incompatible element types. This option should not be
  2140. used for new code.
  2141. .IP "\fB\-funsigned\-char\fR" 4
  2142. .IX Item "-funsigned-char"
  2143. Let the type \f(CW\*(C`char\*(C'\fR be unsigned, like \f(CW\*(C`unsigned char\*(C'\fR.
  2144. .Sp
  2145. Each kind of machine has a default for what \f(CW\*(C`char\*(C'\fR should
  2146. be. It is either like \f(CW\*(C`unsigned char\*(C'\fR by default or like
  2147. \&\f(CW\*(C`signed char\*(C'\fR by default.
  2148. .Sp
  2149. Ideally, a portable program should always use \f(CW\*(C`signed char\*(C'\fR or
  2150. \&\f(CW\*(C`unsigned char\*(C'\fR when it depends on the signedness of an object.
  2151. But many programs have been written to use plain \f(CW\*(C`char\*(C'\fR and
  2152. expect it to be signed, or expect it to be unsigned, depending on the
  2153. machines they were written for. This option, and its inverse, let you
  2154. make such a program work with the opposite default.
  2155. .Sp
  2156. The type \f(CW\*(C`char\*(C'\fR is always a distinct type from each of
  2157. \&\f(CW\*(C`signed char\*(C'\fR or \f(CW\*(C`unsigned char\*(C'\fR, even though its behavior
  2158. is always just like one of those two.
  2159. .IP "\fB\-fsigned\-char\fR" 4
  2160. .IX Item "-fsigned-char"
  2161. Let the type \f(CW\*(C`char\*(C'\fR be signed, like \f(CW\*(C`signed char\*(C'\fR.
  2162. .Sp
  2163. Note that this is equivalent to \fB\-fno\-unsigned\-char\fR, which is
  2164. the negative form of \fB\-funsigned\-char\fR. Likewise, the option
  2165. \&\fB\-fno\-signed\-char\fR is equivalent to \fB\-funsigned\-char\fR.
  2166. .IP "\fB\-fsigned\-bitfields\fR" 4
  2167. .IX Item "-fsigned-bitfields"
  2168. .PD 0
  2169. .IP "\fB\-funsigned\-bitfields\fR" 4
  2170. .IX Item "-funsigned-bitfields"
  2171. .IP "\fB\-fno\-signed\-bitfields\fR" 4
  2172. .IX Item "-fno-signed-bitfields"
  2173. .IP "\fB\-fno\-unsigned\-bitfields\fR" 4
  2174. .IX Item "-fno-unsigned-bitfields"
  2175. .PD
  2176. These options control whether a bit-field is signed or unsigned, when the
  2177. declaration does not use either \f(CW\*(C`signed\*(C'\fR or \f(CW\*(C`unsigned\*(C'\fR. By
  2178. default, such a bit-field is signed, because this is consistent: the
  2179. basic integer types such as \f(CW\*(C`int\*(C'\fR are signed types.
  2180. .IP "\fB\-fsso\-struct=\fR\fIendianness\fR" 4
  2181. .IX Item "-fsso-struct=endianness"
  2182. Set the default scalar storage order of structures and unions to the
  2183. specified endianness. The accepted values are \fBbig-endian\fR,
  2184. \&\fBlittle-endian\fR and \fBnative\fR for the native endianness of
  2185. the target (the default). This option is not supported for \*(C+.
  2186. .Sp
  2187. \&\fBWarning:\fR the \fB\-fsso\-struct\fR switch causes \s-1GCC\s0 to generate
  2188. code that is not binary compatible with code generated without it if the
  2189. specified endianness is not the native endianness of the target.
  2190. .SS "Options Controlling \*(C+ Dialect"
  2191. .IX Subsection "Options Controlling Dialect"
  2192. This section describes the command-line options that are only meaningful
  2193. for \*(C+ programs. You can also use most of the \s-1GNU\s0 compiler options
  2194. regardless of what language your program is in. For example, you
  2195. might compile a file \fIfirstClass.C\fR like this:
  2196. .PP
  2197. .Vb 1
  2198. \& g++ \-g \-fstrict\-enums \-O \-c firstClass.C
  2199. .Ve
  2200. .PP
  2201. In this example, only \fB\-fstrict\-enums\fR is an option meant
  2202. only for \*(C+ programs; you can use the other options with any
  2203. language supported by \s-1GCC.\s0
  2204. .PP
  2205. Some options for compiling C programs, such as \fB\-std\fR, are also
  2206. relevant for \*(C+ programs.
  2207. .PP
  2208. Here is a list of options that are \fIonly\fR for compiling \*(C+ programs:
  2209. .IP "\fB\-fabi\-version=\fR\fIn\fR" 4
  2210. .IX Item "-fabi-version=n"
  2211. Use version \fIn\fR of the \*(C+ \s-1ABI. \s0 The default is version 0.
  2212. .Sp
  2213. Version 0 refers to the version conforming most closely to
  2214. the \*(C+ \s-1ABI\s0 specification. Therefore, the \s-1ABI\s0 obtained using version 0
  2215. will change in different versions of G++ as \s-1ABI\s0 bugs are fixed.
  2216. .Sp
  2217. Version 1 is the version of the \*(C+ \s-1ABI\s0 that first appeared in G++ 3.2.
  2218. .Sp
  2219. Version 2 is the version of the \*(C+ \s-1ABI\s0 that first appeared in G++
  2220. 3.4, and was the default through G++ 4.9.
  2221. .Sp
  2222. Version 3 corrects an error in mangling a constant address as a
  2223. template argument.
  2224. .Sp
  2225. Version 4, which first appeared in G++ 4.5, implements a standard
  2226. mangling for vector types.
  2227. .Sp
  2228. Version 5, which first appeared in G++ 4.6, corrects the mangling of
  2229. attribute const/volatile on function pointer types, decltype of a
  2230. plain decl, and use of a function parameter in the declaration of
  2231. another parameter.
  2232. .Sp
  2233. Version 6, which first appeared in G++ 4.7, corrects the promotion
  2234. behavior of \*(C+11 scoped enums and the mangling of template argument
  2235. packs, const/static_cast, prefix ++ and \-\-, and a class scope function
  2236. used as a template argument.
  2237. .Sp
  2238. Version 7, which first appeared in G++ 4.8, that treats nullptr_t as a
  2239. builtin type and corrects the mangling of lambdas in default argument
  2240. scope.
  2241. .Sp
  2242. Version 8, which first appeared in G++ 4.9, corrects the substitution
  2243. behavior of function types with function-cv-qualifiers.
  2244. .Sp
  2245. Version 9, which first appeared in G++ 5.2, corrects the alignment of
  2246. \&\f(CW\*(C`nullptr_t\*(C'\fR.
  2247. .Sp
  2248. Version 10, which first appeared in G++ 6.1, adds mangling of
  2249. attributes that affect type identity, such as ia32 calling convention
  2250. attributes (e.g. \fBstdcall\fR).
  2251. .Sp
  2252. Version 11, which first appeared in G++ 7, corrects the mangling of
  2253. sizeof... expressions and operator names. For multiple entities with
  2254. the same name within a function, that are declared in different scopes,
  2255. the mangling now changes starting with the twelfth occurrence. It also
  2256. implies \fB\-fnew\-inheriting\-ctors\fR.
  2257. .Sp
  2258. See also \fB\-Wabi\fR.
  2259. .IP "\fB\-fabi\-compat\-version=\fR\fIn\fR" 4
  2260. .IX Item "-fabi-compat-version=n"
  2261. On targets that support strong aliases, G++
  2262. works around mangling changes by creating an alias with the correct
  2263. mangled name when defining a symbol with an incorrect mangled name.
  2264. This switch specifies which \s-1ABI\s0 version to use for the alias.
  2265. .Sp
  2266. With \fB\-fabi\-version=0\fR (the default), this defaults to 8 (\s-1GCC 5\s0
  2267. compatibility). If another \s-1ABI\s0 version is explicitly selected, this
  2268. defaults to 0. For compatibility with \s-1GCC\s0 versions 3.2 through 4.9,
  2269. use \fB\-fabi\-compat\-version=2\fR.
  2270. .Sp
  2271. If this option is not provided but \fB\-Wabi=\fR\fIn\fR is, that
  2272. version is used for compatibility aliases. If this option is provided
  2273. along with \fB\-Wabi\fR (without the version), the version from this
  2274. option is used for the warning.
  2275. .IP "\fB\-fno\-access\-control\fR" 4
  2276. .IX Item "-fno-access-control"
  2277. Turn off all access checking. This switch is mainly useful for working
  2278. around bugs in the access control code.
  2279. .IP "\fB\-faligned\-new\fR" 4
  2280. .IX Item "-faligned-new"
  2281. Enable support for \*(C+17 \f(CW\*(C`new\*(C'\fR of types that require more
  2282. alignment than \f(CW\*(C`void* ::operator new(std::size_t)\*(C'\fR provides. A
  2283. numeric argument such as \f(CW\*(C`\-faligned\-new=32\*(C'\fR can be used to
  2284. specify how much alignment (in bytes) is provided by that function,
  2285. but few users will need to override the default of
  2286. \&\f(CW\*(C`alignof(std::max_align_t)\*(C'\fR.
  2287. .IP "\fB\-fcheck\-new\fR" 4
  2288. .IX Item "-fcheck-new"
  2289. Check that the pointer returned by \f(CW\*(C`operator new\*(C'\fR is non-null
  2290. before attempting to modify the storage allocated. This check is
  2291. normally unnecessary because the \*(C+ standard specifies that
  2292. \&\f(CW\*(C`operator new\*(C'\fR only returns \f(CW0\fR if it is declared
  2293. \&\f(CW\*(C`throw()\*(C'\fR, in which case the compiler always checks the
  2294. return value even without this option. In all other cases, when
  2295. \&\f(CW\*(C`operator new\*(C'\fR has a non-empty exception specification, memory
  2296. exhaustion is signalled by throwing \f(CW\*(C`std::bad_alloc\*(C'\fR. See also
  2297. \&\fBnew (nothrow)\fR.
  2298. .IP "\fB\-fconcepts\fR" 4
  2299. .IX Item "-fconcepts"
  2300. Enable support for the \*(C+ Extensions for Concepts Technical
  2301. Specification, \s-1ISO 19217 \s0(2015), which allows code like
  2302. .Sp
  2303. .Vb 2
  2304. \& template <class T> concept bool Addable = requires (T t) { t + t; };
  2305. \& template <Addable T> T add (T a, T b) { return a + b; }
  2306. .Ve
  2307. .IP "\fB\-fconstexpr\-depth=\fR\fIn\fR" 4
  2308. .IX Item "-fconstexpr-depth=n"
  2309. Set the maximum nested evaluation depth for \*(C+11 constexpr functions
  2310. to \fIn\fR. A limit is needed to detect endless recursion during
  2311. constant expression evaluation. The minimum specified by the standard
  2312. is 512.
  2313. .IP "\fB\-fconstexpr\-loop\-limit=\fR\fIn\fR" 4
  2314. .IX Item "-fconstexpr-loop-limit=n"
  2315. Set the maximum number of iterations for a loop in \*(C+14 constexpr functions
  2316. to \fIn\fR. A limit is needed to detect infinite loops during
  2317. constant expression evaluation. The default is 262144 (1<<18).
  2318. .IP "\fB\-fdeduce\-init\-list\fR" 4
  2319. .IX Item "-fdeduce-init-list"
  2320. Enable deduction of a template type parameter as
  2321. \&\f(CW\*(C`std::initializer_list\*(C'\fR from a brace-enclosed initializer list, i.e.
  2322. .Sp
  2323. .Vb 4
  2324. \& template <class T> auto forward(T t) \-> decltype (realfn (t))
  2325. \& {
  2326. \& return realfn (t);
  2327. \& }
  2328. \&
  2329. \& void f()
  2330. \& {
  2331. \& forward({1,2}); // call forward<std::initializer_list<int>>
  2332. \& }
  2333. .Ve
  2334. .Sp
  2335. This deduction was implemented as a possible extension to the
  2336. originally proposed semantics for the \*(C+11 standard, but was not part
  2337. of the final standard, so it is disabled by default. This option is
  2338. deprecated, and may be removed in a future version of G++.
  2339. .IP "\fB\-ffriend\-injection\fR" 4
  2340. .IX Item "-ffriend-injection"
  2341. Inject friend functions into the enclosing namespace, so that they are
  2342. visible outside the scope of the class in which they are declared.
  2343. Friend functions were documented to work this way in the old Annotated
  2344. \&\*(C+ Reference Manual.
  2345. However, in \s-1ISO \*(C+\s0 a friend function that is not declared
  2346. in an enclosing scope can only be found using argument dependent
  2347. lookup. \s-1GCC\s0 defaults to the standard behavior.
  2348. .Sp
  2349. This option is for compatibility, and may be removed in a future
  2350. release of G++.
  2351. .IP "\fB\-fno\-elide\-constructors\fR" 4
  2352. .IX Item "-fno-elide-constructors"
  2353. The \*(C+ standard allows an implementation to omit creating a temporary
  2354. that is only used to initialize another object of the same type.
  2355. Specifying this option disables that optimization, and forces G++ to
  2356. call the copy constructor in all cases. This option also causes G++
  2357. to call trivial member functions which otherwise would be expanded inline.
  2358. .Sp
  2359. In \*(C+17, the compiler is required to omit these temporaries, but this
  2360. option still affects trivial member functions.
  2361. .IP "\fB\-fno\-enforce\-eh\-specs\fR" 4
  2362. .IX Item "-fno-enforce-eh-specs"
  2363. Don't generate code to check for violation of exception specifications
  2364. at run time. This option violates the \*(C+ standard, but may be useful
  2365. for reducing code size in production builds, much like defining
  2366. \&\f(CW\*(C`NDEBUG\*(C'\fR. This does not give user code permission to throw
  2367. exceptions in violation of the exception specifications; the compiler
  2368. still optimizes based on the specifications, so throwing an
  2369. unexpected exception results in undefined behavior at run time.
  2370. .IP "\fB\-fextern\-tls\-init\fR" 4
  2371. .IX Item "-fextern-tls-init"
  2372. .PD 0
  2373. .IP "\fB\-fno\-extern\-tls\-init\fR" 4
  2374. .IX Item "-fno-extern-tls-init"
  2375. .PD
  2376. The \*(C+11 and OpenMP standards allow \f(CW\*(C`thread_local\*(C'\fR and
  2377. \&\f(CW\*(C`threadprivate\*(C'\fR variables to have dynamic (runtime)
  2378. initialization. To support this, any use of such a variable goes
  2379. through a wrapper function that performs any necessary initialization.
  2380. When the use and definition of the variable are in the same
  2381. translation unit, this overhead can be optimized away, but when the
  2382. use is in a different translation unit there is significant overhead
  2383. even if the variable doesn't actually need dynamic initialization. If
  2384. the programmer can be sure that no use of the variable in a
  2385. non-defining \s-1TU\s0 needs to trigger dynamic initialization (either
  2386. because the variable is statically initialized, or a use of the
  2387. variable in the defining \s-1TU\s0 will be executed before any uses in
  2388. another \s-1TU\s0), they can avoid this overhead with the
  2389. \&\fB\-fno\-extern\-tls\-init\fR option.
  2390. .Sp
  2391. On targets that support symbol aliases, the default is
  2392. \&\fB\-fextern\-tls\-init\fR. On targets that do not support symbol
  2393. aliases, the default is \fB\-fno\-extern\-tls\-init\fR.
  2394. .IP "\fB\-ffor\-scope\fR" 4
  2395. .IX Item "-ffor-scope"
  2396. .PD 0
  2397. .IP "\fB\-fno\-for\-scope\fR" 4
  2398. .IX Item "-fno-for-scope"
  2399. .PD
  2400. If \fB\-ffor\-scope\fR is specified, the scope of variables declared in
  2401. a \fIfor-init-statement\fR is limited to the \f(CW\*(C`for\*(C'\fR loop itself,
  2402. as specified by the \*(C+ standard.
  2403. If \fB\-fno\-for\-scope\fR is specified, the scope of variables declared in
  2404. a \fIfor-init-statement\fR extends to the end of the enclosing scope,
  2405. as was the case in old versions of G++, and other (traditional)
  2406. implementations of \*(C+.
  2407. .Sp
  2408. If neither flag is given, the default is to follow the standard,
  2409. but to allow and give a warning for old-style code that would
  2410. otherwise be invalid, or have different behavior.
  2411. .IP "\fB\-fno\-gnu\-keywords\fR" 4
  2412. .IX Item "-fno-gnu-keywords"
  2413. Do not recognize \f(CW\*(C`typeof\*(C'\fR as a keyword, so that code can use this
  2414. word as an identifier. You can use the keyword \f(CW\*(C`_\|_typeof_\|_\*(C'\fR instead.
  2415. This option is implied by the strict \s-1ISO \*(C+\s0 dialects: \fB\-ansi\fR,
  2416. \&\fB\-std=c++98\fR, \fB\-std=c++11\fR, etc.
  2417. .IP "\fB\-fno\-implicit\-templates\fR" 4
  2418. .IX Item "-fno-implicit-templates"
  2419. Never emit code for non-inline templates that are instantiated
  2420. implicitly (i.e. by use); only emit code for explicit instantiations.
  2421. .IP "\fB\-fno\-implicit\-inline\-templates\fR" 4
  2422. .IX Item "-fno-implicit-inline-templates"
  2423. Don't emit code for implicit instantiations of inline templates, either.
  2424. The default is to handle inlines differently so that compiles with and
  2425. without optimization need the same set of explicit instantiations.
  2426. .IP "\fB\-fno\-implement\-inlines\fR" 4
  2427. .IX Item "-fno-implement-inlines"
  2428. To save space, do not emit out-of-line copies of inline functions
  2429. controlled by \f(CW\*(C`#pragma implementation\*(C'\fR. This causes linker
  2430. errors if these functions are not inlined everywhere they are called.
  2431. .IP "\fB\-fms\-extensions\fR" 4
  2432. .IX Item "-fms-extensions"
  2433. Disable Wpedantic warnings about constructs used in \s-1MFC,\s0 such as implicit
  2434. int and getting a pointer to member function via non-standard syntax.
  2435. .IP "\fB\-fnew\-inheriting\-ctors\fR" 4
  2436. .IX Item "-fnew-inheriting-ctors"
  2437. Enable the P0136 adjustment to the semantics of \*(C+11 constructor
  2438. inheritance. This is part of \*(C+17 but also considered to be a Defect
  2439. Report against \*(C+11 and \*(C+14. This flag is enabled by default
  2440. unless \fB\-fabi\-version=10\fR or lower is specified.
  2441. .IP "\fB\-fnew\-ttp\-matching\fR" 4
  2442. .IX Item "-fnew-ttp-matching"
  2443. Enable the P0522 resolution to Core issue 150, template template
  2444. parameters and default arguments: this allows a template with default
  2445. template arguments as an argument for a template template parameter
  2446. with fewer template parameters. This flag is enabled by default for
  2447. \&\fB\-std=c++1z\fR.
  2448. .IP "\fB\-fno\-nonansi\-builtins\fR" 4
  2449. .IX Item "-fno-nonansi-builtins"
  2450. Disable built-in declarations of functions that are not mandated by
  2451. \&\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,
  2452. \&\f(CW\*(C`index\*(C'\fR, \f(CW\*(C`bzero\*(C'\fR, \f(CW\*(C`conjf\*(C'\fR, and other related functions.
  2453. .IP "\fB\-fnothrow\-opt\fR" 4
  2454. .IX Item "-fnothrow-opt"
  2455. Treat a \f(CW\*(C`throw()\*(C'\fR exception specification as if it were a
  2456. \&\f(CW\*(C`noexcept\*(C'\fR specification to reduce or eliminate the text size
  2457. overhead relative to a function with no exception specification. If
  2458. the function has local variables of types with non-trivial
  2459. destructors, the exception specification actually makes the
  2460. function smaller because the \s-1EH\s0 cleanups for those variables can be
  2461. optimized away. The semantic effect is that an exception thrown out of
  2462. a function with such an exception specification results in a call
  2463. to \f(CW\*(C`terminate\*(C'\fR rather than \f(CW\*(C`unexpected\*(C'\fR.
  2464. .IP "\fB\-fno\-operator\-names\fR" 4
  2465. .IX Item "-fno-operator-names"
  2466. Do not treat the operator name keywords \f(CW\*(C`and\*(C'\fR, \f(CW\*(C`bitand\*(C'\fR,
  2467. \&\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
  2468. synonyms as keywords.
  2469. .IP "\fB\-fno\-optional\-diags\fR" 4
  2470. .IX Item "-fno-optional-diags"
  2471. Disable diagnostics that the standard says a compiler does not need to
  2472. issue. Currently, the only such diagnostic issued by G++ is the one for
  2473. a name having multiple meanings within a class.
  2474. .IP "\fB\-fpermissive\fR" 4
  2475. .IX Item "-fpermissive"
  2476. Downgrade some diagnostics about nonconformant code from errors to
  2477. warnings. Thus, using \fB\-fpermissive\fR allows some
  2478. nonconforming code to compile.
  2479. .IP "\fB\-fno\-pretty\-templates\fR" 4
  2480. .IX Item "-fno-pretty-templates"
  2481. When an error message refers to a specialization of a function
  2482. template, the compiler normally prints the signature of the
  2483. template followed by the template arguments and any typedefs or
  2484. typenames in the signature (e.g. \f(CW\*(C`void f(T) [with T = int]\*(C'\fR
  2485. rather than \f(CW\*(C`void f(int)\*(C'\fR) so that it's clear which template is
  2486. involved. When an error message refers to a specialization of a class
  2487. template, the compiler omits any template arguments that match
  2488. the default template arguments for that template. If either of these
  2489. behaviors make it harder to understand the error message rather than
  2490. easier, you can use \fB\-fno\-pretty\-templates\fR to disable them.
  2491. .IP "\fB\-frepo\fR" 4
  2492. .IX Item "-frepo"
  2493. Enable automatic template instantiation at link time. This option also
  2494. implies \fB\-fno\-implicit\-templates\fR.
  2495. .IP "\fB\-fno\-rtti\fR" 4
  2496. .IX Item "-fno-rtti"
  2497. Disable generation of information about every class with virtual
  2498. functions for use by the \*(C+ run-time type identification features
  2499. (\f(CW\*(C`dynamic_cast\*(C'\fR and \f(CW\*(C`typeid\*(C'\fR). If you don't use those parts
  2500. of the language, you can save some space by using this flag. Note that
  2501. exception handling uses the same information, but G++ generates it as
  2502. needed. The \f(CW\*(C`dynamic_cast\*(C'\fR operator can still be used for casts that
  2503. do not require run-time type information, i.e. casts to \f(CW\*(C`void *\*(C'\fR or to
  2504. unambiguous base classes.
  2505. .IP "\fB\-fsized\-deallocation\fR" 4
  2506. .IX Item "-fsized-deallocation"
  2507. Enable the built-in global declarations
  2508. .Sp
  2509. .Vb 2
  2510. \& void operator delete (void *, std::size_t) noexcept;
  2511. \& void operator delete[] (void *, std::size_t) noexcept;
  2512. .Ve
  2513. .Sp
  2514. as introduced in \*(C+14. This is useful for user-defined replacement
  2515. deallocation functions that, for example, use the size of the object
  2516. to make deallocation faster. Enabled by default under
  2517. \&\fB\-std=c++14\fR and above. The flag \fB\-Wsized\-deallocation\fR
  2518. warns about places that might want to add a definition.
  2519. .IP "\fB\-fstrict\-enums\fR" 4
  2520. .IX Item "-fstrict-enums"
  2521. Allow the compiler to optimize using the assumption that a value of
  2522. enumerated type can only be one of the values of the enumeration (as
  2523. defined in the \*(C+ standard; basically, a value that can be
  2524. represented in the minimum number of bits needed to represent all the
  2525. enumerators). This assumption may not be valid if the program uses a
  2526. cast to convert an arbitrary integer value to the enumerated type.
  2527. .IP "\fB\-fstrong\-eval\-order\fR" 4
  2528. .IX Item "-fstrong-eval-order"
  2529. Evaluate member access, array subscripting, and shift expressions in
  2530. left-to-right order, and evaluate assignment in right-to-left order,
  2531. as adopted for \*(C+17. Enabled by default with \fB\-std=c++1z\fR.
  2532. \&\fB\-fstrong\-eval\-order=some\fR enables just the ordering of member
  2533. access and shift expressions, and is the default without
  2534. \&\fB\-std=c++1z\fR.
  2535. .IP "\fB\-ftemplate\-backtrace\-limit=\fR\fIn\fR" 4
  2536. .IX Item "-ftemplate-backtrace-limit=n"
  2537. Set the maximum number of template instantiation notes for a single
  2538. warning or error to \fIn\fR. The default value is 10.
  2539. .IP "\fB\-ftemplate\-depth=\fR\fIn\fR" 4
  2540. .IX Item "-ftemplate-depth=n"
  2541. Set the maximum instantiation depth for template classes to \fIn\fR.
  2542. A limit on the template instantiation depth is needed to detect
  2543. endless recursions during template class instantiation. \s-1ANSI/ISO \*(C+\s0
  2544. conforming programs must not rely on a maximum depth greater than 17
  2545. (changed to 1024 in \*(C+11). The default value is 900, as the compiler
  2546. can run out of stack space before hitting 1024 in some situations.
  2547. .IP "\fB\-fno\-threadsafe\-statics\fR" 4
  2548. .IX Item "-fno-threadsafe-statics"
  2549. Do not emit the extra code to use the routines specified in the \*(C+
  2550. \&\s-1ABI\s0 for thread-safe initialization of local statics. You can use this
  2551. option to reduce code size slightly in code that doesn't need to be
  2552. thread-safe.
  2553. .IP "\fB\-fuse\-cxa\-atexit\fR" 4
  2554. .IX Item "-fuse-cxa-atexit"
  2555. Register destructors for objects with static storage duration with the
  2556. \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR function rather than the \f(CW\*(C`atexit\*(C'\fR function.
  2557. This option is required for fully standards-compliant handling of static
  2558. destructors, but only works if your C library supports
  2559. \&\f(CW\*(C`_\|_cxa_atexit\*(C'\fR.
  2560. .IP "\fB\-fno\-use\-cxa\-get\-exception\-ptr\fR" 4
  2561. .IX Item "-fno-use-cxa-get-exception-ptr"
  2562. Don't use the \f(CW\*(C`_\|_cxa_get_exception_ptr\*(C'\fR runtime routine. This
  2563. causes \f(CW\*(C`std::uncaught_exception\*(C'\fR to be incorrect, but is necessary
  2564. if the runtime routine is not available.
  2565. .IP "\fB\-fvisibility\-inlines\-hidden\fR" 4
  2566. .IX Item "-fvisibility-inlines-hidden"
  2567. This switch declares that the user does not attempt to compare
  2568. pointers to inline functions or methods where the addresses of the two functions
  2569. are taken in different shared objects.
  2570. .Sp
  2571. The effect of this is that \s-1GCC\s0 may, effectively, mark inline methods with
  2572. \&\f(CW\*(C`_\|_attribute_\|_ ((visibility ("hidden")))\*(C'\fR so that they do not
  2573. appear in the export table of a \s-1DSO\s0 and do not require a \s-1PLT\s0 indirection
  2574. when used within the \s-1DSO. \s0 Enabling this option can have a dramatic effect
  2575. on load and link times of a \s-1DSO\s0 as it massively reduces the size of the
  2576. dynamic export table when the library makes heavy use of templates.
  2577. .Sp
  2578. The behavior of this switch is not quite the same as marking the
  2579. methods as hidden directly, because it does not affect static variables
  2580. local to the function or cause the compiler to deduce that
  2581. the function is defined in only one shared object.
  2582. .Sp
  2583. You may mark a method as having a visibility explicitly to negate the
  2584. effect of the switch for that method. For example, if you do want to
  2585. compare pointers to a particular inline method, you might mark it as
  2586. having default visibility. Marking the enclosing class with explicit
  2587. visibility has no effect.
  2588. .Sp
  2589. Explicitly instantiated inline methods are unaffected by this option
  2590. as their linkage might otherwise cross a shared library boundary.
  2591. .IP "\fB\-fvisibility\-ms\-compat\fR" 4
  2592. .IX Item "-fvisibility-ms-compat"
  2593. This flag attempts to use visibility settings to make \s-1GCC\s0's \*(C+
  2594. linkage model compatible with that of Microsoft Visual Studio.
  2595. .Sp
  2596. The flag makes these changes to \s-1GCC\s0's linkage model:
  2597. .RS 4
  2598. .IP "1." 4
  2599. .IX Item "1."
  2600. It sets the default visibility to \f(CW\*(C`hidden\*(C'\fR, like
  2601. \&\fB\-fvisibility=hidden\fR.
  2602. .IP "2." 4
  2603. .IX Item "2."
  2604. Types, but not their members, are not hidden by default.
  2605. .IP "3." 4
  2606. .IX Item "3."
  2607. The One Definition Rule is relaxed for types without explicit
  2608. visibility specifications that are defined in more than one
  2609. shared object: those declarations are permitted if they are
  2610. permitted when this option is not used.
  2611. .RE
  2612. .RS 4
  2613. .Sp
  2614. In new code it is better to use \fB\-fvisibility=hidden\fR and
  2615. export those classes that are intended to be externally visible.
  2616. Unfortunately it is possible for code to rely, perhaps accidentally,
  2617. on the Visual Studio behavior.
  2618. .Sp
  2619. Among the consequences of these changes are that static data members
  2620. of the same type with the same name but defined in different shared
  2621. objects are different, so changing one does not change the other;
  2622. and that pointers to function members defined in different shared
  2623. objects may not compare equal. When this flag is given, it is a
  2624. violation of the \s-1ODR\s0 to define types with the same name differently.
  2625. .RE
  2626. .IP "\fB\-fno\-weak\fR" 4
  2627. .IX Item "-fno-weak"
  2628. Do not use weak symbol support, even if it is provided by the linker.
  2629. By default, G++ uses weak symbols if they are available. This
  2630. option exists only for testing, and should not be used by end-users;
  2631. it results in inferior code and has no benefits. This option may
  2632. be removed in a future release of G++.
  2633. .IP "\fB\-nostdinc++\fR" 4
  2634. .IX Item "-nostdinc++"
  2635. Do not search for header files in the standard directories specific to
  2636. \&\*(C+, but do still search the other standard directories. (This option
  2637. is used when building the \*(C+ library.)
  2638. .PP
  2639. In addition, these optimization, warning, and code generation options
  2640. have meanings only for \*(C+ programs:
  2641. .IP "\fB\-Wabi\fR (C, Objective-C, \*(C+ and Objective\-\*(C+ only)" 4
  2642. .IX Item "-Wabi (C, Objective-C, and Objective- only)"
  2643. Warn when G++ it generates code that is probably not compatible with
  2644. the vendor-neutral \*(C+ \s-1ABI. \s0 Since G++ now defaults to updating the
  2645. \&\s-1ABI\s0 with each major release, normally \fB\-Wabi\fR will warn only if
  2646. there is a check added later in a release series for an \s-1ABI\s0 issue
  2647. discovered since the initial release. \fB\-Wabi\fR will warn about
  2648. more things if an older \s-1ABI\s0 version is selected (with
  2649. \&\fB\-fabi\-version=\fR\fIn\fR).
  2650. .Sp
  2651. \&\fB\-Wabi\fR can also be used with an explicit version number to
  2652. warn about compatibility with a particular \fB\-fabi\-version\fR
  2653. level, e.g. \fB\-Wabi=2\fR to warn about changes relative to
  2654. \&\fB\-fabi\-version=2\fR.
  2655. .Sp
  2656. If an explicit version number is provided and
  2657. \&\fB\-fabi\-compat\-version\fR is not specified, the version number
  2658. from this option is used for compatibility aliases. If no explicit
  2659. version number is provided with this option, but
  2660. \&\fB\-fabi\-compat\-version\fR is specified, that version number is
  2661. used for \s-1ABI\s0 warnings.
  2662. .Sp
  2663. Although an effort has been made to warn about
  2664. all such cases, there are probably some cases that are not warned about,
  2665. even though G++ is generating incompatible code. There may also be
  2666. cases where warnings are emitted even though the code that is generated
  2667. is compatible.
  2668. .Sp
  2669. You should rewrite your code to avoid these warnings if you are
  2670. concerned about the fact that code generated by G++ may not be binary
  2671. compatible with code generated by other compilers.
  2672. .Sp
  2673. Known incompatibilities in \fB\-fabi\-version=2\fR (which was the
  2674. default from \s-1GCC 3.4\s0 to 4.9) include:
  2675. .RS 4
  2676. .IP "*" 4
  2677. A template with a non-type template parameter of reference type was
  2678. mangled incorrectly:
  2679. .Sp
  2680. .Vb 3
  2681. \& extern int N;
  2682. \& template <int &> struct S {};
  2683. \& void n (S<N>) {2}
  2684. .Ve
  2685. .Sp
  2686. This was fixed in \fB\-fabi\-version=3\fR.
  2687. .IP "*" 4
  2688. \&\s-1SIMD\s0 vector types declared using \f(CW\*(C`_\|_attribute ((vector_size))\*(C'\fR were
  2689. mangled in a non-standard way that does not allow for overloading of
  2690. functions taking vectors of different sizes.
  2691. .Sp
  2692. The mangling was changed in \fB\-fabi\-version=4\fR.
  2693. .IP "*" 4
  2694. \&\f(CW\*(C`_\|_attribute ((const))\*(C'\fR and \f(CW\*(C`noreturn\*(C'\fR were mangled as type
  2695. qualifiers, and \f(CW\*(C`decltype\*(C'\fR of a plain declaration was folded away.
  2696. .Sp
  2697. These mangling issues were fixed in \fB\-fabi\-version=5\fR.
  2698. .IP "*" 4
  2699. Scoped enumerators passed as arguments to a variadic function are
  2700. promoted like unscoped enumerators, causing \f(CW\*(C`va_arg\*(C'\fR to complain.
  2701. On most targets this does not actually affect the parameter passing
  2702. \&\s-1ABI,\s0 as there is no way to pass an argument smaller than \f(CW\*(C`int\*(C'\fR.
  2703. .Sp
  2704. Also, the \s-1ABI\s0 changed the mangling of template argument packs,
  2705. \&\f(CW\*(C`const_cast\*(C'\fR, \f(CW\*(C`static_cast\*(C'\fR, prefix increment/decrement, and
  2706. a class scope function used as a template argument.
  2707. .Sp
  2708. These issues were corrected in \fB\-fabi\-version=6\fR.
  2709. .IP "*" 4
  2710. Lambdas in default argument scope were mangled incorrectly, and the
  2711. \&\s-1ABI\s0 changed the mangling of \f(CW\*(C`nullptr_t\*(C'\fR.
  2712. .Sp
  2713. These issues were corrected in \fB\-fabi\-version=7\fR.
  2714. .IP "*" 4
  2715. When mangling a function type with function-cv-qualifiers, the
  2716. un-qualified function type was incorrectly treated as a substitution
  2717. candidate.
  2718. .Sp
  2719. This was fixed in \fB\-fabi\-version=8\fR, the default for \s-1GCC 5.1.\s0
  2720. .IP "*" 4
  2721. \&\f(CW\*(C`decltype(nullptr)\*(C'\fR incorrectly had an alignment of 1, leading to
  2722. unaligned accesses. Note that this did not affect the \s-1ABI\s0 of a
  2723. function with a \f(CW\*(C`nullptr_t\*(C'\fR parameter, as parameters have a
  2724. minimum alignment.
  2725. .Sp
  2726. This was fixed in \fB\-fabi\-version=9\fR, the default for \s-1GCC 5.2.\s0
  2727. .IP "*" 4
  2728. Target-specific attributes that affect the identity of a type, such as
  2729. ia32 calling conventions on a function type (stdcall, regparm, etc.),
  2730. did not affect the mangled name, leading to name collisions when
  2731. function pointers were used as template arguments.
  2732. .Sp
  2733. This was fixed in \fB\-fabi\-version=10\fR, the default for \s-1GCC 6.1.\s0
  2734. .RE
  2735. .RS 4
  2736. .Sp
  2737. It also warns about psABI-related changes. The known psABI changes at this
  2738. point include:
  2739. .IP "*" 4
  2740. For SysV/x86\-64, unions with \f(CW\*(C`long double\*(C'\fR members are
  2741. passed in memory as specified in psABI. For example:
  2742. .Sp
  2743. .Vb 4
  2744. \& union U {
  2745. \& long double ld;
  2746. \& int i;
  2747. \& };
  2748. .Ve
  2749. .Sp
  2750. \&\f(CW\*(C`union U\*(C'\fR is always passed in memory.
  2751. .RE
  2752. .RS 4
  2753. .RE
  2754. .IP "\fB\-Wabi\-tag\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2755. .IX Item "-Wabi-tag ( and Objective- only)"
  2756. Warn when a type with an \s-1ABI\s0 tag is used in a context that does not
  2757. have that \s-1ABI\s0 tag. See \fB\*(C+ Attributes\fR for more information
  2758. about \s-1ABI\s0 tags.
  2759. .IP "\fB\-Wctor\-dtor\-privacy\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2760. .IX Item "-Wctor-dtor-privacy ( and Objective- only)"
  2761. Warn when a class seems unusable because all the constructors or
  2762. destructors in that class are private, and it has neither friends nor
  2763. public static member functions. Also warn if there are no non-private
  2764. methods, and there's at least one private member function that isn't
  2765. a constructor or destructor.
  2766. .IP "\fB\-Wdelete\-non\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2767. .IX Item "-Wdelete-non-virtual-dtor ( and Objective- only)"
  2768. Warn when \f(CW\*(C`delete\*(C'\fR is used to destroy an instance of a class that
  2769. has virtual functions and non-virtual destructor. It is unsafe to delete
  2770. an instance of a derived class through a pointer to a base class if the
  2771. base class does not have a virtual destructor. This warning is enabled
  2772. by \fB\-Wall\fR.
  2773. .IP "\fB\-Wliteral\-suffix\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2774. .IX Item "-Wliteral-suffix ( and Objective- only)"
  2775. Warn when a string or character literal is followed by a ud-suffix which does
  2776. not begin with an underscore. As a conforming extension, \s-1GCC\s0 treats such
  2777. suffixes as separate preprocessing tokens in order to maintain backwards
  2778. compatibility with code that uses formatting macros from \f(CW\*(C`<inttypes.h>\*(C'\fR.
  2779. For example:
  2780. .Sp
  2781. .Vb 3
  2782. \& #define _\|_STDC_FORMAT_MACROS
  2783. \& #include <inttypes.h>
  2784. \& #include <stdio.h>
  2785. \&
  2786. \& int main() {
  2787. \& int64_t i64 = 123;
  2788. \& printf("My int64: %" PRId64"\en", i64);
  2789. \& }
  2790. .Ve
  2791. .Sp
  2792. In this case, \f(CW\*(C`PRId64\*(C'\fR is treated as a separate preprocessing token.
  2793. .Sp
  2794. Additionally, warn when a user-defined literal operator is declared with
  2795. a literal suffix identifier that doesn't begin with an underscore. Literal
  2796. suffix identifiers that don't begin with an underscore are reserved for
  2797. future standardization.
  2798. .Sp
  2799. This warning is enabled by default.
  2800. .IP "\fB\-Wlto\-type\-mismatch\fR" 4
  2801. .IX Item "-Wlto-type-mismatch"
  2802. During the link-time optimization warn about type mismatches in
  2803. global declarations from different compilation units.
  2804. Requires \fB\-flto\fR to be enabled. Enabled by default.
  2805. .IP "\fB\-Wno\-narrowing\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2806. .IX Item "-Wno-narrowing ( and Objective- only)"
  2807. For \*(C+11 and later standards, narrowing conversions are diagnosed by default,
  2808. as required by the standard. A narrowing conversion from a constant produces
  2809. an error, and a narrowing conversion from a non-constant produces a warning,
  2810. but \fB\-Wno\-narrowing\fR suppresses the diagnostic.
  2811. Note that this does not affect the meaning of well-formed code;
  2812. narrowing conversions are still considered ill-formed in \s-1SFINAE\s0 contexts.
  2813. .Sp
  2814. With \fB\-Wnarrowing\fR in \*(C+98, warn when a narrowing
  2815. conversion prohibited by \*(C+11 occurs within
  2816. \&\fB{ }\fR, e.g.
  2817. .Sp
  2818. .Vb 1
  2819. \& int i = { 2.2 }; // error: narrowing from double to int
  2820. .Ve
  2821. .Sp
  2822. This flag is included in \fB\-Wall\fR and \fB\-Wc++11\-compat\fR.
  2823. .IP "\fB\-Wnoexcept\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2824. .IX Item "-Wnoexcept ( and Objective- only)"
  2825. Warn when a noexcept-expression evaluates to false because of a call
  2826. to a function that does not have a non-throwing exception
  2827. specification (i.e. \f(CW\*(C`throw()\*(C'\fR or \f(CW\*(C`noexcept\*(C'\fR) but is known by
  2828. the compiler to never throw an exception.
  2829. .IP "\fB\-Wnoexcept\-type\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2830. .IX Item "-Wnoexcept-type ( and Objective- only)"
  2831. Warn if the \*(C+1z feature making \f(CW\*(C`noexcept\*(C'\fR part of a function
  2832. type changes the mangled name of a symbol relative to \*(C+14. Enabled
  2833. by \fB\-Wabi\fR and \fB\-Wc++1z\-compat\fR.
  2834. .Sp
  2835. .Vb 3
  2836. \& template <class T> void f(T t) { t(); };
  2837. \& void g() noexcept;
  2838. \& void h() { f(g); } // in C++14 calls f<void(*)()>, in C++1z calls f<void(*)()noexcept>
  2839. .Ve
  2840. .IP "\fB\-Wnon\-virtual\-dtor\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2841. .IX Item "-Wnon-virtual-dtor ( and Objective- only)"
  2842. Warn when a class has virtual functions and an accessible non-virtual
  2843. destructor itself or in an accessible polymorphic base class, in which
  2844. case it is possible but unsafe to delete an instance of a derived
  2845. class through a pointer to the class itself or base class. This
  2846. warning is automatically enabled if \fB\-Weffc++\fR is specified.
  2847. .IP "\fB\-Wregister\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2848. .IX Item "-Wregister ( and Objective- only)"
  2849. Warn on uses of the \f(CW\*(C`register\*(C'\fR storage class specifier, except
  2850. when it is part of the \s-1GNU \s0\fBExplicit Register Variables\fR extension.
  2851. The use of the \f(CW\*(C`register\*(C'\fR keyword as storage class specifier has
  2852. been deprecated in \*(C+11 and removed in \*(C+17.
  2853. Enabled by default with \fB\-std=c++1z\fR.
  2854. .IP "\fB\-Wreorder\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2855. .IX Item "-Wreorder ( and Objective- only)"
  2856. Warn when the order of member initializers given in the code does not
  2857. match the order in which they must be executed. For instance:
  2858. .Sp
  2859. .Vb 5
  2860. \& struct A {
  2861. \& int i;
  2862. \& int j;
  2863. \& A(): j (0), i (1) { }
  2864. \& };
  2865. .Ve
  2866. .Sp
  2867. The compiler rearranges the member initializers for \f(CW\*(C`i\*(C'\fR
  2868. and \f(CW\*(C`j\*(C'\fR to match the declaration order of the members, emitting
  2869. a warning to that effect. This warning is enabled by \fB\-Wall\fR.
  2870. .IP "\fB\-fext\-numeric\-literals\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2871. .IX Item "-fext-numeric-literals ( and Objective- only)"
  2872. Accept imaginary, fixed-point, or machine-defined
  2873. literal number suffixes as \s-1GNU\s0 extensions.
  2874. When this option is turned off these suffixes are treated
  2875. as \*(C+11 user-defined literal numeric suffixes.
  2876. This is on by default for all pre\-\*(C+11 dialects and all \s-1GNU\s0 dialects:
  2877. \&\fB\-std=c++98\fR, \fB\-std=gnu++98\fR, \fB\-std=gnu++11\fR,
  2878. \&\fB\-std=gnu++14\fR.
  2879. This option is off by default
  2880. for \s-1ISO \*(C+11\s0 onwards (\fB\-std=c++11\fR, ...).
  2881. .PP
  2882. The following \fB\-W...\fR options are not affected by \fB\-Wall\fR.
  2883. .IP "\fB\-Weffc++\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2884. .IX Item "-Weffc++ ( and Objective- only)"
  2885. Warn about violations of the following style guidelines from Scott Meyers'
  2886. \&\fIEffective \*(C+\fR series of books:
  2887. .RS 4
  2888. .IP "*" 4
  2889. Define a copy constructor and an assignment operator for classes
  2890. with dynamically-allocated memory.
  2891. .IP "*" 4
  2892. Prefer initialization to assignment in constructors.
  2893. .IP "*" 4
  2894. Have \f(CW\*(C`operator=\*(C'\fR return a reference to \f(CW*this\fR.
  2895. .IP "*" 4
  2896. Don't try to return a reference when you must return an object.
  2897. .IP "*" 4
  2898. Distinguish between prefix and postfix forms of increment and
  2899. decrement operators.
  2900. .IP "*" 4
  2901. Never overload \f(CW\*(C`&&\*(C'\fR, \f(CW\*(C`||\*(C'\fR, or \f(CW\*(C`,\*(C'\fR.
  2902. .RE
  2903. .RS 4
  2904. .Sp
  2905. This option also enables \fB\-Wnon\-virtual\-dtor\fR, which is also
  2906. one of the effective \*(C+ recommendations. However, the check is
  2907. extended to warn about the lack of virtual destructor in accessible
  2908. non-polymorphic bases classes too.
  2909. .Sp
  2910. When selecting this option, be aware that the standard library
  2911. headers do not obey all of these guidelines; use \fBgrep \-v\fR
  2912. to filter out those warnings.
  2913. .RE
  2914. .IP "\fB\-Wstrict\-null\-sentinel\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2915. .IX Item "-Wstrict-null-sentinel ( and Objective- only)"
  2916. Warn about the use of an uncasted \f(CW\*(C`NULL\*(C'\fR as sentinel. When
  2917. compiling only with \s-1GCC\s0 this is a valid sentinel, as \f(CW\*(C`NULL\*(C'\fR is defined
  2918. to \f(CW\*(C`_\|_null\*(C'\fR. Although it is a null pointer constant rather than a
  2919. null pointer, it is guaranteed to be of the same size as a pointer.
  2920. But this use is not portable across different compilers.
  2921. .IP "\fB\-Wno\-non\-template\-friend\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2922. .IX Item "-Wno-non-template-friend ( and Objective- only)"
  2923. Disable warnings when non-template friend functions are declared
  2924. within a template. In very old versions of \s-1GCC\s0 that predate implementation
  2925. of the \s-1ISO\s0 standard, declarations such as
  2926. \&\fBfriend int foo(int)\fR, where the name of the friend is an unqualified-id,
  2927. could be interpreted as a particular specialization of a template
  2928. function; the warning exists to diagnose compatibility problems,
  2929. and is enabled by default.
  2930. .IP "\fB\-Wold\-style\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2931. .IX Item "-Wold-style-cast ( and Objective- only)"
  2932. Warn if an old-style (C\-style) cast to a non-void type is used within
  2933. a \*(C+ program. The new-style casts (\f(CW\*(C`dynamic_cast\*(C'\fR,
  2934. \&\f(CW\*(C`static_cast\*(C'\fR, \f(CW\*(C`reinterpret_cast\*(C'\fR, and \f(CW\*(C`const_cast\*(C'\fR) are
  2935. less vulnerable to unintended effects and much easier to search for.
  2936. .IP "\fB\-Woverloaded\-virtual\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2937. .IX Item "-Woverloaded-virtual ( and Objective- only)"
  2938. Warn when a function declaration hides virtual functions from a
  2939. base class. For example, in:
  2940. .Sp
  2941. .Vb 3
  2942. \& struct A {
  2943. \& virtual void f();
  2944. \& };
  2945. \&
  2946. \& struct B: public A {
  2947. \& void f(int);
  2948. \& };
  2949. .Ve
  2950. .Sp
  2951. 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
  2952. like:
  2953. .Sp
  2954. .Vb 2
  2955. \& B* b;
  2956. \& b\->f();
  2957. .Ve
  2958. .Sp
  2959. fails to compile.
  2960. .IP "\fB\-Wno\-pmf\-conversions\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2961. .IX Item "-Wno-pmf-conversions ( and Objective- only)"
  2962. Disable the diagnostic for converting a bound pointer to member function
  2963. to a plain pointer.
  2964. .IP "\fB\-Wsign\-promo\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2965. .IX Item "-Wsign-promo ( and Objective- only)"
  2966. Warn when overload resolution chooses a promotion from unsigned or
  2967. enumerated type to a signed type, over a conversion to an unsigned type of
  2968. the same size. Previous versions of G++ tried to preserve
  2969. unsignedness, but the standard mandates the current behavior.
  2970. .IP "\fB\-Wtemplates\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2971. .IX Item "-Wtemplates ( and Objective- only)"
  2972. Warn when a primary template declaration is encountered. Some coding
  2973. rules disallow templates, and this may be used to enforce that rule.
  2974. The warning is inactive inside a system header file, such as the \s-1STL,\s0 so
  2975. one can still use the \s-1STL. \s0 One may also instantiate or specialize
  2976. templates.
  2977. .IP "\fB\-Wmultiple\-inheritance\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2978. .IX Item "-Wmultiple-inheritance ( and Objective- only)"
  2979. Warn when a class is defined with multiple direct base classes. Some
  2980. coding rules disallow multiple inheritance, and this may be used to
  2981. enforce that rule. The warning is inactive inside a system header file,
  2982. such as the \s-1STL,\s0 so one can still use the \s-1STL. \s0 One may also define
  2983. classes that indirectly use multiple inheritance.
  2984. .IP "\fB\-Wvirtual\-inheritance\fR" 4
  2985. .IX Item "-Wvirtual-inheritance"
  2986. Warn when a class is defined with a virtual direct base class. Some
  2987. coding rules disallow multiple inheritance, and this may be used to
  2988. enforce that rule. The warning is inactive inside a system header file,
  2989. such as the \s-1STL,\s0 so one can still use the \s-1STL. \s0 One may also define
  2990. classes that indirectly use virtual inheritance.
  2991. .IP "\fB\-Wnamespaces\fR" 4
  2992. .IX Item "-Wnamespaces"
  2993. Warn when a namespace definition is opened. Some coding rules disallow
  2994. namespaces, and this may be used to enforce that rule. The warning is
  2995. inactive inside a system header file, such as the \s-1STL,\s0 so one can still
  2996. use the \s-1STL. \s0 One may also use using directives and qualified names.
  2997. .IP "\fB\-Wno\-terminate\fR (\*(C+ and Objective\-\*(C+ only)" 4
  2998. .IX Item "-Wno-terminate ( and Objective- only)"
  2999. Disable the warning about a throw-expression that will immediately
  3000. result in a call to \f(CW\*(C`terminate\*(C'\fR.
  3001. .SS "Options Controlling Objective-C and Objective\-\*(C+ Dialects"
  3002. .IX Subsection "Options Controlling Objective-C and Objective- Dialects"
  3003. (\s-1NOTE:\s0 This manual does not describe the Objective-C and Objective\-\*(C+
  3004. languages themselves.
  3005. .PP
  3006. This section describes the command-line options that are only meaningful
  3007. for Objective-C and Objective\-\*(C+ programs. You can also use most of
  3008. the language-independent \s-1GNU\s0 compiler options.
  3009. For example, you might compile a file \fIsome_class.m\fR like this:
  3010. .PP
  3011. .Vb 1
  3012. \& gcc \-g \-fgnu\-runtime \-O \-c some_class.m
  3013. .Ve
  3014. .PP
  3015. In this example, \fB\-fgnu\-runtime\fR is an option meant only for
  3016. Objective-C and Objective\-\*(C+ programs; you can use the other options with
  3017. any language supported by \s-1GCC.\s0
  3018. .PP
  3019. Note that since Objective-C is an extension of the C language, Objective-C
  3020. compilations may also use options specific to the C front-end (e.g.,
  3021. \&\fB\-Wtraditional\fR). Similarly, Objective\-\*(C+ compilations may use
  3022. \&\*(C+\-specific options (e.g., \fB\-Wabi\fR).
  3023. .PP
  3024. Here is a list of options that are \fIonly\fR for compiling Objective-C
  3025. and Objective\-\*(C+ programs:
  3026. .IP "\fB\-fconstant\-string\-class=\fR\fIclass-name\fR" 4
  3027. .IX Item "-fconstant-string-class=class-name"
  3028. Use \fIclass-name\fR as the name of the class to instantiate for each
  3029. literal string specified with the syntax \f(CW\*(C`@"..."\*(C'\fR. The default
  3030. class name is \f(CW\*(C`NXConstantString\*(C'\fR if the \s-1GNU\s0 runtime is being used, and
  3031. \&\f(CW\*(C`NSConstantString\*(C'\fR if the NeXT runtime is being used (see below). The
  3032. \&\fB\-fconstant\-cfstrings\fR option, if also present, overrides the
  3033. \&\fB\-fconstant\-string\-class\fR setting and cause \f(CW\*(C`@"..."\*(C'\fR literals
  3034. to be laid out as constant CoreFoundation strings.
  3035. .IP "\fB\-fgnu\-runtime\fR" 4
  3036. .IX Item "-fgnu-runtime"
  3037. Generate object code compatible with the standard \s-1GNU\s0 Objective-C
  3038. runtime. This is the default for most types of systems.
  3039. .IP "\fB\-fnext\-runtime\fR" 4
  3040. .IX Item "-fnext-runtime"
  3041. Generate output compatible with the NeXT runtime. This is the default
  3042. for NeXT-based systems, including Darwin and Mac \s-1OS X. \s0 The macro
  3043. \&\f(CW\*(C`_\|_NEXT_RUNTIME_\|_\*(C'\fR is predefined if (and only if) this option is
  3044. used.
  3045. .IP "\fB\-fno\-nil\-receivers\fR" 4
  3046. .IX Item "-fno-nil-receivers"
  3047. Assume that all Objective-C message dispatches (\f(CW\*(C`[receiver
  3048. message:arg]\*(C'\fR) in this translation unit ensure that the receiver is
  3049. not \f(CW\*(C`nil\*(C'\fR. This allows for more efficient entry points in the
  3050. runtime to be used. This option is only available in conjunction with
  3051. the NeXT runtime and \s-1ABI\s0 version 0 or 1.
  3052. .IP "\fB\-fobjc\-abi\-version=\fR\fIn\fR" 4
  3053. .IX Item "-fobjc-abi-version=n"
  3054. Use version \fIn\fR of the Objective-C \s-1ABI\s0 for the selected runtime.
  3055. This option is currently supported only for the NeXT runtime. In that
  3056. case, Version 0 is the traditional (32\-bit) \s-1ABI\s0 without support for
  3057. properties and other Objective-C 2.0 additions. Version 1 is the
  3058. traditional (32\-bit) \s-1ABI\s0 with support for properties and other
  3059. Objective-C 2.0 additions. Version 2 is the modern (64\-bit) \s-1ABI. \s0 If
  3060. nothing is specified, the default is Version 0 on 32\-bit target
  3061. machines, and Version 2 on 64\-bit target machines.
  3062. .IP "\fB\-fobjc\-call\-cxx\-cdtors\fR" 4
  3063. .IX Item "-fobjc-call-cxx-cdtors"
  3064. For each Objective-C class, check if any of its instance variables is a
  3065. \&\*(C+ object with a non-trivial default constructor. If so, synthesize a
  3066. special \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR instance method which runs
  3067. non-trivial default constructors on any such instance variables, in order,
  3068. and then return \f(CW\*(C`self\*(C'\fR. Similarly, check if any instance variable
  3069. is a \*(C+ object with a non-trivial destructor, and if so, synthesize a
  3070. special \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR method which runs
  3071. all such default destructors, in reverse order.
  3072. .Sp
  3073. The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR
  3074. methods thusly generated only operate on instance variables
  3075. declared in the current Objective-C class, and not those inherited
  3076. from superclasses. It is the responsibility of the Objective-C
  3077. runtime to invoke all such methods in an object's inheritance
  3078. hierarchy. The \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR methods are invoked
  3079. by the runtime immediately after a new object instance is allocated;
  3080. the \f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods are invoked immediately
  3081. before the runtime deallocates an object instance.
  3082. .Sp
  3083. As of this writing, only the NeXT runtime on Mac \s-1OS X 10.4\s0 and later has
  3084. support for invoking the \f(CW\*(C`\- (id) .cxx_construct\*(C'\fR and
  3085. \&\f(CW\*(C`\- (void) .cxx_destruct\*(C'\fR methods.
  3086. .IP "\fB\-fobjc\-direct\-dispatch\fR" 4
  3087. .IX Item "-fobjc-direct-dispatch"
  3088. Allow fast jumps to the message dispatcher. On Darwin this is
  3089. accomplished via the comm page.
  3090. .IP "\fB\-fobjc\-exceptions\fR" 4
  3091. .IX Item "-fobjc-exceptions"
  3092. Enable syntactic support for structured exception handling in
  3093. Objective-C, similar to what is offered by \*(C+. This option
  3094. is required to use the Objective-C keywords \f(CW@try\fR,
  3095. \&\f(CW@throw\fR, \f(CW@catch\fR, \f(CW@finally\fR and
  3096. \&\f(CW@synchronized\fR. This option is available with both the \s-1GNU\s0
  3097. runtime and the NeXT runtime (but not available in conjunction with
  3098. the NeXT runtime on Mac \s-1OS X 10.2\s0 and earlier).
  3099. .IP "\fB\-fobjc\-gc\fR" 4
  3100. .IX Item "-fobjc-gc"
  3101. Enable garbage collection (\s-1GC\s0) in Objective-C and Objective\-\*(C+
  3102. programs. This option is only available with the NeXT runtime; the
  3103. \&\s-1GNU\s0 runtime has a different garbage collection implementation that
  3104. does not require special compiler flags.
  3105. .IP "\fB\-fobjc\-nilcheck\fR" 4
  3106. .IX Item "-fobjc-nilcheck"
  3107. For the NeXT runtime with version 2 of the \s-1ABI,\s0 check for a nil
  3108. receiver in method invocations before doing the actual method call.
  3109. This is the default and can be disabled using
  3110. \&\fB\-fno\-objc\-nilcheck\fR. Class methods and super calls are never
  3111. checked for nil in this way no matter what this flag is set to.
  3112. Currently this flag does nothing when the \s-1GNU\s0 runtime, or an older
  3113. version of the NeXT runtime \s-1ABI,\s0 is used.
  3114. .IP "\fB\-fobjc\-std=objc1\fR" 4
  3115. .IX Item "-fobjc-std=objc1"
  3116. Conform to the language syntax of Objective-C 1.0, the language
  3117. recognized by \s-1GCC 4.0. \s0 This only affects the Objective-C additions to
  3118. the C/\*(C+ language; it does not affect conformance to C/\*(C+ standards,
  3119. which is controlled by the separate C/\*(C+ dialect option flags. When
  3120. this option is used with the Objective-C or Objective\-\*(C+ compiler,
  3121. any Objective-C syntax that is not recognized by \s-1GCC 4.0\s0 is rejected.
  3122. This is useful if you need to make sure that your Objective-C code can
  3123. be compiled with older versions of \s-1GCC.\s0
  3124. .IP "\fB\-freplace\-objc\-classes\fR" 4
  3125. .IX Item "-freplace-objc-classes"
  3126. Emit a special marker instructing \fB\f(BIld\fB\|(1)\fR not to statically link in
  3127. the resulting object file, and allow \fB\f(BIdyld\fB\|(1)\fR to load it in at
  3128. run time instead. This is used in conjunction with the Fix-and-Continue
  3129. debugging mode, where the object file in question may be recompiled and
  3130. dynamically reloaded in the course of program execution, without the need
  3131. to restart the program itself. Currently, Fix-and-Continue functionality
  3132. is only available in conjunction with the NeXT runtime on Mac \s-1OS X 10.3\s0
  3133. and later.
  3134. .IP "\fB\-fzero\-link\fR" 4
  3135. .IX Item "-fzero-link"
  3136. When compiling for the NeXT runtime, the compiler ordinarily replaces calls
  3137. to \f(CW\*(C`objc_getClass("...")\*(C'\fR (when the name of the class is known at
  3138. compile time) with static class references that get initialized at load time,
  3139. which improves run-time performance. Specifying the \fB\-fzero\-link\fR flag
  3140. suppresses this behavior and causes calls to \f(CW\*(C`objc_getClass("...")\*(C'\fR
  3141. to be retained. This is useful in Zero-Link debugging mode, since it allows
  3142. for individual class implementations to be modified during program execution.
  3143. The \s-1GNU\s0 runtime currently always retains calls to \f(CW\*(C`objc_get_class("...")\*(C'\fR
  3144. regardless of command-line options.
  3145. .IP "\fB\-fno\-local\-ivars\fR" 4
  3146. .IX Item "-fno-local-ivars"
  3147. By default instance variables in Objective-C can be accessed as if
  3148. they were local variables from within the methods of the class they're
  3149. declared in. This can lead to shadowing between instance variables
  3150. and other variables declared either locally inside a class method or
  3151. globally with the same name. Specifying the \fB\-fno\-local\-ivars\fR
  3152. flag disables this behavior thus avoiding variable shadowing issues.
  3153. .IP "\fB\-fivar\-visibility=\fR[\fBpublic\fR|\fBprotected\fR|\fBprivate\fR|\fBpackage\fR]" 4
  3154. .IX Item "-fivar-visibility=[public|protected|private|package]"
  3155. Set the default instance variable visibility to the specified option
  3156. so that instance variables declared outside the scope of any access
  3157. modifier directives default to the specified visibility.
  3158. .IP "\fB\-gen\-decls\fR" 4
  3159. .IX Item "-gen-decls"
  3160. Dump interface declarations for all classes seen in the source file to a
  3161. file named \fI\fIsourcename\fI.decl\fR.
  3162. .IP "\fB\-Wassign\-intercept\fR (Objective-C and Objective\-\*(C+ only)" 4
  3163. .IX Item "-Wassign-intercept (Objective-C and Objective- only)"
  3164. Warn whenever an Objective-C assignment is being intercepted by the
  3165. garbage collector.
  3166. .IP "\fB\-Wno\-protocol\fR (Objective-C and Objective\-\*(C+ only)" 4
  3167. .IX Item "-Wno-protocol (Objective-C and Objective- only)"
  3168. If a class is declared to implement a protocol, a warning is issued for
  3169. every method in the protocol that is not implemented by the class. The
  3170. default behavior is to issue a warning for every method not explicitly
  3171. implemented in the class, even if a method implementation is inherited
  3172. from the superclass. If you use the \fB\-Wno\-protocol\fR option, then
  3173. methods inherited from the superclass are considered to be implemented,
  3174. and no warning is issued for them.
  3175. .IP "\fB\-Wselector\fR (Objective-C and Objective\-\*(C+ only)" 4
  3176. .IX Item "-Wselector (Objective-C and Objective- only)"
  3177. Warn if multiple methods of different types for the same selector are
  3178. found during compilation. The check is performed on the list of methods
  3179. in the final stage of compilation. Additionally, a check is performed
  3180. for each selector appearing in a \f(CW\*(C`@selector(...)\*(C'\fR
  3181. expression, and a corresponding method for that selector has been found
  3182. during compilation. Because these checks scan the method table only at
  3183. the end of compilation, these warnings are not produced if the final
  3184. stage of compilation is not reached, for example because an error is
  3185. found during compilation, or because the \fB\-fsyntax\-only\fR option is
  3186. being used.
  3187. .IP "\fB\-Wstrict\-selector\-match\fR (Objective-C and Objective\-\*(C+ only)" 4
  3188. .IX Item "-Wstrict-selector-match (Objective-C and Objective- only)"
  3189. Warn if multiple methods with differing argument and/or return types are
  3190. found for a given selector when attempting to send a message using this
  3191. selector to a receiver of type \f(CW\*(C`id\*(C'\fR or \f(CW\*(C`Class\*(C'\fR. When this flag
  3192. is off (which is the default behavior), the compiler omits such warnings
  3193. if any differences found are confined to types that share the same size
  3194. and alignment.
  3195. .IP "\fB\-Wundeclared\-selector\fR (Objective-C and Objective\-\*(C+ only)" 4
  3196. .IX Item "-Wundeclared-selector (Objective-C and Objective- only)"
  3197. Warn if a \f(CW\*(C`@selector(...)\*(C'\fR expression referring to an
  3198. undeclared selector is found. A selector is considered undeclared if no
  3199. method with that name has been declared before the
  3200. \&\f(CW\*(C`@selector(...)\*(C'\fR expression, either explicitly in an
  3201. \&\f(CW@interface\fR or \f(CW@protocol\fR declaration, or implicitly in
  3202. an \f(CW@implementation\fR section. This option always performs its
  3203. checks as soon as a \f(CW\*(C`@selector(...)\*(C'\fR expression is found,
  3204. while \fB\-Wselector\fR only performs its checks in the final stage of
  3205. compilation. This also enforces the coding style convention
  3206. that methods and selectors must be declared before being used.
  3207. .IP "\fB\-print\-objc\-runtime\-info\fR" 4
  3208. .IX Item "-print-objc-runtime-info"
  3209. Generate C header describing the largest structure that is passed by
  3210. value, if any.
  3211. .SS "Options to Control Diagnostic Messages Formatting"
  3212. .IX Subsection "Options to Control Diagnostic Messages Formatting"
  3213. Traditionally, diagnostic messages have been formatted irrespective of
  3214. the output device's aspect (e.g. its width, ...). You can use the
  3215. options described below
  3216. to control the formatting algorithm for diagnostic messages,
  3217. e.g. how many characters per line, how often source location
  3218. information should be reported. Note that some language front ends may not
  3219. honor these options.
  3220. .IP "\fB\-fmessage\-length=\fR\fIn\fR" 4
  3221. .IX Item "-fmessage-length=n"
  3222. Try to format error messages so that they fit on lines of about
  3223. \&\fIn\fR characters. If \fIn\fR is zero, then no line-wrapping is
  3224. done; each error message appears on a single line. This is the
  3225. default for all front ends.
  3226. .IP "\fB\-fdiagnostics\-show\-location=once\fR" 4
  3227. .IX Item "-fdiagnostics-show-location=once"
  3228. Only meaningful in line-wrapping mode. Instructs the diagnostic messages
  3229. reporter to emit source location information \fIonce\fR; that is, in
  3230. case the message is too long to fit on a single physical line and has to
  3231. be wrapped, the source location won't be emitted (as prefix) again,
  3232. over and over, in subsequent continuation lines. This is the default
  3233. behavior.
  3234. .IP "\fB\-fdiagnostics\-show\-location=every\-line\fR" 4
  3235. .IX Item "-fdiagnostics-show-location=every-line"
  3236. Only meaningful in line-wrapping mode. Instructs the diagnostic
  3237. messages reporter to emit the same source location information (as
  3238. prefix) for physical lines that result from the process of breaking
  3239. a message which is too long to fit on a single line.
  3240. .IP "\fB\-fdiagnostics\-color[=\fR\fI\s-1WHEN\s0\fR\fB]\fR" 4
  3241. .IX Item "-fdiagnostics-color[=WHEN]"
  3242. .PD 0
  3243. .IP "\fB\-fno\-diagnostics\-color\fR" 4
  3244. .IX Item "-fno-diagnostics-color"
  3245. .PD
  3246. Use color in diagnostics. \fI\s-1WHEN\s0\fR is \fBnever\fR, \fBalways\fR,
  3247. or \fBauto\fR. The default depends on how the compiler has been configured,
  3248. it can be any of the above \fI\s-1WHEN\s0\fR options or also \fBnever\fR
  3249. if \fB\s-1GCC_COLORS\s0\fR environment variable isn't present in the environment,
  3250. and \fBauto\fR otherwise.
  3251. \&\fBauto\fR means to use color only when the standard error is a terminal.
  3252. The forms \fB\-fdiagnostics\-color\fR and \fB\-fno\-diagnostics\-color\fR are
  3253. aliases for \fB\-fdiagnostics\-color=always\fR and
  3254. \&\fB\-fdiagnostics\-color=never\fR, respectively.
  3255. .Sp
  3256. The colors are defined by the environment variable \fB\s-1GCC_COLORS\s0\fR.
  3257. Its value is a colon-separated list of capabilities and Select Graphic
  3258. Rendition (\s-1SGR\s0) substrings. \s-1SGR\s0 commands are interpreted by the
  3259. terminal or terminal emulator. (See the section in the documentation
  3260. of your text terminal for permitted values and their meanings as
  3261. character attributes.) These substring values are integers in decimal
  3262. representation and can be concatenated with semicolons.
  3263. Common values to concatenate include
  3264. \&\fB1\fR for bold,
  3265. \&\fB4\fR for underline,
  3266. \&\fB5\fR for blink,
  3267. \&\fB7\fR for inverse,
  3268. \&\fB39\fR for default foreground color,
  3269. \&\fB30\fR to \fB37\fR for foreground colors,
  3270. \&\fB90\fR to \fB97\fR for 16\-color mode foreground colors,
  3271. \&\fB38;5;0\fR to \fB38;5;255\fR
  3272. for 88\-color and 256\-color modes foreground colors,
  3273. \&\fB49\fR for default background color,
  3274. \&\fB40\fR to \fB47\fR for background colors,
  3275. \&\fB100\fR to \fB107\fR for 16\-color mode background colors,
  3276. and \fB48;5;0\fR to \fB48;5;255\fR
  3277. for 88\-color and 256\-color modes background colors.
  3278. .Sp
  3279. The default \fB\s-1GCC_COLORS\s0\fR is
  3280. .Sp
  3281. .Vb 3
  3282. \& error=01;31:warning=01;35:note=01;36:range1=32:range2=34:locus=01:\e
  3283. \& quote=01:fixit\-insert=32:fixit\-delete=31:\e
  3284. \& diff\-filename=01:diff\-hunk=32:diff\-delete=31:diff\-insert=32
  3285. .Ve
  3286. .Sp
  3287. where \fB01;31\fR is bold red, \fB01;35\fR is bold magenta,
  3288. \&\fB01;36\fR is bold cyan, \fB32\fR is green, \fB34\fR is blue,
  3289. \&\fB01\fR is bold, and \fB31\fR is red.
  3290. Setting \fB\s-1GCC_COLORS\s0\fR to the empty string disables colors.
  3291. Supported capabilities are as follows.
  3292. .RS 4
  3293. .ie n .IP """error=""" 4
  3294. .el .IP "\f(CWerror=\fR" 4
  3295. .IX Item "error="
  3296. \&\s-1SGR\s0 substring for error: markers.
  3297. .ie n .IP """warning=""" 4
  3298. .el .IP "\f(CWwarning=\fR" 4
  3299. .IX Item "warning="
  3300. \&\s-1SGR\s0 substring for warning: markers.
  3301. .ie n .IP """note=""" 4
  3302. .el .IP "\f(CWnote=\fR" 4
  3303. .IX Item "note="
  3304. \&\s-1SGR\s0 substring for note: markers.
  3305. .ie n .IP """range1=""" 4
  3306. .el .IP "\f(CWrange1=\fR" 4
  3307. .IX Item "range1="
  3308. \&\s-1SGR\s0 substring for first additional range.
  3309. .ie n .IP """range2=""" 4
  3310. .el .IP "\f(CWrange2=\fR" 4
  3311. .IX Item "range2="
  3312. \&\s-1SGR\s0 substring for second additional range.
  3313. .ie n .IP """locus=""" 4
  3314. .el .IP "\f(CWlocus=\fR" 4
  3315. .IX Item "locus="
  3316. \&\s-1SGR\s0 substring for location information, \fBfile:line\fR or
  3317. \&\fBfile:line:column\fR etc.
  3318. .ie n .IP """quote=""" 4
  3319. .el .IP "\f(CWquote=\fR" 4
  3320. .IX Item "quote="
  3321. \&\s-1SGR\s0 substring for information printed within quotes.
  3322. .ie n .IP """fixit\-insert=""" 4
  3323. .el .IP "\f(CWfixit\-insert=\fR" 4
  3324. .IX Item "fixit-insert="
  3325. \&\s-1SGR\s0 substring for fix-it hints suggesting text to
  3326. be inserted or replaced.
  3327. .ie n .IP """fixit\-delete=""" 4
  3328. .el .IP "\f(CWfixit\-delete=\fR" 4
  3329. .IX Item "fixit-delete="
  3330. \&\s-1SGR\s0 substring for fix-it hints suggesting text to
  3331. be deleted.
  3332. .ie n .IP """diff\-filename=""" 4
  3333. .el .IP "\f(CWdiff\-filename=\fR" 4
  3334. .IX Item "diff-filename="
  3335. \&\s-1SGR\s0 substring for filename headers within generated patches.
  3336. .ie n .IP """diff\-hunk=""" 4
  3337. .el .IP "\f(CWdiff\-hunk=\fR" 4
  3338. .IX Item "diff-hunk="
  3339. \&\s-1SGR\s0 substring for the starts of hunks within generated patches.
  3340. .ie n .IP """diff\-delete=""" 4
  3341. .el .IP "\f(CWdiff\-delete=\fR" 4
  3342. .IX Item "diff-delete="
  3343. \&\s-1SGR\s0 substring for deleted lines within generated patches.
  3344. .ie n .IP """diff\-insert=""" 4
  3345. .el .IP "\f(CWdiff\-insert=\fR" 4
  3346. .IX Item "diff-insert="
  3347. \&\s-1SGR\s0 substring for inserted lines within generated patches.
  3348. .RE
  3349. .RS 4
  3350. .RE
  3351. .IP "\fB\-fno\-diagnostics\-show\-option\fR" 4
  3352. .IX Item "-fno-diagnostics-show-option"
  3353. By default, each diagnostic emitted includes text indicating the
  3354. command-line option that directly controls the diagnostic (if such an
  3355. option is known to the diagnostic machinery). Specifying the
  3356. \&\fB\-fno\-diagnostics\-show\-option\fR flag suppresses that behavior.
  3357. .IP "\fB\-fno\-diagnostics\-show\-caret\fR" 4
  3358. .IX Item "-fno-diagnostics-show-caret"
  3359. By default, each diagnostic emitted includes the original source line
  3360. and a caret \fB^\fR indicating the column. This option suppresses this
  3361. information. The source line is truncated to \fIn\fR characters, if
  3362. the \fB\-fmessage\-length=n\fR option is given. When the output is done
  3363. to the terminal, the width is limited to the width given by the
  3364. \&\fB\s-1COLUMNS\s0\fR environment variable or, if not set, to the terminal width.
  3365. .IP "\fB\-fdiagnostics\-parseable\-fixits\fR" 4
  3366. .IX Item "-fdiagnostics-parseable-fixits"
  3367. Emit fix-it hints in a machine-parseable format, suitable for consumption
  3368. by IDEs. For each fix-it, a line will be printed after the relevant
  3369. diagnostic, starting with the string \*(L"fix-it:\*(R". For example:
  3370. .Sp
  3371. .Vb 1
  3372. \& fix\-it:"test.c":{45:3\-45:21}:"gtk_widget_show_all"
  3373. .Ve
  3374. .Sp
  3375. The location is expressed as a half-open range, expressed as a count of
  3376. bytes, starting at byte 1 for the initial column. In the above example,
  3377. bytes 3 through 20 of line 45 of \*(L"test.c\*(R" are to be replaced with the
  3378. given string:
  3379. .Sp
  3380. .Vb 5
  3381. \& 00000000011111111112222222222
  3382. \& 12345678901234567890123456789
  3383. \& gtk_widget_showall (dlg);
  3384. \& ^^^^^^^^^^^^^^^^^^
  3385. \& gtk_widget_show_all
  3386. .Ve
  3387. .Sp
  3388. The filename and replacement string escape backslash as \*(L"\e\e\*(R", tab as \*(L"\et\*(R",
  3389. newline as \*(L"\en\*(R", double quotes as \*(L"\e\*(R"\*(L", non-printable characters as octal
  3390. (e.g. vertical tab as \*(R"\e013").
  3391. .Sp
  3392. An empty replacement string indicates that the given range is to be removed.
  3393. An empty range (e.g. \*(L"45:3\-45:3\*(R") indicates that the string is to
  3394. be inserted at the given position.
  3395. .IP "\fB\-fdiagnostics\-generate\-patch\fR" 4
  3396. .IX Item "-fdiagnostics-generate-patch"
  3397. Print fix-it hints to stderr in unified diff format, after any diagnostics
  3398. are printed. For example:
  3399. .Sp
  3400. .Vb 3
  3401. \& \-\-\- test.c
  3402. \& +++ test.c
  3403. \& @ \-42,5 +42,5 @
  3404. \&
  3405. \& void show_cb(GtkDialog *dlg)
  3406. \& {
  3407. \& \- gtk_widget_showall(dlg);
  3408. \& + gtk_widget_show_all(dlg);
  3409. \& }
  3410. .Ve
  3411. .Sp
  3412. The diff may or may not be colorized, following the same rules
  3413. as for diagnostics (see \fB\-fdiagnostics\-color\fR).
  3414. .IP "\fB\-fno\-show\-column\fR" 4
  3415. .IX Item "-fno-show-column"
  3416. Do not print column numbers in diagnostics. This may be necessary if
  3417. diagnostics are being scanned by a program that does not understand the
  3418. column numbers, such as \fBdejagnu\fR.
  3419. .SS "Options to Request or Suppress Warnings"
  3420. .IX Subsection "Options to Request or Suppress Warnings"
  3421. Warnings are diagnostic messages that report constructions that
  3422. are not inherently erroneous but that are risky or suggest there
  3423. may have been an error.
  3424. .PP
  3425. The following language-independent options do not enable specific
  3426. warnings but control the kinds of diagnostics produced by \s-1GCC.\s0
  3427. .IP "\fB\-fsyntax\-only\fR" 4
  3428. .IX Item "-fsyntax-only"
  3429. Check the code for syntax errors, but don't do anything beyond that.
  3430. .IP "\fB\-fmax\-errors=\fR\fIn\fR" 4
  3431. .IX Item "-fmax-errors=n"
  3432. Limits the maximum number of error messages to \fIn\fR, at which point
  3433. \&\s-1GCC\s0 bails out rather than attempting to continue processing the source
  3434. code. If \fIn\fR is 0 (the default), there is no limit on the number
  3435. of error messages produced. If \fB\-Wfatal\-errors\fR is also
  3436. specified, then \fB\-Wfatal\-errors\fR takes precedence over this
  3437. option.
  3438. .IP "\fB\-w\fR" 4
  3439. .IX Item "-w"
  3440. Inhibit all warning messages.
  3441. .IP "\fB\-Werror\fR" 4
  3442. .IX Item "-Werror"
  3443. Make all warnings into errors.
  3444. .IP "\fB\-Werror=\fR" 4
  3445. .IX Item "-Werror="
  3446. Make the specified warning into an error. The specifier for a warning
  3447. is appended; for example \fB\-Werror=switch\fR turns the warnings
  3448. controlled by \fB\-Wswitch\fR into errors. This switch takes a
  3449. negative form, to be used to negate \fB\-Werror\fR for specific
  3450. warnings; for example \fB\-Wno\-error=switch\fR makes
  3451. \&\fB\-Wswitch\fR warnings not be errors, even when \fB\-Werror\fR
  3452. is in effect.
  3453. .Sp
  3454. The warning message for each controllable warning includes the
  3455. option that controls the warning. That option can then be used with
  3456. \&\fB\-Werror=\fR and \fB\-Wno\-error=\fR as described above.
  3457. (Printing of the option in the warning message can be disabled using the
  3458. \&\fB\-fno\-diagnostics\-show\-option\fR flag.)
  3459. .Sp
  3460. Note that specifying \fB\-Werror=\fR\fIfoo\fR automatically implies
  3461. \&\fB\-W\fR\fIfoo\fR. However, \fB\-Wno\-error=\fR\fIfoo\fR does not
  3462. imply anything.
  3463. .IP "\fB\-Wfatal\-errors\fR" 4
  3464. .IX Item "-Wfatal-errors"
  3465. This option causes the compiler to abort compilation on the first error
  3466. occurred rather than trying to keep going and printing further error
  3467. messages.
  3468. .PP
  3469. You can request many specific warnings with options beginning with
  3470. \&\fB\-W\fR, for example \fB\-Wimplicit\fR to request warnings on
  3471. implicit declarations. Each of these specific warning options also
  3472. has a negative form beginning \fB\-Wno\-\fR to turn off warnings; for
  3473. example, \fB\-Wno\-implicit\fR. This manual lists only one of the
  3474. two forms, whichever is not the default. For further
  3475. language-specific options also refer to \fB\*(C+ Dialect Options\fR and
  3476. \&\fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
  3477. .PP
  3478. Some options, such as \fB\-Wall\fR and \fB\-Wextra\fR, turn on other
  3479. options, such as \fB\-Wunused\fR, which may turn on further options,
  3480. such as \fB\-Wunused\-value\fR. The combined effect of positive and
  3481. negative forms is that more specific options have priority over less
  3482. specific ones, independently of their position in the command-line. For
  3483. options of the same specificity, the last one takes effect. Options
  3484. enabled or disabled via pragmas take effect
  3485. as if they appeared at the end of the command-line.
  3486. .PP
  3487. When an unrecognized warning option is requested (e.g.,
  3488. \&\fB\-Wunknown\-warning\fR), \s-1GCC\s0 emits a diagnostic stating
  3489. that the option is not recognized. However, if the \fB\-Wno\-\fR form
  3490. is used, the behavior is slightly different: no diagnostic is
  3491. produced for \fB\-Wno\-unknown\-warning\fR unless other diagnostics
  3492. are being produced. This allows the use of new \fB\-Wno\-\fR options
  3493. with old compilers, but if something goes wrong, the compiler
  3494. warns that an unrecognized option is present.
  3495. .IP "\fB\-Wpedantic\fR" 4
  3496. .IX Item "-Wpedantic"
  3497. .PD 0
  3498. .IP "\fB\-pedantic\fR" 4
  3499. .IX Item "-pedantic"
  3500. .PD
  3501. Issue all the warnings demanded by strict \s-1ISO C\s0 and \s-1ISO \*(C+\s0;
  3502. reject all programs that use forbidden extensions, and some other
  3503. programs that do not follow \s-1ISO C\s0 and \s-1ISO \*(C+. \s0 For \s-1ISO C,\s0 follows the
  3504. version of the \s-1ISO C\s0 standard specified by any \fB\-std\fR option used.
  3505. .Sp
  3506. Valid \s-1ISO C\s0 and \s-1ISO \*(C+\s0 programs should compile properly with or without
  3507. this option (though a rare few require \fB\-ansi\fR or a
  3508. \&\fB\-std\fR option specifying the required version of \s-1ISO C\s0). However,
  3509. without this option, certain \s-1GNU\s0 extensions and traditional C and \*(C+
  3510. features are supported as well. With this option, they are rejected.
  3511. .Sp
  3512. \&\fB\-Wpedantic\fR does not cause warning messages for use of the
  3513. alternate keywords whose names begin and end with \fB_\|_\fR. Pedantic
  3514. warnings are also disabled in the expression that follows
  3515. \&\f(CW\*(C`_\|_extension_\|_\*(C'\fR. However, only system header files should use
  3516. these escape routes; application programs should avoid them.
  3517. .Sp
  3518. Some users try to use \fB\-Wpedantic\fR to check programs for strict \s-1ISO
  3519. C\s0 conformance. They soon find that it does not do quite what they want:
  3520. it finds some non-ISO practices, but not all\-\-\-only those for which
  3521. \&\s-1ISO C \s0\fIrequires\fR a diagnostic, and some others for which
  3522. diagnostics have been added.
  3523. .Sp
  3524. A feature to report any failure to conform to \s-1ISO C\s0 might be useful in
  3525. some instances, but would require considerable additional work and would
  3526. be quite different from \fB\-Wpedantic\fR. We don't have plans to
  3527. support such a feature in the near future.
  3528. .Sp
  3529. Where the standard specified with \fB\-std\fR represents a \s-1GNU\s0
  3530. extended dialect of C, such as \fBgnu90\fR or \fBgnu99\fR, there is a
  3531. corresponding \fIbase standard\fR, the version of \s-1ISO C\s0 on which the \s-1GNU\s0
  3532. extended dialect is based. Warnings from \fB\-Wpedantic\fR are given
  3533. where they are required by the base standard. (It does not make sense
  3534. for such warnings to be given only for features not in the specified \s-1GNU
  3535. C\s0 dialect, since by definition the \s-1GNU\s0 dialects of C include all
  3536. features the compiler supports with the given option, and there would be
  3537. nothing to warn about.)
  3538. .IP "\fB\-pedantic\-errors\fR" 4
  3539. .IX Item "-pedantic-errors"
  3540. Give an error whenever the \fIbase standard\fR (see \fB\-Wpedantic\fR)
  3541. requires a diagnostic, in some cases where there is undefined behavior
  3542. at compile-time and in some other cases that do not prevent compilation
  3543. of programs that are valid according to the standard. This is not
  3544. equivalent to \fB\-Werror=pedantic\fR, since there are errors enabled
  3545. by this option and not enabled by the latter and vice versa.
  3546. .IP "\fB\-Wall\fR" 4
  3547. .IX Item "-Wall"
  3548. This enables all the warnings about constructions that some users
  3549. consider questionable, and that are easy to avoid (or modify to
  3550. prevent the warning), even in conjunction with macros. This also
  3551. enables some language-specific warnings described in \fB\*(C+ Dialect
  3552. Options\fR and \fBObjective-C and Objective\-\*(C+ Dialect Options\fR.
  3553. .Sp
  3554. \&\fB\-Wall\fR turns on the following warning flags:
  3555. .Sp
  3556. \&\fB\-Waddress
  3557. \&\-Warray\-bounds=1\fR (only with\fB \fR\fB\-O2\fR)
  3558. \&\fB\-Wbool\-compare
  3559. \&\-Wbool\-operation
  3560. \&\-Wc++11\-compat \-Wc++14\-compat
  3561. \&\-Wchar\-subscripts
  3562. \&\-Wcomment
  3563. \&\-Wduplicate\-decl\-specifier\fR (C and Objective-C only)
  3564. \&\fB\-Wenum\-compare\fR (in C/ObjC; this is on by default in \*(C+)
  3565. \&\fB\-Wformat
  3566. \&\-Wint\-in\-bool\-context
  3567. \&\-Wimplicit\fR (C and Objective-C only)
  3568. \&\fB\-Wimplicit\-int\fR (C and Objective-C only)
  3569. \&\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only)
  3570. \&\fB\-Winit\-self\fR (only for \*(C+)
  3571. \&\fB\-Wlogical\-not\-parentheses
  3572. \&\-Wmain\fR (only for C/ObjC and unless\fB \fR\fB\-ffreestanding\fR)
  3573. \&\fB\-Wmaybe\-uninitialized
  3574. \&\-Wmemset\-elt\-size
  3575. \&\-Wmemset\-transposed\-args
  3576. \&\-Wmisleading\-indentation\fR (only for C/\*(C+)
  3577. \&\fB\-Wmissing\-braces\fR (only for C/ObjC)
  3578. \&\fB\-Wnarrowing\fR (only for \*(C+)
  3579. \&\fB\-Wnonnull
  3580. \&\-Wnonnull\-compare
  3581. \&\-Wopenmp\-simd
  3582. \&\-Wparentheses
  3583. \&\-Wpointer\-sign
  3584. \&\-Wreorder
  3585. \&\-Wreturn\-type
  3586. \&\-Wsequence\-point
  3587. \&\-Wsign\-compare\fR (only in \*(C+)
  3588. \&\fB\-Wsizeof\-pointer\-memaccess
  3589. \&\-Wstrict\-aliasing
  3590. \&\-Wstrict\-overflow=1
  3591. \&\-Wswitch
  3592. \&\-Wtautological\-compare
  3593. \&\-Wtrigraphs
  3594. \&\-Wuninitialized
  3595. \&\-Wunknown\-pragmas
  3596. \&\-Wunused\-function
  3597. \&\-Wunused\-label
  3598. \&\-Wunused\-value
  3599. \&\-Wunused\-variable
  3600. \&\-Wvolatile\-register\-var\fR
  3601. .Sp
  3602. Note that some warning flags are not implied by \fB\-Wall\fR. Some of
  3603. them warn about constructions that users generally do not consider
  3604. questionable, but which occasionally you might wish to check for;
  3605. others warn about constructions that are necessary or hard to avoid in
  3606. some cases, and there is no simple way to modify the code to suppress
  3607. the warning. Some of them are enabled by \fB\-Wextra\fR but many of
  3608. them must be enabled individually.
  3609. .IP "\fB\-Wextra\fR" 4
  3610. .IX Item "-Wextra"
  3611. This enables some extra warning flags that are not enabled by
  3612. \&\fB\-Wall\fR. (This option used to be called \fB\-W\fR. The older
  3613. name is still supported, but the newer name is more descriptive.)
  3614. .Sp
  3615. \&\fB\-Wclobbered
  3616. \&\-Wempty\-body
  3617. \&\-Wignored\-qualifiers
  3618. \&\-Wimplicit\-fallthrough=3
  3619. \&\-Wmissing\-field\-initializers
  3620. \&\-Wmissing\-parameter\-type\fR (C only)
  3621. \&\fB\-Wold\-style\-declaration\fR (C only)
  3622. \&\fB\-Woverride\-init
  3623. \&\-Wsign\-compare\fR (C only)
  3624. \&\fB\-Wtype\-limits
  3625. \&\-Wuninitialized
  3626. \&\-Wshift\-negative\-value\fR (in \*(C+03 and in C99 and newer)
  3627. \&\fB\-Wunused\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR)
  3628. \&\fB\-Wunused\-but\-set\-parameter\fR (only with\fB \fR\fB\-Wunused\fR\fB \fRor\fB \fR\fB\-Wall\fR) \fB \fR
  3629. .Sp
  3630. The option \fB\-Wextra\fR also prints warning messages for the
  3631. following cases:
  3632. .RS 4
  3633. .IP "*" 4
  3634. A pointer is compared against integer zero with \f(CW\*(C`<\*(C'\fR, \f(CW\*(C`<=\*(C'\fR,
  3635. \&\f(CW\*(C`>\*(C'\fR, or \f(CW\*(C`>=\*(C'\fR.
  3636. .IP "*" 4
  3637. (\*(C+ only) An enumerator and a non-enumerator both appear in a
  3638. conditional expression.
  3639. .IP "*" 4
  3640. (\*(C+ only) Ambiguous virtual bases.
  3641. .IP "*" 4
  3642. (\*(C+ only) Subscripting an array that has been declared \f(CW\*(C`register\*(C'\fR.
  3643. .IP "*" 4
  3644. (\*(C+ only) Taking the address of a variable that has been declared
  3645. \&\f(CW\*(C`register\*(C'\fR.
  3646. .IP "*" 4
  3647. (\*(C+ only) A base class is not initialized in the copy constructor
  3648. of a derived class.
  3649. .RE
  3650. .RS 4
  3651. .RE
  3652. .IP "\fB\-Wchar\-subscripts\fR" 4
  3653. .IX Item "-Wchar-subscripts"
  3654. Warn if an array subscript has type \f(CW\*(C`char\*(C'\fR. This is a common cause
  3655. of error, as programmers often forget that this type is signed on some
  3656. machines.
  3657. This warning is enabled by \fB\-Wall\fR.
  3658. .IP "\fB\-Wchkp\fR" 4
  3659. .IX Item "-Wchkp"
  3660. Warn about an invalid memory access that is found by Pointer Bounds Checker
  3661. (\fB\-fcheck\-pointer\-bounds\fR).
  3662. .IP "\fB\-Wno\-coverage\-mismatch\fR" 4
  3663. .IX Item "-Wno-coverage-mismatch"
  3664. Warn if feedback profiles do not match when using the
  3665. \&\fB\-fprofile\-use\fR option.
  3666. If a source file is changed between compiling with \fB\-fprofile\-gen\fR and
  3667. with \fB\-fprofile\-use\fR, the files with the profile feedback can fail
  3668. to match the source file and \s-1GCC\s0 cannot use the profile feedback
  3669. information. By default, this warning is enabled and is treated as an
  3670. error. \fB\-Wno\-coverage\-mismatch\fR can be used to disable the
  3671. warning or \fB\-Wno\-error=coverage\-mismatch\fR can be used to
  3672. disable the error. Disabling the error for this warning can result in
  3673. poorly optimized code and is useful only in the
  3674. case of very minor changes such as bug fixes to an existing code-base.
  3675. Completely disabling the warning is not recommended.
  3676. .IP "\fB\-Wno\-cpp\fR" 4
  3677. .IX Item "-Wno-cpp"
  3678. (C, Objective-C, \*(C+, Objective\-\*(C+ and Fortran only)
  3679. .Sp
  3680. Suppress warning messages emitted by \f(CW\*(C`#warning\*(C'\fR directives.
  3681. .IP "\fB\-Wdouble\-promotion\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
  3682. .IX Item "-Wdouble-promotion (C, , Objective-C and Objective- only)"
  3683. Give a warning when a value of type \f(CW\*(C`float\*(C'\fR is implicitly
  3684. promoted to \f(CW\*(C`double\*(C'\fR. CPUs with a 32\-bit \*(L"single-precision\*(R"
  3685. floating-point unit implement \f(CW\*(C`float\*(C'\fR in hardware, but emulate
  3686. \&\f(CW\*(C`double\*(C'\fR in software. On such a machine, doing computations
  3687. using \f(CW\*(C`double\*(C'\fR values is much more expensive because of the
  3688. overhead required for software emulation.
  3689. .Sp
  3690. It is easy to accidentally do computations with \f(CW\*(C`double\*(C'\fR because
  3691. floating-point literals are implicitly of type \f(CW\*(C`double\*(C'\fR. For
  3692. example, in:
  3693. .Sp
  3694. .Vb 4
  3695. \& float area(float radius)
  3696. \& {
  3697. \& return 3.14159 * radius * radius;
  3698. \& }
  3699. .Ve
  3700. .Sp
  3701. the compiler performs the entire computation with \f(CW\*(C`double\*(C'\fR
  3702. because the floating-point literal is a \f(CW\*(C`double\*(C'\fR.
  3703. .IP "\fB\-Wduplicate\-decl\-specifier\fR (C and Objective-C only)" 4
  3704. .IX Item "-Wduplicate-decl-specifier (C and Objective-C only)"
  3705. Warn if a declaration has duplicate \f(CW\*(C`const\*(C'\fR, \f(CW\*(C`volatile\*(C'\fR,
  3706. \&\f(CW\*(C`restrict\*(C'\fR or \f(CW\*(C`_Atomic\*(C'\fR specifier. This warning is enabled by
  3707. \&\fB\-Wall\fR.
  3708. .IP "\fB\-Wformat\fR" 4
  3709. .IX Item "-Wformat"
  3710. .PD 0
  3711. .IP "\fB\-Wformat=\fR\fIn\fR" 4
  3712. .IX Item "-Wformat=n"
  3713. .PD
  3714. Check calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR, etc., to make sure that
  3715. the arguments supplied have types appropriate to the format string
  3716. specified, and that the conversions specified in the format string make
  3717. sense. This includes standard functions, and others specified by format
  3718. attributes, in the \f(CW\*(C`printf\*(C'\fR,
  3719. \&\f(CW\*(C`scanf\*(C'\fR, \f(CW\*(C`strftime\*(C'\fR and \f(CW\*(C`strfmon\*(C'\fR (an X/Open extension,
  3720. not in the C standard) families (or other target-specific families).
  3721. Which functions are checked without format attributes having been
  3722. specified depends on the standard version selected, and such checks of
  3723. functions without the attribute specified are disabled by
  3724. \&\fB\-ffreestanding\fR or \fB\-fno\-builtin\fR.
  3725. .Sp
  3726. The formats are checked against the format features supported by \s-1GNU\s0
  3727. libc version 2.2. These include all \s-1ISO C90\s0 and C99 features, as well
  3728. as features from the Single Unix Specification and some \s-1BSD\s0 and \s-1GNU\s0
  3729. extensions. Other library implementations may not support all these
  3730. features; \s-1GCC\s0 does not support warning about features that go beyond a
  3731. particular library's limitations. However, if \fB\-Wpedantic\fR is used
  3732. with \fB\-Wformat\fR, warnings are given about format features not
  3733. in the selected standard version (but not for \f(CW\*(C`strfmon\*(C'\fR formats,
  3734. since those are not in any version of the C standard).
  3735. .RS 4
  3736. .IP "\fB\-Wformat=1\fR" 4
  3737. .IX Item "-Wformat=1"
  3738. .PD 0
  3739. .IP "\fB\-Wformat\fR" 4
  3740. .IX Item "-Wformat"
  3741. .PD
  3742. Option \fB\-Wformat\fR is equivalent to \fB\-Wformat=1\fR, and
  3743. \&\fB\-Wno\-format\fR is equivalent to \fB\-Wformat=0\fR. Since
  3744. \&\fB\-Wformat\fR also checks for null format arguments for several
  3745. functions, \fB\-Wformat\fR also implies \fB\-Wnonnull\fR. Some
  3746. aspects of this level of format checking can be disabled by the
  3747. options: \fB\-Wno\-format\-contains\-nul\fR,
  3748. \&\fB\-Wno\-format\-extra\-args\fR, and \fB\-Wno\-format\-zero\-length\fR.
  3749. \&\fB\-Wformat\fR is enabled by \fB\-Wall\fR.
  3750. .IP "\fB\-Wno\-format\-contains\-nul\fR" 4
  3751. .IX Item "-Wno-format-contains-nul"
  3752. If \fB\-Wformat\fR is specified, do not warn about format strings that
  3753. contain \s-1NUL\s0 bytes.
  3754. .IP "\fB\-Wno\-format\-extra\-args\fR" 4
  3755. .IX Item "-Wno-format-extra-args"
  3756. If \fB\-Wformat\fR is specified, do not warn about excess arguments to a
  3757. \&\f(CW\*(C`printf\*(C'\fR or \f(CW\*(C`scanf\*(C'\fR format function. The C standard specifies
  3758. that such arguments are ignored.
  3759. .Sp
  3760. Where the unused arguments lie between used arguments that are
  3761. specified with \fB$\fR operand number specifications, normally
  3762. warnings are still given, since the implementation could not know what
  3763. type to pass to \f(CW\*(C`va_arg\*(C'\fR to skip the unused arguments. However,
  3764. in the case of \f(CW\*(C`scanf\*(C'\fR formats, this option suppresses the
  3765. warning if the unused arguments are all pointers, since the Single
  3766. Unix Specification says that such unused arguments are allowed.
  3767. .IP "\fB\-Wformat\-overflow\fR" 4
  3768. .IX Item "-Wformat-overflow"
  3769. .PD 0
  3770. .IP "\fB\-Wformat\-overflow=\fR\fIlevel\fR" 4
  3771. .IX Item "-Wformat-overflow=level"
  3772. .PD
  3773. Warn about calls to formatted input/output functions such as \f(CW\*(C`sprintf\*(C'\fR
  3774. and \f(CW\*(C`vsprintf\*(C'\fR that might overflow the destination buffer. When the
  3775. exact number of bytes written by a format directive cannot be determined
  3776. at compile-time it is estimated based on heuristics that depend on the
  3777. \&\fIlevel\fR argument and on optimization. While enabling optimization
  3778. will in most cases improve the accuracy of the warning, it may also
  3779. result in false positives.
  3780. .RS 4
  3781. .IP "\fB\-Wformat\-overflow\fR" 4
  3782. .IX Item "-Wformat-overflow"
  3783. .PD 0
  3784. .IP "\fB\-Wformat\-overflow=1\fR" 4
  3785. .IX Item "-Wformat-overflow=1"
  3786. .PD
  3787. Level \fI1\fR of \fB\-Wformat\-overflow\fR enabled by \fB\-Wformat\fR
  3788. employs a conservative approach that warns only about calls that most
  3789. likely overflow the buffer. At this level, numeric arguments to format
  3790. directives with unknown values are assumed to have the value of one, and
  3791. strings of unknown length to be empty. Numeric arguments that are known
  3792. to be bounded to a subrange of their type, or string arguments whose output
  3793. is bounded either by their directive's precision or by a finite set of
  3794. string literals, are assumed to take on the value within the range that
  3795. results in the most bytes on output. For example, the call to \f(CW\*(C`sprintf\*(C'\fR
  3796. below is diagnosed because even with both \fIa\fR and \fIb\fR equal to zero,
  3797. the terminating \s-1NUL\s0 character (\f(CW\*(Aq\e0\*(Aq\fR) appended by the function
  3798. to the destination buffer will be written past its end. Increasing
  3799. the size of the buffer by a single byte is sufficient to avoid the
  3800. warning, though it may not be sufficient to avoid the overflow.
  3801. .Sp
  3802. .Vb 5
  3803. \& void f (int a, int b)
  3804. \& {
  3805. \& char buf [12];
  3806. \& sprintf (buf, "a = %i, b = %i\en", a, b);
  3807. \& }
  3808. .Ve
  3809. .IP "\fB\-Wformat\-overflow=2\fR" 4
  3810. .IX Item "-Wformat-overflow=2"
  3811. Level \fI2\fR warns also about calls that might overflow the destination
  3812. buffer given an argument of sufficient length or magnitude. At level
  3813. \&\fI2\fR, unknown numeric arguments are assumed to have the minimum
  3814. representable value for signed types with a precision greater than 1, and
  3815. the maximum representable value otherwise. Unknown string arguments whose
  3816. length cannot be assumed to be bounded either by the directive's precision,
  3817. or by a finite set of string literals they may evaluate to, or the character
  3818. array they may point to, are assumed to be 1 character long.
  3819. .Sp
  3820. At level \fI2\fR, the call in the example above is again diagnosed, but
  3821. this time because with \fIa\fR equal to a 32\-bit \f(CW\*(C`INT_MIN\*(C'\fR the first
  3822. \&\f(CW%i\fR directive will write some of its digits beyond the end of
  3823. the destination buffer. To make the call safe regardless of the values
  3824. of the two variables, the size of the destination buffer must be increased
  3825. to at least 34 bytes. \s-1GCC\s0 includes the minimum size of the buffer in
  3826. an informational note following the warning.
  3827. .Sp
  3828. An alternative to increasing the size of the destination buffer is to
  3829. constrain the range of formatted values. The maximum length of string
  3830. arguments can be bounded by specifying the precision in the format
  3831. directive. When numeric arguments of format directives can be assumed
  3832. to be bounded by less than the precision of their type, choosing
  3833. an appropriate length modifier to the format specifier will reduce
  3834. the required buffer size. For example, if \fIa\fR and \fIb\fR in the
  3835. example above can be assumed to be within the precision of
  3836. the \f(CW\*(C`short int\*(C'\fR type then using either the \f(CW%hi\fR format
  3837. directive or casting the argument to \f(CW\*(C`short\*(C'\fR reduces the maximum
  3838. required size of the buffer to 24 bytes.
  3839. .Sp
  3840. .Vb 5
  3841. \& void f (int a, int b)
  3842. \& {
  3843. \& char buf [23];
  3844. \& sprintf (buf, "a = %hi, b = %i\en", a, (short)b);
  3845. \& }
  3846. .Ve
  3847. .RE
  3848. .RS 4
  3849. .RE
  3850. .IP "\fB\-Wno\-format\-zero\-length\fR" 4
  3851. .IX Item "-Wno-format-zero-length"
  3852. If \fB\-Wformat\fR is specified, do not warn about zero-length formats.
  3853. The C standard specifies that zero-length formats are allowed.
  3854. .IP "\fB\-Wformat=2\fR" 4
  3855. .IX Item "-Wformat=2"
  3856. Enable \fB\-Wformat\fR plus additional format checks. Currently
  3857. equivalent to \fB\-Wformat \-Wformat\-nonliteral \-Wformat\-security
  3858. \&\-Wformat\-y2k\fR.
  3859. .IP "\fB\-Wformat\-nonliteral\fR" 4
  3860. .IX Item "-Wformat-nonliteral"
  3861. If \fB\-Wformat\fR is specified, also warn if the format string is not a
  3862. string literal and so cannot be checked, unless the format function
  3863. takes its format arguments as a \f(CW\*(C`va_list\*(C'\fR.
  3864. .IP "\fB\-Wformat\-security\fR" 4
  3865. .IX Item "-Wformat-security"
  3866. If \fB\-Wformat\fR is specified, also warn about uses of format
  3867. functions that represent possible security problems. At present, this
  3868. warns about calls to \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`scanf\*(C'\fR functions where the
  3869. format string is not a string literal and there are no format arguments,
  3870. as in \f(CW\*(C`printf (foo);\*(C'\fR. This may be a security hole if the format
  3871. string came from untrusted input and contains \fB\f(CB%n\fB\fR. (This is
  3872. currently a subset of what \fB\-Wformat\-nonliteral\fR warns about, but
  3873. in future warnings may be added to \fB\-Wformat\-security\fR that are not
  3874. included in \fB\-Wformat\-nonliteral\fR.)
  3875. .IP "\fB\-Wformat\-signedness\fR" 4
  3876. .IX Item "-Wformat-signedness"
  3877. If \fB\-Wformat\fR is specified, also warn if the format string
  3878. requires an unsigned argument and the argument is signed and vice versa.
  3879. .IP "\fB\-Wformat\-truncation\fR" 4
  3880. .IX Item "-Wformat-truncation"
  3881. .PD 0
  3882. .IP "\fB\-Wformat\-truncation=\fR\fIlevel\fR" 4
  3883. .IX Item "-Wformat-truncation=level"
  3884. .PD
  3885. Warn about calls to formatted input/output functions such as \f(CW\*(C`snprintf\*(C'\fR
  3886. and \f(CW\*(C`vsnprintf\*(C'\fR that might result in output truncation. When the exact
  3887. number of bytes written by a format directive cannot be determined at
  3888. compile-time it is estimated based on heuristics that depend on
  3889. the \fIlevel\fR argument and on optimization. While enabling optimization
  3890. will in most cases improve the accuracy of the warning, it may also result
  3891. in false positives. Except as noted otherwise, the option uses the same
  3892. logic \fB\-Wformat\-overflow\fR.
  3893. .RS 4
  3894. .IP "\fB\-Wformat\-truncation\fR" 4
  3895. .IX Item "-Wformat-truncation"
  3896. .PD 0
  3897. .IP "\fB\-Wformat\-truncation=1\fR" 4
  3898. .IX Item "-Wformat-truncation=1"
  3899. .PD
  3900. Level \fI1\fR of \fB\-Wformat\-truncation\fR enabled by \fB\-Wformat\fR
  3901. employs a conservative approach that warns only about calls to bounded
  3902. functions whose return value is unused and that will most likely result
  3903. in output truncation.
  3904. .IP "\fB\-Wformat\-truncation=2\fR" 4
  3905. .IX Item "-Wformat-truncation=2"
  3906. Level \fI2\fR warns also about calls to bounded functions whose return
  3907. value is used and that might result in truncation given an argument of
  3908. sufficient length or magnitude.
  3909. .RE
  3910. .RS 4
  3911. .RE
  3912. .IP "\fB\-Wformat\-y2k\fR" 4
  3913. .IX Item "-Wformat-y2k"
  3914. If \fB\-Wformat\fR is specified, also warn about \f(CW\*(C`strftime\*(C'\fR
  3915. formats that may yield only a two-digit year.
  3916. .RE
  3917. .RS 4
  3918. .RE
  3919. .IP "\fB\-Wnonnull\fR" 4
  3920. .IX Item "-Wnonnull"
  3921. Warn about passing a null pointer for arguments marked as
  3922. requiring a non-null value by the \f(CW\*(C`nonnull\*(C'\fR function attribute.
  3923. .Sp
  3924. \&\fB\-Wnonnull\fR is included in \fB\-Wall\fR and \fB\-Wformat\fR. It
  3925. can be disabled with the \fB\-Wno\-nonnull\fR option.
  3926. .IP "\fB\-Wnonnull\-compare\fR" 4
  3927. .IX Item "-Wnonnull-compare"
  3928. Warn when comparing an argument marked with the \f(CW\*(C`nonnull\*(C'\fR
  3929. function attribute against null inside the function.
  3930. .Sp
  3931. \&\fB\-Wnonnull\-compare\fR is included in \fB\-Wall\fR. It
  3932. can be disabled with the \fB\-Wno\-nonnull\-compare\fR option.
  3933. .IP "\fB\-Wnull\-dereference\fR" 4
  3934. .IX Item "-Wnull-dereference"
  3935. Warn if the compiler detects paths that trigger erroneous or
  3936. undefined behavior due to dereferencing a null pointer. This option
  3937. is only active when \fB\-fdelete\-null\-pointer\-checks\fR is active,
  3938. which is enabled by optimizations in most targets. The precision of
  3939. the warnings depends on the optimization options used.
  3940. .IP "\fB\-Winit\-self\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
  3941. .IX Item "-Winit-self (C, , Objective-C and Objective- only)"
  3942. Warn about uninitialized variables that are initialized with themselves.
  3943. Note this option can only be used with the \fB\-Wuninitialized\fR option.
  3944. .Sp
  3945. For example, \s-1GCC\s0 warns about \f(CW\*(C`i\*(C'\fR being uninitialized in the
  3946. following snippet only when \fB\-Winit\-self\fR has been specified:
  3947. .Sp
  3948. .Vb 5
  3949. \& int f()
  3950. \& {
  3951. \& int i = i;
  3952. \& return i;
  3953. \& }
  3954. .Ve
  3955. .Sp
  3956. This warning is enabled by \fB\-Wall\fR in \*(C+.
  3957. .IP "\fB\-Wimplicit\-int\fR (C and Objective-C only)" 4
  3958. .IX Item "-Wimplicit-int (C and Objective-C only)"
  3959. Warn when a declaration does not specify a type.
  3960. This warning is enabled by \fB\-Wall\fR.
  3961. .IP "\fB\-Wimplicit\-function\-declaration\fR (C and Objective-C only)" 4
  3962. .IX Item "-Wimplicit-function-declaration (C and Objective-C only)"
  3963. Give a warning whenever a function is used before being declared. In
  3964. C99 mode (\fB\-std=c99\fR or \fB\-std=gnu99\fR), this warning is
  3965. enabled by default and it is made into an error by
  3966. \&\fB\-pedantic\-errors\fR. This warning is also enabled by
  3967. \&\fB\-Wall\fR.
  3968. .IP "\fB\-Wimplicit\fR (C and Objective-C only)" 4
  3969. .IX Item "-Wimplicit (C and Objective-C only)"
  3970. Same as \fB\-Wimplicit\-int\fR and \fB\-Wimplicit\-function\-declaration\fR.
  3971. This warning is enabled by \fB\-Wall\fR.
  3972. .IP "\fB\-Wimplicit\-fallthrough\fR" 4
  3973. .IX Item "-Wimplicit-fallthrough"
  3974. \&\fB\-Wimplicit\-fallthrough\fR is the same as \fB\-Wimplicit\-fallthrough=3\fR
  3975. and \fB\-Wno\-implicit\-fallthrough\fR is the same as
  3976. \&\fB\-Wimplicit\-fallthrough=0\fR.
  3977. .IP "\fB\-Wimplicit\-fallthrough=\fR\fIn\fR" 4
  3978. .IX Item "-Wimplicit-fallthrough=n"
  3979. Warn when a switch case falls through. For example:
  3980. .Sp
  3981. .Vb 11
  3982. \& switch (cond)
  3983. \& {
  3984. \& case 1:
  3985. \& a = 1;
  3986. \& break;
  3987. \& case 2:
  3988. \& a = 2;
  3989. \& case 3:
  3990. \& a = 3;
  3991. \& break;
  3992. \& }
  3993. .Ve
  3994. .Sp
  3995. This warning does not warn when the last statement of a case cannot
  3996. fall through, e.g. when there is a return statement or a call to function
  3997. declared with the noreturn attribute. \fB\-Wimplicit\-fallthrough=\fR
  3998. also takes into account control flow statements, such as ifs, and only
  3999. warns when appropriate. E.g.
  4000. .Sp
  4001. .Vb 10
  4002. \& switch (cond)
  4003. \& {
  4004. \& case 1:
  4005. \& if (i > 3) {
  4006. \& bar (5);
  4007. \& break;
  4008. \& } else if (i < 1) {
  4009. \& bar (0);
  4010. \& } else
  4011. \& return;
  4012. \& default:
  4013. \& ...
  4014. \& }
  4015. .Ve
  4016. .Sp
  4017. Since there are occasions where a switch case fall through is desirable,
  4018. \&\s-1GCC\s0 provides an attribute, \f(CW\*(C`_\|_attribute_\|_ ((fallthrough))\*(C'\fR, that is
  4019. to be used along with a null statement to suppress this warning that
  4020. would normally occur:
  4021. .Sp
  4022. .Vb 8
  4023. \& switch (cond)
  4024. \& {
  4025. \& case 1:
  4026. \& bar (0);
  4027. \& _\|_attribute_\|_ ((fallthrough));
  4028. \& default:
  4029. \& ...
  4030. \& }
  4031. .Ve
  4032. .Sp
  4033. \&\*(C+17 provides a standard way to suppress the \fB\-Wimplicit\-fallthrough\fR
  4034. warning using \f(CW\*(C`[[fallthrough]];\*(C'\fR instead of the \s-1GNU\s0 attribute. In \*(C+11
  4035. or \*(C+14 users can use \f(CW\*(C`[[gnu::fallthrough]];\*(C'\fR, which is a \s-1GNU\s0 extension.
  4036. Instead of the these attributes, it is also possible to add a fallthrough
  4037. comment to silence the warning. The whole body of the C or \*(C+ style comment
  4038. should match the given regular expressions listed below. The option argument
  4039. \&\fIn\fR specifies what kind of comments are accepted:
  4040. .RS 4
  4041. .IP "*<\fB\-Wimplicit\-fallthrough=0\fR disables the warning altogether.>" 4
  4042. .IX Item "*<-Wimplicit-fallthrough=0 disables the warning altogether.>"
  4043. .PD 0
  4044. .ie n .IP "*<\fB\-Wimplicit\-fallthrough=1\fR matches "".*"" regular>" 4
  4045. .el .IP "*<\fB\-Wimplicit\-fallthrough=1\fR matches \f(CW.*\fR regular>" 4
  4046. .IX Item "*<-Wimplicit-fallthrough=1 matches .* regular>"
  4047. .PD
  4048. expression, any comment is used as fallthrough comment.
  4049. .IP "*<\fB\-Wimplicit\-fallthrough=2\fR case insensitively matches>" 4
  4050. .IX Item "*<-Wimplicit-fallthrough=2 case insensitively matches>"
  4051. \&\f(CW\*(C`.*falls?[ \et\-]*thr(ough|u).*\*(C'\fR regular expression.
  4052. .IP "*<\fB\-Wimplicit\-fallthrough=3\fR case sensitively matches one of the>" 4
  4053. .IX Item "*<-Wimplicit-fallthrough=3 case sensitively matches one of the>"
  4054. following regular expressions:
  4055. .RS 4
  4056. .ie n .IP "*<""\-fallthrough"">" 4
  4057. .el .IP "*<\f(CW\-fallthrough\fR>" 4
  4058. .IX Item "*<-fallthrough>"
  4059. .PD 0
  4060. .ie n .IP "*<""@fallthrough@"">" 4
  4061. .el .IP "*<\f(CW@fallthrough@\fR>" 4
  4062. .IX Item "*<@fallthrough@>"
  4063. .ie n .IP "*<""lint \-fallthrough[ \et]*"">" 4
  4064. .el .IP "*<\f(CWlint \-fallthrough[ \et]*\fR>" 4
  4065. .IX Item "*<lint -fallthrough[ t]*>"
  4066. .ie n .IP "*<""[ \et.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |\-)?THR(OUGH|U)[ \et.!]*(\-[^\en\er]*)?"">" 4
  4067. .el .IP "*<\f(CW[ \et.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |\-)?THR(OUGH|U)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
  4068. .IX Item "*<[ t.!]*(ELSE,? |INTENTIONAL(LY)? )?FALL(S | |-)?THR(OUGH|U)[ t.!]*(-[^nr]*)?>"
  4069. .ie n .IP "*<""[ \et.!]*(Else,? |Intentional(ly)? )?Fall((s | |\-)[Tt]|t)hr(ough|u)[ \et.!]*(\-[^\en\er]*)?"">" 4
  4070. .el .IP "*<\f(CW[ \et.!]*(Else,? |Intentional(ly)? )?Fall((s | |\-)[Tt]|t)hr(ough|u)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
  4071. .IX Item "*<[ t.!]*(Else,? |Intentional(ly)? )?Fall((s | |-)[Tt]|t)hr(ough|u)[ t.!]*(-[^nr]*)?>"
  4072. .ie n .IP "*<""[ \et.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |\-)?thr(ough|u)[ \et.!]*(\-[^\en\er]*)?"">" 4
  4073. .el .IP "*<\f(CW[ \et.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |\-)?thr(ough|u)[ \et.!]*(\-[^\en\er]*)?\fR>" 4
  4074. .IX Item "*<[ t.!]*([Ee]lse,? |[Ii]ntentional(ly)? )?fall(s | |-)?thr(ough|u)[ t.!]*(-[^nr]*)?>"
  4075. .RE
  4076. .RS 4
  4077. .RE
  4078. .IP "*<\fB\-Wimplicit\-fallthrough=4\fR case sensitively matches one of the>" 4
  4079. .IX Item "*<-Wimplicit-fallthrough=4 case sensitively matches one of the>"
  4080. .PD
  4081. following regular expressions:
  4082. .RS 4
  4083. .ie n .IP "*<""\-fallthrough"">" 4
  4084. .el .IP "*<\f(CW\-fallthrough\fR>" 4
  4085. .IX Item "*<-fallthrough>"
  4086. .PD 0
  4087. .ie n .IP "*<""@fallthrough@"">" 4
  4088. .el .IP "*<\f(CW@fallthrough@\fR>" 4
  4089. .IX Item "*<@fallthrough@>"
  4090. .ie n .IP "*<""lint \-fallthrough[ \et]*"">" 4
  4091. .el .IP "*<\f(CWlint \-fallthrough[ \et]*\fR>" 4
  4092. .IX Item "*<lint -fallthrough[ t]*>"
  4093. .ie n .IP "*<""[ \et]*FALLTHR(OUGH|U)[ \et]*"">" 4
  4094. .el .IP "*<\f(CW[ \et]*FALLTHR(OUGH|U)[ \et]*\fR>" 4
  4095. .IX Item "*<[ t]*FALLTHR(OUGH|U)[ t]*>"
  4096. .RE
  4097. .RS 4
  4098. .RE
  4099. .IP "*<\fB\-Wimplicit\-fallthrough=5\fR doesn't recognize any comments as>" 4
  4100. .IX Item "*<-Wimplicit-fallthrough=5 doesn't recognize any comments as>"
  4101. .PD
  4102. fallthrough comments, only attributes disable the warning.
  4103. .RE
  4104. .RS 4
  4105. .Sp
  4106. The comment needs to be followed after optional whitespace and other comments
  4107. by \f(CW\*(C`case\*(C'\fR or \f(CW\*(C`default\*(C'\fR keywords or by a user label that precedes some
  4108. \&\f(CW\*(C`case\*(C'\fR or \f(CW\*(C`default\*(C'\fR label.
  4109. .Sp
  4110. .Vb 8
  4111. \& switch (cond)
  4112. \& {
  4113. \& case 1:
  4114. \& bar (0);
  4115. \& /* FALLTHRU */
  4116. \& default:
  4117. \& ...
  4118. \& }
  4119. .Ve
  4120. .Sp
  4121. The \fB\-Wimplicit\-fallthrough=3\fR warning is enabled by \fB\-Wextra\fR.
  4122. .RE
  4123. .IP "\fB\-Wignored\-qualifiers\fR (C and \*(C+ only)" 4
  4124. .IX Item "-Wignored-qualifiers (C and only)"
  4125. Warn if the return type of a function has a type qualifier
  4126. such as \f(CW\*(C`const\*(C'\fR. For \s-1ISO C\s0 such a type qualifier has no effect,
  4127. since the value returned by a function is not an lvalue.
  4128. For \*(C+, the warning is only emitted for scalar types or \f(CW\*(C`void\*(C'\fR.
  4129. \&\s-1ISO C\s0 prohibits qualified \f(CW\*(C`void\*(C'\fR return types on function
  4130. definitions, so such return types always receive a warning
  4131. even without this option.
  4132. .Sp
  4133. This warning is also enabled by \fB\-Wextra\fR.
  4134. .IP "\fB\-Wignored\-attributes\fR (C and \*(C+ only)" 4
  4135. .IX Item "-Wignored-attributes (C and only)"
  4136. Warn when an attribute is ignored. This is different from the
  4137. \&\fB\-Wattributes\fR option in that it warns whenever the compiler decides
  4138. to drop an attribute, not that the attribute is either unknown, used in a
  4139. wrong place, etc. This warning is enabled by default.
  4140. .IP "\fB\-Wmain\fR" 4
  4141. .IX Item "-Wmain"
  4142. Warn if the type of \f(CW\*(C`main\*(C'\fR is suspicious. \f(CW\*(C`main\*(C'\fR should be
  4143. a function with external linkage, returning int, taking either zero
  4144. arguments, two, or three arguments of appropriate types. This warning
  4145. is enabled by default in \*(C+ and is enabled by either \fB\-Wall\fR
  4146. or \fB\-Wpedantic\fR.
  4147. .IP "\fB\-Wmisleading\-indentation\fR (C and \*(C+ only)" 4
  4148. .IX Item "-Wmisleading-indentation (C and only)"
  4149. Warn when the indentation of the code does not reflect the block structure.
  4150. 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
  4151. \&\f(CW\*(C`for\*(C'\fR clauses with a guarded statement that does not use braces,
  4152. followed by an unguarded statement with the same indentation.
  4153. .Sp
  4154. In the following example, the call to \*(L"bar\*(R" is misleadingly indented as
  4155. if it were guarded by the \*(L"if\*(R" conditional.
  4156. .Sp
  4157. .Vb 3
  4158. \& if (some_condition ())
  4159. \& foo ();
  4160. \& bar (); /* Gotcha: this is not guarded by the "if". */
  4161. .Ve
  4162. .Sp
  4163. In the case of mixed tabs and spaces, the warning uses the
  4164. \&\fB\-ftabstop=\fR option to determine if the statements line up
  4165. (defaulting to 8).
  4166. .Sp
  4167. The warning is not issued for code involving multiline preprocessor logic
  4168. such as the following example.
  4169. .Sp
  4170. .Vb 6
  4171. \& if (flagA)
  4172. \& foo (0);
  4173. \& #if SOME_CONDITION_THAT_DOES_NOT_HOLD
  4174. \& if (flagB)
  4175. \& #endif
  4176. \& foo (1);
  4177. .Ve
  4178. .Sp
  4179. The warning is not issued after a \f(CW\*(C`#line\*(C'\fR directive, since this
  4180. typically indicates autogenerated code, and no assumptions can be made
  4181. about the layout of the file that the directive references.
  4182. .Sp
  4183. This warning is enabled by \fB\-Wall\fR in C and \*(C+.
  4184. .IP "\fB\-Wmissing\-braces\fR" 4
  4185. .IX Item "-Wmissing-braces"
  4186. Warn if an aggregate or union initializer is not fully bracketed. In
  4187. the following example, the initializer for \f(CW\*(C`a\*(C'\fR is not fully
  4188. bracketed, but that for \f(CW\*(C`b\*(C'\fR is fully bracketed. This warning is
  4189. enabled by \fB\-Wall\fR in C.
  4190. .Sp
  4191. .Vb 2
  4192. \& int a[2][2] = { 0, 1, 2, 3 };
  4193. \& int b[2][2] = { { 0, 1 }, { 2, 3 } };
  4194. .Ve
  4195. .Sp
  4196. This warning is enabled by \fB\-Wall\fR.
  4197. .IP "\fB\-Wmissing\-include\-dirs\fR (C, \*(C+, Objective-C and Objective\-\*(C+ only)" 4
  4198. .IX Item "-Wmissing-include-dirs (C, , Objective-C and Objective- only)"
  4199. Warn if a user-supplied include directory does not exist.
  4200. .IP "\fB\-Wparentheses\fR" 4
  4201. .IX Item "-Wparentheses"
  4202. Warn if parentheses are omitted in certain contexts, such
  4203. as when there is an assignment in a context where a truth value
  4204. is expected, or when operators are nested whose precedence people
  4205. often get confused about.
  4206. .Sp
  4207. Also warn if a comparison like \f(CW\*(C`x<=y<=z\*(C'\fR appears; this is
  4208. equivalent to \f(CW\*(C`(x<=y ? 1 : 0) <= z\*(C'\fR, which is a different
  4209. interpretation from that of ordinary mathematical notation.
  4210. .Sp
  4211. Also warn for dangerous uses of the \s-1GNU\s0 extension to
  4212. \&\f(CW\*(C`?:\*(C'\fR with omitted middle operand. When the condition
  4213. in the \f(CW\*(C`?\*(C'\fR: operator is a boolean expression, the omitted value is
  4214. always 1. Often programmers expect it to be a value computed
  4215. inside the conditional expression instead.
  4216. .Sp
  4217. This warning is enabled by \fB\-Wall\fR.
  4218. .IP "\fB\-Wsequence\-point\fR" 4
  4219. .IX Item "-Wsequence-point"
  4220. Warn about code that may have undefined semantics because of violations
  4221. of sequence point rules in the C and \*(C+ standards.
  4222. .Sp
  4223. The C and \*(C+ standards define the order in which expressions in a C/\*(C+
  4224. program are evaluated in terms of \fIsequence points\fR, which represent
  4225. a partial ordering between the execution of parts of the program: those
  4226. executed before the sequence point, and those executed after it. These
  4227. occur after the evaluation of a full expression (one which is not part
  4228. of a larger expression), after the evaluation of the first operand of a
  4229. \&\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
  4230. function is called (but after the evaluation of its arguments and the
  4231. expression denoting the called function), and in certain other places.
  4232. Other than as expressed by the sequence point rules, the order of
  4233. evaluation of subexpressions of an expression is not specified. All
  4234. these rules describe only a partial order rather than a total order,
  4235. since, for example, if two functions are called within one expression
  4236. with no sequence point between them, the order in which the functions
  4237. are called is not specified. However, the standards committee have
  4238. ruled that function calls do not overlap.
  4239. .Sp
  4240. It is not specified when between sequence points modifications to the
  4241. values of objects take effect. Programs whose behavior depends on this
  4242. have undefined behavior; the C and \*(C+ standards specify that \*(L"Between
  4243. the previous and next sequence point an object shall have its stored
  4244. value modified at most once by the evaluation of an expression.
  4245. Furthermore, the prior value shall be read only to determine the value
  4246. to be stored.\*(R". If a program breaks these rules, the results on any
  4247. particular implementation are entirely unpredictable.
  4248. .Sp
  4249. Examples of code with undefined behavior are \f(CW\*(C`a = a++;\*(C'\fR, \f(CW\*(C`a[n]
  4250. = b[n++]\*(C'\fR and \f(CW\*(C`a[i++] = i;\*(C'\fR. Some more complicated cases are not
  4251. diagnosed by this option, and it may give an occasional false positive
  4252. result, but in general it has been found fairly effective at detecting
  4253. this sort of problem in programs.
  4254. .Sp
  4255. The \*(C+17 standard will define the order of evaluation of operands in
  4256. more cases: in particular it requires that the right-hand side of an
  4257. assignment be evaluated before the left-hand side, so the above
  4258. examples are no longer undefined. But this warning will still warn
  4259. about them, to help people avoid writing code that is undefined in C
  4260. and earlier revisions of \*(C+.
  4261. .Sp
  4262. The standard is worded confusingly, therefore there is some debate
  4263. over the precise meaning of the sequence point rules in subtle cases.
  4264. Links to discussions of the problem, including proposed formal
  4265. definitions, may be found on the \s-1GCC\s0 readings page, at
  4266. <\fBhttp://gcc.gnu.org/readings.html\fR>.
  4267. .Sp
  4268. This warning is enabled by \fB\-Wall\fR for C and \*(C+.
  4269. .IP "\fB\-Wno\-return\-local\-addr\fR" 4
  4270. .IX Item "-Wno-return-local-addr"
  4271. Do not warn about returning a pointer (or in \*(C+, a reference) to a
  4272. variable that goes out of scope after the function returns.
  4273. .IP "\fB\-Wreturn\-type\fR" 4
  4274. .IX Item "-Wreturn-type"
  4275. Warn whenever a function is defined with a return type that defaults
  4276. to \f(CW\*(C`int\*(C'\fR. Also warn about any \f(CW\*(C`return\*(C'\fR statement with no
  4277. return value in a function whose return type is not \f(CW\*(C`void\*(C'\fR
  4278. (falling off the end of the function body is considered returning
  4279. without a value).
  4280. .Sp
  4281. For C only, warn about a \f(CW\*(C`return\*(C'\fR statement with an expression in a
  4282. function whose return type is \f(CW\*(C`void\*(C'\fR, unless the expression type is
  4283. also \f(CW\*(C`void\*(C'\fR. As a \s-1GNU\s0 extension, the latter case is accepted
  4284. without a warning unless \fB\-Wpedantic\fR is used.
  4285. .Sp
  4286. For \*(C+, a function without return type always produces a diagnostic
  4287. message, even when \fB\-Wno\-return\-type\fR is specified. The only
  4288. exceptions are \f(CW\*(C`main\*(C'\fR and functions defined in system headers.
  4289. .Sp
  4290. This warning is enabled by \fB\-Wall\fR.
  4291. .IP "\fB\-Wshift\-count\-negative\fR" 4
  4292. .IX Item "-Wshift-count-negative"
  4293. Warn if shift count is negative. This warning is enabled by default.
  4294. .IP "\fB\-Wshift\-count\-overflow\fR" 4
  4295. .IX Item "-Wshift-count-overflow"
  4296. Warn if shift count >= width of type. This warning is enabled by default.
  4297. .IP "\fB\-Wshift\-negative\-value\fR" 4
  4298. .IX Item "-Wshift-negative-value"
  4299. Warn if left shifting a negative value. This warning is enabled by
  4300. \&\fB\-Wextra\fR in C99 and \*(C+11 modes (and newer).
  4301. .IP "\fB\-Wshift\-overflow\fR" 4
  4302. .IX Item "-Wshift-overflow"
  4303. .PD 0
  4304. .IP "\fB\-Wshift\-overflow=\fR\fIn\fR" 4
  4305. .IX Item "-Wshift-overflow=n"
  4306. .PD
  4307. Warn about left shift overflows. This warning is enabled by
  4308. default in C99 and \*(C+11 modes (and newer).
  4309. .RS 4
  4310. .IP "\fB\-Wshift\-overflow=1\fR" 4
  4311. .IX Item "-Wshift-overflow=1"
  4312. This is the warning level of \fB\-Wshift\-overflow\fR and is enabled
  4313. by default in C99 and \*(C+11 modes (and newer). This warning level does
  4314. not warn about left-shifting 1 into the sign bit. (However, in C, such
  4315. an overflow is still rejected in contexts where an integer constant expression
  4316. is required.)
  4317. .IP "\fB\-Wshift\-overflow=2\fR" 4
  4318. .IX Item "-Wshift-overflow=2"
  4319. This warning level also warns about left-shifting 1 into the sign bit,
  4320. unless \*(C+14 mode is active.
  4321. .RE
  4322. .RS 4
  4323. .RE
  4324. .IP "\fB\-Wswitch\fR" 4
  4325. .IX Item "-Wswitch"
  4326. Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
  4327. and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
  4328. enumeration. (The presence of a \f(CW\*(C`default\*(C'\fR label prevents this
  4329. warning.) \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
  4330. provoke warnings when this option is used (even if there is a
  4331. \&\f(CW\*(C`default\*(C'\fR label).
  4332. This warning is enabled by \fB\-Wall\fR.
  4333. .IP "\fB\-Wswitch\-default\fR" 4
  4334. .IX Item "-Wswitch-default"
  4335. Warn whenever a \f(CW\*(C`switch\*(C'\fR statement does not have a \f(CW\*(C`default\*(C'\fR
  4336. case.
  4337. .IP "\fB\-Wswitch\-enum\fR" 4
  4338. .IX Item "-Wswitch-enum"
  4339. Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of enumerated type
  4340. and lacks a \f(CW\*(C`case\*(C'\fR for one or more of the named codes of that
  4341. enumeration. \f(CW\*(C`case\*(C'\fR labels outside the enumeration range also
  4342. provoke warnings when this option is used. The only difference
  4343. between \fB\-Wswitch\fR and this option is that this option gives a
  4344. warning about an omitted enumeration code even if there is a
  4345. \&\f(CW\*(C`default\*(C'\fR label.
  4346. .IP "\fB\-Wswitch\-bool\fR" 4
  4347. .IX Item "-Wswitch-bool"
  4348. Warn whenever a \f(CW\*(C`switch\*(C'\fR statement has an index of boolean type
  4349. and the case values are outside the range of a boolean type.
  4350. It is possible to suppress this warning by casting the controlling
  4351. expression to a type other than \f(CW\*(C`bool\*(C'\fR. For example:
  4352. .Sp
  4353. .Vb 4
  4354. \& switch ((int) (a == 4))
  4355. \& {
  4356. \& ...
  4357. \& }
  4358. .Ve
  4359. .Sp
  4360. This warning is enabled by default for C and \*(C+ programs.
  4361. .IP "\fB\-Wswitch\-unreachable\fR" 4
  4362. .IX Item "-Wswitch-unreachable"
  4363. Warn whenever a \f(CW\*(C`switch\*(C'\fR statement contains statements between the
  4364. controlling expression and the first case label, which will never be
  4365. executed. For example:
  4366. .Sp
  4367. .Vb 7
  4368. \& switch (cond)
  4369. \& {
  4370. \& i = 15;
  4371. \& ...
  4372. \& case 5:
  4373. \& ...
  4374. \& }
  4375. .Ve
  4376. .Sp
  4377. \&\fB\-Wswitch\-unreachable\fR does not warn if the statement between the
  4378. controlling expression and the first case label is just a declaration:
  4379. .Sp
  4380. .Vb 8
  4381. \& switch (cond)
  4382. \& {
  4383. \& int i;
  4384. \& ...
  4385. \& case 5:
  4386. \& i = 5;
  4387. \& ...
  4388. \& }
  4389. .Ve
  4390. .Sp
  4391. This warning is enabled by default for C and \*(C+ programs.
  4392. .IP "\fB\-Wsync\-nand\fR (C and \*(C+ only)" 4
  4393. .IX Item "-Wsync-nand (C and only)"
  4394. Warn when \f(CW\*(C`_\|_sync_fetch_and_nand\*(C'\fR and \f(CW\*(C`_\|_sync_nand_and_fetch\*(C'\fR
  4395. built-in functions are used. These functions changed semantics in \s-1GCC 4.4.\s0
  4396. .IP "\fB\-Wunused\-but\-set\-parameter\fR" 4
  4397. .IX Item "-Wunused-but-set-parameter"
  4398. Warn whenever a function parameter is assigned to, but otherwise unused
  4399. (aside from its declaration).
  4400. .Sp
  4401. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  4402. .Sp
  4403. This warning is also enabled by \fB\-Wunused\fR together with
  4404. \&\fB\-Wextra\fR.
  4405. .IP "\fB\-Wunused\-but\-set\-variable\fR" 4
  4406. .IX Item "-Wunused-but-set-variable"
  4407. Warn whenever a local variable is assigned to, but otherwise unused
  4408. (aside from its declaration).
  4409. This warning is enabled by \fB\-Wall\fR.
  4410. .Sp
  4411. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  4412. .Sp
  4413. This warning is also enabled by \fB\-Wunused\fR, which is enabled
  4414. by \fB\-Wall\fR.
  4415. .IP "\fB\-Wunused\-function\fR" 4
  4416. .IX Item "-Wunused-function"
  4417. Warn whenever a static function is declared but not defined or a
  4418. non-inline static function is unused.
  4419. This warning is enabled by \fB\-Wall\fR.
  4420. .IP "\fB\-Wunused\-label\fR" 4
  4421. .IX Item "-Wunused-label"
  4422. Warn whenever a label is declared but not used.
  4423. This warning is enabled by \fB\-Wall\fR.
  4424. .Sp
  4425. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  4426. .IP "\fB\-Wunused\-local\-typedefs\fR (C, Objective-C, \*(C+ and Objective\-\*(C+ only)" 4
  4427. .IX Item "-Wunused-local-typedefs (C, Objective-C, and Objective- only)"
  4428. Warn when a typedef locally defined in a function is not used.
  4429. This warning is enabled by \fB\-Wall\fR.
  4430. .IP "\fB\-Wunused\-parameter\fR" 4
  4431. .IX Item "-Wunused-parameter"
  4432. Warn whenever a function parameter is unused aside from its declaration.
  4433. .Sp
  4434. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  4435. .IP "\fB\-Wno\-unused\-result\fR" 4
  4436. .IX Item "-Wno-unused-result"
  4437. Do not warn if a caller of a function marked with attribute
  4438. \&\f(CW\*(C`warn_unused_result\*(C'\fR does not use
  4439. its return value. The default is \fB\-Wunused\-result\fR.
  4440. .IP "\fB\-Wunused\-variable\fR" 4
  4441. .IX Item "-Wunused-variable"
  4442. Warn whenever a local or static variable is unused aside from its
  4443. declaration. This option implies \fB\-Wunused\-const\-variable=1\fR for C,
  4444. but not for \*(C+. This warning is enabled by \fB\-Wall\fR.
  4445. .Sp
  4446. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  4447. .IP "\fB\-Wunused\-const\-variable\fR" 4
  4448. .IX Item "-Wunused-const-variable"
  4449. .PD 0
  4450. .IP "\fB\-Wunused\-const\-variable=\fR\fIn\fR" 4
  4451. .IX Item "-Wunused-const-variable=n"
  4452. .PD
  4453. Warn whenever a constant static variable is unused aside from its declaration.
  4454. \&\fB\-Wunused\-const\-variable=1\fR is enabled by \fB\-Wunused\-variable\fR
  4455. for C, but not for \*(C+. In C this declares variable storage, but in \*(C+ this
  4456. is not an error since const variables take the place of \f(CW\*(C`#define\*(C'\fRs.
  4457. .Sp
  4458. To suppress this warning use the \f(CW\*(C`unused\*(C'\fR attribute.
  4459. .RS 4
  4460. .IP "\fB\-Wunused\-const\-variable=1\fR" 4
  4461. .IX Item "-Wunused-const-variable=1"
  4462. This is the warning level that is enabled by \fB\-Wunused\-variable\fR for
  4463. C. It warns only about unused static const variables defined in the main
  4464. compilation unit, but not about static const variables declared in any
  4465. header included.
  4466. .IP "\fB\-Wunused\-const\-variable=2\fR" 4
  4467. .IX Item "-Wunused-const-variable=2"
  4468. This warning level also warns for unused constant static variables in
  4469. headers (excluding system headers). This is the warning level of
  4470. \&\fB\-Wunused\-const\-variable\fR and must be explicitly requested since
  4471. in \*(C+ this isn't an error and in C it might be harder to clean up all
  4472. headers included.
  4473. .RE
  4474. .RS 4
  4475. .RE
  4476. .IP "\fB\-Wunused\-value\fR" 4
  4477. .IX Item "-Wunused-value"
  4478. Warn whenever a statement computes a result that is explicitly not
  4479. used. To suppress this warning cast the unused expression to
  4480. \&\f(CW\*(C`void\*(C'\fR. This includes an expression-statement or the left-hand
  4481. side of a comma expression that contains no side effects. For example,
  4482. an expression such as \f(CW\*(C`x[i,j]\*(C'\fR causes a warning, while
  4483. \&\f(CW\*(C`x[(void)i,j]\*(C'\fR does not.
  4484. .Sp
  4485. This warning is enabled by \fB\-Wall\fR.
  4486. .IP "\fB\-Wunused\fR" 4
  4487. .IX Item "-Wunused"
  4488. All the above \fB\-Wunused\fR options combined.
  4489. .Sp
  4490. In order to get a warning about an unused function parameter, you must
  4491. either specify \fB\-Wextra \-Wunused\fR (note that \fB\-Wall\fR implies
  4492. \&\fB\-Wunused\fR), or separately specify \fB\-Wunused\-parameter\fR.
  4493. .IP "\fB\-Wuninitialized\fR" 4
  4494. .IX Item "-Wuninitialized"
  4495. Warn if an automatic variable is used without first being initialized
  4496. or if a variable may be clobbered by a \f(CW\*(C`setjmp\*(C'\fR call. In \*(C+,
  4497. warn if a non-static reference or non-static \f(CW\*(C`const\*(C'\fR member
  4498. appears in a class without constructors.
  4499. .Sp
  4500. If you want to warn about code that uses the uninitialized value of the
  4501. variable in its own initializer, use the \fB\-Winit\-self\fR option.
  4502. .Sp
  4503. These warnings occur for individual uninitialized or clobbered
  4504. elements of structure, union or array variables as well as for
  4505. variables that are uninitialized or clobbered as a whole. They do
  4506. not occur for variables or elements declared \f(CW\*(C`volatile\*(C'\fR. Because
  4507. these warnings depend on optimization, the exact variables or elements
  4508. for which there are warnings depends on the precise optimization
  4509. options and version of \s-1GCC\s0 used.
  4510. .Sp
  4511. Note that there may be no warning about a variable that is used only
  4512. to compute a value that itself is never used, because such
  4513. computations may be deleted by data flow analysis before the warnings
  4514. are printed.
  4515. .IP "\fB\-Winvalid\-memory\-model\fR" 4
  4516. .IX Item "-Winvalid-memory-model"
  4517. Warn for invocations of \fB_\|_atomic Builtins\fR, \fB_\|_sync Builtins\fR,
  4518. and the C11 atomic generic functions with a memory consistency argument
  4519. that is either invalid for the operation or outside the range of values
  4520. of the \f(CW\*(C`memory_order\*(C'\fR enumeration. For example, since the
  4521. \&\f(CW\*(C`_\|_atomic_store\*(C'\fR and \f(CW\*(C`_\|_atomic_store_n\*(C'\fR built-ins are only
  4522. defined for the relaxed, release, and sequentially consistent memory
  4523. orders the following code is diagnosed:
  4524. .Sp
  4525. .Vb 4
  4526. \& void store (int *i)
  4527. \& {
  4528. \& _\|_atomic_store_n (i, 0, memory_order_consume);
  4529. \& }
  4530. .Ve
  4531. .Sp
  4532. \&\fB\-Winvalid\-memory\-model\fR is enabled by default.
  4533. .IP "\fB\-Wmaybe\-uninitialized\fR" 4
  4534. .IX Item "-Wmaybe-uninitialized"
  4535. For an automatic variable, if there exists a path from the function
  4536. entry to a use of the variable that is initialized, but there exist
  4537. some other paths for which the variable is not initialized, the compiler
  4538. emits a warning if it cannot prove the uninitialized paths are not
  4539. executed at run time. These warnings are made optional because \s-1GCC\s0 is
  4540. not smart enough to see all the reasons why the code might be correct
  4541. in spite of appearing to have an error. Here is one example of how
  4542. this can happen:
  4543. .Sp
  4544. .Vb 12
  4545. \& {
  4546. \& int x;
  4547. \& switch (y)
  4548. \& {
  4549. \& case 1: x = 1;
  4550. \& break;
  4551. \& case 2: x = 4;
  4552. \& break;
  4553. \& case 3: x = 5;
  4554. \& }
  4555. \& foo (x);
  4556. \& }
  4557. .Ve
  4558. .Sp
  4559. If the value of \f(CW\*(C`y\*(C'\fR is always 1, 2 or 3, then \f(CW\*(C`x\*(C'\fR is
  4560. always initialized, but \s-1GCC\s0 doesn't know this. To suppress the
  4561. warning, you need to provide a default case with \fIassert\fR\|(0) or
  4562. similar code.
  4563. .Sp
  4564. This option also warns when a non-volatile automatic variable might be
  4565. changed by a call to \f(CW\*(C`longjmp\*(C'\fR. These warnings as well are possible
  4566. only in optimizing compilation.
  4567. .Sp
  4568. The compiler sees only the calls to \f(CW\*(C`setjmp\*(C'\fR. It cannot know
  4569. where \f(CW\*(C`longjmp\*(C'\fR will be called; in fact, a signal handler could
  4570. call it at any point in the code. As a result, you may get a warning
  4571. even when there is in fact no problem because \f(CW\*(C`longjmp\*(C'\fR cannot
  4572. in fact be called at the place that would cause a problem.
  4573. .Sp
  4574. Some spurious warnings can be avoided if you declare all the functions
  4575. you use that never return as \f(CW\*(C`noreturn\*(C'\fR.
  4576. .Sp
  4577. This warning is enabled by \fB\-Wall\fR or \fB\-Wextra\fR.
  4578. .IP "\fB\-Wunknown\-pragmas\fR" 4
  4579. .IX Item "-Wunknown-pragmas"
  4580. Warn when a \f(CW\*(C`#pragma\*(C'\fR directive is encountered that is not understood by
  4581. \&\s-1GCC. \s0 If this command-line option is used, warnings are even issued
  4582. for unknown pragmas in system header files. This is not the case if
  4583. the warnings are only enabled by the \fB\-Wall\fR command-line option.
  4584. .IP "\fB\-Wno\-pragmas\fR" 4
  4585. .IX Item "-Wno-pragmas"
  4586. Do not warn about misuses of pragmas, such as incorrect parameters,
  4587. invalid syntax, or conflicts between pragmas. See also
  4588. \&\fB\-Wunknown\-pragmas\fR.
  4589. .IP "\fB\-Wstrict\-aliasing\fR" 4
  4590. .IX Item "-Wstrict-aliasing"
  4591. This option is only active when \fB\-fstrict\-aliasing\fR is active.
  4592. It warns about code that might break the strict aliasing rules that the
  4593. compiler is using for optimization. The warning does not catch all
  4594. cases, but does attempt to catch the more common pitfalls. It is
  4595. included in \fB\-Wall\fR.
  4596. It is equivalent to \fB\-Wstrict\-aliasing=3\fR
  4597. .IP "\fB\-Wstrict\-aliasing=n\fR" 4
  4598. .IX Item "-Wstrict-aliasing=n"
  4599. This option is only active when \fB\-fstrict\-aliasing\fR is active.
  4600. It warns about code that might break the strict aliasing rules that the
  4601. compiler is using for optimization.
  4602. Higher levels correspond to higher accuracy (fewer false positives).
  4603. Higher levels also correspond to more effort, similar to the way \fB\-O\fR
  4604. works.
  4605. \&\fB\-Wstrict\-aliasing\fR is equivalent to \fB\-Wstrict\-aliasing=3\fR.
  4606. .Sp
  4607. Level 1: Most aggressive, quick, least accurate.
  4608. Possibly useful when higher levels
  4609. do not warn but \fB\-fstrict\-aliasing\fR still breaks the code, as it has very few
  4610. false negatives. However, it has many false positives.
  4611. Warns for all pointer conversions between possibly incompatible types,
  4612. even if never dereferenced. Runs in the front end only.
  4613. .Sp
  4614. Level 2: Aggressive, quick, not too precise.
  4615. May still have many false positives (not as many as level 1 though),
  4616. and few false negatives (but possibly more than level 1).
  4617. Unlike level 1, it only warns when an address is taken. Warns about
  4618. incomplete types. Runs in the front end only.
  4619. .Sp
  4620. Level 3 (default for \fB\-Wstrict\-aliasing\fR):
  4621. Should have very few false positives and few false
  4622. negatives. Slightly slower than levels 1 or 2 when optimization is enabled.
  4623. Takes care of the common pun+dereference pattern in the front end:
  4624. \&\f(CW\*(C`*(int*)&some_float\*(C'\fR.
  4625. If optimization is enabled, it also runs in the back end, where it deals
  4626. with multiple statement cases using flow-sensitive points-to information.
  4627. Only warns when the converted pointer is dereferenced.
  4628. Does not warn about incomplete types.
  4629. .IP "\fB\-Wstrict\-overflow\fR" 4
  4630. .IX Item "-Wstrict-overflow"
  4631. .PD 0
  4632. .IP "\fB\-Wstrict\-overflow=\fR\fIn\fR" 4
  4633. .IX Item "-Wstrict-overflow=n"
  4634. .PD
  4635. This option is only active when \fB\-fstrict\-overflow\fR is active.
  4636. It warns about cases where the compiler optimizes based on the
  4637. assumption that signed overflow does not occur. Note that it does not
  4638. warn about all cases where the code might overflow: it only warns
  4639. about cases where the compiler implements some optimization. Thus
  4640. this warning depends on the optimization level.
  4641. .Sp
  4642. An optimization that assumes that signed overflow does not occur is
  4643. perfectly safe if the values of the variables involved are such that
  4644. overflow never does, in fact, occur. Therefore this warning can
  4645. easily give a false positive: a warning about code that is not
  4646. actually a problem. To help focus on important issues, several
  4647. warning levels are defined. No warnings are issued for the use of
  4648. undefined signed overflow when estimating how many iterations a loop
  4649. requires, in particular when determining whether a loop will be
  4650. executed at all.
  4651. .RS 4
  4652. .IP "\fB\-Wstrict\-overflow=1\fR" 4
  4653. .IX Item "-Wstrict-overflow=1"
  4654. Warn about cases that are both questionable and easy to avoid. For
  4655. example, with \fB\-fstrict\-overflow\fR, the compiler simplifies
  4656. \&\f(CW\*(C`x + 1 > x\*(C'\fR to \f(CW1\fR. This level of
  4657. \&\fB\-Wstrict\-overflow\fR is enabled by \fB\-Wall\fR; higher levels
  4658. are not, and must be explicitly requested.
  4659. .IP "\fB\-Wstrict\-overflow=2\fR" 4
  4660. .IX Item "-Wstrict-overflow=2"
  4661. Also warn about other cases where a comparison is simplified to a
  4662. constant. For example: \f(CW\*(C`abs (x) >= 0\*(C'\fR. This can only be
  4663. simplified when \fB\-fstrict\-overflow\fR is in effect, because
  4664. \&\f(CW\*(C`abs (INT_MIN)\*(C'\fR overflows to \f(CW\*(C`INT_MIN\*(C'\fR, which is less than
  4665. zero. \fB\-Wstrict\-overflow\fR (with no level) is the same as
  4666. \&\fB\-Wstrict\-overflow=2\fR.
  4667. .IP "\fB\-Wstrict\-overflow=3\fR" 4
  4668. .IX Item "-Wstrict-overflow=3"
  4669. Also warn about other cases where a comparison is simplified. For
  4670. example: \f(CW\*(C`x + 1 > 1\*(C'\fR is simplified to \f(CW\*(C`x > 0\*(C'\fR.
  4671. .IP "\fB\-Wstrict\-overflow=4\fR" 4
  4672. .IX Item "-Wstrict-overflow=4"
  4673. Also warn about other simplifications not covered by the above cases.
  4674. For example: \f(CW\*(C`(x * 10) / 5\*(C'\fR is simplified to \f(CW\*(C`x * 2\*(C'\fR.
  4675. .IP "\fB\-Wstrict\-overflow=5\fR" 4
  4676. .IX Item "-Wstrict-overflow=5"
  4677. Also warn about cases where the compiler reduces the magnitude of a
  4678. constant involved in a comparison. For example: \f(CW\*(C`x + 2 > y\*(C'\fR is
  4679. simplified to \f(CW\*(C`x + 1 >= y\*(C'\fR. This is reported only at the
  4680. highest warning level because this simplification applies to many
  4681. comparisons, so this warning level gives a very large number of
  4682. false positives.
  4683. .RE
  4684. .RS 4
  4685. .RE
  4686. .IP "\fB\-Wstringop\-overflow\fR" 4
  4687. .IX Item "-Wstringop-overflow"
  4688. .PD 0
  4689. .IP "\fB\-Wstringop\-overflow=\fR\fItype\fR" 4
  4690. .IX Item "-Wstringop-overflow=type"
  4691. .PD
  4692. Warn for calls to string manipulation functions such as \f(CW\*(C`memcpy\*(C'\fR and
  4693. \&\f(CW\*(C`strcpy\*(C'\fR that are determined to overflow the destination buffer. The
  4694. optional argument is one greater than the type of Object Size Checking to
  4695. perform to determine the size of the destination.
  4696. The argument is meaningful only for functions that operate on character arrays
  4697. but not for raw memory functions like \f(CW\*(C`memcpy\*(C'\fR which always make use
  4698. of Object Size type\-0. The option also warns for calls that specify a size
  4699. in excess of the largest possible object or at most \f(CW\*(C`SIZE_MAX / 2\*(C'\fR bytes.
  4700. The option produces the best results with optimization enabled but can detect
  4701. a small subset of simple buffer overflows even without optimization in
  4702. calls to the \s-1GCC\s0 built-in functions like \f(CW\*(C`_\|_builtin_memcpy\*(C'\fR that
  4703. correspond to the standard functions. In any case, the option warns about
  4704. just a subset of buffer overflows detected by the corresponding overflow
  4705. checking built-ins. For example, the option will issue a warning for
  4706. the \f(CW\*(C`strcpy\*(C'\fR call below because it copies at least 5 characters
  4707. (the string \f(CW"blue"\fR including the terminating \s-1NUL\s0) into the buffer
  4708. of size 4.
  4709. .Sp
  4710. .Vb 11
  4711. \& enum Color { blue, purple, yellow };
  4712. \& const char* f (enum Color clr)
  4713. \& {
  4714. \& static char buf [4];
  4715. \& const char *str;
  4716. \& switch (clr)
  4717. \& {
  4718. \& case blue: str = "blue"; break;
  4719. \& case purple: str = "purple"; break;
  4720. \& case yellow: str = "yellow"; break;
  4721. \& }
  4722. \&
  4723. \& return strcpy (buf, str); // warning here
  4724. \& }
  4725. .Ve
  4726. .Sp
  4727. Option \fB\-Wstringop\-overflow=2\fR is enabled by default.
  4728. .RS 4
  4729. .IP "\fB\-Wstringop\-overflow\fR" 4
  4730. .IX Item "-Wstringop-overflow"
  4731. .PD 0
  4732. .IP "\fB\-Wstringop\-overflow=1\fR" 4
  4733. .IX Item "-Wstringop-overflow=1"
  4734. .PD
  4735. The \fB\-Wstringop\-overflow=1\fR option uses type-zero Object Size Checking
  4736. to determine the sizes of destination objects. This is the default setting
  4737. of the option. At this setting the option will not warn for writes past
  4738. the end of subobjects of larger objects accessed by pointers unless the
  4739. size of the largest surrounding object is known. When the destination may
  4740. be one of several objects it is assumed to be the largest one of them. On
  4741. Linux systems, when optimization is enabled at this setting the option warns
  4742. for the same code as when the \f(CW\*(C`_FORTIFY_SOURCE\*(C'\fR macro is defined to
  4743. a non-zero value.
  4744. .IP "\fB\-Wstringop\-overflow=2\fR" 4
  4745. .IX Item "-Wstringop-overflow=2"
  4746. The \fB\-Wstringop\-overflow=2\fR option uses type-one Object Size Checking
  4747. to determine the sizes of destination objects. At this setting the option
  4748. will warn about overflows when writing to members of the largest complete
  4749. objects whose exact size is known. It will, however, not warn for excessive
  4750. writes to the same members of unknown objects referenced by pointers since
  4751. they may point to arrays containing unknown numbers of elements.
  4752. .IP "\fB\-Wstringop\-overflow=3\fR" 4
  4753. .IX Item "-Wstringop-overflow=3"
  4754. The \fB\-Wstringop\-overflow=3\fR option uses type-two Object Size Checking
  4755. to determine the sizes of destination objects. At this setting the option
  4756. warns about overflowing the smallest object or data member. This is the
  4757. most restrictive setting of the option that may result in warnings for safe
  4758. code.
  4759. .IP "\fB\-Wstringop\-overflow=4\fR" 4
  4760. .IX Item "-Wstringop-overflow=4"
  4761. The \fB\-Wstringop\-overflow=4\fR option uses type-three Object Size Checking
  4762. to determine the sizes of destination objects. At this setting the option
  4763. will warn about overflowing any data members, and when the destination is
  4764. one of several objects it uses the size of the largest of them to decide
  4765. whether to issue a warning. Similarly to \fB\-Wstringop\-overflow=3\fR this
  4766. setting of the option may result in warnings for benign code.
  4767. .RE
  4768. .RS 4
  4769. .RE
  4770. .IP "\fB\-Wsuggest\-attribute=\fR[\fBpure\fR|\fBconst\fR|\fBnoreturn\fR|\fBformat\fR]" 4
  4771. .IX Item "-Wsuggest-attribute=[pure|const|noreturn|format]"
  4772. Warn for cases where adding an attribute may be beneficial. The
  4773. attributes currently supported are listed below.
  4774. .RS 4
  4775. .IP "\fB\-Wsuggest\-attribute=pure\fR" 4
  4776. .IX Item "-Wsuggest-attribute=pure"
  4777. .PD 0
  4778. .IP "\fB\-Wsuggest\-attribute=const\fR" 4
  4779. .IX Item "-Wsuggest-attribute=const"
  4780. .IP "\fB\-Wsuggest\-attribute=noreturn\fR" 4
  4781. .IX Item "-Wsuggest-attribute=noreturn"
  4782. .PD
  4783. Warn about functions that might be candidates for attributes
  4784. \&\f(CW\*(C`pure\*(C'\fR, \f(CW\*(C`const\*(C'\fR or \f(CW\*(C`noreturn\*(C'\fR. The compiler only warns for
  4785. functions visible in other compilation units or (in the case of \f(CW\*(C`pure\*(C'\fR and
  4786. \&\f(CW\*(C`const\*(C'\fR) if it cannot prove that the function returns normally. A function
  4787. returns normally if it doesn't contain an infinite loop or return abnormally
  4788. by throwing, calling \f(CW\*(C`abort\*(C'\fR or trapping. This analysis requires option
  4789. \&\fB\-fipa\-pure\-const\fR, which is enabled by default at \fB\-O\fR and
  4790. higher. Higher optimization levels improve the accuracy of the analysis.
  4791. .IP "\fB\-Wsuggest\-attribute=format\fR" 4
  4792. .IX Item "-Wsuggest-attribute=format"
  4793. .PD 0
  4794. .IP "\fB\-Wmissing\-format\-attribute\fR" 4
  4795. .IX Item "-Wmissing-format-attribute"
  4796. .PD
  4797. Warn about function pointers that might be candidates for \f(CW\*(C`format\*(C'\fR
  4798. attributes. Note these are only possible candidates, not absolute ones.
  4799. \&\s-1GCC\s0 guesses that function pointers with \f(CW\*(C`format\*(C'\fR attributes that
  4800. are used in assignment, initialization, parameter passing or return
  4801. statements should have a corresponding \f(CW\*(C`format\*(C'\fR attribute in the
  4802. resulting type. I.e. the left-hand side of the assignment or
  4803. initialization, the type of the parameter variable, or the return type
  4804. of the containing function respectively should also have a \f(CW\*(C`format\*(C'\fR
  4805. attribute to avoid the warning.
  4806. .Sp
  4807. \&\s-1GCC\s0 also warns about function definitions that might be
  4808. candidates for \f(CW\*(C`format\*(C'\fR attributes. Again, these are only
  4809. possible candidates. \s-1GCC\s0 guesses that \f(CW\*(C`format\*(C'\fR attributes
  4810. might be appropriate for any function that calls a function like
  4811. \&\f(CW\*(C`vprintf\*(C'\fR or \f(CW\*(C`vscanf\*(C'\fR, but this might not always be the
  4812. case, and some functions for which \f(CW\*(C`format\*(C'\fR attributes are
  4813. appropriate may not be detected.
  4814. .RE
  4815. .RS 4
  4816. .RE
  4817. .IP "\fB\-Wsuggest\-final\-types\fR" 4
  4818. .IX Item "-Wsuggest-final-types"
  4819. Warn about types with virtual methods where code quality would be improved
  4820. if the type were declared with the \*(C+11 \f(CW\*(C`final\*(C'\fR specifier,
  4821. or, if possible,
  4822. declared in an anonymous namespace. This allows \s-1GCC\s0 to more aggressively
  4823. devirtualize the polymorphic calls. This warning is more effective with link
  4824. time optimization, where the information about the class hierarchy graph is
  4825. more complete.
  4826. .IP "\fB\-Wsuggest\-final\-methods\fR" 4
  4827. .IX Item "-Wsuggest-final-methods"
  4828. Warn about virtual methods where code quality would be improved if the method
  4829. were declared with the \*(C+11 \f(CW\*(C`final\*(C'\fR specifier,
  4830. or, if possible, its type were
  4831. declared in an anonymous namespace or with the \f(CW\*(C`final\*(C'\fR specifier.
  4832. This warning is
  4833. more effective with link-time optimization, where the information about the
  4834. class hierarchy graph is more complete. It is recommended to first consider
  4835. suggestions of \fB\-Wsuggest\-final\-types\fR and then rebuild with new
  4836. annotations.
  4837. .IP "\fB\-Wsuggest\-override\fR" 4
  4838. .IX Item "-Wsuggest-override"
  4839. Warn about overriding virtual functions that are not marked with the override
  4840. keyword.
  4841. .IP "\fB\-Walloc\-zero\fR" 4
  4842. .IX Item "-Walloc-zero"
  4843. Warn about calls to allocation functions decorated with attribute
  4844. \&\f(CW\*(C`alloc_size\*(C'\fR that specify zero bytes, including those to the built-in
  4845. forms of the functions \f(CW\*(C`aligned_alloc\*(C'\fR, \f(CW\*(C`alloca\*(C'\fR, \f(CW\*(C`calloc\*(C'\fR,
  4846. \&\f(CW\*(C`malloc\*(C'\fR, and \f(CW\*(C`realloc\*(C'\fR. Because the behavior of these functions
  4847. when called with a zero size differs among implementations (and in the case
  4848. of \f(CW\*(C`realloc\*(C'\fR has been deprecated) relying on it may result in subtle
  4849. portability bugs and should be avoided.
  4850. .IP "\fB\-Walloc\-size\-larger\-than=\fR\fIn\fR" 4
  4851. .IX Item "-Walloc-size-larger-than=n"
  4852. Warn about calls to functions decorated with attribute \f(CW\*(C`alloc_size\*(C'\fR
  4853. that attempt to allocate objects larger than the specified number of bytes,
  4854. or where the result of the size computation in an integer type with infinite
  4855. precision would exceed \f(CW\*(C`SIZE_MAX / 2\*(C'\fR. The option argument \fIn\fR
  4856. may end in one of the standard suffixes designating a multiple of bytes
  4857. such as \f(CW\*(C`kB\*(C'\fR and \f(CW\*(C`KiB\*(C'\fR for kilobyte and kibibyte, respectively,
  4858. \&\f(CW\*(C`MB\*(C'\fR and \f(CW\*(C`MiB\*(C'\fR for megabyte and mebibyte, and so on.
  4859. \&\fB\-Walloc\-size\-larger\-than=\fR\fI\s-1PTRDIFF_MAX\s0\fR is enabled by default.
  4860. Warnings controlled by the option can be disabled by specifying \fIn\fR
  4861. of \fI\s-1SIZE_MAX\s0\fR or more.
  4862. .IP "\fB\-Walloca\fR" 4
  4863. .IX Item "-Walloca"
  4864. This option warns on all uses of \f(CW\*(C`alloca\*(C'\fR in the source.
  4865. .IP "\fB\-Walloca\-larger\-than=\fR\fIn\fR" 4
  4866. .IX Item "-Walloca-larger-than=n"
  4867. This option warns on calls to \f(CW\*(C`alloca\*(C'\fR that are not bounded by a
  4868. controlling predicate limiting its argument of integer type to at most
  4869. \&\fIn\fR bytes, or calls to \f(CW\*(C`alloca\*(C'\fR where the bound is unknown.
  4870. Arguments of non-integer types are considered unbounded even if they
  4871. appear to be constrained to the expected range.
  4872. .Sp
  4873. For example, a bounded case of \f(CW\*(C`alloca\*(C'\fR could be:
  4874. .Sp
  4875. .Vb 9
  4876. \& void func (size_t n)
  4877. \& {
  4878. \& void *p;
  4879. \& if (n <= 1000)
  4880. \& p = alloca (n);
  4881. \& else
  4882. \& p = malloc (n);
  4883. \& f (p);
  4884. \& }
  4885. .Ve
  4886. .Sp
  4887. In the above example, passing \f(CW\*(C`\-Walloca\-larger\-than=1000\*(C'\fR would not
  4888. issue a warning because the call to \f(CW\*(C`alloca\*(C'\fR is known to be at most
  4889. 1000 bytes. However, if \f(CW\*(C`\-Walloca\-larger\-than=500\*(C'\fR were passed,
  4890. the compiler would emit a warning.
  4891. .Sp
  4892. Unbounded uses, on the other hand, are uses of \f(CW\*(C`alloca\*(C'\fR with no
  4893. controlling predicate constraining its integer argument. For example:
  4894. .Sp
  4895. .Vb 5
  4896. \& void func ()
  4897. \& {
  4898. \& void *p = alloca (n);
  4899. \& f (p);
  4900. \& }
  4901. .Ve
  4902. .Sp
  4903. If \f(CW\*(C`\-Walloca\-larger\-than=500\*(C'\fR were passed, the above would trigger
  4904. a warning, but this time because of the lack of bounds checking.
  4905. .Sp
  4906. Note, that even seemingly correct code involving signed integers could
  4907. cause a warning:
  4908. .Sp
  4909. .Vb 8
  4910. \& void func (signed int n)
  4911. \& {
  4912. \& if (n < 500)
  4913. \& {
  4914. \& p = alloca (n);
  4915. \& f (p);
  4916. \& }
  4917. \& }
  4918. .Ve
  4919. .Sp
  4920. In the above example, \fIn\fR could be negative, causing a larger than
  4921. expected argument to be implicitly cast into the \f(CW\*(C`alloca\*(C'\fR call.
  4922. .Sp
  4923. This option also warns when \f(CW\*(C`alloca\*(C'\fR is used in a loop.
  4924. .Sp
  4925. This warning is not enabled by \fB\-Wall\fR, and is only active when
  4926. \&\fB\-ftree\-vrp\fR is active (default for \fB\-O2\fR and above).
  4927. .Sp
  4928. See also \fB\-Wvla\-larger\-than=\fR\fIn\fR.
  4929. .IP "\fB\-Warray\-bounds\fR" 4
  4930. .IX Item "-Warray-bounds"
  4931. .PD 0
  4932. .IP "\fB\-Warray\-bounds=\fR\fIn\fR" 4
  4933. .IX Item "-Warray-bounds=n"
  4934. .PD
  4935. This option is only active when \fB\-ftree\-vrp\fR is active
  4936. (default for \fB\-O2\fR and above). It warns about subscripts to arrays
  4937. that are always out of bounds. This warning is enabled by \fB\-Wall\fR.
  4938. .RS 4
  4939. .IP "\fB\-Warray\-bounds=1\fR" 4
  4940. .IX Item "-Warray-bounds=1"
  4941. This is the warning level of \fB\-Warray\-bounds\fR and is enabled
  4942. by \fB\-Wall\fR; higher levels are not, and must be explicitly requested.
  4943. .IP "\fB\-Warray\-bounds=2\fR" 4
  4944. .IX Item "-Warray-bounds=2"
  4945. This warning level also warns about out of bounds access for
  4946. arrays at the end of a struct and for arrays accessed through
  4947. pointers. This warning level may give a larger number of
  4948. false positives and is deactivated by default.
  4949. .RE
  4950. .RS 4
  4951. .RE
  4952. .IP "\fB\-Wbool\-compare\fR" 4
  4953. .IX Item "-Wbool-compare"
  4954. Warn about boolean expression compared with an integer value different from
  4955. \&\f(CW\*(C`true\*(C'\fR/\f(CW\*(C`false\*(C'\fR. For instance, the following comparison is
  4956. always false:
  4957. .Sp
  4958. .Vb 3
  4959. \& int n = 5;
  4960. \& ...
  4961. \& if ((n > 1) == 2) { ... }
  4962. .Ve
  4963. .Sp
  4964. This warning is enabled by \fB\-Wall\fR.
  4965. .IP "\fB\-Wbool\-operation\fR" 4
  4966. .IX Item "-Wbool-operation"
  4967. Warn about suspicious operations on expressions of a boolean type. For
  4968. instance, bitwise negation of a boolean is very likely a bug in the program.
  4969. For C, this warning also warns about incrementing or decrementing a boolean,
  4970. which rarely makes sense. (In \*(C+, decrementing a boolean is always invalid.
  4971. Incrementing a boolean is invalid in \*(C+1z, and deprecated otherwise.)
  4972. .Sp
  4973. This warning is enabled by \fB\-Wall\fR.
  4974. .IP "\fB\-Wduplicated\-branches\fR" 4
  4975. .IX Item "-Wduplicated-branches"
  4976. Warn when an if-else has identical branches. This warning detects cases like
  4977. .Sp
  4978. .Vb 4
  4979. \& if (p != NULL)
  4980. \& return 0;
  4981. \& else
  4982. \& return 0;
  4983. .Ve
  4984. .Sp
  4985. It doesn't warn when both branches contain just a null statement. This warning
  4986. also warn for conditional operators:
  4987. .Sp
  4988. .Vb 1
  4989. \& int i = x ? *p : *p;
  4990. .Ve
  4991. .IP "\fB\-Wduplicated\-cond\fR" 4
  4992. .IX Item "-Wduplicated-cond"
  4993. Warn about duplicated conditions in an if-else-if chain. For instance,
  4994. warn for the following code:
  4995. .Sp
  4996. .Vb 2
  4997. \& if (p\->q != NULL) { ... }
  4998. \& else if (p\->q != NULL) { ... }
  4999. .Ve
  5000. .IP "\fB\-Wframe\-address\fR" 4
  5001. .IX Item "-Wframe-address"
  5002. Warn when the \fB_\|_builtin_frame_address\fR or \fB_\|_builtin_return_address\fR
  5003. is called with an argument greater than 0. Such calls may return indeterminate
  5004. values or crash the program. The warning is included in \fB\-Wall\fR.
  5005. .IP "\fB\-Wno\-discarded\-qualifiers\fR (C and Objective-C only)" 4
  5006. .IX Item "-Wno-discarded-qualifiers (C and Objective-C only)"
  5007. Do not warn if type qualifiers on pointers are being discarded.
  5008. Typically, the compiler warns if a \f(CW\*(C`const char *\*(C'\fR variable is
  5009. passed to a function that takes a \f(CW\*(C`char *\*(C'\fR parameter. This option
  5010. can be used to suppress such a warning.
  5011. .IP "\fB\-Wno\-discarded\-array\-qualifiers\fR (C and Objective-C only)" 4
  5012. .IX Item "-Wno-discarded-array-qualifiers (C and Objective-C only)"
  5013. Do not warn if type qualifiers on arrays which are pointer targets
  5014. are being discarded. Typically, the compiler warns if a
  5015. \&\f(CW\*(C`const int (*)[]\*(C'\fR variable is passed to a function that
  5016. takes a \f(CW\*(C`int (*)[]\*(C'\fR parameter. This option can be used to
  5017. suppress such a warning.
  5018. .IP "\fB\-Wno\-incompatible\-pointer\-types\fR (C and Objective-C only)" 4
  5019. .IX Item "-Wno-incompatible-pointer-types (C and Objective-C only)"
  5020. Do not warn when there is a conversion between pointers that have incompatible
  5021. types. This warning is for cases not covered by \fB\-Wno\-pointer\-sign\fR,
  5022. which warns for pointer argument passing or assignment with different
  5023. signedness.
  5024. .IP "\fB\-Wno\-int\-conversion\fR (C and Objective-C only)" 4
  5025. .IX Item "-Wno-int-conversion (C and Objective-C only)"
  5026. Do not warn about incompatible integer to pointer and pointer to integer
  5027. conversions. This warning is about implicit conversions; for explicit
  5028. conversions the warnings \fB\-Wno\-int\-to\-pointer\-cast\fR and
  5029. \&\fB\-Wno\-pointer\-to\-int\-cast\fR may be used.
  5030. .IP "\fB\-Wno\-div\-by\-zero\fR" 4
  5031. .IX Item "-Wno-div-by-zero"
  5032. Do not warn about compile-time integer division by zero. Floating-point
  5033. division by zero is not warned about, as it can be a legitimate way of
  5034. obtaining infinities and NaNs.
  5035. .IP "\fB\-Wsystem\-headers\fR" 4
  5036. .IX Item "-Wsystem-headers"
  5037. Print warning messages for constructs found in system header files.
  5038. Warnings from system headers are normally suppressed, on the assumption
  5039. that they usually do not indicate real problems and would only make the
  5040. compiler output harder to read. Using this command-line option tells
  5041. \&\s-1GCC\s0 to emit warnings from system headers as if they occurred in user
  5042. code. However, note that using \fB\-Wall\fR in conjunction with this
  5043. option does \fInot\fR warn about unknown pragmas in system
  5044. headers\-\-\-for that, \fB\-Wunknown\-pragmas\fR must also be used.
  5045. .IP "\fB\-Wtautological\-compare\fR" 4
  5046. .IX Item "-Wtautological-compare"
  5047. Warn if a self-comparison always evaluates to true or false. This
  5048. warning detects various mistakes such as:
  5049. .Sp
  5050. .Vb 3
  5051. \& int i = 1;
  5052. \& ...
  5053. \& if (i > i) { ... }
  5054. .Ve
  5055. .Sp
  5056. This warning is enabled by \fB\-Wall\fR.
  5057. .IP "\fB\-Wtrampolines\fR" 4
  5058. .IX Item "-Wtrampolines"
  5059. Warn about trampolines generated for pointers to nested functions.
  5060. A trampoline is a small piece of data or code that is created at run
  5061. time on the stack when the address of a nested function is taken, and is
  5062. used to call the nested function indirectly. For some targets, it is
  5063. made up of data only and thus requires no special treatment. But, for
  5064. most targets, it is made up of code and thus requires the stack to be
  5065. made executable in order for the program to work properly.
  5066. .IP "\fB\-Wfloat\-equal\fR" 4
  5067. .IX Item "-Wfloat-equal"
  5068. Warn if floating-point values are used in equality comparisons.
  5069. .Sp
  5070. The idea behind this is that sometimes it is convenient (for the
  5071. programmer) to consider floating-point values as approximations to
  5072. infinitely precise real numbers. If you are doing this, then you need
  5073. to compute (by analyzing the code, or in some other way) the maximum or
  5074. likely maximum error that the computation introduces, and allow for it
  5075. when performing comparisons (and when producing output, but that's a
  5076. different problem). In particular, instead of testing for equality, you
  5077. should check to see whether the two values have ranges that overlap; and
  5078. this is done with the relational operators, so equality comparisons are
  5079. probably mistaken.
  5080. .IP "\fB\-Wtraditional\fR (C and Objective-C only)" 4
  5081. .IX Item "-Wtraditional (C and Objective-C only)"
  5082. Warn about certain constructs that behave differently in traditional and
  5083. \&\s-1ISO C. \s0 Also warn about \s-1ISO C\s0 constructs that have no traditional C
  5084. equivalent, and/or problematic constructs that should be avoided.
  5085. .RS 4
  5086. .IP "*" 4
  5087. Macro parameters that appear within string literals in the macro body.
  5088. In traditional C macro replacement takes place within string literals,
  5089. but in \s-1ISO C\s0 it does not.
  5090. .IP "*" 4
  5091. In traditional C, some preprocessor directives did not exist.
  5092. Traditional preprocessors only considered a line to be a directive
  5093. if the \fB#\fR appeared in column 1 on the line. Therefore
  5094. \&\fB\-Wtraditional\fR warns about directives that traditional C
  5095. understands but ignores because the \fB#\fR does not appear as the
  5096. first character on the line. It also suggests you hide directives like
  5097. \&\f(CW\*(C`#pragma\*(C'\fR not understood by traditional C by indenting them. Some
  5098. traditional implementations do not recognize \f(CW\*(C`#elif\*(C'\fR, so this option
  5099. suggests avoiding it altogether.
  5100. .IP "*" 4
  5101. A function-like macro that appears without arguments.
  5102. .IP "*" 4
  5103. The unary plus operator.
  5104. .IP "*" 4
  5105. The \fBU\fR integer constant suffix, or the \fBF\fR or \fBL\fR floating-point
  5106. constant suffixes. (Traditional C does support the \fBL\fR suffix on integer
  5107. constants.) Note, these suffixes appear in macros defined in the system
  5108. headers of most modern systems, e.g. the \fB_MIN\fR/\fB_MAX\fR macros in \f(CW\*(C`<limits.h>\*(C'\fR.
  5109. Use of these macros in user code might normally lead to spurious
  5110. warnings, however \s-1GCC\s0's integrated preprocessor has enough context to
  5111. avoid warning in these cases.
  5112. .IP "*" 4
  5113. A function declared external in one block and then used after the end of
  5114. the block.
  5115. .IP "*" 4
  5116. A \f(CW\*(C`switch\*(C'\fR statement has an operand of type \f(CW\*(C`long\*(C'\fR.
  5117. .IP "*" 4
  5118. A non\-\f(CW\*(C`static\*(C'\fR function declaration follows a \f(CW\*(C`static\*(C'\fR one.
  5119. This construct is not accepted by some traditional C compilers.
  5120. .IP "*" 4
  5121. The \s-1ISO\s0 type of an integer constant has a different width or
  5122. signedness from its traditional type. This warning is only issued if
  5123. the base of the constant is ten. I.e. hexadecimal or octal values, which
  5124. typically represent bit patterns, are not warned about.
  5125. .IP "*" 4
  5126. Usage of \s-1ISO\s0 string concatenation is detected.
  5127. .IP "*" 4
  5128. Initialization of automatic aggregates.
  5129. .IP "*" 4
  5130. Identifier conflicts with labels. Traditional C lacks a separate
  5131. namespace for labels.
  5132. .IP "*" 4
  5133. Initialization of unions. If the initializer is zero, the warning is
  5134. omitted. This is done under the assumption that the zero initializer in
  5135. user code appears conditioned on e.g. \f(CW\*(C`_\|_STDC_\|_\*(C'\fR to avoid missing
  5136. initializer warnings and relies on default initialization to zero in the
  5137. traditional C case.
  5138. .IP "*" 4
  5139. Conversions by prototypes between fixed/floating\-point values and vice
  5140. versa. The absence of these prototypes when compiling with traditional
  5141. C causes serious problems. This is a subset of the possible
  5142. conversion warnings; for the full set use \fB\-Wtraditional\-conversion\fR.
  5143. .IP "*" 4
  5144. Use of \s-1ISO C\s0 style function definitions. This warning intentionally is
  5145. \&\fInot\fR issued for prototype declarations or variadic functions
  5146. because these \s-1ISO C\s0 features appear in your code when using
  5147. libiberty's traditional C compatibility macros, \f(CW\*(C`PARAMS\*(C'\fR and
  5148. \&\f(CW\*(C`VPARAMS\*(C'\fR. This warning is also bypassed for nested functions
  5149. because that feature is already a \s-1GCC\s0 extension and thus not relevant to
  5150. traditional C compatibility.
  5151. .RE
  5152. .RS 4
  5153. .RE
  5154. .IP "\fB\-Wtraditional\-conversion\fR (C and Objective-C only)" 4
  5155. .IX Item "-Wtraditional-conversion (C and Objective-C only)"
  5156. Warn if a prototype causes a type conversion that is different from what
  5157. would happen to the same argument in the absence of a prototype. This
  5158. includes conversions of fixed point to floating and vice versa, and
  5159. conversions changing the width or signedness of a fixed-point argument
  5160. except when the same as the default promotion.
  5161. .IP "\fB\-Wdeclaration\-after\-statement\fR (C and Objective-C only)" 4
  5162. .IX Item "-Wdeclaration-after-statement (C and Objective-C only)"
  5163. Warn when a declaration is found after a statement in a block. This
  5164. construct, known from \*(C+, was introduced with \s-1ISO C99\s0 and is by default
  5165. allowed in \s-1GCC. \s0 It is not supported by \s-1ISO C90. \s0
  5166. .IP "\fB\-Wshadow\fR" 4
  5167. .IX Item "-Wshadow"
  5168. Warn whenever a local variable or type declaration shadows another
  5169. variable, parameter, type, class member (in \*(C+), or instance variable
  5170. (in Objective-C) or whenever a built-in function is shadowed. Note
  5171. that in \*(C+, the compiler warns if a local variable shadows an
  5172. explicit typedef, but not if it shadows a struct/class/enum.
  5173. Same as \fB\-Wshadow=global\fR.
  5174. .IP "\fB\-Wno\-shadow\-ivar\fR (Objective-C only)" 4
  5175. .IX Item "-Wno-shadow-ivar (Objective-C only)"
  5176. Do not warn whenever a local variable shadows an instance variable in an
  5177. Objective-C method.
  5178. .IP "\fB\-Wshadow=global\fR" 4
  5179. .IX Item "-Wshadow=global"
  5180. The default for \fB\-Wshadow\fR. Warns for any (global) shadowing.
  5181. .IP "\fB\-Wshadow=local\fR" 4
  5182. .IX Item "-Wshadow=local"
  5183. Warn when a local variable shadows another local variable or parameter.
  5184. This warning is enabled by \fB\-Wshadow=global\fR.
  5185. .IP "\fB\-Wshadow=compatible\-local\fR" 4
  5186. .IX Item "-Wshadow=compatible-local"
  5187. Warn when a local variable shadows another local variable or parameter
  5188. whose type is compatible with that of the shadowing variable. In \*(C+,
  5189. type compatibility here means the type of the shadowing variable can be
  5190. converted to that of the shadowed variable. The creation of this flag
  5191. (in addition to \fB\-Wshadow=local\fR) is based on the idea that when
  5192. a local variable shadows another one of incompatible type, it is most
  5193. likely intentional, not a bug or typo, as shown in the following example:
  5194. .Sp
  5195. .Vb 8
  5196. \& for (SomeIterator i = SomeObj.begin(); i != SomeObj.end(); ++i)
  5197. \& {
  5198. \& for (int i = 0; i < N; ++i)
  5199. \& {
  5200. \& ...
  5201. \& }
  5202. \& ...
  5203. \& }
  5204. .Ve
  5205. .Sp
  5206. Since the two variable \f(CW\*(C`i\*(C'\fR in the example above have incompatible types,
  5207. enabling only \fB\-Wshadow=compatible\-local\fR will not emit a warning.
  5208. Because their types are incompatible, if a programmer accidentally uses one
  5209. in place of the other, type checking will catch that and emit an error or
  5210. warning. So not warning (about shadowing) in this case will not lead to
  5211. undetected bugs. Use of this flag instead of \fB\-Wshadow=local\fR can
  5212. possibly reduce the number of warnings triggered by intentional shadowing.
  5213. .Sp
  5214. This warning is enabled by \fB\-Wshadow=local\fR.
  5215. .IP "\fB\-Wlarger\-than=\fR\fIlen\fR" 4
  5216. .IX Item "-Wlarger-than=len"
  5217. Warn whenever an object of larger than \fIlen\fR bytes is defined.
  5218. .IP "\fB\-Wframe\-larger\-than=\fR\fIlen\fR" 4
  5219. .IX Item "-Wframe-larger-than=len"
  5220. Warn if the size of a function frame is larger than \fIlen\fR bytes.
  5221. The computation done to determine the stack frame size is approximate
  5222. and not conservative.
  5223. The actual requirements may be somewhat greater than \fIlen\fR
  5224. even if you do not get a warning. In addition, any space allocated
  5225. via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related constructs
  5226. is not included by the compiler when determining
  5227. whether or not to issue a warning.
  5228. .IP "\fB\-Wno\-free\-nonheap\-object\fR" 4
  5229. .IX Item "-Wno-free-nonheap-object"
  5230. Do not warn when attempting to free an object that was not allocated
  5231. on the heap.
  5232. .IP "\fB\-Wstack\-usage=\fR\fIlen\fR" 4
  5233. .IX Item "-Wstack-usage=len"
  5234. Warn if the stack usage of a function might be larger than \fIlen\fR bytes.
  5235. The computation done to determine the stack usage is conservative.
  5236. Any space allocated via \f(CW\*(C`alloca\*(C'\fR, variable-length arrays, or related
  5237. constructs is included by the compiler when determining whether or not to
  5238. issue a warning.
  5239. .Sp
  5240. The message is in keeping with the output of \fB\-fstack\-usage\fR.
  5241. .RS 4
  5242. .IP "*" 4
  5243. If the stack usage is fully static but exceeds the specified amount, it's:
  5244. .Sp
  5245. .Vb 1
  5246. \& warning: stack usage is 1120 bytes
  5247. .Ve
  5248. .IP "*" 4
  5249. If the stack usage is (partly) dynamic but bounded, it's:
  5250. .Sp
  5251. .Vb 1
  5252. \& warning: stack usage might be 1648 bytes
  5253. .Ve
  5254. .IP "*" 4
  5255. If the stack usage is (partly) dynamic and not bounded, it's:
  5256. .Sp
  5257. .Vb 1
  5258. \& warning: stack usage might be unbounded
  5259. .Ve
  5260. .RE
  5261. .RS 4
  5262. .RE
  5263. .IP "\fB\-Wunsafe\-loop\-optimizations\fR" 4
  5264. .IX Item "-Wunsafe-loop-optimizations"
  5265. Warn if the loop cannot be optimized because the compiler cannot
  5266. assume anything on the bounds of the loop indices. With
  5267. \&\fB\-funsafe\-loop\-optimizations\fR warn if the compiler makes
  5268. such assumptions.
  5269. .IP "\fB\-Wno\-pedantic\-ms\-format\fR (MinGW targets only)" 4
  5270. .IX Item "-Wno-pedantic-ms-format (MinGW targets only)"
  5271. When used in combination with \fB\-Wformat\fR
  5272. and \fB\-pedantic\fR without \s-1GNU\s0 extensions, this option
  5273. disables the warnings about non-ISO \f(CW\*(C`printf\*(C'\fR / \f(CW\*(C`scanf\*(C'\fR format
  5274. 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,
  5275. which depend on the \s-1MS\s0 runtime.
  5276. .IP "\fB\-Waligned\-new\fR" 4
  5277. .IX Item "-Waligned-new"
  5278. Warn about a new-expression of a type that requires greater alignment
  5279. than the \f(CW\*(C`alignof(std::max_align_t)\*(C'\fR but uses an allocation
  5280. function without an explicit alignment parameter. This option is
  5281. enabled by \fB\-Wall\fR.
  5282. .Sp
  5283. Normally this only warns about global allocation functions, but
  5284. \&\fB\-Waligned\-new=all\fR also warns about class member allocation
  5285. functions.
  5286. .IP "\fB\-Wplacement\-new\fR" 4
  5287. .IX Item "-Wplacement-new"
  5288. .PD 0
  5289. .IP "\fB\-Wplacement\-new=\fR\fIn\fR" 4
  5290. .IX Item "-Wplacement-new=n"
  5291. .PD
  5292. Warn about placement new expressions with undefined behavior, such as
  5293. constructing an object in a buffer that is smaller than the type of
  5294. the object. For example, the placement new expression below is diagnosed
  5295. because it attempts to construct an array of 64 integers in a buffer only
  5296. 64 bytes large.
  5297. .Sp
  5298. .Vb 2
  5299. \& char buf [64];
  5300. \& new (buf) int[64];
  5301. .Ve
  5302. .Sp
  5303. This warning is enabled by default.
  5304. .RS 4
  5305. .IP "\fB\-Wplacement\-new=1\fR" 4
  5306. .IX Item "-Wplacement-new=1"
  5307. This is the default warning level of \fB\-Wplacement\-new\fR. At this
  5308. level the warning is not issued for some strictly undefined constructs that
  5309. \&\s-1GCC\s0 allows as extensions for compatibility with legacy code. For example,
  5310. the following \f(CW\*(C`new\*(C'\fR expression is not diagnosed at this level even
  5311. though it has undefined behavior according to the \*(C+ standard because
  5312. it writes past the end of the one-element array.
  5313. .Sp
  5314. .Vb 3
  5315. \& struct S { int n, a[1]; };
  5316. \& S *s = (S *)malloc (sizeof *s + 31 * sizeof s\->a[0]);
  5317. \& new (s\->a)int [32]();
  5318. .Ve
  5319. .IP "\fB\-Wplacement\-new=2\fR" 4
  5320. .IX Item "-Wplacement-new=2"
  5321. At this level, in addition to diagnosing all the same constructs as at level
  5322. 1, a diagnostic is also issued for placement new expressions that construct
  5323. an object in the last member of structure whose type is an array of a single
  5324. element and whose size is less than the size of the object being constructed.
  5325. While the previous example would be diagnosed, the following construct makes
  5326. use of the flexible member array extension to avoid the warning at level 2.
  5327. .Sp
  5328. .Vb 3
  5329. \& struct S { int n, a[]; };
  5330. \& S *s = (S *)malloc (sizeof *s + 32 * sizeof s\->a[0]);
  5331. \& new (s\->a)int [32]();
  5332. .Ve
  5333. .RE
  5334. .RS 4
  5335. .RE
  5336. .IP "\fB\-Wpointer\-arith\fR" 4
  5337. .IX Item "-Wpointer-arith"
  5338. Warn about anything that depends on the \*(L"size of\*(R" a function type or
  5339. of \f(CW\*(C`void\*(C'\fR. \s-1GNU C\s0 assigns these types a size of 1, for
  5340. convenience in calculations with \f(CW\*(C`void *\*(C'\fR pointers and pointers
  5341. to functions. In \*(C+, warn also when an arithmetic operation involves
  5342. \&\f(CW\*(C`NULL\*(C'\fR. This warning is also enabled by \fB\-Wpedantic\fR.
  5343. .IP "\fB\-Wpointer\-compare\fR" 4
  5344. .IX Item "-Wpointer-compare"
  5345. Warn if a pointer is compared with a zero character constant. This usually
  5346. means that the pointer was meant to be dereferenced. For example:
  5347. .Sp
  5348. .Vb 3
  5349. \& const char *p = foo ();
  5350. \& if (p == \*(Aq\e0\*(Aq)
  5351. \& return 42;
  5352. .Ve
  5353. .Sp
  5354. Note that the code above is invalid in \*(C+11.
  5355. .Sp
  5356. This warning is enabled by default.
  5357. .IP "\fB\-Wtype\-limits\fR" 4
  5358. .IX Item "-Wtype-limits"
  5359. Warn if a comparison is always true or always false due to the limited
  5360. range of the data type, but do not warn for constant expressions. For
  5361. example, warn if an unsigned variable is compared against zero with
  5362. \&\f(CW\*(C`<\*(C'\fR or \f(CW\*(C`>=\*(C'\fR. This warning is also enabled by
  5363. \&\fB\-Wextra\fR.
  5364. .IP "\fB\-Wcomment\fR" 4
  5365. .IX Item "-Wcomment"
  5366. .PD 0
  5367. .IP "\fB\-Wcomments\fR" 4
  5368. .IX Item "-Wcomments"
  5369. .PD
  5370. Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR
  5371. comment, or whenever a backslash-newline appears in a \fB//\fR comment.
  5372. This warning is enabled by \fB\-Wall\fR.
  5373. .IP "\fB\-Wtrigraphs\fR" 4
  5374. .IX Item "-Wtrigraphs"
  5375. Warn if any trigraphs are encountered that might change the meaning of
  5376. the program. Trigraphs within comments are not warned about,
  5377. except those that would form escaped newlines.
  5378. .Sp
  5379. This option is implied by \fB\-Wall\fR. If \fB\-Wall\fR is not
  5380. given, this option is still enabled unless trigraphs are enabled. To
  5381. get trigraph conversion without warnings, but get the other
  5382. \&\fB\-Wall\fR warnings, use \fB\-trigraphs \-Wall \-Wno\-trigraphs\fR.
  5383. .IP "\fB\-Wundef\fR" 4
  5384. .IX Item "-Wundef"
  5385. Warn if an undefined identifier is evaluated in an \f(CW\*(C`#if\*(C'\fR directive.
  5386. Such identifiers are replaced with zero.
  5387. .IP "\fB\-Wexpansion\-to\-defined\fR" 4
  5388. .IX Item "-Wexpansion-to-defined"
  5389. Warn whenever \fBdefined\fR is encountered in the expansion of a macro
  5390. (including the case where the macro is expanded by an \fB#if\fR directive).
  5391. Such usage is not portable.
  5392. This warning is also enabled by \fB\-Wpedantic\fR and \fB\-Wextra\fR.
  5393. .IP "\fB\-Wunused\-macros\fR" 4
  5394. .IX Item "-Wunused-macros"
  5395. Warn about macros defined in the main file that are unused. A macro
  5396. is \fIused\fR if it is expanded or tested for existence at least once.
  5397. The preprocessor also warns if the macro has not been used at the
  5398. time it is redefined or undefined.
  5399. .Sp
  5400. Built-in macros, macros defined on the command line, and macros
  5401. defined in include files are not warned about.
  5402. .Sp
  5403. \&\fINote:\fR If a macro is actually used, but only used in skipped
  5404. conditional blocks, then the preprocessor reports it as unused. To avoid the
  5405. warning in such a case, you might improve the scope of the macro's
  5406. definition by, for example, moving it into the first skipped block.
  5407. Alternatively, you could provide a dummy use with something like:
  5408. .Sp
  5409. .Vb 2
  5410. \& #if defined the_macro_causing_the_warning
  5411. \& #endif
  5412. .Ve
  5413. .IP "\fB\-Wno\-endif\-labels\fR" 4
  5414. .IX Item "-Wno-endif-labels"
  5415. Do not warn whenever an \f(CW\*(C`#else\*(C'\fR or an \f(CW\*(C`#endif\*(C'\fR are followed by text.
  5416. This sometimes happens in older programs with code of the form
  5417. .Sp
  5418. .Vb 5
  5419. \& #if FOO
  5420. \& ...
  5421. \& #else FOO
  5422. \& ...
  5423. \& #endif FOO
  5424. .Ve
  5425. .Sp
  5426. The second and third \f(CW\*(C`FOO\*(C'\fR should be in comments.
  5427. This warning is on by default.
  5428. .IP "\fB\-Wbad\-function\-cast\fR (C and Objective-C only)" 4
  5429. .IX Item "-Wbad-function-cast (C and Objective-C only)"
  5430. Warn when a function call is cast to a non-matching type.
  5431. For example, warn if a call to a function returning an integer type
  5432. is cast to a pointer type.
  5433. .IP "\fB\-Wc90\-c99\-compat\fR (C and Objective-C only)" 4
  5434. .IX Item "-Wc90-c99-compat (C and Objective-C only)"
  5435. Warn about features not present in \s-1ISO C90,\s0 but present in \s-1ISO C99.\s0
  5436. For instance, warn about use of variable length arrays, \f(CW\*(C`long long\*(C'\fR
  5437. type, \f(CW\*(C`bool\*(C'\fR type, compound literals, designated initializers, and so
  5438. on. This option is independent of the standards mode. Warnings are disabled
  5439. in the expression that follows \f(CW\*(C`_\|_extension_\|_\*(C'\fR.
  5440. .IP "\fB\-Wc99\-c11\-compat\fR (C and Objective-C only)" 4
  5441. .IX Item "-Wc99-c11-compat (C and Objective-C only)"
  5442. Warn about features not present in \s-1ISO C99,\s0 but present in \s-1ISO C11.\s0
  5443. For instance, warn about use of anonymous structures and unions,
  5444. \&\f(CW\*(C`_Atomic\*(C'\fR type qualifier, \f(CW\*(C`_Thread_local\*(C'\fR storage-class specifier,
  5445. \&\f(CW\*(C`_Alignas\*(C'\fR specifier, \f(CW\*(C`Alignof\*(C'\fR operator, \f(CW\*(C`_Generic\*(C'\fR keyword,
  5446. and so on. This option is independent of the standards mode. Warnings are
  5447. disabled in the expression that follows \f(CW\*(C`_\|_extension_\|_\*(C'\fR.
  5448. .IP "\fB\-Wc++\-compat\fR (C and Objective-C only)" 4
  5449. .IX Item "-Wc++-compat (C and Objective-C only)"
  5450. Warn about \s-1ISO C\s0 constructs that are outside of the common subset of
  5451. \&\s-1ISO C\s0 and \s-1ISO \*(C+,\s0 e.g. request for implicit conversion from
  5452. \&\f(CW\*(C`void *\*(C'\fR to a pointer to non\-\f(CW\*(C`void\*(C'\fR type.
  5453. .IP "\fB\-Wc++11\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5454. .IX Item "-Wc++11-compat ( and Objective- only)"
  5455. Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 1998\s0
  5456. and \s-1ISO \*(C+ 2011,\s0 e.g., identifiers in \s-1ISO \*(C+ 1998\s0 that are keywords
  5457. in \s-1ISO \*(C+ 2011. \s0 This warning turns on \fB\-Wnarrowing\fR and is
  5458. enabled by \fB\-Wall\fR.
  5459. .IP "\fB\-Wc++14\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5460. .IX Item "-Wc++14-compat ( and Objective- only)"
  5461. Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 2011\s0
  5462. and \s-1ISO \*(C+ 2014. \s0 This warning is enabled by \fB\-Wall\fR.
  5463. .IP "\fB\-Wc++1z\-compat\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5464. .IX Item "-Wc++1z-compat ( and Objective- only)"
  5465. Warn about \*(C+ constructs whose meaning differs between \s-1ISO \*(C+ 2014\s0
  5466. and the forthoming \s-1ISO \*(C+ 2017\s0(?). This warning is enabled by \fB\-Wall\fR.
  5467. .IP "\fB\-Wcast\-qual\fR" 4
  5468. .IX Item "-Wcast-qual"
  5469. Warn whenever a pointer is cast so as to remove a type qualifier from
  5470. the target type. For example, warn if a \f(CW\*(C`const char *\*(C'\fR is cast
  5471. to an ordinary \f(CW\*(C`char *\*(C'\fR.
  5472. .Sp
  5473. Also warn when making a cast that introduces a type qualifier in an
  5474. unsafe way. For example, casting \f(CW\*(C`char **\*(C'\fR to \f(CW\*(C`const char **\*(C'\fR
  5475. is unsafe, as in this example:
  5476. .Sp
  5477. .Vb 6
  5478. \& /* p is char ** value. */
  5479. \& const char **q = (const char **) p;
  5480. \& /* Assignment of readonly string to const char * is OK. */
  5481. \& *q = "string";
  5482. \& /* Now char** pointer points to read\-only memory. */
  5483. \& **p = \*(Aqb\*(Aq;
  5484. .Ve
  5485. .IP "\fB\-Wcast\-align\fR" 4
  5486. .IX Item "-Wcast-align"
  5487. Warn whenever a pointer is cast such that the required alignment of the
  5488. target is increased. For example, warn if a \f(CW\*(C`char *\*(C'\fR is cast to
  5489. an \f(CW\*(C`int *\*(C'\fR on machines where integers can only be accessed at
  5490. two\- or four-byte boundaries.
  5491. .IP "\fB\-Wwrite\-strings\fR" 4
  5492. .IX Item "-Wwrite-strings"
  5493. When compiling C, give string constants the type \f(CW\*(C`const
  5494. char[\f(CIlength\f(CW]\*(C'\fR so that copying the address of one into a
  5495. non\-\f(CW\*(C`const\*(C'\fR \f(CW\*(C`char *\*(C'\fR pointer produces a warning. These
  5496. warnings help you find at compile time code that can try to write
  5497. into a string constant, but only if you have been very careful about
  5498. using \f(CW\*(C`const\*(C'\fR in declarations and prototypes. Otherwise, it is
  5499. just a nuisance. This is why we did not make \fB\-Wall\fR request
  5500. these warnings.
  5501. .Sp
  5502. When compiling \*(C+, warn about the deprecated conversion from string
  5503. literals to \f(CW\*(C`char *\*(C'\fR. This warning is enabled by default for \*(C+
  5504. programs.
  5505. .IP "\fB\-Wclobbered\fR" 4
  5506. .IX Item "-Wclobbered"
  5507. Warn for variables that might be changed by \f(CW\*(C`longjmp\*(C'\fR or
  5508. \&\f(CW\*(C`vfork\*(C'\fR. This warning is also enabled by \fB\-Wextra\fR.
  5509. .IP "\fB\-Wconditionally\-supported\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5510. .IX Item "-Wconditionally-supported ( and Objective- only)"
  5511. Warn for conditionally-supported (\*(C+11 [intro.defs]) constructs.
  5512. .IP "\fB\-Wconversion\fR" 4
  5513. .IX Item "-Wconversion"
  5514. Warn for implicit conversions that may alter a value. This includes
  5515. conversions between real and integer, like \f(CW\*(C`abs (x)\*(C'\fR when
  5516. \&\f(CW\*(C`x\*(C'\fR is \f(CW\*(C`double\*(C'\fR; conversions between signed and unsigned,
  5517. like \f(CW\*(C`unsigned ui = \-1\*(C'\fR; and conversions to smaller types, like
  5518. \&\f(CW\*(C`sqrtf (M_PI)\*(C'\fR. Do not warn for explicit casts like \f(CW\*(C`abs
  5519. ((int) x)\*(C'\fR and \f(CW\*(C`ui = (unsigned) \-1\*(C'\fR, or if the value is not
  5520. changed by the conversion like in \f(CW\*(C`abs (2.0)\*(C'\fR. Warnings about
  5521. conversions between signed and unsigned integers can be disabled by
  5522. using \fB\-Wno\-sign\-conversion\fR.
  5523. .Sp
  5524. For \*(C+, also warn for confusing overload resolution for user-defined
  5525. conversions; and conversions that never use a type conversion
  5526. operator: conversions to \f(CW\*(C`void\*(C'\fR, the same type, a base class or a
  5527. reference to them. Warnings about conversions between signed and
  5528. unsigned integers are disabled by default in \*(C+ unless
  5529. \&\fB\-Wsign\-conversion\fR is explicitly enabled.
  5530. .IP "\fB\-Wno\-conversion\-null\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5531. .IX Item "-Wno-conversion-null ( and Objective- only)"
  5532. Do not warn for conversions between \f(CW\*(C`NULL\*(C'\fR and non-pointer
  5533. types. \fB\-Wconversion\-null\fR is enabled by default.
  5534. .IP "\fB\-Wzero\-as\-null\-pointer\-constant\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5535. .IX Item "-Wzero-as-null-pointer-constant ( and Objective- only)"
  5536. Warn when a literal \fB0\fR is used as null pointer constant. This can
  5537. be useful to facilitate the conversion to \f(CW\*(C`nullptr\*(C'\fR in \*(C+11.
  5538. .IP "\fB\-Wsubobject\-linkage\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5539. .IX Item "-Wsubobject-linkage ( and Objective- only)"
  5540. Warn if a class type has a base or a field whose type uses the anonymous
  5541. namespace or depends on a type with no linkage. If a type A depends on
  5542. a type B with no or internal linkage, defining it in multiple
  5543. translation units would be an \s-1ODR\s0 violation because the meaning of B
  5544. is different in each translation unit. If A only appears in a single
  5545. translation unit, the best way to silence the warning is to give it
  5546. internal linkage by putting it in an anonymous namespace as well. The
  5547. compiler doesn't give this warning for types defined in the main .C
  5548. file, as those are unlikely to have multiple definitions.
  5549. \&\fB\-Wsubobject\-linkage\fR is enabled by default.
  5550. .IP "\fB\-Wdangling\-else\fR" 4
  5551. .IX Item "-Wdangling-else"
  5552. Warn about constructions where there may be confusion to which
  5553. \&\f(CW\*(C`if\*(C'\fR statement an \f(CW\*(C`else\*(C'\fR branch belongs. Here is an example of
  5554. such a case:
  5555. .Sp
  5556. .Vb 7
  5557. \& {
  5558. \& if (a)
  5559. \& if (b)
  5560. \& foo ();
  5561. \& else
  5562. \& bar ();
  5563. \& }
  5564. .Ve
  5565. .Sp
  5566. In C/\*(C+, every \f(CW\*(C`else\*(C'\fR branch belongs to the innermost possible
  5567. \&\f(CW\*(C`if\*(C'\fR statement, which in this example is \f(CW\*(C`if (b)\*(C'\fR. This is
  5568. often not what the programmer expected, as illustrated in the above
  5569. example by indentation the programmer chose. When there is the
  5570. potential for this confusion, \s-1GCC\s0 issues a warning when this flag
  5571. is specified. To eliminate the warning, add explicit braces around
  5572. the innermost \f(CW\*(C`if\*(C'\fR statement so there is no way the \f(CW\*(C`else\*(C'\fR
  5573. can belong to the enclosing \f(CW\*(C`if\*(C'\fR. The resulting code
  5574. looks like this:
  5575. .Sp
  5576. .Vb 9
  5577. \& {
  5578. \& if (a)
  5579. \& {
  5580. \& if (b)
  5581. \& foo ();
  5582. \& else
  5583. \& bar ();
  5584. \& }
  5585. \& }
  5586. .Ve
  5587. .Sp
  5588. This warning is enabled by \fB\-Wparentheses\fR.
  5589. .IP "\fB\-Wdate\-time\fR" 4
  5590. .IX Item "-Wdate-time"
  5591. Warn when macros \f(CW\*(C`_\|_TIME_\|_\*(C'\fR, \f(CW\*(C`_\|_DATE_\|_\*(C'\fR or \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR
  5592. are encountered as they might prevent bit-wise-identical reproducible
  5593. compilations.
  5594. .IP "\fB\-Wdelete\-incomplete\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5595. .IX Item "-Wdelete-incomplete ( and Objective- only)"
  5596. Warn when deleting a pointer to incomplete type, which may cause
  5597. undefined behavior at runtime. This warning is enabled by default.
  5598. .IP "\fB\-Wuseless\-cast\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5599. .IX Item "-Wuseless-cast ( and Objective- only)"
  5600. Warn when an expression is casted to its own type.
  5601. .IP "\fB\-Wempty\-body\fR" 4
  5602. .IX Item "-Wempty-body"
  5603. 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
  5604. while\*(C'\fR statement. This warning is also enabled by \fB\-Wextra\fR.
  5605. .IP "\fB\-Wenum\-compare\fR" 4
  5606. .IX Item "-Wenum-compare"
  5607. Warn about a comparison between values of different enumerated types.
  5608. In \*(C+ enumerated type mismatches in conditional expressions are also
  5609. diagnosed and the warning is enabled by default. In C this warning is
  5610. enabled by \fB\-Wall\fR.
  5611. .IP "\fB\-Wjump\-misses\-init\fR (C, Objective-C only)" 4
  5612. .IX Item "-Wjump-misses-init (C, Objective-C only)"
  5613. Warn if a \f(CW\*(C`goto\*(C'\fR statement or a \f(CW\*(C`switch\*(C'\fR statement jumps
  5614. forward across the initialization of a variable, or jumps backward to a
  5615. label after the variable has been initialized. This only warns about
  5616. variables that are initialized when they are declared. This warning is
  5617. only supported for C and Objective-C; in \*(C+ this sort of branch is an
  5618. error in any case.
  5619. .Sp
  5620. \&\fB\-Wjump\-misses\-init\fR is included in \fB\-Wc++\-compat\fR. It
  5621. can be disabled with the \fB\-Wno\-jump\-misses\-init\fR option.
  5622. .IP "\fB\-Wsign\-compare\fR" 4
  5623. .IX Item "-Wsign-compare"
  5624. Warn when a comparison between signed and unsigned values could produce
  5625. an incorrect result when the signed value is converted to unsigned.
  5626. In \*(C+, this warning is also enabled by \fB\-Wall\fR. In C, it is
  5627. also enabled by \fB\-Wextra\fR.
  5628. .IP "\fB\-Wsign\-conversion\fR" 4
  5629. .IX Item "-Wsign-conversion"
  5630. Warn for implicit conversions that may change the sign of an integer
  5631. value, like assigning a signed integer expression to an unsigned
  5632. integer variable. An explicit cast silences the warning. In C, this
  5633. option is enabled also by \fB\-Wconversion\fR.
  5634. .IP "\fB\-Wfloat\-conversion\fR" 4
  5635. .IX Item "-Wfloat-conversion"
  5636. Warn for implicit conversions that reduce the precision of a real value.
  5637. This includes conversions from real to integer, and from higher precision
  5638. real to lower precision real values. This option is also enabled by
  5639. \&\fB\-Wconversion\fR.
  5640. .IP "\fB\-Wno\-scalar\-storage\-order\fR" 4
  5641. .IX Item "-Wno-scalar-storage-order"
  5642. Do not warn on suspicious constructs involving reverse scalar storage order.
  5643. .IP "\fB\-Wsized\-deallocation\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5644. .IX Item "-Wsized-deallocation ( and Objective- only)"
  5645. Warn about a definition of an unsized deallocation function
  5646. .Sp
  5647. .Vb 2
  5648. \& void operator delete (void *) noexcept;
  5649. \& void operator delete[] (void *) noexcept;
  5650. .Ve
  5651. .Sp
  5652. without a definition of the corresponding sized deallocation function
  5653. .Sp
  5654. .Vb 2
  5655. \& void operator delete (void *, std::size_t) noexcept;
  5656. \& void operator delete[] (void *, std::size_t) noexcept;
  5657. .Ve
  5658. .Sp
  5659. or vice versa. Enabled by \fB\-Wextra\fR along with
  5660. \&\fB\-fsized\-deallocation\fR.
  5661. .IP "\fB\-Wsizeof\-pointer\-memaccess\fR" 4
  5662. .IX Item "-Wsizeof-pointer-memaccess"
  5663. Warn for suspicious length parameters to certain string and memory built-in
  5664. functions if the argument uses \f(CW\*(C`sizeof\*(C'\fR. This warning warns e.g.
  5665. about \f(CW\*(C`memset (ptr, 0, sizeof (ptr));\*(C'\fR if \f(CW\*(C`ptr\*(C'\fR is not an array,
  5666. but a pointer, and suggests a possible fix, or about
  5667. \&\f(CW\*(C`memcpy (&foo, ptr, sizeof (&foo));\*(C'\fR. This warning is enabled by
  5668. \&\fB\-Wall\fR.
  5669. .IP "\fB\-Wsizeof\-array\-argument\fR" 4
  5670. .IX Item "-Wsizeof-array-argument"
  5671. Warn when the \f(CW\*(C`sizeof\*(C'\fR operator is applied to a parameter that is
  5672. declared as an array in a function definition. This warning is enabled by
  5673. default for C and \*(C+ programs.
  5674. .IP "\fB\-Wmemset\-elt\-size\fR" 4
  5675. .IX Item "-Wmemset-elt-size"
  5676. Warn for suspicious calls to the \f(CW\*(C`memset\*(C'\fR built-in function, if the
  5677. first argument references an array, and the third argument is a number
  5678. equal to the number of elements, but not equal to the size of the array
  5679. in memory. This indicates that the user has omitted a multiplication by
  5680. the element size. This warning is enabled by \fB\-Wall\fR.
  5681. .IP "\fB\-Wmemset\-transposed\-args\fR" 4
  5682. .IX Item "-Wmemset-transposed-args"
  5683. Warn for suspicious calls to the \f(CW\*(C`memset\*(C'\fR built-in function, if the
  5684. second argument is not zero and the third argument is zero. This warns e.g.@
  5685. about \f(CW\*(C`memset (buf, sizeof buf, 0)\*(C'\fR where most probably
  5686. \&\f(CW\*(C`memset (buf, 0, sizeof buf)\*(C'\fR was meant instead. The diagnostics
  5687. is only emitted if the third argument is literal zero. If it is some
  5688. expression that is folded to zero, a cast of zero to some type, etc.,
  5689. it is far less likely that the user has mistakenly exchanged the arguments
  5690. and no warning is emitted. This warning is enabled by \fB\-Wall\fR.
  5691. .IP "\fB\-Waddress\fR" 4
  5692. .IX Item "-Waddress"
  5693. Warn about suspicious uses of memory addresses. These include using
  5694. the address of a function in a conditional expression, such as
  5695. \&\f(CW\*(C`void func(void); if (func)\*(C'\fR, and comparisons against the memory
  5696. address of a string literal, such as \f(CW\*(C`if (x == "abc")\*(C'\fR. Such
  5697. uses typically indicate a programmer error: the address of a function
  5698. always evaluates to true, so their use in a conditional usually
  5699. indicate that the programmer forgot the parentheses in a function
  5700. call; and comparisons against string literals result in unspecified
  5701. behavior and are not portable in C, so they usually indicate that the
  5702. programmer intended to use \f(CW\*(C`strcmp\*(C'\fR. This warning is enabled by
  5703. \&\fB\-Wall\fR.
  5704. .IP "\fB\-Wlogical\-op\fR" 4
  5705. .IX Item "-Wlogical-op"
  5706. Warn about suspicious uses of logical operators in expressions.
  5707. This includes using logical operators in contexts where a
  5708. bit-wise operator is likely to be expected. Also warns when
  5709. the operands of a logical operator are the same:
  5710. .Sp
  5711. .Vb 2
  5712. \& extern int a;
  5713. \& if (a < 0 && a < 0) { ... }
  5714. .Ve
  5715. .IP "\fB\-Wlogical\-not\-parentheses\fR" 4
  5716. .IX Item "-Wlogical-not-parentheses"
  5717. Warn about logical not used on the left hand side operand of a comparison.
  5718. This option does not warn if the right operand is considered to be a boolean
  5719. expression. Its purpose is to detect suspicious code like the following:
  5720. .Sp
  5721. .Vb 3
  5722. \& int a;
  5723. \& ...
  5724. \& if (!a > 1) { ... }
  5725. .Ve
  5726. .Sp
  5727. It is possible to suppress the warning by wrapping the \s-1LHS\s0 into
  5728. parentheses:
  5729. .Sp
  5730. .Vb 1
  5731. \& if ((!a) > 1) { ... }
  5732. .Ve
  5733. .Sp
  5734. This warning is enabled by \fB\-Wall\fR.
  5735. .IP "\fB\-Waggregate\-return\fR" 4
  5736. .IX Item "-Waggregate-return"
  5737. Warn if any functions that return structures or unions are defined or
  5738. called. (In languages where you can return an array, this also elicits
  5739. a warning.)
  5740. .IP "\fB\-Wno\-aggressive\-loop\-optimizations\fR" 4
  5741. .IX Item "-Wno-aggressive-loop-optimizations"
  5742. Warn if in a loop with constant number of iterations the compiler detects
  5743. undefined behavior in some statement during one or more of the iterations.
  5744. .IP "\fB\-Wno\-attributes\fR" 4
  5745. .IX Item "-Wno-attributes"
  5746. Do not warn if an unexpected \f(CW\*(C`_\|_attribute_\|_\*(C'\fR is used, such as
  5747. unrecognized attributes, function attributes applied to variables,
  5748. etc. This does not stop errors for incorrect use of supported
  5749. attributes.
  5750. .IP "\fB\-Wno\-builtin\-declaration\-mismatch\fR" 4
  5751. .IX Item "-Wno-builtin-declaration-mismatch"
  5752. Warn if a built-in function is declared with the wrong signature.
  5753. This warning is enabled by default.
  5754. .IP "\fB\-Wno\-builtin\-macro\-redefined\fR" 4
  5755. .IX Item "-Wno-builtin-macro-redefined"
  5756. Do not warn if certain built-in macros are redefined. This suppresses
  5757. warnings for redefinition of \f(CW\*(C`_\|_TIMESTAMP_\|_\*(C'\fR, \f(CW\*(C`_\|_TIME_\|_\*(C'\fR,
  5758. \&\f(CW\*(C`_\|_DATE_\|_\*(C'\fR, \f(CW\*(C`_\|_FILE_\|_\*(C'\fR, and \f(CW\*(C`_\|_BASE_FILE_\|_\*(C'\fR.
  5759. .IP "\fB\-Wstrict\-prototypes\fR (C and Objective-C only)" 4
  5760. .IX Item "-Wstrict-prototypes (C and Objective-C only)"
  5761. Warn if a function is declared or defined without specifying the
  5762. argument types. (An old-style function definition is permitted without
  5763. a warning if preceded by a declaration that specifies the argument
  5764. types.)
  5765. .IP "\fB\-Wold\-style\-declaration\fR (C and Objective-C only)" 4
  5766. .IX Item "-Wold-style-declaration (C and Objective-C only)"
  5767. Warn for obsolescent usages, according to the C Standard, in a
  5768. declaration. For example, warn if storage-class specifiers like
  5769. \&\f(CW\*(C`static\*(C'\fR are not the first things in a declaration. This warning
  5770. is also enabled by \fB\-Wextra\fR.
  5771. .IP "\fB\-Wold\-style\-definition\fR (C and Objective-C only)" 4
  5772. .IX Item "-Wold-style-definition (C and Objective-C only)"
  5773. Warn if an old-style function definition is used. A warning is given
  5774. even if there is a previous prototype.
  5775. .IP "\fB\-Wmissing\-parameter\-type\fR (C and Objective-C only)" 4
  5776. .IX Item "-Wmissing-parameter-type (C and Objective-C only)"
  5777. A function parameter is declared without a type specifier in K&R\-style
  5778. functions:
  5779. .Sp
  5780. .Vb 1
  5781. \& void foo(bar) { }
  5782. .Ve
  5783. .Sp
  5784. This warning is also enabled by \fB\-Wextra\fR.
  5785. .IP "\fB\-Wmissing\-prototypes\fR (C and Objective-C only)" 4
  5786. .IX Item "-Wmissing-prototypes (C and Objective-C only)"
  5787. Warn if a global function is defined without a previous prototype
  5788. declaration. This warning is issued even if the definition itself
  5789. provides a prototype. Use this option to detect global functions
  5790. that do not have a matching prototype declaration in a header file.
  5791. This option is not valid for \*(C+ because all function declarations
  5792. provide prototypes and a non-matching declaration declares an
  5793. overload rather than conflict with an earlier declaration.
  5794. Use \fB\-Wmissing\-declarations\fR to detect missing declarations in \*(C+.
  5795. .IP "\fB\-Wmissing\-declarations\fR" 4
  5796. .IX Item "-Wmissing-declarations"
  5797. Warn if a global function is defined without a previous declaration.
  5798. Do so even if the definition itself provides a prototype.
  5799. Use this option to detect global functions that are not declared in
  5800. header files. In C, no warnings are issued for functions with previous
  5801. non-prototype declarations; use \fB\-Wmissing\-prototypes\fR to detect
  5802. missing prototypes. In \*(C+, no warnings are issued for function templates,
  5803. or for inline functions, or for functions in anonymous namespaces.
  5804. .IP "\fB\-Wmissing\-field\-initializers\fR" 4
  5805. .IX Item "-Wmissing-field-initializers"
  5806. Warn if a structure's initializer has some fields missing. For
  5807. example, the following code causes such a warning, because
  5808. \&\f(CW\*(C`x.h\*(C'\fR is implicitly zero:
  5809. .Sp
  5810. .Vb 2
  5811. \& struct s { int f, g, h; };
  5812. \& struct s x = { 3, 4 };
  5813. .Ve
  5814. .Sp
  5815. This option does not warn about designated initializers, so the following
  5816. modification does not trigger a warning:
  5817. .Sp
  5818. .Vb 2
  5819. \& struct s { int f, g, h; };
  5820. \& struct s x = { .f = 3, .g = 4 };
  5821. .Ve
  5822. .Sp
  5823. In \*(C+ this option does not warn either about the empty { }
  5824. initializer, for example:
  5825. .Sp
  5826. .Vb 2
  5827. \& struct s { int f, g, h; };
  5828. \& s x = { };
  5829. .Ve
  5830. .Sp
  5831. This warning is included in \fB\-Wextra\fR. To get other \fB\-Wextra\fR
  5832. warnings without this one, use \fB\-Wextra \-Wno\-missing\-field\-initializers\fR.
  5833. .IP "\fB\-Wno\-multichar\fR" 4
  5834. .IX Item "-Wno-multichar"
  5835. Do not warn if a multicharacter constant (\fB'\s-1FOOF\s0'\fR) is used.
  5836. Usually they indicate a typo in the user's code, as they have
  5837. implementation-defined values, and should not be used in portable code.
  5838. .IP "\fB\-Wnormalized=\fR[\fBnone\fR|\fBid\fR|\fBnfc\fR|\fBnfkc\fR]" 4
  5839. .IX Item "-Wnormalized=[none|id|nfc|nfkc]"
  5840. In \s-1ISO C\s0 and \s-1ISO \*(C+,\s0 two identifiers are different if they are
  5841. different sequences of characters. However, sometimes when characters
  5842. outside the basic \s-1ASCII\s0 character set are used, you can have two
  5843. different character sequences that look the same. To avoid confusion,
  5844. the \s-1ISO 10646\s0 standard sets out some \fInormalization rules\fR which
  5845. when applied ensure that two sequences that look the same are turned into
  5846. the same sequence. \s-1GCC\s0 can warn you if you are using identifiers that
  5847. have not been normalized; this option controls that warning.
  5848. .Sp
  5849. There are four levels of warning supported by \s-1GCC. \s0 The default is
  5850. \&\fB\-Wnormalized=nfc\fR, which warns about any identifier that is
  5851. not in the \s-1ISO 10646 \*(L"C\*(R"\s0 normalized form, \fI\s-1NFC\s0\fR. \s-1NFC\s0 is the
  5852. recommended form for most uses. It is equivalent to
  5853. \&\fB\-Wnormalized\fR.
  5854. .Sp
  5855. Unfortunately, there are some characters allowed in identifiers by
  5856. \&\s-1ISO C\s0 and \s-1ISO \*(C+\s0 that, when turned into \s-1NFC,\s0 are not allowed in
  5857. identifiers. That is, there's no way to use these symbols in portable
  5858. \&\s-1ISO C\s0 or \*(C+ and have all your identifiers in \s-1NFC.
  5859. \&\s0\fB\-Wnormalized=id\fR suppresses the warning for these characters.
  5860. It is hoped that future versions of the standards involved will correct
  5861. this, which is why this option is not the default.
  5862. .Sp
  5863. You can switch the warning off for all characters by writing
  5864. \&\fB\-Wnormalized=none\fR or \fB\-Wno\-normalized\fR. You should
  5865. only do this if you are using some other normalization scheme (like
  5866. \&\*(L"D\*(R"), because otherwise you can easily create bugs that are
  5867. literally impossible to see.
  5868. .Sp
  5869. Some characters in \s-1ISO 10646\s0 have distinct meanings but look identical
  5870. in some fonts or display methodologies, especially once formatting has
  5871. been applied. For instance \f(CW\*(C`\eu207F\*(C'\fR, \*(L"\s-1SUPERSCRIPT LATIN SMALL
  5872. LETTER N\*(R",\s0 displays just like a regular \f(CW\*(C`n\*(C'\fR that has been
  5873. placed in a superscript. \s-1ISO 10646\s0 defines the \fI\s-1NFKC\s0\fR
  5874. normalization scheme to convert all these into a standard form as
  5875. well, and \s-1GCC\s0 warns if your code is not in \s-1NFKC\s0 if you use
  5876. \&\fB\-Wnormalized=nfkc\fR. This warning is comparable to warning
  5877. about every identifier that contains the letter O because it might be
  5878. confused with the digit 0, and so is not the default, but may be
  5879. useful as a local coding convention if the programming environment
  5880. cannot be fixed to display these characters distinctly.
  5881. .IP "\fB\-Wno\-deprecated\fR" 4
  5882. .IX Item "-Wno-deprecated"
  5883. Do not warn about usage of deprecated features.
  5884. .IP "\fB\-Wno\-deprecated\-declarations\fR" 4
  5885. .IX Item "-Wno-deprecated-declarations"
  5886. Do not warn about uses of functions,
  5887. variables, and types marked as deprecated by using the \f(CW\*(C`deprecated\*(C'\fR
  5888. attribute.
  5889. .IP "\fB\-Wno\-overflow\fR" 4
  5890. .IX Item "-Wno-overflow"
  5891. Do not warn about compile-time overflow in constant expressions.
  5892. .IP "\fB\-Wno\-odr\fR" 4
  5893. .IX Item "-Wno-odr"
  5894. Warn about One Definition Rule violations during link-time optimization.
  5895. Requires \fB\-flto\-odr\-type\-merging\fR to be enabled. Enabled by default.
  5896. .IP "\fB\-Wopenmp\-simd\fR" 4
  5897. .IX Item "-Wopenmp-simd"
  5898. Warn if the vectorizer cost model overrides the OpenMP or the Cilk Plus
  5899. simd directive set by user. The \fB\-fsimd\-cost\-model=unlimited\fR
  5900. option can be used to relax the cost model.
  5901. .IP "\fB\-Woverride\-init\fR (C and Objective-C only)" 4
  5902. .IX Item "-Woverride-init (C and Objective-C only)"
  5903. Warn if an initialized field without side effects is overridden when
  5904. using designated initializers.
  5905. .Sp
  5906. This warning is included in \fB\-Wextra\fR. To get other
  5907. \&\fB\-Wextra\fR warnings without this one, use \fB\-Wextra
  5908. \&\-Wno\-override\-init\fR.
  5909. .IP "\fB\-Woverride\-init\-side\-effects\fR (C and Objective-C only)" 4
  5910. .IX Item "-Woverride-init-side-effects (C and Objective-C only)"
  5911. Warn if an initialized field with side effects is overridden when
  5912. using designated initializers. This warning is enabled by default.
  5913. .IP "\fB\-Wpacked\fR" 4
  5914. .IX Item "-Wpacked"
  5915. Warn if a structure is given the packed attribute, but the packed
  5916. attribute has no effect on the layout or size of the structure.
  5917. Such structures may be mis-aligned for little benefit. For
  5918. instance, in this code, the variable \f(CW\*(C`f.x\*(C'\fR in \f(CW\*(C`struct bar\*(C'\fR
  5919. is misaligned even though \f(CW\*(C`struct bar\*(C'\fR does not itself
  5920. have the packed attribute:
  5921. .Sp
  5922. .Vb 8
  5923. \& struct foo {
  5924. \& int x;
  5925. \& char a, b, c, d;
  5926. \& } _\|_attribute_\|_((packed));
  5927. \& struct bar {
  5928. \& char z;
  5929. \& struct foo f;
  5930. \& };
  5931. .Ve
  5932. .IP "\fB\-Wpacked\-bitfield\-compat\fR" 4
  5933. .IX Item "-Wpacked-bitfield-compat"
  5934. The 4.1, 4.2 and 4.3 series of \s-1GCC\s0 ignore the \f(CW\*(C`packed\*(C'\fR attribute
  5935. on bit-fields of type \f(CW\*(C`char\*(C'\fR. This has been fixed in \s-1GCC 4.4\s0 but
  5936. the change can lead to differences in the structure layout. \s-1GCC\s0
  5937. informs you when the offset of such a field has changed in \s-1GCC 4.4.\s0
  5938. For example there is no longer a 4\-bit padding between field \f(CW\*(C`a\*(C'\fR
  5939. and \f(CW\*(C`b\*(C'\fR in this structure:
  5940. .Sp
  5941. .Vb 5
  5942. \& struct foo
  5943. \& {
  5944. \& char a:4;
  5945. \& char b:8;
  5946. \& } _\|_attribute_\|_ ((packed));
  5947. .Ve
  5948. .Sp
  5949. This warning is enabled by default. Use
  5950. \&\fB\-Wno\-packed\-bitfield\-compat\fR to disable this warning.
  5951. .IP "\fB\-Wpadded\fR" 4
  5952. .IX Item "-Wpadded"
  5953. Warn if padding is included in a structure, either to align an element
  5954. of the structure or to align the whole structure. Sometimes when this
  5955. happens it is possible to rearrange the fields of the structure to
  5956. reduce the padding and so make the structure smaller.
  5957. .IP "\fB\-Wredundant\-decls\fR" 4
  5958. .IX Item "-Wredundant-decls"
  5959. Warn if anything is declared more than once in the same scope, even in
  5960. cases where multiple declaration is valid and changes nothing.
  5961. .IP "\fB\-Wrestrict\fR" 4
  5962. .IX Item "-Wrestrict"
  5963. Warn when an argument passed to a restrict-qualified parameter
  5964. aliases with another argument.
  5965. .IP "\fB\-Wnested\-externs\fR (C and Objective-C only)" 4
  5966. .IX Item "-Wnested-externs (C and Objective-C only)"
  5967. Warn if an \f(CW\*(C`extern\*(C'\fR declaration is encountered within a function.
  5968. .IP "\fB\-Wno\-inherited\-variadic\-ctor\fR" 4
  5969. .IX Item "-Wno-inherited-variadic-ctor"
  5970. Suppress warnings about use of \*(C+11 inheriting constructors when the
  5971. base class inherited from has a C variadic constructor; the warning is
  5972. on by default because the ellipsis is not inherited.
  5973. .IP "\fB\-Winline\fR" 4
  5974. .IX Item "-Winline"
  5975. Warn if a function that is declared as inline cannot be inlined.
  5976. Even with this option, the compiler does not warn about failures to
  5977. inline functions declared in system headers.
  5978. .Sp
  5979. The compiler uses a variety of heuristics to determine whether or not
  5980. to inline a function. For example, the compiler takes into account
  5981. the size of the function being inlined and the amount of inlining
  5982. that has already been done in the current function. Therefore,
  5983. seemingly insignificant changes in the source program can cause the
  5984. warnings produced by \fB\-Winline\fR to appear or disappear.
  5985. .IP "\fB\-Wno\-invalid\-offsetof\fR (\*(C+ and Objective\-\*(C+ only)" 4
  5986. .IX Item "-Wno-invalid-offsetof ( and Objective- only)"
  5987. Suppress warnings from applying the \f(CW\*(C`offsetof\*(C'\fR macro to a non-POD
  5988. type. According to the 2014 \s-1ISO \*(C+\s0 standard, applying \f(CW\*(C`offsetof\*(C'\fR
  5989. to a non-standard-layout type is undefined. In existing \*(C+ implementations,
  5990. however, \f(CW\*(C`offsetof\*(C'\fR typically gives meaningful results.
  5991. This flag is for users who are aware that they are
  5992. writing nonportable code and who have deliberately chosen to ignore the
  5993. warning about it.
  5994. .Sp
  5995. The restrictions on \f(CW\*(C`offsetof\*(C'\fR may be relaxed in a future version
  5996. of the \*(C+ standard.
  5997. .IP "\fB\-Wint\-in\-bool\-context\fR" 4
  5998. .IX Item "-Wint-in-bool-context"
  5999. Warn for suspicious use of integer values where boolean values are expected,
  6000. such as conditional expressions (?:) using non-boolean integer constants in
  6001. boolean context, like \f(CW\*(C`if (a <= b ? 2 : 3)\*(C'\fR. Or left shifting of signed
  6002. integers in boolean context, like \f(CW\*(C`for (a = 0; 1 << a; a++);\*(C'\fR. Likewise
  6003. for all kinds of multiplications regardless of the data type.
  6004. This warning is enabled by \fB\-Wall\fR.
  6005. .IP "\fB\-Wno\-int\-to\-pointer\-cast\fR" 4
  6006. .IX Item "-Wno-int-to-pointer-cast"
  6007. Suppress warnings from casts to pointer type of an integer of a
  6008. different size. In \*(C+, casting to a pointer type of smaller size is
  6009. an error. \fBWint-to-pointer-cast\fR is enabled by default.
  6010. .IP "\fB\-Wno\-pointer\-to\-int\-cast\fR (C and Objective-C only)" 4
  6011. .IX Item "-Wno-pointer-to-int-cast (C and Objective-C only)"
  6012. Suppress warnings from casts from a pointer to an integer type of a
  6013. different size.
  6014. .IP "\fB\-Winvalid\-pch\fR" 4
  6015. .IX Item "-Winvalid-pch"
  6016. Warn if a precompiled header is found in
  6017. the search path but cannot be used.
  6018. .IP "\fB\-Wlong\-long\fR" 4
  6019. .IX Item "-Wlong-long"
  6020. Warn if \f(CW\*(C`long long\*(C'\fR type is used. This is enabled by either
  6021. \&\fB\-Wpedantic\fR or \fB\-Wtraditional\fR in \s-1ISO C90\s0 and \*(C+98
  6022. modes. To inhibit the warning messages, use \fB\-Wno\-long\-long\fR.
  6023. .IP "\fB\-Wvariadic\-macros\fR" 4
  6024. .IX Item "-Wvariadic-macros"
  6025. Warn if variadic macros are used in \s-1ISO C90\s0 mode, or if the \s-1GNU\s0
  6026. alternate syntax is used in \s-1ISO C99\s0 mode. This is enabled by either
  6027. \&\fB\-Wpedantic\fR or \fB\-Wtraditional\fR. To inhibit the warning
  6028. messages, use \fB\-Wno\-variadic\-macros\fR.
  6029. .IP "\fB\-Wvarargs\fR" 4
  6030. .IX Item "-Wvarargs"
  6031. Warn upon questionable usage of the macros used to handle variable
  6032. arguments like \f(CW\*(C`va_start\*(C'\fR. This is default. To inhibit the
  6033. warning messages, use \fB\-Wno\-varargs\fR.
  6034. .IP "\fB\-Wvector\-operation\-performance\fR" 4
  6035. .IX Item "-Wvector-operation-performance"
  6036. Warn if vector operation is not implemented via \s-1SIMD\s0 capabilities of the
  6037. architecture. Mainly useful for the performance tuning.
  6038. Vector operation can be implemented \f(CW\*(C`piecewise\*(C'\fR, which means that the
  6039. scalar operation is performed on every vector element;
  6040. \&\f(CW\*(C`in parallel\*(C'\fR, which means that the vector operation is implemented
  6041. using scalars of wider type, which normally is more performance efficient;
  6042. and \f(CW\*(C`as a single scalar\*(C'\fR, which means that vector fits into a
  6043. scalar type.
  6044. .IP "\fB\-Wno\-virtual\-move\-assign\fR" 4
  6045. .IX Item "-Wno-virtual-move-assign"
  6046. Suppress warnings about inheriting from a virtual base with a
  6047. non-trivial \*(C+11 move assignment operator. This is dangerous because
  6048. if the virtual base is reachable along more than one path, it is
  6049. moved multiple times, which can mean both objects end up in the
  6050. moved-from state. If the move assignment operator is written to avoid
  6051. moving from a moved-from object, this warning can be disabled.
  6052. .IP "\fB\-Wvla\fR" 4
  6053. .IX Item "-Wvla"
  6054. Warn if a variable-length array is used in the code.
  6055. \&\fB\-Wno\-vla\fR prevents the \fB\-Wpedantic\fR warning of
  6056. the variable-length array.
  6057. .IP "\fB\-Wvla\-larger\-than=\fR\fIn\fR" 4
  6058. .IX Item "-Wvla-larger-than=n"
  6059. If this option is used, the compiler will warn on uses of
  6060. variable-length arrays where the size is either unbounded, or bounded
  6061. by an argument that can be larger than \fIn\fR bytes. This is similar
  6062. to how \fB\-Walloca\-larger\-than=\fR\fIn\fR works, but with
  6063. variable-length arrays.
  6064. .Sp
  6065. Note that \s-1GCC\s0 may optimize small variable-length arrays of a known
  6066. value into plain arrays, so this warning may not get triggered for
  6067. such arrays.
  6068. .Sp
  6069. This warning is not enabled by \fB\-Wall\fR, and is only active when
  6070. \&\fB\-ftree\-vrp\fR is active (default for \fB\-O2\fR and above).
  6071. .Sp
  6072. See also \fB\-Walloca\-larger\-than=\fR\fIn\fR.
  6073. .IP "\fB\-Wvolatile\-register\-var\fR" 4
  6074. .IX Item "-Wvolatile-register-var"
  6075. Warn if a register variable is declared volatile. The volatile
  6076. modifier does not inhibit all optimizations that may eliminate reads
  6077. and/or writes to register variables. This warning is enabled by
  6078. \&\fB\-Wall\fR.
  6079. .IP "\fB\-Wdisabled\-optimization\fR" 4
  6080. .IX Item "-Wdisabled-optimization"
  6081. Warn if a requested optimization pass is disabled. This warning does
  6082. not generally indicate that there is anything wrong with your code; it
  6083. merely indicates that \s-1GCC\s0's optimizers are unable to handle the code
  6084. effectively. Often, the problem is that your code is too big or too
  6085. complex; \s-1GCC\s0 refuses to optimize programs when the optimization
  6086. itself is likely to take inordinate amounts of time.
  6087. .IP "\fB\-Wpointer\-sign\fR (C and Objective-C only)" 4
  6088. .IX Item "-Wpointer-sign (C and Objective-C only)"
  6089. Warn for pointer argument passing or assignment with different signedness.
  6090. This option is only supported for C and Objective-C. It is implied by
  6091. \&\fB\-Wall\fR and by \fB\-Wpedantic\fR, which can be disabled with
  6092. \&\fB\-Wno\-pointer\-sign\fR.
  6093. .IP "\fB\-Wstack\-protector\fR" 4
  6094. .IX Item "-Wstack-protector"
  6095. This option is only active when \fB\-fstack\-protector\fR is active. It
  6096. warns about functions that are not protected against stack smashing.
  6097. .IP "\fB\-Woverlength\-strings\fR" 4
  6098. .IX Item "-Woverlength-strings"
  6099. Warn about string constants that are longer than the \*(L"minimum
  6100. maximum\*(R" length specified in the C standard. Modern compilers
  6101. generally allow string constants that are much longer than the
  6102. standard's minimum limit, but very portable programs should avoid
  6103. using longer strings.
  6104. .Sp
  6105. The limit applies \fIafter\fR string constant concatenation, and does
  6106. not count the trailing \s-1NUL. \s0 In C90, the limit was 509 characters; in
  6107. C99, it was raised to 4095. \*(C+98 does not specify a normative
  6108. minimum maximum, so we do not diagnose overlength strings in \*(C+.
  6109. .Sp
  6110. This option is implied by \fB\-Wpedantic\fR, and can be disabled with
  6111. \&\fB\-Wno\-overlength\-strings\fR.
  6112. .IP "\fB\-Wunsuffixed\-float\-constants\fR (C and Objective-C only)" 4
  6113. .IX Item "-Wunsuffixed-float-constants (C and Objective-C only)"
  6114. Issue a warning for any floating constant that does not have
  6115. a suffix. When used together with \fB\-Wsystem\-headers\fR it
  6116. warns about such constants in system header files. This can be useful
  6117. when preparing code to use with the \f(CW\*(C`FLOAT_CONST_DECIMAL64\*(C'\fR pragma
  6118. from the decimal floating-point extension to C99.
  6119. .IP "\fB\-Wno\-designated\-init\fR (C and Objective-C only)" 4
  6120. .IX Item "-Wno-designated-init (C and Objective-C only)"
  6121. Suppress warnings when a positional initializer is used to initialize
  6122. a structure that has been marked with the \f(CW\*(C`designated_init\*(C'\fR
  6123. attribute.
  6124. .IP "\fB\-Whsa\fR" 4
  6125. .IX Item "-Whsa"
  6126. Issue a warning when \s-1HSAIL\s0 cannot be emitted for the compiled function or
  6127. OpenMP construct.
  6128. .SS "Options for Debugging Your Program"
  6129. .IX Subsection "Options for Debugging Your Program"
  6130. To tell \s-1GCC\s0 to emit extra information for use by a debugger, in almost
  6131. all cases you need only to add \fB\-g\fR to your other options.
  6132. .PP
  6133. \&\s-1GCC\s0 allows you to use \fB\-g\fR with
  6134. \&\fB\-O\fR. The shortcuts taken by optimized code may occasionally
  6135. be surprising: some variables you declared may not exist
  6136. at all; flow of control may briefly move where you did not expect it;
  6137. some statements may not be executed because they compute constant
  6138. results or their values are already at hand; some statements may
  6139. execute in different places because they have been moved out of loops.
  6140. Nevertheless it is possible to debug optimized output. This makes
  6141. it reasonable to use the optimizer for programs that might have bugs.
  6142. .PP
  6143. If you are not using some other optimization option, consider
  6144. using \fB\-Og\fR with \fB\-g\fR.
  6145. With no \fB\-O\fR option at all, some compiler passes that collect
  6146. information useful for debugging do not run at all, so that
  6147. \&\fB\-Og\fR may result in a better debugging experience.
  6148. .IP "\fB\-g\fR" 4
  6149. .IX Item "-g"
  6150. Produce debugging information in the operating system's native format
  6151. (stabs, \s-1COFF, XCOFF,\s0 or \s-1DWARF\s0). \s-1GDB\s0 can work with this debugging
  6152. information.
  6153. .Sp
  6154. On most systems that use stabs format, \fB\-g\fR enables use of extra
  6155. debugging information that only \s-1GDB\s0 can use; this extra information
  6156. makes debugging work better in \s-1GDB\s0 but probably makes other debuggers
  6157. crash or
  6158. refuse to read the program. If you want to control for certain whether
  6159. to generate the extra information, use \fB\-gstabs+\fR, \fB\-gstabs\fR,
  6160. \&\fB\-gxcoff+\fR, \fB\-gxcoff\fR, or \fB\-gvms\fR (see below).
  6161. .IP "\fB\-ggdb\fR" 4
  6162. .IX Item "-ggdb"
  6163. Produce debugging information for use by \s-1GDB. \s0 This means to use the
  6164. most expressive format available (\s-1DWARF,\s0 stabs, or the native format
  6165. if neither of those are supported), including \s-1GDB\s0 extensions if at all
  6166. possible.
  6167. .IP "\fB\-gdwarf\fR" 4
  6168. .IX Item "-gdwarf"
  6169. .PD 0
  6170. .IP "\fB\-gdwarf\-\fR\fIversion\fR" 4
  6171. .IX Item "-gdwarf-version"
  6172. .PD
  6173. Produce debugging information in \s-1DWARF\s0 format (if that is supported).
  6174. The value of \fIversion\fR may be either 2, 3, 4 or 5; the default version
  6175. for most targets is 4. \s-1DWARF\s0 Version 5 is only experimental.
  6176. .Sp
  6177. Note that with \s-1DWARF\s0 Version 2, some ports require and always
  6178. use some non-conflicting \s-1DWARF 3\s0 extensions in the unwind tables.
  6179. .Sp
  6180. Version 4 may require \s-1GDB 7.0\s0 and \fB\-fvar\-tracking\-assignments\fR
  6181. for maximum benefit.
  6182. .Sp
  6183. \&\s-1GCC\s0 no longer supports \s-1DWARF\s0 Version 1, which is substantially
  6184. different than Version 2 and later. For historical reasons, some
  6185. other DWARF-related options (including \fB\-feliminate\-dwarf2\-dups\fR
  6186. and \fB\-fno\-dwarf2\-cfi\-asm\fR) retain a reference to \s-1DWARF\s0 Version 2
  6187. in their names, but apply to all currently-supported versions of \s-1DWARF.\s0
  6188. .IP "\fB\-gstabs\fR" 4
  6189. .IX Item "-gstabs"
  6190. Produce debugging information in stabs format (if that is supported),
  6191. without \s-1GDB\s0 extensions. This is the format used by \s-1DBX\s0 on most \s-1BSD\s0
  6192. systems. On \s-1MIPS,\s0 Alpha and System V Release 4 systems this option
  6193. produces stabs debugging output that is not understood by \s-1DBX\s0 or \s-1SDB.\s0
  6194. On System V Release 4 systems this option requires the \s-1GNU\s0 assembler.
  6195. .IP "\fB\-gstabs+\fR" 4
  6196. .IX Item "-gstabs+"
  6197. Produce debugging information in stabs format (if that is supported),
  6198. using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0). The
  6199. use of these extensions is likely to make other debuggers crash or
  6200. refuse to read the program.
  6201. .IP "\fB\-gcoff\fR" 4
  6202. .IX Item "-gcoff"
  6203. Produce debugging information in \s-1COFF\s0 format (if that is supported).
  6204. This is the format used by \s-1SDB\s0 on most System V systems prior to
  6205. System V Release 4.
  6206. .IP "\fB\-gxcoff\fR" 4
  6207. .IX Item "-gxcoff"
  6208. Produce debugging information in \s-1XCOFF\s0 format (if that is supported).
  6209. This is the format used by the \s-1DBX\s0 debugger on \s-1IBM RS/6000\s0 systems.
  6210. .IP "\fB\-gxcoff+\fR" 4
  6211. .IX Item "-gxcoff+"
  6212. Produce debugging information in \s-1XCOFF\s0 format (if that is supported),
  6213. using \s-1GNU\s0 extensions understood only by the \s-1GNU\s0 debugger (\s-1GDB\s0). The
  6214. use of these extensions is likely to make other debuggers crash or
  6215. refuse to read the program, and may cause assemblers other than the \s-1GNU\s0
  6216. assembler (\s-1GAS\s0) to fail with an error.
  6217. .IP "\fB\-gvms\fR" 4
  6218. .IX Item "-gvms"
  6219. Produce debugging information in Alpha/VMS debug format (if that is
  6220. supported). This is the format used by \s-1DEBUG\s0 on Alpha/VMS systems.
  6221. .IP "\fB\-g\fR\fIlevel\fR" 4
  6222. .IX Item "-glevel"
  6223. .PD 0
  6224. .IP "\fB\-ggdb\fR\fIlevel\fR" 4
  6225. .IX Item "-ggdblevel"
  6226. .IP "\fB\-gstabs\fR\fIlevel\fR" 4
  6227. .IX Item "-gstabslevel"
  6228. .IP "\fB\-gcoff\fR\fIlevel\fR" 4
  6229. .IX Item "-gcofflevel"
  6230. .IP "\fB\-gxcoff\fR\fIlevel\fR" 4
  6231. .IX Item "-gxcofflevel"
  6232. .IP "\fB\-gvms\fR\fIlevel\fR" 4
  6233. .IX Item "-gvmslevel"
  6234. .PD
  6235. Request debugging information and also use \fIlevel\fR to specify how
  6236. much information. The default level is 2.
  6237. .Sp
  6238. Level 0 produces no debug information at all. Thus, \fB\-g0\fR negates
  6239. \&\fB\-g\fR.
  6240. .Sp
  6241. Level 1 produces minimal information, enough for making backtraces in
  6242. parts of the program that you don't plan to debug. This includes
  6243. descriptions of functions and external variables, and line number
  6244. tables, but no information about local variables.
  6245. .Sp
  6246. Level 3 includes extra information, such as all the macro definitions
  6247. present in the program. Some debuggers support macro expansion when
  6248. you use \fB\-g3\fR.
  6249. .Sp
  6250. \&\fB\-gdwarf\fR does not accept a concatenated debug level, to avoid
  6251. confusion with \fB\-gdwarf\-\fR\fIlevel\fR.
  6252. Instead use an additional \fB\-g\fR\fIlevel\fR option to change the
  6253. debug level for \s-1DWARF.\s0
  6254. .IP "\fB\-feliminate\-unused\-debug\-symbols\fR" 4
  6255. .IX Item "-feliminate-unused-debug-symbols"
  6256. Produce debugging information in stabs format (if that is supported),
  6257. for only symbols that are actually used.
  6258. .IP "\fB\-femit\-class\-debug\-always\fR" 4
  6259. .IX Item "-femit-class-debug-always"
  6260. Instead of emitting debugging information for a \*(C+ class in only one
  6261. object file, emit it in all object files using the class. This option
  6262. should be used only with debuggers that are unable to handle the way \s-1GCC\s0
  6263. normally emits debugging information for classes because using this
  6264. option increases the size of debugging information by as much as a
  6265. factor of two.
  6266. .IP "\fB\-fno\-merge\-debug\-strings\fR" 4
  6267. .IX Item "-fno-merge-debug-strings"
  6268. Direct the linker to not merge together strings in the debugging
  6269. information that are identical in different object files. Merging is
  6270. not supported by all assemblers or linkers. Merging decreases the size
  6271. of the debug information in the output file at the cost of increasing
  6272. link processing time. Merging is enabled by default.
  6273. .IP "\fB\-fdebug\-prefix\-map=\fR\fIold\fR\fB=\fR\fInew\fR" 4
  6274. .IX Item "-fdebug-prefix-map=old=new"
  6275. When compiling files in directory \fI\fIold\fI\fR, record debugging
  6276. information describing them as in \fI\fInew\fI\fR instead.
  6277. .IP "\fB\-fvar\-tracking\fR" 4
  6278. .IX Item "-fvar-tracking"
  6279. Run variable tracking pass. It computes where variables are stored at each
  6280. position in code. Better debugging information is then generated
  6281. (if the debugging information format supports this information).
  6282. .Sp
  6283. It is enabled by default when compiling with optimization (\fB\-Os\fR,
  6284. \&\fB\-O\fR, \fB\-O2\fR, ...), debugging information (\fB\-g\fR) and
  6285. the debug info format supports it.
  6286. .IP "\fB\-fvar\-tracking\-assignments\fR" 4
  6287. .IX Item "-fvar-tracking-assignments"
  6288. Annotate assignments to user variables early in the compilation and
  6289. attempt to carry the annotations over throughout the compilation all the
  6290. way to the end, in an attempt to improve debug information while
  6291. optimizing. Use of \fB\-gdwarf\-4\fR is recommended along with it.
  6292. .Sp
  6293. It can be enabled even if var-tracking is disabled, in which case
  6294. annotations are created and maintained, but discarded at the end.
  6295. By default, this flag is enabled together with \fB\-fvar\-tracking\fR,
  6296. except when selective scheduling is enabled.
  6297. .IP "\fB\-gsplit\-dwarf\fR" 4
  6298. .IX Item "-gsplit-dwarf"
  6299. Separate as much \s-1DWARF\s0 debugging information as possible into a
  6300. separate output file with the extension \fI.dwo\fR. This option allows
  6301. the build system to avoid linking files with debug information. To
  6302. be useful, this option requires a debugger capable of reading \fI.dwo\fR
  6303. files.
  6304. .IP "\fB\-gpubnames\fR" 4
  6305. .IX Item "-gpubnames"
  6306. Generate \s-1DWARF \s0\f(CW\*(C`.debug_pubnames\*(C'\fR and \f(CW\*(C`.debug_pubtypes\*(C'\fR sections.
  6307. .IP "\fB\-ggnu\-pubnames\fR" 4
  6308. .IX Item "-ggnu-pubnames"
  6309. Generate \f(CW\*(C`.debug_pubnames\*(C'\fR and \f(CW\*(C`.debug_pubtypes\*(C'\fR sections in a format
  6310. suitable for conversion into a \s-1GDB\s0 index. This option is only useful
  6311. with a linker that can produce \s-1GDB\s0 index version 7.
  6312. .IP "\fB\-fdebug\-types\-section\fR" 4
  6313. .IX Item "-fdebug-types-section"
  6314. When using \s-1DWARF\s0 Version 4 or higher, type DIEs can be put into
  6315. their own \f(CW\*(C`.debug_types\*(C'\fR section instead of making them part of the
  6316. \&\f(CW\*(C`.debug_info\*(C'\fR section. It is more efficient to put them in a separate
  6317. comdat sections since the linker can then remove duplicates.
  6318. But not all \s-1DWARF\s0 consumers support \f(CW\*(C`.debug_types\*(C'\fR sections yet
  6319. and on some objects \f(CW\*(C`.debug_types\*(C'\fR produces larger instead of smaller
  6320. debugging information.
  6321. .IP "\fB\-grecord\-gcc\-switches\fR" 4
  6322. .IX Item "-grecord-gcc-switches"
  6323. .PD 0
  6324. .IP "\fB\-gno\-record\-gcc\-switches\fR" 4
  6325. .IX Item "-gno-record-gcc-switches"
  6326. .PD
  6327. This switch causes the command-line options used to invoke the
  6328. compiler that may affect code generation to be appended to the
  6329. DW_AT_producer attribute in \s-1DWARF\s0 debugging information. The options
  6330. are concatenated with spaces separating them from each other and from
  6331. the compiler version.
  6332. It is enabled by default.
  6333. See also \fB\-frecord\-gcc\-switches\fR for another
  6334. way of storing compiler options into the object file.
  6335. .IP "\fB\-gstrict\-dwarf\fR" 4
  6336. .IX Item "-gstrict-dwarf"
  6337. Disallow using extensions of later \s-1DWARF\s0 standard version than selected
  6338. with \fB\-gdwarf\-\fR\fIversion\fR. On most targets using non-conflicting
  6339. \&\s-1DWARF\s0 extensions from later standard versions is allowed.
  6340. .IP "\fB\-gno\-strict\-dwarf\fR" 4
  6341. .IX Item "-gno-strict-dwarf"
  6342. Allow using extensions of later \s-1DWARF\s0 standard version than selected with
  6343. \&\fB\-gdwarf\-\fR\fIversion\fR.
  6344. .IP "\fB\-gcolumn\-info\fR" 4
  6345. .IX Item "-gcolumn-info"
  6346. .PD 0
  6347. .IP "\fB\-gno\-column\-info\fR" 4
  6348. .IX Item "-gno-column-info"
  6349. .PD
  6350. Emit location column information into \s-1DWARF\s0 debugging information, rather
  6351. than just file and line.
  6352. This option is disabled by default.
  6353. .IP "\fB\-gz\fR[\fB=\fR\fItype\fR]" 4
  6354. .IX Item "-gz[=type]"
  6355. Produce compressed debug sections in \s-1DWARF\s0 format, if that is supported.
  6356. If \fItype\fR is not given, the default type depends on the capabilities
  6357. of the assembler and linker used. \fItype\fR may be one of
  6358. \&\fBnone\fR (don't compress debug sections), \fBzlib\fR (use zlib
  6359. compression in \s-1ELF\s0 gABI format), or \fBzlib-gnu\fR (use zlib
  6360. compression in traditional \s-1GNU\s0 format). If the linker doesn't support
  6361. writing compressed debug sections, the option is rejected. Otherwise,
  6362. if the assembler does not support them, \fB\-gz\fR is silently ignored
  6363. when producing object files.
  6364. .IP "\fB\-feliminate\-dwarf2\-dups\fR" 4
  6365. .IX Item "-feliminate-dwarf2-dups"
  6366. Compress \s-1DWARF\s0 debugging information by eliminating duplicated
  6367. information about each symbol. This option only makes sense when
  6368. generating \s-1DWARF\s0 debugging information.
  6369. .IP "\fB\-femit\-struct\-debug\-baseonly\fR" 4
  6370. .IX Item "-femit-struct-debug-baseonly"
  6371. Emit debug information for struct-like types
  6372. only when the base name of the compilation source file
  6373. matches the base name of file in which the struct is defined.
  6374. .Sp
  6375. This option substantially reduces the size of debugging information,
  6376. but at significant potential loss in type information to the debugger.
  6377. See \fB\-femit\-struct\-debug\-reduced\fR for a less aggressive option.
  6378. See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
  6379. .Sp
  6380. This option works only with \s-1DWARF\s0 debug output.
  6381. .IP "\fB\-femit\-struct\-debug\-reduced\fR" 4
  6382. .IX Item "-femit-struct-debug-reduced"
  6383. Emit debug information for struct-like types
  6384. only when the base name of the compilation source file
  6385. matches the base name of file in which the type is defined,
  6386. unless the struct is a template or defined in a system header.
  6387. .Sp
  6388. This option significantly reduces the size of debugging information,
  6389. with some potential loss in type information to the debugger.
  6390. See \fB\-femit\-struct\-debug\-baseonly\fR for a more aggressive option.
  6391. See \fB\-femit\-struct\-debug\-detailed\fR for more detailed control.
  6392. .Sp
  6393. This option works only with \s-1DWARF\s0 debug output.
  6394. .IP "\fB\-femit\-struct\-debug\-detailed\fR[\fB=\fR\fIspec-list\fR]" 4
  6395. .IX Item "-femit-struct-debug-detailed[=spec-list]"
  6396. Specify the struct-like types
  6397. for which the compiler generates debug information.
  6398. The intent is to reduce duplicate struct debug information
  6399. between different object files within the same program.
  6400. .Sp
  6401. This option is a detailed version of
  6402. \&\fB\-femit\-struct\-debug\-reduced\fR and \fB\-femit\-struct\-debug\-baseonly\fR,
  6403. which serves for most needs.
  6404. .Sp
  6405. A specification has the syntax[\fBdir:\fR|\fBind:\fR][\fBord:\fR|\fBgen:\fR](\fBany\fR|\fBsys\fR|\fBbase\fR|\fBnone\fR)
  6406. .Sp
  6407. The optional first word limits the specification to
  6408. structs that are used directly (\fBdir:\fR) or used indirectly (\fBind:\fR).
  6409. A struct type is used directly when it is the type of a variable, member.
  6410. Indirect uses arise through pointers to structs.
  6411. That is, when use of an incomplete struct is valid, the use is indirect.
  6412. An example is
  6413. \&\fBstruct one direct; struct two * indirect;\fR.
  6414. .Sp
  6415. The optional second word limits the specification to
  6416. ordinary structs (\fBord:\fR) or generic structs (\fBgen:\fR).
  6417. Generic structs are a bit complicated to explain.
  6418. For \*(C+, these are non-explicit specializations of template classes,
  6419. or non-template classes within the above.
  6420. Other programming languages have generics,
  6421. but \fB\-femit\-struct\-debug\-detailed\fR does not yet implement them.
  6422. .Sp
  6423. The third word specifies the source files for those
  6424. structs for which the compiler should emit debug information.
  6425. The values \fBnone\fR and \fBany\fR have the normal meaning.
  6426. The value \fBbase\fR means that
  6427. the base of name of the file in which the type declaration appears
  6428. must match the base of the name of the main compilation file.
  6429. In practice, this means that when compiling \fIfoo.c\fR, debug information
  6430. is generated for types declared in that file and \fIfoo.h\fR,
  6431. but not other header files.
  6432. The value \fBsys\fR means those types satisfying \fBbase\fR
  6433. or declared in system or compiler headers.
  6434. .Sp
  6435. You may need to experiment to determine the best settings for your application.
  6436. .Sp
  6437. The default is \fB\-femit\-struct\-debug\-detailed=all\fR.
  6438. .Sp
  6439. This option works only with \s-1DWARF\s0 debug output.
  6440. .IP "\fB\-fno\-dwarf2\-cfi\-asm\fR" 4
  6441. .IX Item "-fno-dwarf2-cfi-asm"
  6442. Emit \s-1DWARF\s0 unwind info as compiler generated \f(CW\*(C`.eh_frame\*(C'\fR section
  6443. instead of using \s-1GAS \s0\f(CW\*(C`.cfi_*\*(C'\fR directives.
  6444. .IP "\fB\-fno\-eliminate\-unused\-debug\-types\fR" 4
  6445. .IX Item "-fno-eliminate-unused-debug-types"
  6446. Normally, when producing \s-1DWARF\s0 output, \s-1GCC\s0 avoids producing debug symbol
  6447. output for types that are nowhere used in the source file being compiled.
  6448. Sometimes it is useful to have \s-1GCC\s0 emit debugging
  6449. information for all types declared in a compilation
  6450. unit, regardless of whether or not they are actually used
  6451. in that compilation unit, for example
  6452. if, in the debugger, you want to cast a value to a type that is
  6453. not actually used in your program (but is declared). More often,
  6454. however, this results in a significant amount of wasted space.
  6455. .SS "Options That Control Optimization"
  6456. .IX Subsection "Options That Control Optimization"
  6457. These options control various sorts of optimizations.
  6458. .PP
  6459. Without any optimization option, the compiler's goal is to reduce the
  6460. cost of compilation and to make debugging produce the expected
  6461. results. Statements are independent: if you stop the program with a
  6462. breakpoint between statements, you can then assign a new value to any
  6463. variable or change the program counter to any other statement in the
  6464. function and get exactly the results you expect from the source
  6465. code.
  6466. .PP
  6467. Turning on optimization flags makes the compiler attempt to improve
  6468. the performance and/or code size at the expense of compilation time
  6469. and possibly the ability to debug the program.
  6470. .PP
  6471. The compiler performs optimization based on the knowledge it has of the
  6472. program. Compiling multiple files at once to a single output file mode allows
  6473. the compiler to use information gained from all of the files when compiling
  6474. each of them.
  6475. .PP
  6476. Not all optimizations are controlled directly by a flag. Only
  6477. optimizations that have a flag are listed in this section.
  6478. .PP
  6479. Most optimizations are only enabled if an \fB\-O\fR level is set on
  6480. the command line. Otherwise they are disabled, even if individual
  6481. optimization flags are specified.
  6482. .PP
  6483. Depending on the target and how \s-1GCC\s0 was configured, a slightly different
  6484. set of optimizations may be enabled at each \fB\-O\fR level than
  6485. those listed here. You can invoke \s-1GCC\s0 with \fB\-Q \-\-help=optimizers\fR
  6486. to find out the exact set of optimizations that are enabled at each level.
  6487. .IP "\fB\-O\fR" 4
  6488. .IX Item "-O"
  6489. .PD 0
  6490. .IP "\fB\-O1\fR" 4
  6491. .IX Item "-O1"
  6492. .PD
  6493. Optimize. Optimizing compilation takes somewhat more time, and a lot
  6494. more memory for a large function.
  6495. .Sp
  6496. With \fB\-O\fR, the compiler tries to reduce code size and execution
  6497. time, without performing any optimizations that take a great deal of
  6498. compilation time.
  6499. .Sp
  6500. \&\fB\-O\fR turns on the following optimization flags:
  6501. .Sp
  6502. \&\fB\-fauto\-inc\-dec
  6503. \&\-fbranch\-count\-reg
  6504. \&\-fcombine\-stack\-adjustments
  6505. \&\-fcompare\-elim
  6506. \&\-fcprop\-registers
  6507. \&\-fdce
  6508. \&\-fdefer\-pop
  6509. \&\-fdelayed\-branch
  6510. \&\-fdse
  6511. \&\-fforward\-propagate
  6512. \&\-fguess\-branch\-probability
  6513. \&\-fif\-conversion2
  6514. \&\-fif\-conversion
  6515. \&\-finline\-functions\-called\-once
  6516. \&\-fipa\-pure\-const
  6517. \&\-fipa\-profile
  6518. \&\-fipa\-reference
  6519. \&\-fmerge\-constants
  6520. \&\-fmove\-loop\-invariants
  6521. \&\-freorder\-blocks
  6522. \&\-fshrink\-wrap
  6523. \&\-fshrink\-wrap\-separate
  6524. \&\-fsplit\-wide\-types
  6525. \&\-fssa\-backprop
  6526. \&\-fssa\-phiopt
  6527. \&\-ftree\-bit\-ccp
  6528. \&\-ftree\-ccp
  6529. \&\-ftree\-ch
  6530. \&\-ftree\-coalesce\-vars
  6531. \&\-ftree\-copy\-prop
  6532. \&\-ftree\-dce
  6533. \&\-ftree\-dominator\-opts
  6534. \&\-ftree\-dse
  6535. \&\-ftree\-forwprop
  6536. \&\-ftree\-fre
  6537. \&\-ftree\-phiprop
  6538. \&\-ftree\-sink
  6539. \&\-ftree\-slsr
  6540. \&\-ftree\-sra
  6541. \&\-ftree\-pta
  6542. \&\-ftree\-ter
  6543. \&\-funit\-at\-a\-time\fR
  6544. .Sp
  6545. \&\fB\-O\fR also turns on \fB\-fomit\-frame\-pointer\fR on machines
  6546. where doing so does not interfere with debugging.
  6547. .IP "\fB\-O2\fR" 4
  6548. .IX Item "-O2"
  6549. Optimize even more. \s-1GCC\s0 performs nearly all supported optimizations
  6550. that do not involve a space-speed tradeoff.
  6551. As compared to \fB\-O\fR, this option increases both compilation time
  6552. and the performance of the generated code.
  6553. .Sp
  6554. \&\fB\-O2\fR turns on all optimization flags specified by \fB\-O\fR. It
  6555. also turns on the following optimization flags:
  6556. \&\fB\-fthread\-jumps
  6557. \&\-falign\-functions \-falign\-jumps
  6558. \&\-falign\-loops \-falign\-labels
  6559. \&\-fcaller\-saves
  6560. \&\-fcrossjumping
  6561. \&\-fcse\-follow\-jumps \-fcse\-skip\-blocks
  6562. \&\-fdelete\-null\-pointer\-checks
  6563. \&\-fdevirtualize \-fdevirtualize\-speculatively
  6564. \&\-fexpensive\-optimizations
  6565. \&\-fgcse \-fgcse\-lm
  6566. \&\-fhoist\-adjacent\-loads
  6567. \&\-finline\-small\-functions
  6568. \&\-findirect\-inlining
  6569. \&\-fipa\-cp
  6570. \&\-fipa\-bit\-cp
  6571. \&\-fipa\-vrp
  6572. \&\-fipa\-sra
  6573. \&\-fipa\-icf
  6574. \&\-fisolate\-erroneous\-paths\-dereference
  6575. \&\-flra\-remat
  6576. \&\-foptimize\-sibling\-calls
  6577. \&\-foptimize\-strlen
  6578. \&\-fpartial\-inlining
  6579. \&\-fpeephole2
  6580. \&\-freorder\-blocks\-algorithm=stc
  6581. \&\-freorder\-blocks\-and\-partition \-freorder\-functions
  6582. \&\-frerun\-cse\-after\-loop
  6583. \&\-fsched\-interblock \-fsched\-spec
  6584. \&\-fschedule\-insns \-fschedule\-insns2
  6585. \&\-fstore\-merging
  6586. \&\-fstrict\-aliasing \-fstrict\-overflow
  6587. \&\-ftree\-builtin\-call\-dce
  6588. \&\-ftree\-switch\-conversion \-ftree\-tail\-merge
  6589. \&\-fcode\-hoisting
  6590. \&\-ftree\-pre
  6591. \&\-ftree\-vrp
  6592. \&\-fipa\-ra\fR
  6593. .Sp
  6594. Please note the warning under \fB\-fgcse\fR about
  6595. invoking \fB\-O2\fR on programs that use computed gotos.
  6596. .IP "\fB\-O3\fR" 4
  6597. .IX Item "-O3"
  6598. Optimize yet more. \fB\-O3\fR turns on all optimizations specified
  6599. by \fB\-O2\fR and also turns on the \fB\-finline\-functions\fR,
  6600. \&\fB\-funswitch\-loops\fR, \fB\-fpredictive\-commoning\fR,
  6601. \&\fB\-fgcse\-after\-reload\fR, \fB\-ftree\-loop\-vectorize\fR,
  6602. \&\fB\-ftree\-loop\-distribute\-patterns\fR, \fB\-fsplit\-paths\fR
  6603. \&\fB\-ftree\-slp\-vectorize\fR, \fB\-fvect\-cost\-model\fR,
  6604. \&\fB\-ftree\-partial\-pre\fR, \fB\-fpeel\-loops\fR
  6605. and \fB\-fipa\-cp\-clone\fR options.
  6606. .IP "\fB\-O0\fR" 4
  6607. .IX Item "-O0"
  6608. Reduce compilation time and make debugging produce the expected
  6609. results. This is the default.
  6610. .IP "\fB\-Os\fR" 4
  6611. .IX Item "-Os"
  6612. Optimize for size. \fB\-Os\fR enables all \fB\-O2\fR optimizations that
  6613. do not typically increase code size.
  6614. .Sp
  6615. \&\fB\-Os\fR disables the following optimization flags:
  6616. \&\fB\-falign\-functions \-falign\-jumps \-falign\-loops
  6617. \&\-falign\-labels \-fprefetch\-loop\-arrays\fR
  6618. .Sp
  6619. It also enables \fB\-finline\-functions\fR, causes the compiler to tune for
  6620. code size rather than execution speed, and performs further optimizations
  6621. designed to reduce code size.
  6622. .IP "\fB\-Ofast\fR" 4
  6623. .IX Item "-Ofast"
  6624. Disregard strict standards compliance. \fB\-Ofast\fR enables all
  6625. \&\fB\-O3\fR optimizations. It also enables optimizations that are not
  6626. valid for all standard-compliant programs.
  6627. It turns on \fB\-ffast\-math\fR and the Fortran-specific
  6628. \&\fB\-fno\-protect\-parens\fR and \fB\-fstack\-arrays\fR.
  6629. .IP "\fB\-Og\fR" 4
  6630. .IX Item "-Og"
  6631. Optimize debugging experience. \fB\-Og\fR enables optimizations
  6632. that do not interfere with debugging. It should be the optimization
  6633. level of choice for the standard edit-compile-debug cycle, offering
  6634. a reasonable level of optimization while maintaining fast compilation
  6635. and a good debugging experience.
  6636. .PP
  6637. If you use multiple \fB\-O\fR options, with or without level numbers,
  6638. the last such option is the one that is effective.
  6639. .PP
  6640. Options of the form \fB\-f\fR\fIflag\fR specify machine-independent
  6641. flags. Most flags have both positive and negative forms; the negative
  6642. form of \fB\-ffoo\fR is \fB\-fno\-foo\fR. In the table
  6643. below, only one of the forms is listed\-\-\-the one you typically
  6644. use. You can figure out the other form by either removing \fBno\-\fR
  6645. or adding it.
  6646. .PP
  6647. The following options control specific optimizations. They are either
  6648. activated by \fB\-O\fR options or are related to ones that are. You
  6649. can use the following flags in the rare cases when \*(L"fine-tuning\*(R" of
  6650. optimizations to be performed is desired.
  6651. .IP "\fB\-fno\-defer\-pop\fR" 4
  6652. .IX Item "-fno-defer-pop"
  6653. Always pop the arguments to each function call as soon as that function
  6654. returns. For machines that must pop arguments after a function call,
  6655. the compiler normally lets arguments accumulate on the stack for several
  6656. function calls and pops them all at once.
  6657. .Sp
  6658. Disabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  6659. .IP "\fB\-fforward\-propagate\fR" 4
  6660. .IX Item "-fforward-propagate"
  6661. Perform a forward propagation pass on \s-1RTL. \s0 The pass tries to combine two
  6662. instructions and checks if the result can be simplified. If loop unrolling
  6663. is active, two passes are performed and the second is scheduled after
  6664. loop unrolling.
  6665. .Sp
  6666. This option is enabled by default at optimization levels \fB\-O\fR,
  6667. \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  6668. .IP "\fB\-ffp\-contract=\fR\fIstyle\fR" 4
  6669. .IX Item "-ffp-contract=style"
  6670. \&\fB\-ffp\-contract=off\fR disables floating-point expression contraction.
  6671. \&\fB\-ffp\-contract=fast\fR enables floating-point expression contraction
  6672. such as forming of fused multiply-add operations if the target has
  6673. native support for them.
  6674. \&\fB\-ffp\-contract=on\fR enables floating-point expression contraction
  6675. if allowed by the language standard. This is currently not implemented
  6676. and treated equal to \fB\-ffp\-contract=off\fR.
  6677. .Sp
  6678. The default is \fB\-ffp\-contract=fast\fR.
  6679. .IP "\fB\-fomit\-frame\-pointer\fR" 4
  6680. .IX Item "-fomit-frame-pointer"
  6681. Don't keep the frame pointer in a register for functions that
  6682. don't need one. This avoids the instructions to save, set up and
  6683. restore frame pointers; it also makes an extra register available
  6684. in many functions. \fBIt also makes debugging impossible on
  6685. some machines.\fR
  6686. .Sp
  6687. On some machines, such as the \s-1VAX,\s0 this flag has no effect, because
  6688. the standard calling sequence automatically handles the frame pointer
  6689. and nothing is saved by pretending it doesn't exist. The
  6690. machine-description macro \f(CW\*(C`FRAME_POINTER_REQUIRED\*(C'\fR controls
  6691. whether a target machine supports this flag.
  6692. .Sp
  6693. The default setting (when not optimizing for
  6694. size) for 32\-bit GNU/Linux x86 and 32\-bit Darwin x86 targets is
  6695. \&\fB\-fomit\-frame\-pointer\fR. You can configure \s-1GCC\s0 with the
  6696. \&\fB\-\-enable\-frame\-pointer\fR configure option to change the default.
  6697. .Sp
  6698. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  6699. .IP "\fB\-foptimize\-sibling\-calls\fR" 4
  6700. .IX Item "-foptimize-sibling-calls"
  6701. Optimize sibling and tail recursive calls.
  6702. .Sp
  6703. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  6704. .IP "\fB\-foptimize\-strlen\fR" 4
  6705. .IX Item "-foptimize-strlen"
  6706. Optimize various standard C string functions (e.g. \f(CW\*(C`strlen\*(C'\fR,
  6707. \&\f(CW\*(C`strchr\*(C'\fR or \f(CW\*(C`strcpy\*(C'\fR) and
  6708. their \f(CW\*(C`_FORTIFY_SOURCE\*(C'\fR counterparts into faster alternatives.
  6709. .Sp
  6710. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  6711. .IP "\fB\-fno\-inline\fR" 4
  6712. .IX Item "-fno-inline"
  6713. Do not expand any functions inline apart from those marked with
  6714. the \f(CW\*(C`always_inline\*(C'\fR attribute. This is the default when not
  6715. optimizing.
  6716. .Sp
  6717. Single functions can be exempted from inlining by marking them
  6718. with the \f(CW\*(C`noinline\*(C'\fR attribute.
  6719. .IP "\fB\-finline\-small\-functions\fR" 4
  6720. .IX Item "-finline-small-functions"
  6721. Integrate functions into their callers when their body is smaller than expected
  6722. function call code (so overall size of program gets smaller). The compiler
  6723. heuristically decides which functions are simple enough to be worth integrating
  6724. in this way. This inlining applies to all functions, even those not declared
  6725. inline.
  6726. .Sp
  6727. Enabled at level \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  6728. .IP "\fB\-findirect\-inlining\fR" 4
  6729. .IX Item "-findirect-inlining"
  6730. Inline also indirect calls that are discovered to be known at compile
  6731. time thanks to previous inlining. This option has any effect only
  6732. when inlining itself is turned on by the \fB\-finline\-functions\fR
  6733. or \fB\-finline\-small\-functions\fR options.
  6734. .Sp
  6735. Enabled at level \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  6736. .IP "\fB\-finline\-functions\fR" 4
  6737. .IX Item "-finline-functions"
  6738. Consider all functions for inlining, even if they are not declared inline.
  6739. The compiler heuristically decides which functions are worth integrating
  6740. in this way.
  6741. .Sp
  6742. If all calls to a given function are integrated, and the function is
  6743. declared \f(CW\*(C`static\*(C'\fR, then the function is normally not output as
  6744. assembler code in its own right.
  6745. .Sp
  6746. Enabled at levels \fB\-O3\fR, \fB\-Os\fR. Also enabled
  6747. by \fB\-fprofile\-use\fR and \fB\-fauto\-profile\fR.
  6748. .IP "\fB\-finline\-functions\-called\-once\fR" 4
  6749. .IX Item "-finline-functions-called-once"
  6750. Consider all \f(CW\*(C`static\*(C'\fR functions called once for inlining into their
  6751. caller even if they are not marked \f(CW\*(C`inline\*(C'\fR. If a call to a given
  6752. function is integrated, then the function is not output as assembler code
  6753. in its own right.
  6754. .Sp
  6755. Enabled at levels \fB\-O1\fR, \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
  6756. .IP "\fB\-fearly\-inlining\fR" 4
  6757. .IX Item "-fearly-inlining"
  6758. Inline functions marked by \f(CW\*(C`always_inline\*(C'\fR and functions whose body seems
  6759. smaller than the function call overhead early before doing
  6760. \&\fB\-fprofile\-generate\fR instrumentation and real inlining pass. Doing so
  6761. makes profiling significantly cheaper and usually inlining faster on programs
  6762. having large chains of nested wrapper functions.
  6763. .Sp
  6764. Enabled by default.
  6765. .IP "\fB\-fipa\-sra\fR" 4
  6766. .IX Item "-fipa-sra"
  6767. Perform interprocedural scalar replacement of aggregates, removal of
  6768. unused parameters and replacement of parameters passed by reference
  6769. by parameters passed by value.
  6770. .Sp
  6771. Enabled at levels \fB\-O2\fR, \fB\-O3\fR and \fB\-Os\fR.
  6772. .IP "\fB\-finline\-limit=\fR\fIn\fR" 4
  6773. .IX Item "-finline-limit=n"
  6774. By default, \s-1GCC\s0 limits the size of functions that can be inlined. This flag
  6775. allows coarse control of this limit. \fIn\fR is the size of functions that
  6776. can be inlined in number of pseudo instructions.
  6777. .Sp
  6778. Inlining is actually controlled by a number of parameters, which may be
  6779. specified individually by using \fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR.
  6780. The \fB\-finline\-limit=\fR\fIn\fR option sets some of these parameters
  6781. as follows:
  6782. .RS 4
  6783. .IP "\fBmax-inline-insns-single\fR" 4
  6784. .IX Item "max-inline-insns-single"
  6785. is set to \fIn\fR/2.
  6786. .IP "\fBmax-inline-insns-auto\fR" 4
  6787. .IX Item "max-inline-insns-auto"
  6788. is set to \fIn\fR/2.
  6789. .RE
  6790. .RS 4
  6791. .Sp
  6792. See below for a documentation of the individual
  6793. parameters controlling inlining and for the defaults of these parameters.
  6794. .Sp
  6795. \&\fINote:\fR there may be no value to \fB\-finline\-limit\fR that results
  6796. in default behavior.
  6797. .Sp
  6798. \&\fINote:\fR pseudo instruction represents, in this particular context, an
  6799. abstract measurement of function's size. In no way does it represent a count
  6800. of assembly instructions and as such its exact meaning might change from one
  6801. release to an another.
  6802. .RE
  6803. .IP "\fB\-fno\-keep\-inline\-dllexport\fR" 4
  6804. .IX Item "-fno-keep-inline-dllexport"
  6805. This is a more fine-grained version of \fB\-fkeep\-inline\-functions\fR,
  6806. which applies only to functions that are declared using the \f(CW\*(C`dllexport\*(C'\fR
  6807. attribute or declspec.
  6808. .IP "\fB\-fkeep\-inline\-functions\fR" 4
  6809. .IX Item "-fkeep-inline-functions"
  6810. In C, emit \f(CW\*(C`static\*(C'\fR functions that are declared \f(CW\*(C`inline\*(C'\fR
  6811. into the object file, even if the function has been inlined into all
  6812. of its callers. This switch does not affect functions using the
  6813. \&\f(CW\*(C`extern inline\*(C'\fR extension in \s-1GNU C90. \s0 In \*(C+, emit any and all
  6814. inline functions into the object file.
  6815. .IP "\fB\-fkeep\-static\-functions\fR" 4
  6816. .IX Item "-fkeep-static-functions"
  6817. Emit \f(CW\*(C`static\*(C'\fR functions into the object file, even if the function
  6818. is never used.
  6819. .IP "\fB\-fkeep\-static\-consts\fR" 4
  6820. .IX Item "-fkeep-static-consts"
  6821. Emit variables declared \f(CW\*(C`static const\*(C'\fR when optimization isn't turned
  6822. on, even if the variables aren't referenced.
  6823. .Sp
  6824. \&\s-1GCC\s0 enables this option by default. If you want to force the compiler to
  6825. check if a variable is referenced, regardless of whether or not
  6826. optimization is turned on, use the \fB\-fno\-keep\-static\-consts\fR option.
  6827. .IP "\fB\-fmerge\-constants\fR" 4
  6828. .IX Item "-fmerge-constants"
  6829. Attempt to merge identical constants (string constants and floating-point
  6830. constants) across compilation units.
  6831. .Sp
  6832. This option is the default for optimized compilation if the assembler and
  6833. linker support it. Use \fB\-fno\-merge\-constants\fR to inhibit this
  6834. behavior.
  6835. .Sp
  6836. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  6837. .IP "\fB\-fmerge\-all\-constants\fR" 4
  6838. .IX Item "-fmerge-all-constants"
  6839. Attempt to merge identical constants and identical variables.
  6840. .Sp
  6841. This option implies \fB\-fmerge\-constants\fR. In addition to
  6842. \&\fB\-fmerge\-constants\fR this considers e.g. even constant initialized
  6843. arrays or initialized constant variables with integral or floating-point
  6844. types. Languages like C or \*(C+ require each variable, including multiple
  6845. instances of the same variable in recursive calls, to have distinct locations,
  6846. so using this option results in non-conforming
  6847. behavior.
  6848. .IP "\fB\-fmodulo\-sched\fR" 4
  6849. .IX Item "-fmodulo-sched"
  6850. Perform swing modulo scheduling immediately before the first scheduling
  6851. pass. This pass looks at innermost loops and reorders their
  6852. instructions by overlapping different iterations.
  6853. .IP "\fB\-fmodulo\-sched\-allow\-regmoves\fR" 4
  6854. .IX Item "-fmodulo-sched-allow-regmoves"
  6855. Perform more aggressive SMS-based modulo scheduling with register moves
  6856. allowed. By setting this flag certain anti-dependences edges are
  6857. deleted, which triggers the generation of reg-moves based on the
  6858. life-range analysis. This option is effective only with
  6859. \&\fB\-fmodulo\-sched\fR enabled.
  6860. .IP "\fB\-fno\-branch\-count\-reg\fR" 4
  6861. .IX Item "-fno-branch-count-reg"
  6862. Avoid running a pass scanning for opportunities to use \*(L"decrement and
  6863. branch\*(R" instructions on a count register instead of generating sequences
  6864. of instructions that decrement a register, compare it against zero, and
  6865. then branch based upon the result. This option is only meaningful on
  6866. architectures that support such instructions, which include x86, PowerPC,
  6867. \&\s-1IA\-64\s0 and S/390. Note that the \fB\-fno\-branch\-count\-reg\fR option
  6868. doesn't remove the decrement and branch instructions from the generated
  6869. instruction stream introduced by other optimization passes.
  6870. .Sp
  6871. Enabled by default at \fB\-O1\fR and higher.
  6872. .Sp
  6873. The default is \fB\-fbranch\-count\-reg\fR.
  6874. .IP "\fB\-fno\-function\-cse\fR" 4
  6875. .IX Item "-fno-function-cse"
  6876. Do not put function addresses in registers; make each instruction that
  6877. calls a constant function contain the function's address explicitly.
  6878. .Sp
  6879. This option results in less efficient code, but some strange hacks
  6880. that alter the assembler output may be confused by the optimizations
  6881. performed when this option is not used.
  6882. .Sp
  6883. The default is \fB\-ffunction\-cse\fR
  6884. .IP "\fB\-fno\-zero\-initialized\-in\-bss\fR" 4
  6885. .IX Item "-fno-zero-initialized-in-bss"
  6886. If the target supports a \s-1BSS\s0 section, \s-1GCC\s0 by default puts variables that
  6887. are initialized to zero into \s-1BSS. \s0 This can save space in the resulting
  6888. code.
  6889. .Sp
  6890. This option turns off this behavior because some programs explicitly
  6891. rely on variables going to the data section\-\-\-e.g., so that the
  6892. resulting executable can find the beginning of that section and/or make
  6893. assumptions based on that.
  6894. .Sp
  6895. The default is \fB\-fzero\-initialized\-in\-bss\fR.
  6896. .IP "\fB\-fthread\-jumps\fR" 4
  6897. .IX Item "-fthread-jumps"
  6898. Perform optimizations that check to see if a jump branches to a
  6899. location where another comparison subsumed by the first is found. If
  6900. so, the first branch is redirected to either the destination of the
  6901. second branch or a point immediately following it, depending on whether
  6902. the condition is known to be true or false.
  6903. .Sp
  6904. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  6905. .IP "\fB\-fsplit\-wide\-types\fR" 4
  6906. .IX Item "-fsplit-wide-types"
  6907. When using a type that occupies multiple registers, such as \f(CW\*(C`long
  6908. long\*(C'\fR on a 32\-bit system, split the registers apart and allocate them
  6909. independently. This normally generates better code for those types,
  6910. but may make debugging more difficult.
  6911. .Sp
  6912. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR,
  6913. \&\fB\-Os\fR.
  6914. .IP "\fB\-fcse\-follow\-jumps\fR" 4
  6915. .IX Item "-fcse-follow-jumps"
  6916. In common subexpression elimination (\s-1CSE\s0), scan through jump instructions
  6917. when the target of the jump is not reached by any other path. For
  6918. example, when \s-1CSE\s0 encounters an \f(CW\*(C`if\*(C'\fR statement with an
  6919. \&\f(CW\*(C`else\*(C'\fR clause, \s-1CSE\s0 follows the jump when the condition
  6920. tested is false.
  6921. .Sp
  6922. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  6923. .IP "\fB\-fcse\-skip\-blocks\fR" 4
  6924. .IX Item "-fcse-skip-blocks"
  6925. This is similar to \fB\-fcse\-follow\-jumps\fR, but causes \s-1CSE\s0 to
  6926. follow jumps that conditionally skip over blocks. When \s-1CSE\s0
  6927. encounters a simple \f(CW\*(C`if\*(C'\fR statement with no else clause,
  6928. \&\fB\-fcse\-skip\-blocks\fR causes \s-1CSE\s0 to follow the jump around the
  6929. body of the \f(CW\*(C`if\*(C'\fR.
  6930. .Sp
  6931. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  6932. .IP "\fB\-frerun\-cse\-after\-loop\fR" 4
  6933. .IX Item "-frerun-cse-after-loop"
  6934. Re-run common subexpression elimination after loop optimizations are
  6935. performed.
  6936. .Sp
  6937. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  6938. .IP "\fB\-fgcse\fR" 4
  6939. .IX Item "-fgcse"
  6940. Perform a global common subexpression elimination pass.
  6941. This pass also performs global constant and copy propagation.
  6942. .Sp
  6943. \&\fINote:\fR When compiling a program using computed gotos, a \s-1GCC\s0
  6944. extension, you may get better run-time performance if you disable
  6945. the global common subexpression elimination pass by adding
  6946. \&\fB\-fno\-gcse\fR to the command line.
  6947. .Sp
  6948. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  6949. .IP "\fB\-fgcse\-lm\fR" 4
  6950. .IX Item "-fgcse-lm"
  6951. When \fB\-fgcse\-lm\fR is enabled, global common subexpression elimination
  6952. attempts to move loads that are only killed by stores into themselves. This
  6953. allows a loop containing a load/store sequence to be changed to a load outside
  6954. the loop, and a copy/store within the loop.
  6955. .Sp
  6956. Enabled by default when \fB\-fgcse\fR is enabled.
  6957. .IP "\fB\-fgcse\-sm\fR" 4
  6958. .IX Item "-fgcse-sm"
  6959. When \fB\-fgcse\-sm\fR is enabled, a store motion pass is run after
  6960. global common subexpression elimination. This pass attempts to move
  6961. stores out of loops. When used in conjunction with \fB\-fgcse\-lm\fR,
  6962. loops containing a load/store sequence can be changed to a load before
  6963. the loop and a store after the loop.
  6964. .Sp
  6965. Not enabled at any optimization level.
  6966. .IP "\fB\-fgcse\-las\fR" 4
  6967. .IX Item "-fgcse-las"
  6968. When \fB\-fgcse\-las\fR is enabled, the global common subexpression
  6969. elimination pass eliminates redundant loads that come after stores to the
  6970. same memory location (both partial and full redundancies).
  6971. .Sp
  6972. Not enabled at any optimization level.
  6973. .IP "\fB\-fgcse\-after\-reload\fR" 4
  6974. .IX Item "-fgcse-after-reload"
  6975. When \fB\-fgcse\-after\-reload\fR is enabled, a redundant load elimination
  6976. pass is performed after reload. The purpose of this pass is to clean up
  6977. redundant spilling.
  6978. .IP "\fB\-faggressive\-loop\-optimizations\fR" 4
  6979. .IX Item "-faggressive-loop-optimizations"
  6980. This option tells the loop optimizer to use language constraints to
  6981. derive bounds for the number of iterations of a loop. This assumes that
  6982. loop code does not invoke undefined behavior by for example causing signed
  6983. integer overflows or out-of-bound array accesses. The bounds for the
  6984. number of iterations of a loop are used to guide loop unrolling and peeling
  6985. and loop exit test optimizations.
  6986. This option is enabled by default.
  6987. .IP "\fB\-funconstrained\-commons\fR" 4
  6988. .IX Item "-funconstrained-commons"
  6989. This option tells the compiler that variables declared in common blocks
  6990. (e.g. Fortran) may later be overridden with longer trailing arrays. This
  6991. prevents certain optimizations that depend on knowing the array bounds.
  6992. .IP "\fB\-fcrossjumping\fR" 4
  6993. .IX Item "-fcrossjumping"
  6994. Perform cross-jumping transformation.
  6995. This transformation unifies equivalent code and saves code size. The
  6996. resulting code may or may not perform better than without cross-jumping.
  6997. .Sp
  6998. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  6999. .IP "\fB\-fauto\-inc\-dec\fR" 4
  7000. .IX Item "-fauto-inc-dec"
  7001. Combine increments or decrements of addresses with memory accesses.
  7002. This pass is always skipped on architectures that do not have
  7003. instructions to support this. Enabled by default at \fB\-O\fR and
  7004. higher on architectures that support this.
  7005. .IP "\fB\-fdce\fR" 4
  7006. .IX Item "-fdce"
  7007. Perform dead code elimination (\s-1DCE\s0) on \s-1RTL.\s0
  7008. Enabled by default at \fB\-O\fR and higher.
  7009. .IP "\fB\-fdse\fR" 4
  7010. .IX Item "-fdse"
  7011. Perform dead store elimination (\s-1DSE\s0) on \s-1RTL.\s0
  7012. Enabled by default at \fB\-O\fR and higher.
  7013. .IP "\fB\-fif\-conversion\fR" 4
  7014. .IX Item "-fif-conversion"
  7015. Attempt to transform conditional jumps into branch-less equivalents. This
  7016. includes use of conditional moves, min, max, set flags and abs instructions, and
  7017. some tricks doable by standard arithmetics. The use of conditional execution
  7018. on chips where it is available is controlled by \fB\-fif\-conversion2\fR.
  7019. .Sp
  7020. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7021. .IP "\fB\-fif\-conversion2\fR" 4
  7022. .IX Item "-fif-conversion2"
  7023. Use conditional execution (where available) to transform conditional jumps into
  7024. branch-less equivalents.
  7025. .Sp
  7026. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7027. .IP "\fB\-fdeclone\-ctor\-dtor\fR" 4
  7028. .IX Item "-fdeclone-ctor-dtor"
  7029. The \*(C+ \s-1ABI\s0 requires multiple entry points for constructors and
  7030. destructors: one for a base subobject, one for a complete object, and
  7031. one for a virtual destructor that calls operator delete afterwards.
  7032. For a hierarchy with virtual bases, the base and complete variants are
  7033. clones, which means two copies of the function. With this option, the
  7034. base and complete variants are changed to be thunks that call a common
  7035. implementation.
  7036. .Sp
  7037. Enabled by \fB\-Os\fR.
  7038. .IP "\fB\-fdelete\-null\-pointer\-checks\fR" 4
  7039. .IX Item "-fdelete-null-pointer-checks"
  7040. Assume that programs cannot safely dereference null pointers, and that
  7041. no code or data element resides at address zero.
  7042. This option enables simple constant
  7043. folding optimizations at all optimization levels. In addition, other
  7044. optimization passes in \s-1GCC\s0 use this flag to control global dataflow
  7045. analyses that eliminate useless checks for null pointers; these assume
  7046. that a memory access to address zero always results in a trap, so
  7047. that if a pointer is checked after it has already been dereferenced,
  7048. it cannot be null.
  7049. .Sp
  7050. Note however that in some environments this assumption is not true.
  7051. Use \fB\-fno\-delete\-null\-pointer\-checks\fR to disable this optimization
  7052. for programs that depend on that behavior.
  7053. .Sp
  7054. This option is enabled by default on most targets. On Nios \s-1II ELF,\s0 it
  7055. defaults to off. On \s-1AVR\s0 and \s-1CR16,\s0 this option is completely disabled.
  7056. .Sp
  7057. Passes that use the dataflow information
  7058. are enabled independently at different optimization levels.
  7059. .IP "\fB\-fdevirtualize\fR" 4
  7060. .IX Item "-fdevirtualize"
  7061. Attempt to convert calls to virtual functions to direct calls. This
  7062. is done both within a procedure and interprocedurally as part of
  7063. indirect inlining (\fB\-findirect\-inlining\fR) and interprocedural constant
  7064. propagation (\fB\-fipa\-cp\fR).
  7065. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7066. .IP "\fB\-fdevirtualize\-speculatively\fR" 4
  7067. .IX Item "-fdevirtualize-speculatively"
  7068. Attempt to convert calls to virtual functions to speculative direct calls.
  7069. Based on the analysis of the type inheritance graph, determine for a given call
  7070. the set of likely targets. If the set is small, preferably of size 1, change
  7071. the call into a conditional deciding between direct and indirect calls. The
  7072. speculative calls enable more optimizations, such as inlining. When they seem
  7073. useless after further optimization, they are converted back into original form.
  7074. .IP "\fB\-fdevirtualize\-at\-ltrans\fR" 4
  7075. .IX Item "-fdevirtualize-at-ltrans"
  7076. Stream extra information needed for aggressive devirtualization when running
  7077. the link-time optimizer in local transformation mode.
  7078. This option enables more devirtualization but
  7079. significantly increases the size of streamed data. For this reason it is
  7080. disabled by default.
  7081. .IP "\fB\-fexpensive\-optimizations\fR" 4
  7082. .IX Item "-fexpensive-optimizations"
  7083. Perform a number of minor optimizations that are relatively expensive.
  7084. .Sp
  7085. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7086. .IP "\fB\-free\fR" 4
  7087. .IX Item "-free"
  7088. Attempt to remove redundant extension instructions. This is especially
  7089. helpful for the x86\-64 architecture, which implicitly zero-extends in 64\-bit
  7090. registers after writing to their lower 32\-bit half.
  7091. .Sp
  7092. Enabled for Alpha, AArch64 and x86 at levels \fB\-O2\fR,
  7093. \&\fB\-O3\fR, \fB\-Os\fR.
  7094. .IP "\fB\-fno\-lifetime\-dse\fR" 4
  7095. .IX Item "-fno-lifetime-dse"
  7096. In \*(C+ the value of an object is only affected by changes within its
  7097. lifetime: when the constructor begins, the object has an indeterminate
  7098. value, and any changes during the lifetime of the object are dead when
  7099. the object is destroyed. Normally dead store elimination will take
  7100. advantage of this; if your code relies on the value of the object
  7101. storage persisting beyond the lifetime of the object, you can use this
  7102. flag to disable this optimization. To preserve stores before the
  7103. constructor starts (e.g. because your operator new clears the object
  7104. storage) but still treat the object as dead after the destructor you,
  7105. can use \fB\-flifetime\-dse=1\fR. The default behavior can be
  7106. explicitly selected with \fB\-flifetime\-dse=2\fR.
  7107. \&\fB\-flifetime\-dse=0\fR is equivalent to \fB\-fno\-lifetime\-dse\fR.
  7108. .IP "\fB\-flive\-range\-shrinkage\fR" 4
  7109. .IX Item "-flive-range-shrinkage"
  7110. Attempt to decrease register pressure through register live range
  7111. shrinkage. This is helpful for fast processors with small or moderate
  7112. size register sets.
  7113. .IP "\fB\-fira\-algorithm=\fR\fIalgorithm\fR" 4
  7114. .IX Item "-fira-algorithm=algorithm"
  7115. Use the specified coloring algorithm for the integrated register
  7116. allocator. The \fIalgorithm\fR argument can be \fBpriority\fR, which
  7117. specifies Chow's priority coloring, or \fB\s-1CB\s0\fR, which specifies
  7118. Chaitin-Briggs coloring. Chaitin-Briggs coloring is not implemented
  7119. for all architectures, but for those targets that do support it, it is
  7120. the default because it generates better code.
  7121. .IP "\fB\-fira\-region=\fR\fIregion\fR" 4
  7122. .IX Item "-fira-region=region"
  7123. Use specified regions for the integrated register allocator. The
  7124. \&\fIregion\fR argument should be one of the following:
  7125. .RS 4
  7126. .IP "\fBall\fR" 4
  7127. .IX Item "all"
  7128. Use all loops as register allocation regions.
  7129. This can give the best results for machines with a small and/or
  7130. irregular register set.
  7131. .IP "\fBmixed\fR" 4
  7132. .IX Item "mixed"
  7133. Use all loops except for loops with small register pressure
  7134. as the regions. This value usually gives
  7135. the best results in most cases and for most architectures,
  7136. and is enabled by default when compiling with optimization for speed
  7137. (\fB\-O\fR, \fB\-O2\fR, ...).
  7138. .IP "\fBone\fR" 4
  7139. .IX Item "one"
  7140. Use all functions as a single region.
  7141. This typically results in the smallest code size, and is enabled by default for
  7142. \&\fB\-Os\fR or \fB\-O0\fR.
  7143. .RE
  7144. .RS 4
  7145. .RE
  7146. .IP "\fB\-fira\-hoist\-pressure\fR" 4
  7147. .IX Item "-fira-hoist-pressure"
  7148. Use \s-1IRA\s0 to evaluate register pressure in the code hoisting pass for
  7149. decisions to hoist expressions. This option usually results in smaller
  7150. code, but it can slow the compiler down.
  7151. .Sp
  7152. This option is enabled at level \fB\-Os\fR for all targets.
  7153. .IP "\fB\-fira\-loop\-pressure\fR" 4
  7154. .IX Item "-fira-loop-pressure"
  7155. Use \s-1IRA\s0 to evaluate register pressure in loops for decisions to move
  7156. loop invariants. This option usually results in generation
  7157. of faster and smaller code on machines with large register files (>= 32
  7158. registers), but it can slow the compiler down.
  7159. .Sp
  7160. This option is enabled at level \fB\-O3\fR for some targets.
  7161. .IP "\fB\-fno\-ira\-share\-save\-slots\fR" 4
  7162. .IX Item "-fno-ira-share-save-slots"
  7163. Disable sharing of stack slots used for saving call-used hard
  7164. registers living through a call. Each hard register gets a
  7165. separate stack slot, and as a result function stack frames are
  7166. larger.
  7167. .IP "\fB\-fno\-ira\-share\-spill\-slots\fR" 4
  7168. .IX Item "-fno-ira-share-spill-slots"
  7169. Disable sharing of stack slots allocated for pseudo-registers. Each
  7170. pseudo-register that does not get a hard register gets a separate
  7171. stack slot, and as a result function stack frames are larger.
  7172. .IP "\fB\-flra\-remat\fR" 4
  7173. .IX Item "-flra-remat"
  7174. Enable CFG-sensitive rematerialization in \s-1LRA. \s0 Instead of loading
  7175. values of spilled pseudos, \s-1LRA\s0 tries to rematerialize (recalculate)
  7176. values if it is profitable.
  7177. .Sp
  7178. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7179. .IP "\fB\-fdelayed\-branch\fR" 4
  7180. .IX Item "-fdelayed-branch"
  7181. If supported for the target machine, attempt to reorder instructions
  7182. to exploit instruction slots available after delayed branch
  7183. instructions.
  7184. .Sp
  7185. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7186. .IP "\fB\-fschedule\-insns\fR" 4
  7187. .IX Item "-fschedule-insns"
  7188. If supported for the target machine, attempt to reorder instructions to
  7189. eliminate execution stalls due to required data being unavailable. This
  7190. helps machines that have slow floating point or memory load instructions
  7191. by allowing other instructions to be issued until the result of the load
  7192. or floating-point instruction is required.
  7193. .Sp
  7194. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  7195. .IP "\fB\-fschedule\-insns2\fR" 4
  7196. .IX Item "-fschedule-insns2"
  7197. Similar to \fB\-fschedule\-insns\fR, but requests an additional pass of
  7198. instruction scheduling after register allocation has been done. This is
  7199. especially useful on machines with a relatively small number of
  7200. registers and where memory load instructions take more than one cycle.
  7201. .Sp
  7202. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7203. .IP "\fB\-fno\-sched\-interblock\fR" 4
  7204. .IX Item "-fno-sched-interblock"
  7205. Don't schedule instructions across basic blocks. This is normally
  7206. enabled by default when scheduling before register allocation, i.e.
  7207. with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
  7208. .IP "\fB\-fno\-sched\-spec\fR" 4
  7209. .IX Item "-fno-sched-spec"
  7210. Don't allow speculative motion of non-load instructions. This is normally
  7211. enabled by default when scheduling before register allocation, i.e.
  7212. with \fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
  7213. .IP "\fB\-fsched\-pressure\fR" 4
  7214. .IX Item "-fsched-pressure"
  7215. Enable register pressure sensitive insn scheduling before register
  7216. allocation. This only makes sense when scheduling before register
  7217. allocation is enabled, i.e. with \fB\-fschedule\-insns\fR or at
  7218. \&\fB\-O2\fR or higher. Usage of this option can improve the
  7219. generated code and decrease its size by preventing register pressure
  7220. increase above the number of available hard registers and subsequent
  7221. spills in register allocation.
  7222. .IP "\fB\-fsched\-spec\-load\fR" 4
  7223. .IX Item "-fsched-spec-load"
  7224. Allow speculative motion of some load instructions. This only makes
  7225. sense when scheduling before register allocation, i.e. with
  7226. \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
  7227. .IP "\fB\-fsched\-spec\-load\-dangerous\fR" 4
  7228. .IX Item "-fsched-spec-load-dangerous"
  7229. Allow speculative motion of more load instructions. This only makes
  7230. sense when scheduling before register allocation, i.e. with
  7231. \&\fB\-fschedule\-insns\fR or at \fB\-O2\fR or higher.
  7232. .IP "\fB\-fsched\-stalled\-insns\fR" 4
  7233. .IX Item "-fsched-stalled-insns"
  7234. .PD 0
  7235. .IP "\fB\-fsched\-stalled\-insns=\fR\fIn\fR" 4
  7236. .IX Item "-fsched-stalled-insns=n"
  7237. .PD
  7238. Define how many insns (if any) can be moved prematurely from the queue
  7239. of stalled insns into the ready list during the second scheduling pass.
  7240. \&\fB\-fno\-sched\-stalled\-insns\fR means that no insns are moved
  7241. prematurely, \fB\-fsched\-stalled\-insns=0\fR means there is no limit
  7242. on how many queued insns can be moved prematurely.
  7243. \&\fB\-fsched\-stalled\-insns\fR without a value is equivalent to
  7244. \&\fB\-fsched\-stalled\-insns=1\fR.
  7245. .IP "\fB\-fsched\-stalled\-insns\-dep\fR" 4
  7246. .IX Item "-fsched-stalled-insns-dep"
  7247. .PD 0
  7248. .IP "\fB\-fsched\-stalled\-insns\-dep=\fR\fIn\fR" 4
  7249. .IX Item "-fsched-stalled-insns-dep=n"
  7250. .PD
  7251. Define how many insn groups (cycles) are examined for a dependency
  7252. on a stalled insn that is a candidate for premature removal from the queue
  7253. of stalled insns. This has an effect only during the second scheduling pass,
  7254. and only if \fB\-fsched\-stalled\-insns\fR is used.
  7255. \&\fB\-fno\-sched\-stalled\-insns\-dep\fR is equivalent to
  7256. \&\fB\-fsched\-stalled\-insns\-dep=0\fR.
  7257. \&\fB\-fsched\-stalled\-insns\-dep\fR without a value is equivalent to
  7258. \&\fB\-fsched\-stalled\-insns\-dep=1\fR.
  7259. .IP "\fB\-fsched2\-use\-superblocks\fR" 4
  7260. .IX Item "-fsched2-use-superblocks"
  7261. When scheduling after register allocation, use superblock scheduling.
  7262. This allows motion across basic block boundaries,
  7263. resulting in faster schedules. This option is experimental, as not all machine
  7264. descriptions used by \s-1GCC\s0 model the \s-1CPU\s0 closely enough to avoid unreliable
  7265. results from the algorithm.
  7266. .Sp
  7267. This only makes sense when scheduling after register allocation, i.e. with
  7268. \&\fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
  7269. .IP "\fB\-fsched\-group\-heuristic\fR" 4
  7270. .IX Item "-fsched-group-heuristic"
  7271. Enable the group heuristic in the scheduler. This heuristic favors
  7272. the instruction that belongs to a schedule group. This is enabled
  7273. by default when scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
  7274. or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
  7275. .IP "\fB\-fsched\-critical\-path\-heuristic\fR" 4
  7276. .IX Item "-fsched-critical-path-heuristic"
  7277. Enable the critical-path heuristic in the scheduler. This heuristic favors
  7278. instructions on the critical path. This is enabled by default when
  7279. scheduling is enabled, i.e. with \fB\-fschedule\-insns\fR
  7280. or \fB\-fschedule\-insns2\fR or at \fB\-O2\fR or higher.
  7281. .IP "\fB\-fsched\-spec\-insn\-heuristic\fR" 4
  7282. .IX Item "-fsched-spec-insn-heuristic"
  7283. Enable the speculative instruction heuristic in the scheduler. This
  7284. heuristic favors speculative instructions with greater dependency weakness.
  7285. This is enabled by default when scheduling is enabled, i.e.
  7286. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR
  7287. or at \fB\-O2\fR or higher.
  7288. .IP "\fB\-fsched\-rank\-heuristic\fR" 4
  7289. .IX Item "-fsched-rank-heuristic"
  7290. Enable the rank heuristic in the scheduler. This heuristic favors
  7291. the instruction belonging to a basic block with greater size or frequency.
  7292. This is enabled by default when scheduling is enabled, i.e.
  7293. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
  7294. at \fB\-O2\fR or higher.
  7295. .IP "\fB\-fsched\-last\-insn\-heuristic\fR" 4
  7296. .IX Item "-fsched-last-insn-heuristic"
  7297. Enable the last-instruction heuristic in the scheduler. This heuristic
  7298. favors the instruction that is less dependent on the last instruction
  7299. scheduled. This is enabled by default when scheduling is enabled,
  7300. i.e. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
  7301. at \fB\-O2\fR or higher.
  7302. .IP "\fB\-fsched\-dep\-count\-heuristic\fR" 4
  7303. .IX Item "-fsched-dep-count-heuristic"
  7304. Enable the dependent-count heuristic in the scheduler. This heuristic
  7305. favors the instruction that has more instructions depending on it.
  7306. This is enabled by default when scheduling is enabled, i.e.
  7307. with \fB\-fschedule\-insns\fR or \fB\-fschedule\-insns2\fR or
  7308. at \fB\-O2\fR or higher.
  7309. .IP "\fB\-freschedule\-modulo\-scheduled\-loops\fR" 4
  7310. .IX Item "-freschedule-modulo-scheduled-loops"
  7311. Modulo scheduling is performed before traditional scheduling. If a loop
  7312. is modulo scheduled, later scheduling passes may change its schedule.
  7313. Use this option to control that behavior.
  7314. .IP "\fB\-fselective\-scheduling\fR" 4
  7315. .IX Item "-fselective-scheduling"
  7316. Schedule instructions using selective scheduling algorithm. Selective
  7317. scheduling runs instead of the first scheduler pass.
  7318. .IP "\fB\-fselective\-scheduling2\fR" 4
  7319. .IX Item "-fselective-scheduling2"
  7320. Schedule instructions using selective scheduling algorithm. Selective
  7321. scheduling runs instead of the second scheduler pass.
  7322. .IP "\fB\-fsel\-sched\-pipelining\fR" 4
  7323. .IX Item "-fsel-sched-pipelining"
  7324. Enable software pipelining of innermost loops during selective scheduling.
  7325. This option has no effect unless one of \fB\-fselective\-scheduling\fR or
  7326. \&\fB\-fselective\-scheduling2\fR is turned on.
  7327. .IP "\fB\-fsel\-sched\-pipelining\-outer\-loops\fR" 4
  7328. .IX Item "-fsel-sched-pipelining-outer-loops"
  7329. When pipelining loops during selective scheduling, also pipeline outer loops.
  7330. This option has no effect unless \fB\-fsel\-sched\-pipelining\fR is turned on.
  7331. .IP "\fB\-fsemantic\-interposition\fR" 4
  7332. .IX Item "-fsemantic-interposition"
  7333. Some object formats, like \s-1ELF,\s0 allow interposing of symbols by the
  7334. dynamic linker.
  7335. This means that for symbols exported from the \s-1DSO,\s0 the compiler cannot perform
  7336. interprocedural propagation, inlining and other optimizations in anticipation
  7337. that the function or variable in question may change. While this feature is
  7338. useful, for example, to rewrite memory allocation functions by a debugging
  7339. implementation, it is expensive in the terms of code quality.
  7340. With \fB\-fno\-semantic\-interposition\fR the compiler assumes that
  7341. if interposition happens for functions the overwriting function will have
  7342. precisely the same semantics (and side effects).
  7343. Similarly if interposition happens
  7344. for variables, the constructor of the variable will be the same. The flag
  7345. has no effect for functions explicitly declared inline
  7346. (where it is never allowed for interposition to change semantics)
  7347. and for symbols explicitly declared weak.
  7348. .IP "\fB\-fshrink\-wrap\fR" 4
  7349. .IX Item "-fshrink-wrap"
  7350. Emit function prologues only before parts of the function that need it,
  7351. rather than at the top of the function. This flag is enabled by default at
  7352. \&\fB\-O\fR and higher.
  7353. .IP "\fB\-fshrink\-wrap\-separate\fR" 4
  7354. .IX Item "-fshrink-wrap-separate"
  7355. Shrink-wrap separate parts of the prologue and epilogue separately, so that
  7356. those parts are only executed when needed.
  7357. This option is on by default, but has no effect unless \fB\-fshrink\-wrap\fR
  7358. is also turned on and the target supports this.
  7359. .IP "\fB\-fcaller\-saves\fR" 4
  7360. .IX Item "-fcaller-saves"
  7361. Enable allocation of values to registers that are clobbered by
  7362. function calls, by emitting extra instructions to save and restore the
  7363. registers around such calls. Such allocation is done only when it
  7364. seems to result in better code.
  7365. .Sp
  7366. This option is always enabled by default on certain machines, usually
  7367. those which have no call-preserved registers to use instead.
  7368. .Sp
  7369. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7370. .IP "\fB\-fcombine\-stack\-adjustments\fR" 4
  7371. .IX Item "-fcombine-stack-adjustments"
  7372. Tracks stack adjustments (pushes and pops) and stack memory references
  7373. and then tries to find ways to combine them.
  7374. .Sp
  7375. Enabled by default at \fB\-O1\fR and higher.
  7376. .IP "\fB\-fipa\-ra\fR" 4
  7377. .IX Item "-fipa-ra"
  7378. Use caller save registers for allocation if those registers are not used by
  7379. any called function. In that case it is not necessary to save and restore
  7380. them around calls. This is only possible if called functions are part of
  7381. same compilation unit as current function and they are compiled before it.
  7382. .Sp
  7383. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR, however the option
  7384. is disabled if generated code will be instrumented for profiling
  7385. (\fB\-p\fR, or \fB\-pg\fR) or if callee's register usage cannot be known
  7386. exactly (this happens on targets that do not expose prologues
  7387. and epilogues in \s-1RTL\s0).
  7388. .IP "\fB\-fconserve\-stack\fR" 4
  7389. .IX Item "-fconserve-stack"
  7390. Attempt to minimize stack usage. The compiler attempts to use less
  7391. stack space, even if that makes the program slower. This option
  7392. implies setting the \fBlarge-stack-frame\fR parameter to 100
  7393. and the \fBlarge-stack-frame-growth\fR parameter to 400.
  7394. .IP "\fB\-ftree\-reassoc\fR" 4
  7395. .IX Item "-ftree-reassoc"
  7396. Perform reassociation on trees. This flag is enabled by default
  7397. at \fB\-O\fR and higher.
  7398. .IP "\fB\-fcode\-hoisting\fR" 4
  7399. .IX Item "-fcode-hoisting"
  7400. Perform code hoisting. Code hoisting tries to move the
  7401. evaluation of expressions executed on all paths to the function exit
  7402. as early as possible. This is especially useful as a code size
  7403. optimization, but it often helps for code speed as well.
  7404. This flag is enabled by default at \fB\-O2\fR and higher.
  7405. .IP "\fB\-ftree\-pre\fR" 4
  7406. .IX Item "-ftree-pre"
  7407. Perform partial redundancy elimination (\s-1PRE\s0) on trees. This flag is
  7408. enabled by default at \fB\-O2\fR and \fB\-O3\fR.
  7409. .IP "\fB\-ftree\-partial\-pre\fR" 4
  7410. .IX Item "-ftree-partial-pre"
  7411. Make partial redundancy elimination (\s-1PRE\s0) more aggressive. This flag is
  7412. enabled by default at \fB\-O3\fR.
  7413. .IP "\fB\-ftree\-forwprop\fR" 4
  7414. .IX Item "-ftree-forwprop"
  7415. Perform forward propagation on trees. This flag is enabled by default
  7416. at \fB\-O\fR and higher.
  7417. .IP "\fB\-ftree\-fre\fR" 4
  7418. .IX Item "-ftree-fre"
  7419. Perform full redundancy elimination (\s-1FRE\s0) on trees. The difference
  7420. between \s-1FRE\s0 and \s-1PRE\s0 is that \s-1FRE\s0 only considers expressions
  7421. that are computed on all paths leading to the redundant computation.
  7422. This analysis is faster than \s-1PRE,\s0 though it exposes fewer redundancies.
  7423. This flag is enabled by default at \fB\-O\fR and higher.
  7424. .IP "\fB\-ftree\-phiprop\fR" 4
  7425. .IX Item "-ftree-phiprop"
  7426. Perform hoisting of loads from conditional pointers on trees. This
  7427. pass is enabled by default at \fB\-O\fR and higher.
  7428. .IP "\fB\-fhoist\-adjacent\-loads\fR" 4
  7429. .IX Item "-fhoist-adjacent-loads"
  7430. Speculatively hoist loads from both branches of an if-then-else if the
  7431. loads are from adjacent locations in the same structure and the target
  7432. architecture has a conditional move instruction. This flag is enabled
  7433. by default at \fB\-O2\fR and higher.
  7434. .IP "\fB\-ftree\-copy\-prop\fR" 4
  7435. .IX Item "-ftree-copy-prop"
  7436. Perform copy propagation on trees. This pass eliminates unnecessary
  7437. copy operations. This flag is enabled by default at \fB\-O\fR and
  7438. higher.
  7439. .IP "\fB\-fipa\-pure\-const\fR" 4
  7440. .IX Item "-fipa-pure-const"
  7441. Discover which functions are pure or constant.
  7442. Enabled by default at \fB\-O\fR and higher.
  7443. .IP "\fB\-fipa\-reference\fR" 4
  7444. .IX Item "-fipa-reference"
  7445. Discover which static variables do not escape the
  7446. compilation unit.
  7447. Enabled by default at \fB\-O\fR and higher.
  7448. .IP "\fB\-fipa\-pta\fR" 4
  7449. .IX Item "-fipa-pta"
  7450. Perform interprocedural pointer analysis and interprocedural modification
  7451. and reference analysis. This option can cause excessive memory and
  7452. compile-time usage on large compilation units. It is not enabled by
  7453. default at any optimization level.
  7454. .IP "\fB\-fipa\-profile\fR" 4
  7455. .IX Item "-fipa-profile"
  7456. Perform interprocedural profile propagation. The functions called only from
  7457. cold functions are marked as cold. Also functions executed once (such as
  7458. \&\f(CW\*(C`cold\*(C'\fR, \f(CW\*(C`noreturn\*(C'\fR, static constructors or destructors) are identified. Cold
  7459. functions and loop less parts of functions executed once are then optimized for
  7460. size.
  7461. Enabled by default at \fB\-O\fR and higher.
  7462. .IP "\fB\-fipa\-cp\fR" 4
  7463. .IX Item "-fipa-cp"
  7464. Perform interprocedural constant propagation.
  7465. This optimization analyzes the program to determine when values passed
  7466. to functions are constants and then optimizes accordingly.
  7467. This optimization can substantially increase performance
  7468. if the application has constants passed to functions.
  7469. This flag is enabled by default at \fB\-O2\fR, \fB\-Os\fR and \fB\-O3\fR.
  7470. .IP "\fB\-fipa\-cp\-clone\fR" 4
  7471. .IX Item "-fipa-cp-clone"
  7472. Perform function cloning to make interprocedural constant propagation stronger.
  7473. When enabled, interprocedural constant propagation performs function cloning
  7474. when externally visible function can be called with constant arguments.
  7475. Because this optimization can create multiple copies of functions,
  7476. it may significantly increase code size
  7477. (see \fB\-\-param ipcp\-unit\-growth=\fR\fIvalue\fR).
  7478. This flag is enabled by default at \fB\-O3\fR.
  7479. .IP "\fB\-fipa\-bit\-cp\fR" 4
  7480. .IX Item "-fipa-bit-cp"
  7481. When enabled, perform interprocedural bitwise constant
  7482. propagation. This flag is enabled by default at \fB\-O2\fR. It
  7483. requires that \fB\-fipa\-cp\fR is enabled.
  7484. .IP "\fB\-fipa\-vrp\fR" 4
  7485. .IX Item "-fipa-vrp"
  7486. When enabled, perform interprocedural propagation of value
  7487. ranges. This flag is enabled by default at \fB\-O2\fR. It requires
  7488. that \fB\-fipa\-cp\fR is enabled.
  7489. .IP "\fB\-fipa\-icf\fR" 4
  7490. .IX Item "-fipa-icf"
  7491. Perform Identical Code Folding for functions and read-only variables.
  7492. The optimization reduces code size and may disturb unwind stacks by replacing
  7493. a function by equivalent one with a different name. The optimization works
  7494. more effectively with link-time optimization enabled.
  7495. .Sp
  7496. Nevertheless the behavior is similar to Gold Linker \s-1ICF\s0 optimization, \s-1GCC ICF\s0
  7497. works on different levels and thus the optimizations are not same \- there are
  7498. equivalences that are found only by \s-1GCC\s0 and equivalences found only by Gold.
  7499. .Sp
  7500. This flag is enabled by default at \fB\-O2\fR and \fB\-Os\fR.
  7501. .IP "\fB\-fisolate\-erroneous\-paths\-dereference\fR" 4
  7502. .IX Item "-fisolate-erroneous-paths-dereference"
  7503. Detect paths that trigger erroneous or undefined behavior due to
  7504. dereferencing a null pointer. Isolate those paths from the main control
  7505. flow and turn the statement with erroneous or undefined behavior into a trap.
  7506. This flag is enabled by default at \fB\-O2\fR and higher and depends on
  7507. \&\fB\-fdelete\-null\-pointer\-checks\fR also being enabled.
  7508. .IP "\fB\-fisolate\-erroneous\-paths\-attribute\fR" 4
  7509. .IX Item "-fisolate-erroneous-paths-attribute"
  7510. Detect paths that trigger erroneous or undefined behavior due to a null value
  7511. being used in a way forbidden by a \f(CW\*(C`returns_nonnull\*(C'\fR or \f(CW\*(C`nonnull\*(C'\fR
  7512. attribute. Isolate those paths from the main control flow and turn the
  7513. statement with erroneous or undefined behavior into a trap. This is not
  7514. currently enabled, but may be enabled by \fB\-O2\fR in the future.
  7515. .IP "\fB\-ftree\-sink\fR" 4
  7516. .IX Item "-ftree-sink"
  7517. Perform forward store motion on trees. This flag is
  7518. enabled by default at \fB\-O\fR and higher.
  7519. .IP "\fB\-ftree\-bit\-ccp\fR" 4
  7520. .IX Item "-ftree-bit-ccp"
  7521. Perform sparse conditional bit constant propagation on trees and propagate
  7522. pointer alignment information.
  7523. This pass only operates on local scalar variables and is enabled by default
  7524. at \fB\-O\fR and higher. It requires that \fB\-ftree\-ccp\fR is enabled.
  7525. .IP "\fB\-ftree\-ccp\fR" 4
  7526. .IX Item "-ftree-ccp"
  7527. Perform sparse conditional constant propagation (\s-1CCP\s0) on trees. This
  7528. pass only operates on local scalar variables and is enabled by default
  7529. at \fB\-O\fR and higher.
  7530. .IP "\fB\-fssa\-backprop\fR" 4
  7531. .IX Item "-fssa-backprop"
  7532. Propagate information about uses of a value up the definition chain
  7533. in order to simplify the definitions. For example, this pass strips
  7534. sign operations if the sign of a value never matters. The flag is
  7535. enabled by default at \fB\-O\fR and higher.
  7536. .IP "\fB\-fssa\-phiopt\fR" 4
  7537. .IX Item "-fssa-phiopt"
  7538. Perform pattern matching on \s-1SSA PHI\s0 nodes to optimize conditional
  7539. code. This pass is enabled by default at \fB\-O\fR and higher.
  7540. .IP "\fB\-ftree\-switch\-conversion\fR" 4
  7541. .IX Item "-ftree-switch-conversion"
  7542. Perform conversion of simple initializations in a switch to
  7543. initializations from a scalar array. This flag is enabled by default
  7544. at \fB\-O2\fR and higher.
  7545. .IP "\fB\-ftree\-tail\-merge\fR" 4
  7546. .IX Item "-ftree-tail-merge"
  7547. Look for identical code sequences. When found, replace one with a jump to the
  7548. other. This optimization is known as tail merging or cross jumping. This flag
  7549. is enabled by default at \fB\-O2\fR and higher. The compilation time
  7550. in this pass can
  7551. be limited using \fBmax-tail-merge-comparisons\fR parameter and
  7552. \&\fBmax-tail-merge-iterations\fR parameter.
  7553. .IP "\fB\-ftree\-dce\fR" 4
  7554. .IX Item "-ftree-dce"
  7555. Perform dead code elimination (\s-1DCE\s0) on trees. This flag is enabled by
  7556. default at \fB\-O\fR and higher.
  7557. .IP "\fB\-ftree\-builtin\-call\-dce\fR" 4
  7558. .IX Item "-ftree-builtin-call-dce"
  7559. Perform conditional dead code elimination (\s-1DCE\s0) for calls to built-in functions
  7560. that may set \f(CW\*(C`errno\*(C'\fR but are otherwise side-effect free. This flag is
  7561. enabled by default at \fB\-O2\fR and higher if \fB\-Os\fR is not also
  7562. specified.
  7563. .IP "\fB\-ftree\-dominator\-opts\fR" 4
  7564. .IX Item "-ftree-dominator-opts"
  7565. Perform a variety of simple scalar cleanups (constant/copy
  7566. propagation, redundancy elimination, range propagation and expression
  7567. simplification) based on a dominator tree traversal. This also
  7568. performs jump threading (to reduce jumps to jumps). This flag is
  7569. enabled by default at \fB\-O\fR and higher.
  7570. .IP "\fB\-ftree\-dse\fR" 4
  7571. .IX Item "-ftree-dse"
  7572. Perform dead store elimination (\s-1DSE\s0) on trees. A dead store is a store into
  7573. a memory location that is later overwritten by another store without
  7574. any intervening loads. In this case the earlier store can be deleted. This
  7575. flag is enabled by default at \fB\-O\fR and higher.
  7576. .IP "\fB\-ftree\-ch\fR" 4
  7577. .IX Item "-ftree-ch"
  7578. Perform loop header copying on trees. This is beneficial since it increases
  7579. effectiveness of code motion optimizations. It also saves one jump. This flag
  7580. is enabled by default at \fB\-O\fR and higher. It is not enabled
  7581. for \fB\-Os\fR, since it usually increases code size.
  7582. .IP "\fB\-ftree\-loop\-optimize\fR" 4
  7583. .IX Item "-ftree-loop-optimize"
  7584. Perform loop optimizations on trees. This flag is enabled by default
  7585. at \fB\-O\fR and higher.
  7586. .IP "\fB\-ftree\-loop\-linear\fR" 4
  7587. .IX Item "-ftree-loop-linear"
  7588. .PD 0
  7589. .IP "\fB\-floop\-interchange\fR" 4
  7590. .IX Item "-floop-interchange"
  7591. .IP "\fB\-floop\-strip\-mine\fR" 4
  7592. .IX Item "-floop-strip-mine"
  7593. .IP "\fB\-floop\-block\fR" 4
  7594. .IX Item "-floop-block"
  7595. .IP "\fB\-floop\-unroll\-and\-jam\fR" 4
  7596. .IX Item "-floop-unroll-and-jam"
  7597. .PD
  7598. Perform loop nest optimizations. Same as
  7599. \&\fB\-floop\-nest\-optimize\fR. To use this code transformation, \s-1GCC\s0 has
  7600. to be configured with \fB\-\-with\-isl\fR to enable the Graphite loop
  7601. transformation infrastructure.
  7602. .IP "\fB\-fgraphite\-identity\fR" 4
  7603. .IX Item "-fgraphite-identity"
  7604. Enable the identity transformation for graphite. For every SCoP we generate
  7605. the polyhedral representation and transform it back to gimple. Using
  7606. \&\fB\-fgraphite\-identity\fR we can check the costs or benefits of the
  7607. \&\s-1GIMPLE \-\s0> \s-1GRAPHITE \-\s0> \s-1GIMPLE\s0 transformation. Some minimal optimizations
  7608. are also performed by the code generator isl, like index splitting and
  7609. dead code elimination in loops.
  7610. .IP "\fB\-floop\-nest\-optimize\fR" 4
  7611. .IX Item "-floop-nest-optimize"
  7612. Enable the isl based loop nest optimizer. This is a generic loop nest
  7613. optimizer based on the Pluto optimization algorithms. It calculates a loop
  7614. structure optimized for data-locality and parallelism. This option
  7615. is experimental.
  7616. .IP "\fB\-floop\-parallelize\-all\fR" 4
  7617. .IX Item "-floop-parallelize-all"
  7618. Use the Graphite data dependence analysis to identify loops that can
  7619. be parallelized. Parallelize all the loops that can be analyzed to
  7620. not contain loop carried dependences without checking that it is
  7621. profitable to parallelize the loops.
  7622. .IP "\fB\-ftree\-coalesce\-vars\fR" 4
  7623. .IX Item "-ftree-coalesce-vars"
  7624. While transforming the program out of the \s-1SSA\s0 representation, attempt to
  7625. reduce copying by coalescing versions of different user-defined
  7626. variables, instead of just compiler temporaries. This may severely
  7627. limit the ability to debug an optimized program compiled with
  7628. \&\fB\-fno\-var\-tracking\-assignments\fR. In the negated form, this flag
  7629. prevents \s-1SSA\s0 coalescing of user variables. This option is enabled by
  7630. default if optimization is enabled, and it does very little otherwise.
  7631. .IP "\fB\-ftree\-loop\-if\-convert\fR" 4
  7632. .IX Item "-ftree-loop-if-convert"
  7633. Attempt to transform conditional jumps in the innermost loops to
  7634. branch-less equivalents. The intent is to remove control-flow from
  7635. the innermost loops in order to improve the ability of the
  7636. vectorization pass to handle these loops. This is enabled by default
  7637. if vectorization is enabled.
  7638. .IP "\fB\-ftree\-loop\-distribution\fR" 4
  7639. .IX Item "-ftree-loop-distribution"
  7640. Perform loop distribution. This flag can improve cache performance on
  7641. big loop bodies and allow further loop optimizations, like
  7642. parallelization or vectorization, to take place. For example, the loop
  7643. .Sp
  7644. .Vb 4
  7645. \& DO I = 1, N
  7646. \& A(I) = B(I) + C
  7647. \& D(I) = E(I) * F
  7648. \& ENDDO
  7649. .Ve
  7650. .Sp
  7651. is transformed to
  7652. .Sp
  7653. .Vb 6
  7654. \& DO I = 1, N
  7655. \& A(I) = B(I) + C
  7656. \& ENDDO
  7657. \& DO I = 1, N
  7658. \& D(I) = E(I) * F
  7659. \& ENDDO
  7660. .Ve
  7661. .IP "\fB\-ftree\-loop\-distribute\-patterns\fR" 4
  7662. .IX Item "-ftree-loop-distribute-patterns"
  7663. Perform loop distribution of patterns that can be code generated with
  7664. calls to a library. This flag is enabled by default at \fB\-O3\fR.
  7665. .Sp
  7666. This pass distributes the initialization loops and generates a call to
  7667. memset zero. For example, the loop
  7668. .Sp
  7669. .Vb 4
  7670. \& DO I = 1, N
  7671. \& A(I) = 0
  7672. \& B(I) = A(I) + I
  7673. \& ENDDO
  7674. .Ve
  7675. .Sp
  7676. is transformed to
  7677. .Sp
  7678. .Vb 6
  7679. \& DO I = 1, N
  7680. \& A(I) = 0
  7681. \& ENDDO
  7682. \& DO I = 1, N
  7683. \& B(I) = A(I) + I
  7684. \& ENDDO
  7685. .Ve
  7686. .Sp
  7687. and the initialization loop is transformed into a call to memset zero.
  7688. .IP "\fB\-ftree\-loop\-im\fR" 4
  7689. .IX Item "-ftree-loop-im"
  7690. Perform loop invariant motion on trees. This pass moves only invariants that
  7691. are hard to handle at \s-1RTL\s0 level (function calls, operations that expand to
  7692. nontrivial sequences of insns). With \fB\-funswitch\-loops\fR it also moves
  7693. operands of conditions that are invariant out of the loop, so that we can use
  7694. just trivial invariantness analysis in loop unswitching. The pass also includes
  7695. store motion.
  7696. .IP "\fB\-ftree\-loop\-ivcanon\fR" 4
  7697. .IX Item "-ftree-loop-ivcanon"
  7698. Create a canonical counter for number of iterations in loops for which
  7699. determining number of iterations requires complicated analysis. Later
  7700. optimizations then may determine the number easily. Useful especially
  7701. in connection with unrolling.
  7702. .IP "\fB\-fivopts\fR" 4
  7703. .IX Item "-fivopts"
  7704. Perform induction variable optimizations (strength reduction, induction
  7705. variable merging and induction variable elimination) on trees.
  7706. .IP "\fB\-ftree\-parallelize\-loops=n\fR" 4
  7707. .IX Item "-ftree-parallelize-loops=n"
  7708. Parallelize loops, i.e., split their iteration space to run in n threads.
  7709. This is only possible for loops whose iterations are independent
  7710. and can be arbitrarily reordered. The optimization is only
  7711. profitable on multiprocessor machines, for loops that are CPU-intensive,
  7712. rather than constrained e.g. by memory bandwidth. This option
  7713. implies \fB\-pthread\fR, and thus is only supported on targets
  7714. that have support for \fB\-pthread\fR.
  7715. .IP "\fB\-ftree\-pta\fR" 4
  7716. .IX Item "-ftree-pta"
  7717. Perform function-local points-to analysis on trees. This flag is
  7718. enabled by default at \fB\-O\fR and higher.
  7719. .IP "\fB\-ftree\-sra\fR" 4
  7720. .IX Item "-ftree-sra"
  7721. Perform scalar replacement of aggregates. This pass replaces structure
  7722. references with scalars to prevent committing structures to memory too
  7723. early. This flag is enabled by default at \fB\-O\fR and higher.
  7724. .IP "\fB\-fstore\-merging\fR" 4
  7725. .IX Item "-fstore-merging"
  7726. Perform merging of narrow stores to consecutive memory addresses. This pass
  7727. merges contiguous stores of immediate values narrower than a word into fewer
  7728. wider stores to reduce the number of instructions. This is enabled by default
  7729. at \fB\-O2\fR and higher as well as \fB\-Os\fR.
  7730. .IP "\fB\-ftree\-ter\fR" 4
  7731. .IX Item "-ftree-ter"
  7732. Perform temporary expression replacement during the \s-1SSA\-\s0>normal phase. Single
  7733. use/single def temporaries are replaced at their use location with their
  7734. defining expression. This results in non-GIMPLE code, but gives the expanders
  7735. much more complex trees to work on resulting in better \s-1RTL\s0 generation. This is
  7736. enabled by default at \fB\-O\fR and higher.
  7737. .IP "\fB\-ftree\-slsr\fR" 4
  7738. .IX Item "-ftree-slsr"
  7739. Perform straight-line strength reduction on trees. This recognizes related
  7740. expressions involving multiplications and replaces them by less expensive
  7741. calculations when possible. This is enabled by default at \fB\-O\fR and
  7742. higher.
  7743. .IP "\fB\-ftree\-vectorize\fR" 4
  7744. .IX Item "-ftree-vectorize"
  7745. Perform vectorization on trees. This flag enables \fB\-ftree\-loop\-vectorize\fR
  7746. and \fB\-ftree\-slp\-vectorize\fR if not explicitly specified.
  7747. .IP "\fB\-ftree\-loop\-vectorize\fR" 4
  7748. .IX Item "-ftree-loop-vectorize"
  7749. Perform loop vectorization on trees. This flag is enabled by default at
  7750. \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
  7751. .IP "\fB\-ftree\-slp\-vectorize\fR" 4
  7752. .IX Item "-ftree-slp-vectorize"
  7753. Perform basic block vectorization on trees. This flag is enabled by default at
  7754. \&\fB\-O3\fR and when \fB\-ftree\-vectorize\fR is enabled.
  7755. .IP "\fB\-fvect\-cost\-model=\fR\fImodel\fR" 4
  7756. .IX Item "-fvect-cost-model=model"
  7757. Alter the cost model used for vectorization. The \fImodel\fR argument
  7758. should be one of \fBunlimited\fR, \fBdynamic\fR or \fBcheap\fR.
  7759. With the \fBunlimited\fR model the vectorized code-path is assumed
  7760. to be profitable while with the \fBdynamic\fR model a runtime check
  7761. guards the vectorized code-path to enable it only for iteration
  7762. counts that will likely execute faster than when executing the original
  7763. scalar loop. The \fBcheap\fR model disables vectorization of
  7764. loops where doing so would be cost prohibitive for example due to
  7765. required runtime checks for data dependence or alignment but otherwise
  7766. is equal to the \fBdynamic\fR model.
  7767. The default cost model depends on other optimization flags and is
  7768. either \fBdynamic\fR or \fBcheap\fR.
  7769. .IP "\fB\-fsimd\-cost\-model=\fR\fImodel\fR" 4
  7770. .IX Item "-fsimd-cost-model=model"
  7771. Alter the cost model used for vectorization of loops marked with the OpenMP
  7772. or Cilk Plus simd directive. The \fImodel\fR argument should be one of
  7773. \&\fBunlimited\fR, \fBdynamic\fR, \fBcheap\fR. All values of \fImodel\fR
  7774. have the same meaning as described in \fB\-fvect\-cost\-model\fR and by
  7775. default a cost model defined with \fB\-fvect\-cost\-model\fR is used.
  7776. .IP "\fB\-ftree\-vrp\fR" 4
  7777. .IX Item "-ftree-vrp"
  7778. Perform Value Range Propagation on trees. This is similar to the
  7779. constant propagation pass, but instead of values, ranges of values are
  7780. propagated. This allows the optimizers to remove unnecessary range
  7781. checks like array bound checks and null pointer checks. This is
  7782. enabled by default at \fB\-O2\fR and higher. Null pointer check
  7783. elimination is only done if \fB\-fdelete\-null\-pointer\-checks\fR is
  7784. enabled.
  7785. .IP "\fB\-fsplit\-paths\fR" 4
  7786. .IX Item "-fsplit-paths"
  7787. Split paths leading to loop backedges. This can improve dead code
  7788. elimination and common subexpression elimination. This is enabled by
  7789. default at \fB\-O2\fR and above.
  7790. .IP "\fB\-fsplit\-ivs\-in\-unroller\fR" 4
  7791. .IX Item "-fsplit-ivs-in-unroller"
  7792. Enables expression of values of induction variables in later iterations
  7793. of the unrolled loop using the value in the first iteration. This breaks
  7794. long dependency chains, thus improving efficiency of the scheduling passes.
  7795. .Sp
  7796. A combination of \fB\-fweb\fR and \s-1CSE\s0 is often sufficient to obtain the
  7797. same effect. However, that is not reliable in cases where the loop body
  7798. is more complicated than a single basic block. It also does not work at all
  7799. on some architectures due to restrictions in the \s-1CSE\s0 pass.
  7800. .Sp
  7801. This optimization is enabled by default.
  7802. .IP "\fB\-fvariable\-expansion\-in\-unroller\fR" 4
  7803. .IX Item "-fvariable-expansion-in-unroller"
  7804. With this option, the compiler creates multiple copies of some
  7805. local variables when unrolling a loop, which can result in superior code.
  7806. .IP "\fB\-fpartial\-inlining\fR" 4
  7807. .IX Item "-fpartial-inlining"
  7808. Inline parts of functions. This option has any effect only
  7809. when inlining itself is turned on by the \fB\-finline\-functions\fR
  7810. or \fB\-finline\-small\-functions\fR options.
  7811. .Sp
  7812. Enabled at level \fB\-O2\fR.
  7813. .IP "\fB\-fpredictive\-commoning\fR" 4
  7814. .IX Item "-fpredictive-commoning"
  7815. Perform predictive commoning optimization, i.e., reusing computations
  7816. (especially memory loads and stores) performed in previous
  7817. iterations of loops.
  7818. .Sp
  7819. This option is enabled at level \fB\-O3\fR.
  7820. .IP "\fB\-fprefetch\-loop\-arrays\fR" 4
  7821. .IX Item "-fprefetch-loop-arrays"
  7822. If supported by the target machine, generate instructions to prefetch
  7823. memory to improve the performance of loops that access large arrays.
  7824. .Sp
  7825. This option may generate better or worse code; results are highly
  7826. dependent on the structure of loops within the source code.
  7827. .Sp
  7828. Disabled at level \fB\-Os\fR.
  7829. .IP "\fB\-fno\-printf\-return\-value\fR" 4
  7830. .IX Item "-fno-printf-return-value"
  7831. Do not substitute constants for known return value of formatted output
  7832. functions such as \f(CW\*(C`sprintf\*(C'\fR, \f(CW\*(C`snprintf\*(C'\fR, \f(CW\*(C`vsprintf\*(C'\fR, and
  7833. \&\f(CW\*(C`vsnprintf\*(C'\fR (but not \f(CW\*(C`printf\*(C'\fR of \f(CW\*(C`fprintf\*(C'\fR). This
  7834. transformation allows \s-1GCC\s0 to optimize or even eliminate branches based
  7835. on the known return value of these functions called with arguments that
  7836. are either constant, or whose values are known to be in a range that
  7837. makes determining the exact return value possible. For example, when
  7838. \&\fB\-fprintf\-return\-value\fR is in effect, both the branch and the
  7839. body of the \f(CW\*(C`if\*(C'\fR statement (but not the call to \f(CW\*(C`snprint\*(C'\fR)
  7840. can be optimized away when \f(CW\*(C`i\*(C'\fR is a 32\-bit or smaller integer
  7841. because the return value is guaranteed to be at most 8.
  7842. .Sp
  7843. .Vb 3
  7844. \& char buf[9];
  7845. \& if (snprintf (buf, "%08x", i) >= sizeof buf)
  7846. \& ...
  7847. .Ve
  7848. .Sp
  7849. The \fB\-fprintf\-return\-value\fR option relies on other optimizations
  7850. and yields best results with \fB\-O2\fR. It works in tandem with the
  7851. \&\fB\-Wformat\-overflow\fR and \fB\-Wformat\-truncation\fR options.
  7852. The \fB\-fprintf\-return\-value\fR option is enabled by default.
  7853. .IP "\fB\-fno\-peephole\fR" 4
  7854. .IX Item "-fno-peephole"
  7855. .PD 0
  7856. .IP "\fB\-fno\-peephole2\fR" 4
  7857. .IX Item "-fno-peephole2"
  7858. .PD
  7859. Disable any machine-specific peephole optimizations. The difference
  7860. between \fB\-fno\-peephole\fR and \fB\-fno\-peephole2\fR is in how they
  7861. are implemented in the compiler; some targets use one, some use the
  7862. other, a few use both.
  7863. .Sp
  7864. \&\fB\-fpeephole\fR is enabled by default.
  7865. \&\fB\-fpeephole2\fR enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7866. .IP "\fB\-fno\-guess\-branch\-probability\fR" 4
  7867. .IX Item "-fno-guess-branch-probability"
  7868. Do not guess branch probabilities using heuristics.
  7869. .Sp
  7870. \&\s-1GCC\s0 uses heuristics to guess branch probabilities if they are
  7871. not provided by profiling feedback (\fB\-fprofile\-arcs\fR). These
  7872. heuristics are based on the control flow graph. If some branch probabilities
  7873. are specified by \f(CW\*(C`_\|_builtin_expect\*(C'\fR, then the heuristics are
  7874. used to guess branch probabilities for the rest of the control flow graph,
  7875. taking the \f(CW\*(C`_\|_builtin_expect\*(C'\fR info into account. The interactions
  7876. between the heuristics and \f(CW\*(C`_\|_builtin_expect\*(C'\fR can be complex, and in
  7877. some cases, it may be useful to disable the heuristics so that the effects
  7878. of \f(CW\*(C`_\|_builtin_expect\*(C'\fR are easier to understand.
  7879. .Sp
  7880. The default is \fB\-fguess\-branch\-probability\fR at levels
  7881. \&\fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7882. .IP "\fB\-freorder\-blocks\fR" 4
  7883. .IX Item "-freorder-blocks"
  7884. Reorder basic blocks in the compiled function in order to reduce number of
  7885. taken branches and improve code locality.
  7886. .Sp
  7887. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7888. .IP "\fB\-freorder\-blocks\-algorithm=\fR\fIalgorithm\fR" 4
  7889. .IX Item "-freorder-blocks-algorithm=algorithm"
  7890. Use the specified algorithm for basic block reordering. The
  7891. \&\fIalgorithm\fR argument can be \fBsimple\fR, which does not increase
  7892. code size (except sometimes due to secondary effects like alignment),
  7893. or \fBstc\fR, the \*(L"software trace cache\*(R" algorithm, which tries to
  7894. put all often executed code together, minimizing the number of branches
  7895. executed by making extra copies of code.
  7896. .Sp
  7897. The default is \fBsimple\fR at levels \fB\-O\fR, \fB\-Os\fR, and
  7898. \&\fBstc\fR at levels \fB\-O2\fR, \fB\-O3\fR.
  7899. .IP "\fB\-freorder\-blocks\-and\-partition\fR" 4
  7900. .IX Item "-freorder-blocks-and-partition"
  7901. In addition to reordering basic blocks in the compiled function, in order
  7902. to reduce number of taken branches, partitions hot and cold basic blocks
  7903. into separate sections of the assembly and \fI.o\fR files, to improve
  7904. paging and cache locality performance.
  7905. .Sp
  7906. This optimization is automatically turned off in the presence of
  7907. exception handling, for linkonce sections, for functions with a user-defined
  7908. section attribute and on any architecture that does not support named
  7909. sections.
  7910. .Sp
  7911. Enabled for x86 at levels \fB\-O2\fR, \fB\-O3\fR.
  7912. .IP "\fB\-freorder\-functions\fR" 4
  7913. .IX Item "-freorder-functions"
  7914. Reorder functions in the object file in order to
  7915. improve code locality. This is implemented by using special
  7916. subsections \f(CW\*(C`.text.hot\*(C'\fR for most frequently executed functions and
  7917. \&\f(CW\*(C`.text.unlikely\*(C'\fR for unlikely executed functions. Reordering is done by
  7918. the linker so object file format must support named sections and linker must
  7919. place them in a reasonable way.
  7920. .Sp
  7921. Also profile feedback must be available to make this option effective. See
  7922. \&\fB\-fprofile\-arcs\fR for details.
  7923. .Sp
  7924. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7925. .IP "\fB\-fstrict\-aliasing\fR" 4
  7926. .IX Item "-fstrict-aliasing"
  7927. Allow the compiler to assume the strictest aliasing rules applicable to
  7928. the language being compiled. For C (and \*(C+), this activates
  7929. optimizations based on the type of expressions. In particular, an
  7930. object of one type is assumed never to reside at the same address as an
  7931. object of a different type, unless the types are almost the same. For
  7932. example, an \f(CW\*(C`unsigned int\*(C'\fR can alias an \f(CW\*(C`int\*(C'\fR, but not a
  7933. \&\f(CW\*(C`void*\*(C'\fR or a \f(CW\*(C`double\*(C'\fR. A character type may alias any other
  7934. type.
  7935. .Sp
  7936. Pay special attention to code like this:
  7937. .Sp
  7938. .Vb 4
  7939. \& union a_union {
  7940. \& int i;
  7941. \& double d;
  7942. \& };
  7943. \&
  7944. \& int f() {
  7945. \& union a_union t;
  7946. \& t.d = 3.0;
  7947. \& return t.i;
  7948. \& }
  7949. .Ve
  7950. .Sp
  7951. The practice of reading from a different union member than the one most
  7952. recently written to (called \*(L"type-punning\*(R") is common. Even with
  7953. \&\fB\-fstrict\-aliasing\fR, type-punning is allowed, provided the memory
  7954. is accessed through the union type. So, the code above works as
  7955. expected. However, this code might not:
  7956. .Sp
  7957. .Vb 7
  7958. \& int f() {
  7959. \& union a_union t;
  7960. \& int* ip;
  7961. \& t.d = 3.0;
  7962. \& ip = &t.i;
  7963. \& return *ip;
  7964. \& }
  7965. .Ve
  7966. .Sp
  7967. Similarly, access by taking the address, casting the resulting pointer
  7968. and dereferencing the result has undefined behavior, even if the cast
  7969. uses a union type, e.g.:
  7970. .Sp
  7971. .Vb 4
  7972. \& int f() {
  7973. \& double d = 3.0;
  7974. \& return ((union a_union *) &d)\->i;
  7975. \& }
  7976. .Ve
  7977. .Sp
  7978. The \fB\-fstrict\-aliasing\fR option is enabled at levels
  7979. \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  7980. .IP "\fB\-fstrict\-overflow\fR" 4
  7981. .IX Item "-fstrict-overflow"
  7982. Allow the compiler to assume strict signed overflow rules, depending
  7983. on the language being compiled. For C (and \*(C+) this means that
  7984. overflow when doing arithmetic with signed numbers is undefined, which
  7985. means that the compiler may assume that it does not happen. This
  7986. permits various optimizations. For example, the compiler assumes
  7987. that an expression like \f(CW\*(C`i + 10 > i\*(C'\fR is always true for
  7988. signed \f(CW\*(C`i\*(C'\fR. This assumption is only valid if signed overflow is
  7989. undefined, as the expression is false if \f(CW\*(C`i + 10\*(C'\fR overflows when
  7990. using twos complement arithmetic. When this option is in effect any
  7991. attempt to determine whether an operation on signed numbers
  7992. overflows must be written carefully to not actually involve overflow.
  7993. .Sp
  7994. This option also allows the compiler to assume strict pointer
  7995. semantics: given a pointer to an object, if adding an offset to that
  7996. pointer does not produce a pointer to the same object, the addition is
  7997. undefined. This permits the compiler to conclude that \f(CW\*(C`p + u >
  7998. p\*(C'\fR is always true for a pointer \f(CW\*(C`p\*(C'\fR and unsigned integer
  7999. \&\f(CW\*(C`u\*(C'\fR. This assumption is only valid because pointer wraparound is
  8000. undefined, as the expression is false if \f(CW\*(C`p + u\*(C'\fR overflows using
  8001. twos complement arithmetic.
  8002. .Sp
  8003. See also the \fB\-fwrapv\fR option. Using \fB\-fwrapv\fR means
  8004. that integer signed overflow is fully defined: it wraps. When
  8005. \&\fB\-fwrapv\fR is used, there is no difference between
  8006. \&\fB\-fstrict\-overflow\fR and \fB\-fno\-strict\-overflow\fR for
  8007. integers. With \fB\-fwrapv\fR certain types of overflow are
  8008. permitted. For example, if the compiler gets an overflow when doing
  8009. arithmetic on constants, the overflowed value can still be used with
  8010. \&\fB\-fwrapv\fR, but not otherwise.
  8011. .Sp
  8012. The \fB\-fstrict\-overflow\fR option is enabled at levels
  8013. \&\fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  8014. .IP "\fB\-falign\-functions\fR" 4
  8015. .IX Item "-falign-functions"
  8016. .PD 0
  8017. .IP "\fB\-falign\-functions=\fR\fIn\fR" 4
  8018. .IX Item "-falign-functions=n"
  8019. .PD
  8020. Align the start of functions to the next power-of-two greater than
  8021. \&\fIn\fR, skipping up to \fIn\fR bytes. For instance,
  8022. \&\fB\-falign\-functions=32\fR aligns functions to the next 32\-byte
  8023. boundary, but \fB\-falign\-functions=24\fR aligns to the next
  8024. 32\-byte boundary only if this can be done by skipping 23 bytes or less.
  8025. .Sp
  8026. \&\fB\-fno\-align\-functions\fR and \fB\-falign\-functions=1\fR are
  8027. equivalent and mean that functions are not aligned.
  8028. .Sp
  8029. Some assemblers only support this flag when \fIn\fR is a power of two;
  8030. in that case, it is rounded up.
  8031. .Sp
  8032. If \fIn\fR is not specified or is zero, use a machine-dependent default.
  8033. The maximum allowed \fIn\fR option value is 65536.
  8034. .Sp
  8035. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  8036. .IP "\fB\-flimit\-function\-alignment\fR" 4
  8037. .IX Item "-flimit-function-alignment"
  8038. If this option is enabled, the compiler tries to avoid unnecessarily
  8039. overaligning functions. It attempts to instruct the assembler to align
  8040. by the amount specified by \fB\-falign\-functions\fR, but not to
  8041. skip more bytes than the size of the function.
  8042. .IP "\fB\-falign\-labels\fR" 4
  8043. .IX Item "-falign-labels"
  8044. .PD 0
  8045. .IP "\fB\-falign\-labels=\fR\fIn\fR" 4
  8046. .IX Item "-falign-labels=n"
  8047. .PD
  8048. Align all branch targets to a power-of-two boundary, skipping up to
  8049. \&\fIn\fR bytes like \fB\-falign\-functions\fR. This option can easily
  8050. make code slower, because it must insert dummy operations for when the
  8051. branch target is reached in the usual flow of the code.
  8052. .Sp
  8053. \&\fB\-fno\-align\-labels\fR and \fB\-falign\-labels=1\fR are
  8054. equivalent and mean that labels are not aligned.
  8055. .Sp
  8056. If \fB\-falign\-loops\fR or \fB\-falign\-jumps\fR are applicable and
  8057. are greater than this value, then their values are used instead.
  8058. .Sp
  8059. If \fIn\fR is not specified or is zero, use a machine-dependent default
  8060. which is very likely to be \fB1\fR, meaning no alignment.
  8061. The maximum allowed \fIn\fR option value is 65536.
  8062. .Sp
  8063. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  8064. .IP "\fB\-falign\-loops\fR" 4
  8065. .IX Item "-falign-loops"
  8066. .PD 0
  8067. .IP "\fB\-falign\-loops=\fR\fIn\fR" 4
  8068. .IX Item "-falign-loops=n"
  8069. .PD
  8070. Align loops to a power-of-two boundary, skipping up to \fIn\fR bytes
  8071. like \fB\-falign\-functions\fR. If the loops are
  8072. executed many times, this makes up for any execution of the dummy
  8073. operations.
  8074. .Sp
  8075. \&\fB\-fno\-align\-loops\fR and \fB\-falign\-loops=1\fR are
  8076. equivalent and mean that loops are not aligned.
  8077. The maximum allowed \fIn\fR option value is 65536.
  8078. .Sp
  8079. If \fIn\fR is not specified or is zero, use a machine-dependent default.
  8080. .Sp
  8081. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  8082. .IP "\fB\-falign\-jumps\fR" 4
  8083. .IX Item "-falign-jumps"
  8084. .PD 0
  8085. .IP "\fB\-falign\-jumps=\fR\fIn\fR" 4
  8086. .IX Item "-falign-jumps=n"
  8087. .PD
  8088. Align branch targets to a power-of-two boundary, for branch targets
  8089. where the targets can only be reached by jumping, skipping up to \fIn\fR
  8090. bytes like \fB\-falign\-functions\fR. In this case, no dummy operations
  8091. need be executed.
  8092. .Sp
  8093. \&\fB\-fno\-align\-jumps\fR and \fB\-falign\-jumps=1\fR are
  8094. equivalent and mean that loops are not aligned.
  8095. .Sp
  8096. If \fIn\fR is not specified or is zero, use a machine-dependent default.
  8097. The maximum allowed \fIn\fR option value is 65536.
  8098. .Sp
  8099. Enabled at levels \fB\-O2\fR, \fB\-O3\fR.
  8100. .IP "\fB\-funit\-at\-a\-time\fR" 4
  8101. .IX Item "-funit-at-a-time"
  8102. This option is left for compatibility reasons. \fB\-funit\-at\-a\-time\fR
  8103. has no effect, while \fB\-fno\-unit\-at\-a\-time\fR implies
  8104. \&\fB\-fno\-toplevel\-reorder\fR and \fB\-fno\-section\-anchors\fR.
  8105. .Sp
  8106. Enabled by default.
  8107. .IP "\fB\-fno\-toplevel\-reorder\fR" 4
  8108. .IX Item "-fno-toplevel-reorder"
  8109. Do not reorder top-level functions, variables, and \f(CW\*(C`asm\*(C'\fR
  8110. statements. Output them in the same order that they appear in the
  8111. input file. When this option is used, unreferenced static variables
  8112. are not removed. This option is intended to support existing code
  8113. that relies on a particular ordering. For new code, it is better to
  8114. use attributes when possible.
  8115. .Sp
  8116. Enabled at level \fB\-O0\fR. When disabled explicitly, it also implies
  8117. \&\fB\-fno\-section\-anchors\fR, which is otherwise enabled at \fB\-O0\fR on some
  8118. targets.
  8119. .IP "\fB\-fweb\fR" 4
  8120. .IX Item "-fweb"
  8121. Constructs webs as commonly used for register allocation purposes and assign
  8122. each web individual pseudo register. This allows the register allocation pass
  8123. to operate on pseudos directly, but also strengthens several other optimization
  8124. passes, such as \s-1CSE,\s0 loop optimizer and trivial dead code remover. It can,
  8125. however, make debugging impossible, since variables no longer stay in a
  8126. \&\*(L"home register\*(R".
  8127. .Sp
  8128. Enabled by default with \fB\-funroll\-loops\fR.
  8129. .IP "\fB\-fwhole\-program\fR" 4
  8130. .IX Item "-fwhole-program"
  8131. Assume that the current compilation unit represents the whole program being
  8132. compiled. All public functions and variables with the exception of \f(CW\*(C`main\*(C'\fR
  8133. and those merged by attribute \f(CW\*(C`externally_visible\*(C'\fR become static functions
  8134. and in effect are optimized more aggressively by interprocedural optimizers.
  8135. .Sp
  8136. This option should not be used in combination with \fB\-flto\fR.
  8137. Instead relying on a linker plugin should provide safer and more precise
  8138. information.
  8139. .IP "\fB\-flto[=\fR\fIn\fR\fB]\fR" 4
  8140. .IX Item "-flto[=n]"
  8141. This option runs the standard link-time optimizer. When invoked
  8142. with source code, it generates \s-1GIMPLE \s0(one of \s-1GCC\s0's internal
  8143. representations) and writes it to special \s-1ELF\s0 sections in the object
  8144. file. When the object files are linked together, all the function
  8145. bodies are read from these \s-1ELF\s0 sections and instantiated as if they
  8146. had been part of the same translation unit.
  8147. .Sp
  8148. To use the link-time optimizer, \fB\-flto\fR and optimization
  8149. options should be specified at compile time and during the final link.
  8150. It is recommended that you compile all the files participating in the
  8151. same link with the same options and also specify those options at
  8152. link time.
  8153. For example:
  8154. .Sp
  8155. .Vb 3
  8156. \& gcc \-c \-O2 \-flto foo.c
  8157. \& gcc \-c \-O2 \-flto bar.c
  8158. \& gcc \-o myprog \-flto \-O2 foo.o bar.o
  8159. .Ve
  8160. .Sp
  8161. The first two invocations to \s-1GCC\s0 save a bytecode representation
  8162. of \s-1GIMPLE\s0 into special \s-1ELF\s0 sections inside \fIfoo.o\fR and
  8163. \&\fIbar.o\fR. The final invocation reads the \s-1GIMPLE\s0 bytecode from
  8164. \&\fIfoo.o\fR and \fIbar.o\fR, merges the two files into a single
  8165. internal image, and compiles the result as usual. Since both
  8166. \&\fIfoo.o\fR and \fIbar.o\fR are merged into a single image, this
  8167. causes all the interprocedural analyses and optimizations in \s-1GCC\s0 to
  8168. work across the two files as if they were a single one. This means,
  8169. for example, that the inliner is able to inline functions in
  8170. \&\fIbar.o\fR into functions in \fIfoo.o\fR and vice-versa.
  8171. .Sp
  8172. Another (simpler) way to enable link-time optimization is:
  8173. .Sp
  8174. .Vb 1
  8175. \& gcc \-o myprog \-flto \-O2 foo.c bar.c
  8176. .Ve
  8177. .Sp
  8178. The above generates bytecode for \fIfoo.c\fR and \fIbar.c\fR,
  8179. merges them together into a single \s-1GIMPLE\s0 representation and optimizes
  8180. them as usual to produce \fImyprog\fR.
  8181. .Sp
  8182. The only important thing to keep in mind is that to enable link-time
  8183. optimizations you need to use the \s-1GCC\s0 driver to perform the link step.
  8184. \&\s-1GCC\s0 then automatically performs link-time optimization if any of the
  8185. objects involved were compiled with the \fB\-flto\fR command-line option.
  8186. You generally
  8187. should specify the optimization options to be used for link-time
  8188. optimization though \s-1GCC\s0 tries to be clever at guessing an
  8189. optimization level to use from the options used at compile time
  8190. if you fail to specify one at link time. You can always override
  8191. the automatic decision to do link-time optimization
  8192. by passing \fB\-fno\-lto\fR to the link command.
  8193. .Sp
  8194. To make whole program optimization effective, it is necessary to make
  8195. certain whole program assumptions. The compiler needs to know
  8196. what functions and variables can be accessed by libraries and runtime
  8197. outside of the link-time optimized unit. When supported by the linker,
  8198. the linker plugin (see \fB\-fuse\-linker\-plugin\fR) passes information
  8199. to the compiler about used and externally visible symbols. When
  8200. the linker plugin is not available, \fB\-fwhole\-program\fR should be
  8201. used to allow the compiler to make these assumptions, which leads
  8202. to more aggressive optimization decisions.
  8203. .Sp
  8204. When \fB\-fuse\-linker\-plugin\fR is not enabled, when a file is
  8205. compiled with \fB\-flto\fR, the generated object file is larger than
  8206. a regular object file because it contains \s-1GIMPLE\s0 bytecodes and the usual
  8207. final code (see \fB\-ffat\-lto\-objects\fR. This means that
  8208. object files with \s-1LTO\s0 information can be linked as normal object
  8209. files; if \fB\-fno\-lto\fR is passed to the linker, no
  8210. interprocedural optimizations are applied. Note that when
  8211. \&\fB\-fno\-fat\-lto\-objects\fR is enabled the compile stage is faster
  8212. but you cannot perform a regular, non-LTO link on them.
  8213. .Sp
  8214. Additionally, the optimization flags used to compile individual files
  8215. are not necessarily related to those used at link time. For instance,
  8216. .Sp
  8217. .Vb 3
  8218. \& gcc \-c \-O0 \-ffat\-lto\-objects \-flto foo.c
  8219. \& gcc \-c \-O0 \-ffat\-lto\-objects \-flto bar.c
  8220. \& gcc \-o myprog \-O3 foo.o bar.o
  8221. .Ve
  8222. .Sp
  8223. This produces individual object files with unoptimized assembler
  8224. code, but the resulting binary \fImyprog\fR is optimized at
  8225. \&\fB\-O3\fR. If, instead, the final binary is generated with
  8226. \&\fB\-fno\-lto\fR, then \fImyprog\fR is not optimized.
  8227. .Sp
  8228. When producing the final binary, \s-1GCC\s0 only
  8229. applies link-time optimizations to those files that contain bytecode.
  8230. Therefore, you can mix and match object files and libraries with
  8231. \&\s-1GIMPLE\s0 bytecodes and final object code. \s-1GCC\s0 automatically selects
  8232. which files to optimize in \s-1LTO\s0 mode and which files to link without
  8233. further processing.
  8234. .Sp
  8235. There are some code generation flags preserved by \s-1GCC\s0 when
  8236. generating bytecodes, as they need to be used during the final link
  8237. stage. Generally options specified at link time override those
  8238. specified at compile time.
  8239. .Sp
  8240. If you do not specify an optimization level option \fB\-O\fR at
  8241. link time, then \s-1GCC\s0 uses the highest optimization level
  8242. used when compiling the object files.
  8243. .Sp
  8244. Currently, the following options and their settings are taken from
  8245. the first object file that explicitly specifies them:
  8246. \&\fB\-fPIC\fR, \fB\-fpic\fR, \fB\-fpie\fR, \fB\-fcommon\fR,
  8247. \&\fB\-fexceptions\fR, \fB\-fnon\-call\-exceptions\fR, \fB\-fgnu\-tm\fR
  8248. and all the \fB\-m\fR target flags.
  8249. .Sp
  8250. Certain ABI-changing flags are required to match in all compilation units,
  8251. and trying to override this at link time with a conflicting value
  8252. is ignored. This includes options such as \fB\-freg\-struct\-return\fR
  8253. and \fB\-fpcc\-struct\-return\fR.
  8254. .Sp
  8255. Other options such as \fB\-ffp\-contract\fR, \fB\-fno\-strict\-overflow\fR,
  8256. \&\fB\-fwrapv\fR, \fB\-fno\-trapv\fR or \fB\-fno\-strict\-aliasing\fR
  8257. are passed through to the link stage and merged conservatively for
  8258. conflicting translation units. Specifically
  8259. \&\fB\-fno\-strict\-overflow\fR, \fB\-fwrapv\fR and \fB\-fno\-trapv\fR take
  8260. precedence; and for example \fB\-ffp\-contract=off\fR takes precedence
  8261. over \fB\-ffp\-contract=fast\fR. You can override them at link time.
  8262. .Sp
  8263. If \s-1LTO\s0 encounters objects with C linkage declared with incompatible
  8264. types in separate translation units to be linked together (undefined
  8265. behavior according to \s-1ISO C99 6.2.7\s0), a non-fatal diagnostic may be
  8266. issued. The behavior is still undefined at run time. Similar
  8267. diagnostics may be raised for other languages.
  8268. .Sp
  8269. Another feature of \s-1LTO\s0 is that it is possible to apply interprocedural
  8270. optimizations on files written in different languages:
  8271. .Sp
  8272. .Vb 4
  8273. \& gcc \-c \-flto foo.c
  8274. \& g++ \-c \-flto bar.cc
  8275. \& gfortran \-c \-flto baz.f90
  8276. \& g++ \-o myprog \-flto \-O3 foo.o bar.o baz.o \-lgfortran
  8277. .Ve
  8278. .Sp
  8279. Notice that the final link is done with \fBg++\fR to get the \*(C+
  8280. runtime libraries and \fB\-lgfortran\fR is added to get the Fortran
  8281. runtime libraries. In general, when mixing languages in \s-1LTO\s0 mode, you
  8282. should use the same link command options as when mixing languages in a
  8283. regular (non-LTO) compilation.
  8284. .Sp
  8285. If object files containing \s-1GIMPLE\s0 bytecode are stored in a library archive, say
  8286. \&\fIlibfoo.a\fR, it is possible to extract and use them in an \s-1LTO\s0 link if you
  8287. are using a linker with plugin support. To create static libraries suitable
  8288. for \s-1LTO,\s0 use \fBgcc-ar\fR and \fBgcc-ranlib\fR instead of \fBar\fR
  8289. and \fBranlib\fR;
  8290. to show the symbols of object files with \s-1GIMPLE\s0 bytecode, use
  8291. \&\fBgcc-nm\fR. Those commands require that \fBar\fR, \fBranlib\fR
  8292. and \fBnm\fR have been compiled with plugin support. At link time, use the the
  8293. flag \fB\-fuse\-linker\-plugin\fR to ensure that the library participates in
  8294. the \s-1LTO\s0 optimization process:
  8295. .Sp
  8296. .Vb 1
  8297. \& gcc \-o myprog \-O2 \-flto \-fuse\-linker\-plugin a.o b.o \-lfoo
  8298. .Ve
  8299. .Sp
  8300. With the linker plugin enabled, the linker extracts the needed
  8301. \&\s-1GIMPLE\s0 files from \fIlibfoo.a\fR and passes them on to the running \s-1GCC\s0
  8302. to make them part of the aggregated \s-1GIMPLE\s0 image to be optimized.
  8303. .Sp
  8304. If you are not using a linker with plugin support and/or do not
  8305. enable the linker plugin, then the objects inside \fIlibfoo.a\fR
  8306. are extracted and linked as usual, but they do not participate
  8307. in the \s-1LTO\s0 optimization process. In order to make a static library suitable
  8308. for both \s-1LTO\s0 optimization and usual linkage, compile its object files with
  8309. \&\fB\-flto\fR \fB\-ffat\-lto\-objects\fR.
  8310. .Sp
  8311. Link-time optimizations do not require the presence of the whole program to
  8312. operate. If the program does not require any symbols to be exported, it is
  8313. possible to combine \fB\-flto\fR and \fB\-fwhole\-program\fR to allow
  8314. the interprocedural optimizers to use more aggressive assumptions which may
  8315. lead to improved optimization opportunities.
  8316. Use of \fB\-fwhole\-program\fR is not needed when linker plugin is
  8317. active (see \fB\-fuse\-linker\-plugin\fR).
  8318. .Sp
  8319. The current implementation of \s-1LTO\s0 makes no
  8320. attempt to generate bytecode that is portable between different
  8321. types of hosts. The bytecode files are versioned and there is a
  8322. strict version check, so bytecode files generated in one version of
  8323. \&\s-1GCC\s0 do not work with an older or newer version of \s-1GCC.\s0
  8324. .Sp
  8325. Link-time optimization does not work well with generation of debugging
  8326. information. Combining \fB\-flto\fR with
  8327. \&\fB\-g\fR is currently experimental and expected to produce unexpected
  8328. results.
  8329. .Sp
  8330. If you specify the optional \fIn\fR, the optimization and code
  8331. generation done at link time is executed in parallel using \fIn\fR
  8332. parallel jobs by utilizing an installed \fBmake\fR program. The
  8333. environment variable \fB\s-1MAKE\s0\fR may be used to override the program
  8334. used. The default value for \fIn\fR is 1.
  8335. .Sp
  8336. You can also specify \fB\-flto=jobserver\fR to use \s-1GNU\s0 make's
  8337. job server mode to determine the number of parallel jobs. This
  8338. is useful when the Makefile calling \s-1GCC\s0 is already executing in parallel.
  8339. You must prepend a \fB+\fR to the command recipe in the parent Makefile
  8340. for this to work. This option likely only works if \fB\s-1MAKE\s0\fR is
  8341. \&\s-1GNU\s0 make.
  8342. .IP "\fB\-flto\-partition=\fR\fIalg\fR" 4
  8343. .IX Item "-flto-partition=alg"
  8344. Specify the partitioning algorithm used by the link-time optimizer.
  8345. The value is either \fB1to1\fR to specify a partitioning mirroring
  8346. the original source files or \fBbalanced\fR to specify partitioning
  8347. into equally sized chunks (whenever possible) or \fBmax\fR to create
  8348. new partition for every symbol where possible. Specifying \fBnone\fR
  8349. as an algorithm disables partitioning and streaming completely.
  8350. The default value is \fBbalanced\fR. While \fB1to1\fR can be used
  8351. as an workaround for various code ordering issues, the \fBmax\fR
  8352. partitioning is intended for internal testing only.
  8353. The value \fBone\fR specifies that exactly one partition should be
  8354. used while the value \fBnone\fR bypasses partitioning and executes
  8355. the link-time optimization step directly from the \s-1WPA\s0 phase.
  8356. .IP "\fB\-flto\-odr\-type\-merging\fR" 4
  8357. .IX Item "-flto-odr-type-merging"
  8358. Enable streaming of mangled types names of \*(C+ types and their unification
  8359. at link time. This increases size of \s-1LTO\s0 object files, but enables
  8360. diagnostics about One Definition Rule violations.
  8361. .IP "\fB\-flto\-compression\-level=\fR\fIn\fR" 4
  8362. .IX Item "-flto-compression-level=n"
  8363. This option specifies the level of compression used for intermediate
  8364. language written to \s-1LTO\s0 object files, and is only meaningful in
  8365. conjunction with \s-1LTO\s0 mode (\fB\-flto\fR). Valid
  8366. values are 0 (no compression) to 9 (maximum compression). Values
  8367. outside this range are clamped to either 0 or 9. If the option is not
  8368. given, a default balanced compression setting is used.
  8369. .IP "\fB\-fuse\-linker\-plugin\fR" 4
  8370. .IX Item "-fuse-linker-plugin"
  8371. Enables the use of a linker plugin during link-time optimization. This
  8372. option relies on plugin support in the linker, which is available in gold
  8373. or in \s-1GNU\s0 ld 2.21 or newer.
  8374. .Sp
  8375. This option enables the extraction of object files with \s-1GIMPLE\s0 bytecode out
  8376. of library archives. This improves the quality of optimization by exposing
  8377. more code to the link-time optimizer. This information specifies what
  8378. symbols can be accessed externally (by non-LTO object or during dynamic
  8379. linking). Resulting code quality improvements on binaries (and shared
  8380. libraries that use hidden visibility) are similar to \fB\-fwhole\-program\fR.
  8381. See \fB\-flto\fR for a description of the effect of this flag and how to
  8382. use it.
  8383. .Sp
  8384. This option is enabled by default when \s-1LTO\s0 support in \s-1GCC\s0 is enabled
  8385. and \s-1GCC\s0 was configured for use with
  8386. a linker supporting plugins (\s-1GNU\s0 ld 2.21 or newer or gold).
  8387. .IP "\fB\-ffat\-lto\-objects\fR" 4
  8388. .IX Item "-ffat-lto-objects"
  8389. Fat \s-1LTO\s0 objects are object files that contain both the intermediate language
  8390. and the object code. This makes them usable for both \s-1LTO\s0 linking and normal
  8391. linking. This option is effective only when compiling with \fB\-flto\fR
  8392. and is ignored at link time.
  8393. .Sp
  8394. \&\fB\-fno\-fat\-lto\-objects\fR improves compilation time over plain \s-1LTO,\s0 but
  8395. requires the complete toolchain to be aware of \s-1LTO.\s0 It requires a linker with
  8396. linker plugin support for basic functionality. Additionally,
  8397. \&\fBnm\fR, \fBar\fR and \fBranlib\fR
  8398. need to support linker plugins to allow a full-featured build environment
  8399. (capable of building static libraries etc). \s-1GCC\s0 provides the \fBgcc-ar\fR,
  8400. \&\fBgcc-nm\fR, \fBgcc-ranlib\fR wrappers to pass the right options
  8401. to these tools. With non fat \s-1LTO\s0 makefiles need to be modified to use them.
  8402. .Sp
  8403. The default is \fB\-fno\-fat\-lto\-objects\fR on targets with linker plugin
  8404. support.
  8405. .IP "\fB\-fcompare\-elim\fR" 4
  8406. .IX Item "-fcompare-elim"
  8407. After register allocation and post-register allocation instruction splitting,
  8408. identify arithmetic instructions that compute processor flags similar to a
  8409. comparison operation based on that arithmetic. If possible, eliminate the
  8410. explicit comparison operation.
  8411. .Sp
  8412. This pass only applies to certain targets that cannot explicitly represent
  8413. the comparison operation before register allocation is complete.
  8414. .Sp
  8415. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  8416. .IP "\fB\-fcprop\-registers\fR" 4
  8417. .IX Item "-fcprop-registers"
  8418. After register allocation and post-register allocation instruction splitting,
  8419. perform a copy-propagation pass to try to reduce scheduling dependencies
  8420. and occasionally eliminate the copy.
  8421. .Sp
  8422. Enabled at levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  8423. .IP "\fB\-fprofile\-correction\fR" 4
  8424. .IX Item "-fprofile-correction"
  8425. Profiles collected using an instrumented binary for multi-threaded programs may
  8426. be inconsistent due to missed counter updates. When this option is specified,
  8427. \&\s-1GCC\s0 uses heuristics to correct or smooth out such inconsistencies. By
  8428. default, \s-1GCC\s0 emits an error message when an inconsistent profile is detected.
  8429. .IP "\fB\-fprofile\-use\fR" 4
  8430. .IX Item "-fprofile-use"
  8431. .PD 0
  8432. .IP "\fB\-fprofile\-use=\fR\fIpath\fR" 4
  8433. .IX Item "-fprofile-use=path"
  8434. .PD
  8435. Enable profile feedback-directed optimizations,
  8436. and the following optimizations
  8437. which are generally profitable only with profile feedback available:
  8438. \&\fB\-fbranch\-probabilities\fR, \fB\-fvpt\fR,
  8439. \&\fB\-funroll\-loops\fR, \fB\-fpeel\-loops\fR, \fB\-ftracer\fR,
  8440. \&\fB\-ftree\-vectorize\fR, and \fBftree-loop-distribute-patterns\fR.
  8441. .Sp
  8442. Before you can use this option, you must first generate profiling information.
  8443. .Sp
  8444. By default, \s-1GCC\s0 emits an error message if the feedback profiles do not
  8445. match the source code. This error can be turned into a warning by using
  8446. \&\fB\-Wcoverage\-mismatch\fR. Note this may result in poorly optimized
  8447. code.
  8448. .Sp
  8449. If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
  8450. the profile feedback data files. See \fB\-fprofile\-dir\fR.
  8451. .IP "\fB\-fauto\-profile\fR" 4
  8452. .IX Item "-fauto-profile"
  8453. .PD 0
  8454. .IP "\fB\-fauto\-profile=\fR\fIpath\fR" 4
  8455. .IX Item "-fauto-profile=path"
  8456. .PD
  8457. Enable sampling-based feedback-directed optimizations,
  8458. and the following optimizations
  8459. which are generally profitable only with profile feedback available:
  8460. \&\fB\-fbranch\-probabilities\fR, \fB\-fvpt\fR,
  8461. \&\fB\-funroll\-loops\fR, \fB\-fpeel\-loops\fR, \fB\-ftracer\fR,
  8462. \&\fB\-ftree\-vectorize\fR,
  8463. \&\fB\-finline\-functions\fR, \fB\-fipa\-cp\fR, \fB\-fipa\-cp\-clone\fR,
  8464. \&\fB\-fpredictive\-commoning\fR, \fB\-funswitch\-loops\fR,
  8465. \&\fB\-fgcse\-after\-reload\fR, and \fB\-ftree\-loop\-distribute\-patterns\fR.
  8466. .Sp
  8467. \&\fIpath\fR is the name of a file containing AutoFDO profile information.
  8468. If omitted, it defaults to \fIfbdata.afdo\fR in the current directory.
  8469. .Sp
  8470. Producing an AutoFDO profile data file requires running your program
  8471. with the \fBperf\fR utility on a supported GNU/Linux target system.
  8472. For more information, see <\fBhttps://perf.wiki.kernel.org/\fR>.
  8473. .Sp
  8474. E.g.
  8475. .Sp
  8476. .Vb 2
  8477. \& perf record \-e br_inst_retired:near_taken \-b \-o perf.data \e
  8478. \& \-\- your_program
  8479. .Ve
  8480. .Sp
  8481. Then use the \fBcreate_gcov\fR tool to convert the raw profile data
  8482. to a format that can be used by \s-1GCC. \s0 You must also supply the
  8483. unstripped binary for your program to this tool.
  8484. See <\fBhttps://github.com/google/autofdo\fR>.
  8485. .Sp
  8486. E.g.
  8487. .Sp
  8488. .Vb 2
  8489. \& create_gcov \-\-binary=your_program.unstripped \-\-profile=perf.data \e
  8490. \& \-\-gcov=profile.afdo
  8491. .Ve
  8492. .PP
  8493. The following options control compiler behavior regarding floating-point
  8494. arithmetic. These options trade off between speed and
  8495. correctness. All must be specifically enabled.
  8496. .IP "\fB\-ffloat\-store\fR" 4
  8497. .IX Item "-ffloat-store"
  8498. Do not store floating-point variables in registers, and inhibit other
  8499. options that might change whether a floating-point value is taken from a
  8500. register or memory.
  8501. .Sp
  8502. This option prevents undesirable excess precision on machines such as
  8503. the 68000 where the floating registers (of the 68881) keep more
  8504. precision than a \f(CW\*(C`double\*(C'\fR is supposed to have. Similarly for the
  8505. x86 architecture. For most programs, the excess precision does only
  8506. good, but a few programs rely on the precise definition of \s-1IEEE\s0 floating
  8507. point. Use \fB\-ffloat\-store\fR for such programs, after modifying
  8508. them to store all pertinent intermediate computations into variables.
  8509. .IP "\fB\-fexcess\-precision=\fR\fIstyle\fR" 4
  8510. .IX Item "-fexcess-precision=style"
  8511. This option allows further control over excess precision on machines
  8512. where floating-point operations occur in a format with more precision or
  8513. range than the \s-1IEEE\s0 standard and interchange floating-point types. By
  8514. default, \fB\-fexcess\-precision=fast\fR is in effect; this means that
  8515. operations may be carried out in a wider precision than the types specified
  8516. in the source if that would result in faster code, and it is unpredictable
  8517. when rounding to the types specified in the source code takes place.
  8518. When compiling C, if \fB\-fexcess\-precision=standard\fR is specified then
  8519. excess precision follows the rules specified in \s-1ISO C99\s0; in particular,
  8520. both casts and assignments cause values to be rounded to their
  8521. semantic types (whereas \fB\-ffloat\-store\fR only affects
  8522. assignments). This option is enabled by default for C if a strict
  8523. conformance option such as \fB\-std=c99\fR is used.
  8524. \&\fB\-ffast\-math\fR enables \fB\-fexcess\-precision=fast\fR by default
  8525. regardless of whether a strict conformance option is used.
  8526. .Sp
  8527. \&\fB\-fexcess\-precision=standard\fR is not implemented for languages
  8528. other than C. On the x86, it has no effect if \fB\-mfpmath=sse\fR
  8529. or \fB\-mfpmath=sse+387\fR is specified; in the former case, \s-1IEEE\s0
  8530. semantics apply without excess precision, and in the latter, rounding
  8531. is unpredictable.
  8532. .IP "\fB\-ffast\-math\fR" 4
  8533. .IX Item "-ffast-math"
  8534. Sets the options \fB\-fno\-math\-errno\fR, \fB\-funsafe\-math\-optimizations\fR,
  8535. \&\fB\-ffinite\-math\-only\fR, \fB\-fno\-rounding\-math\fR,
  8536. \&\fB\-fno\-signaling\-nans\fR, \fB\-fcx\-limited\-range\fR and
  8537. \&\fB\-fexcess\-precision=fast\fR.
  8538. .Sp
  8539. This option causes the preprocessor macro \f(CW\*(C`_\|_FAST_MATH_\|_\*(C'\fR to be defined.
  8540. .Sp
  8541. This option is not turned on by any \fB\-O\fR option besides
  8542. \&\fB\-Ofast\fR since it can result in incorrect output for programs
  8543. that depend on an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications
  8544. for math functions. It may, however, yield faster code for programs
  8545. that do not require the guarantees of these specifications.
  8546. .IP "\fB\-fno\-math\-errno\fR" 4
  8547. .IX Item "-fno-math-errno"
  8548. Do not set \f(CW\*(C`errno\*(C'\fR after calling math functions that are executed
  8549. with a single instruction, e.g., \f(CW\*(C`sqrt\*(C'\fR. A program that relies on
  8550. \&\s-1IEEE\s0 exceptions for math error handling may want to use this flag
  8551. for speed while maintaining \s-1IEEE\s0 arithmetic compatibility.
  8552. .Sp
  8553. This option is not turned on by any \fB\-O\fR option since
  8554. it can result in incorrect output for programs that depend on
  8555. an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
  8556. math functions. It may, however, yield faster code for programs
  8557. that do not require the guarantees of these specifications.
  8558. .Sp
  8559. The default is \fB\-fmath\-errno\fR.
  8560. .Sp
  8561. On Darwin systems, the math library never sets \f(CW\*(C`errno\*(C'\fR. There is
  8562. therefore no reason for the compiler to consider the possibility that
  8563. it might, and \fB\-fno\-math\-errno\fR is the default.
  8564. .IP "\fB\-funsafe\-math\-optimizations\fR" 4
  8565. .IX Item "-funsafe-math-optimizations"
  8566. Allow optimizations for floating-point arithmetic that (a) assume
  8567. that arguments and results are valid and (b) may violate \s-1IEEE\s0 or
  8568. \&\s-1ANSI\s0 standards. When used at link time, it may include libraries
  8569. or startup files that change the default \s-1FPU\s0 control word or other
  8570. similar optimizations.
  8571. .Sp
  8572. This option is not turned on by any \fB\-O\fR option since
  8573. it can result in incorrect output for programs that depend on
  8574. an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
  8575. math functions. It may, however, yield faster code for programs
  8576. that do not require the guarantees of these specifications.
  8577. Enables \fB\-fno\-signed\-zeros\fR, \fB\-fno\-trapping\-math\fR,
  8578. \&\fB\-fassociative\-math\fR and \fB\-freciprocal\-math\fR.
  8579. .Sp
  8580. The default is \fB\-fno\-unsafe\-math\-optimizations\fR.
  8581. .IP "\fB\-fassociative\-math\fR" 4
  8582. .IX Item "-fassociative-math"
  8583. Allow re-association of operands in series of floating-point operations.
  8584. This violates the \s-1ISO C\s0 and \*(C+ language standard by possibly changing
  8585. computation result. \s-1NOTE:\s0 re-ordering may change the sign of zero as
  8586. well as ignore NaNs and inhibit or create underflow or overflow (and
  8587. thus cannot be used on code that relies on rounding behavior like
  8588. \&\f(CW\*(C`(x + 2**52) \- 2**52\*(C'\fR. May also reorder floating-point comparisons
  8589. and thus may not be used when ordered comparisons are required.
  8590. This option requires that both \fB\-fno\-signed\-zeros\fR and
  8591. \&\fB\-fno\-trapping\-math\fR be in effect. Moreover, it doesn't make
  8592. much sense with \fB\-frounding\-math\fR. For Fortran the option
  8593. is automatically enabled when both \fB\-fno\-signed\-zeros\fR and
  8594. \&\fB\-fno\-trapping\-math\fR are in effect.
  8595. .Sp
  8596. The default is \fB\-fno\-associative\-math\fR.
  8597. .IP "\fB\-freciprocal\-math\fR" 4
  8598. .IX Item "-freciprocal-math"
  8599. Allow the reciprocal of a value to be used instead of dividing by
  8600. the value if this enables optimizations. For example \f(CW\*(C`x / y\*(C'\fR
  8601. can be replaced with \f(CW\*(C`x * (1/y)\*(C'\fR, which is useful if \f(CW\*(C`(1/y)\*(C'\fR
  8602. is subject to common subexpression elimination. Note that this loses
  8603. precision and increases the number of flops operating on the value.
  8604. .Sp
  8605. The default is \fB\-fno\-reciprocal\-math\fR.
  8606. .IP "\fB\-ffinite\-math\-only\fR" 4
  8607. .IX Item "-ffinite-math-only"
  8608. Allow optimizations for floating-point arithmetic that assume
  8609. that arguments and results are not NaNs or +\-Infs.
  8610. .Sp
  8611. This option is not turned on by any \fB\-O\fR option since
  8612. it can result in incorrect output for programs that depend on
  8613. an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
  8614. math functions. It may, however, yield faster code for programs
  8615. that do not require the guarantees of these specifications.
  8616. .Sp
  8617. The default is \fB\-fno\-finite\-math\-only\fR.
  8618. .IP "\fB\-fno\-signed\-zeros\fR" 4
  8619. .IX Item "-fno-signed-zeros"
  8620. Allow optimizations for floating-point arithmetic that ignore the
  8621. signedness of zero. \s-1IEEE\s0 arithmetic specifies the behavior of
  8622. distinct +0.0 and \-0.0 values, which then prohibits simplification
  8623. of expressions such as x+0.0 or 0.0*x (even with \fB\-ffinite\-math\-only\fR).
  8624. This option implies that the sign of a zero result isn't significant.
  8625. .Sp
  8626. The default is \fB\-fsigned\-zeros\fR.
  8627. .IP "\fB\-fno\-trapping\-math\fR" 4
  8628. .IX Item "-fno-trapping-math"
  8629. Compile code assuming that floating-point operations cannot generate
  8630. user-visible traps. These traps include division by zero, overflow,
  8631. underflow, inexact result and invalid operation. This option requires
  8632. that \fB\-fno\-signaling\-nans\fR be in effect. Setting this option may
  8633. allow faster code if one relies on \*(L"non-stop\*(R" \s-1IEEE\s0 arithmetic, for example.
  8634. .Sp
  8635. This option should never be turned on by any \fB\-O\fR option since
  8636. it can result in incorrect output for programs that depend on
  8637. an exact implementation of \s-1IEEE\s0 or \s-1ISO\s0 rules/specifications for
  8638. math functions.
  8639. .Sp
  8640. The default is \fB\-ftrapping\-math\fR.
  8641. .IP "\fB\-frounding\-math\fR" 4
  8642. .IX Item "-frounding-math"
  8643. Disable transformations and optimizations that assume default floating-point
  8644. rounding behavior. This is round-to-zero for all floating point
  8645. to integer conversions, and round-to-nearest for all other arithmetic
  8646. truncations. This option should be specified for programs that change
  8647. the \s-1FP\s0 rounding mode dynamically, or that may be executed with a
  8648. non-default rounding mode. This option disables constant folding of
  8649. floating-point expressions at compile time (which may be affected by
  8650. rounding mode) and arithmetic transformations that are unsafe in the
  8651. presence of sign-dependent rounding modes.
  8652. .Sp
  8653. The default is \fB\-fno\-rounding\-math\fR.
  8654. .Sp
  8655. This option is experimental and does not currently guarantee to
  8656. disable all \s-1GCC\s0 optimizations that are affected by rounding mode.
  8657. Future versions of \s-1GCC\s0 may provide finer control of this setting
  8658. using C99's \f(CW\*(C`FENV_ACCESS\*(C'\fR pragma. This command-line option
  8659. will be used to specify the default state for \f(CW\*(C`FENV_ACCESS\*(C'\fR.
  8660. .IP "\fB\-fsignaling\-nans\fR" 4
  8661. .IX Item "-fsignaling-nans"
  8662. Compile code assuming that \s-1IEEE\s0 signaling NaNs may generate user-visible
  8663. traps during floating-point operations. Setting this option disables
  8664. optimizations that may change the number of exceptions visible with
  8665. signaling NaNs. This option implies \fB\-ftrapping\-math\fR.
  8666. .Sp
  8667. This option causes the preprocessor macro \f(CW\*(C`_\|_SUPPORT_SNAN_\|_\*(C'\fR to
  8668. be defined.
  8669. .Sp
  8670. The default is \fB\-fno\-signaling\-nans\fR.
  8671. .Sp
  8672. This option is experimental and does not currently guarantee to
  8673. disable all \s-1GCC\s0 optimizations that affect signaling NaN behavior.
  8674. .IP "\fB\-fno\-fp\-int\-builtin\-inexact\fR" 4
  8675. .IX Item "-fno-fp-int-builtin-inexact"
  8676. Do not allow the built-in functions \f(CW\*(C`ceil\*(C'\fR, \f(CW\*(C`floor\*(C'\fR,
  8677. \&\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
  8678. double\*(C'\fR variants, to generate code that raises the \*(L"inexact\*(R"
  8679. floating-point exception for noninteger arguments. \s-1ISO C99\s0 and C11
  8680. allow these functions to raise the \*(L"inexact\*(R" exception, but \s-1ISO/IEC
  8681. TS 18661\-1:2014,\s0 the C bindings to \s-1IEEE 754\-2008,\s0 does not allow these
  8682. functions to do so.
  8683. .Sp
  8684. The default is \fB\-ffp\-int\-builtin\-inexact\fR, allowing the
  8685. exception to be raised. This option does nothing unless
  8686. \&\fB\-ftrapping\-math\fR is in effect.
  8687. .Sp
  8688. Even if \fB\-fno\-fp\-int\-builtin\-inexact\fR is used, if the functions
  8689. generate a call to a library function then the \*(L"inexact\*(R" exception
  8690. may be raised if the library implementation does not follow \s-1TS 18661.\s0
  8691. .IP "\fB\-fsingle\-precision\-constant\fR" 4
  8692. .IX Item "-fsingle-precision-constant"
  8693. Treat floating-point constants as single precision instead of
  8694. implicitly converting them to double-precision constants.
  8695. .IP "\fB\-fcx\-limited\-range\fR" 4
  8696. .IX Item "-fcx-limited-range"
  8697. When enabled, this option states that a range reduction step is not
  8698. needed when performing complex division. Also, there is no checking
  8699. whether the result of a complex multiplication or division is \f(CW\*(C`NaN
  8700. + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case. The
  8701. default is \fB\-fno\-cx\-limited\-range\fR, but is enabled by
  8702. \&\fB\-ffast\-math\fR.
  8703. .Sp
  8704. This option controls the default setting of the \s-1ISO C99
  8705. \&\s0\f(CW\*(C`CX_LIMITED_RANGE\*(C'\fR pragma. Nevertheless, the option applies to
  8706. all languages.
  8707. .IP "\fB\-fcx\-fortran\-rules\fR" 4
  8708. .IX Item "-fcx-fortran-rules"
  8709. Complex multiplication and division follow Fortran rules. Range
  8710. reduction is done as part of complex division, but there is no checking
  8711. whether the result of a complex multiplication or division is \f(CW\*(C`NaN
  8712. + I*NaN\*(C'\fR, with an attempt to rescue the situation in that case.
  8713. .Sp
  8714. The default is \fB\-fno\-cx\-fortran\-rules\fR.
  8715. .PP
  8716. The following options control optimizations that may improve
  8717. performance, but are not enabled by any \fB\-O\fR options. This
  8718. section includes experimental options that may produce broken code.
  8719. .IP "\fB\-fbranch\-probabilities\fR" 4
  8720. .IX Item "-fbranch-probabilities"
  8721. After running a program compiled with \fB\-fprofile\-arcs\fR,
  8722. you can compile it a second time using
  8723. \&\fB\-fbranch\-probabilities\fR, to improve optimizations based on
  8724. the number of times each branch was taken. When a program
  8725. compiled with \fB\-fprofile\-arcs\fR exits, it saves arc execution
  8726. counts to a file called \fI\fIsourcename\fI.gcda\fR for each source
  8727. file. The information in this data file is very dependent on the
  8728. structure of the generated code, so you must use the same source code
  8729. and the same optimization options for both compilations.
  8730. .Sp
  8731. With \fB\-fbranch\-probabilities\fR, \s-1GCC\s0 puts a
  8732. \&\fB\s-1REG_BR_PROB\s0\fR note on each \fB\s-1JUMP_INSN\s0\fR and \fB\s-1CALL_INSN\s0\fR.
  8733. These can be used to improve optimization. Currently, they are only
  8734. used in one place: in \fIreorg.c\fR, instead of guessing which path a
  8735. branch is most likely to take, the \fB\s-1REG_BR_PROB\s0\fR values are used to
  8736. exactly determine which path is taken more often.
  8737. .IP "\fB\-fprofile\-values\fR" 4
  8738. .IX Item "-fprofile-values"
  8739. If combined with \fB\-fprofile\-arcs\fR, it adds code so that some
  8740. data about values of expressions in the program is gathered.
  8741. .Sp
  8742. With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
  8743. from profiling values of expressions for usage in optimizations.
  8744. .Sp
  8745. Enabled with \fB\-fprofile\-generate\fR and \fB\-fprofile\-use\fR.
  8746. .IP "\fB\-fprofile\-reorder\-functions\fR" 4
  8747. .IX Item "-fprofile-reorder-functions"
  8748. Function reordering based on profile instrumentation collects
  8749. first time of execution of a function and orders these functions
  8750. in ascending order.
  8751. .Sp
  8752. Enabled with \fB\-fprofile\-use\fR.
  8753. .IP "\fB\-fvpt\fR" 4
  8754. .IX Item "-fvpt"
  8755. If combined with \fB\-fprofile\-arcs\fR, this option instructs the compiler
  8756. to add code to gather information about values of expressions.
  8757. .Sp
  8758. With \fB\-fbranch\-probabilities\fR, it reads back the data gathered
  8759. and actually performs the optimizations based on them.
  8760. Currently the optimizations include specialization of division operations
  8761. using the knowledge about the value of the denominator.
  8762. .IP "\fB\-frename\-registers\fR" 4
  8763. .IX Item "-frename-registers"
  8764. Attempt to avoid false dependencies in scheduled code by making use
  8765. of registers left over after register allocation. This optimization
  8766. most benefits processors with lots of registers. Depending on the
  8767. debug information format adopted by the target, however, it can
  8768. make debugging impossible, since variables no longer stay in
  8769. a \*(L"home register\*(R".
  8770. .Sp
  8771. Enabled by default with \fB\-funroll\-loops\fR.
  8772. .IP "\fB\-fschedule\-fusion\fR" 4
  8773. .IX Item "-fschedule-fusion"
  8774. Performs a target dependent pass over the instruction stream to schedule
  8775. instructions of same type together because target machine can execute them
  8776. more efficiently if they are adjacent to each other in the instruction flow.
  8777. .Sp
  8778. Enabled at levels \fB\-O2\fR, \fB\-O3\fR, \fB\-Os\fR.
  8779. .IP "\fB\-ftracer\fR" 4
  8780. .IX Item "-ftracer"
  8781. Perform tail duplication to enlarge superblock size. This transformation
  8782. simplifies the control flow of the function allowing other optimizations to do
  8783. a better job.
  8784. .Sp
  8785. Enabled with \fB\-fprofile\-use\fR.
  8786. .IP "\fB\-funroll\-loops\fR" 4
  8787. .IX Item "-funroll-loops"
  8788. Unroll loops whose number of iterations can be determined at compile time or
  8789. upon entry to the loop. \fB\-funroll\-loops\fR implies
  8790. \&\fB\-frerun\-cse\-after\-loop\fR, \fB\-fweb\fR and \fB\-frename\-registers\fR.
  8791. It also turns on complete loop peeling (i.e. complete removal of loops with
  8792. a small constant number of iterations). This option makes code larger, and may
  8793. or may not make it run faster.
  8794. .Sp
  8795. Enabled with \fB\-fprofile\-use\fR.
  8796. .IP "\fB\-funroll\-all\-loops\fR" 4
  8797. .IX Item "-funroll-all-loops"
  8798. Unroll all loops, even if their number of iterations is uncertain when
  8799. the loop is entered. This usually makes programs run more slowly.
  8800. \&\fB\-funroll\-all\-loops\fR implies the same options as
  8801. \&\fB\-funroll\-loops\fR.
  8802. .IP "\fB\-fpeel\-loops\fR" 4
  8803. .IX Item "-fpeel-loops"
  8804. Peels loops for which there is enough information that they do not
  8805. roll much (from profile feedback or static analysis). It also turns on
  8806. complete loop peeling (i.e. complete removal of loops with small constant
  8807. number of iterations).
  8808. .Sp
  8809. Enabled with \fB\-O3\fR and/or \fB\-fprofile\-use\fR.
  8810. .IP "\fB\-fmove\-loop\-invariants\fR" 4
  8811. .IX Item "-fmove-loop-invariants"
  8812. Enables the loop invariant motion pass in the \s-1RTL\s0 loop optimizer. Enabled
  8813. at level \fB\-O1\fR
  8814. .IP "\fB\-fsplit\-loops\fR" 4
  8815. .IX Item "-fsplit-loops"
  8816. Split a loop into two if it contains a condition that's always true
  8817. for one side of the iteration space and false for the other.
  8818. .IP "\fB\-funswitch\-loops\fR" 4
  8819. .IX Item "-funswitch-loops"
  8820. Move branches with loop invariant conditions out of the loop, with duplicates
  8821. of the loop on both branches (modified according to result of the condition).
  8822. .IP "\fB\-ffunction\-sections\fR" 4
  8823. .IX Item "-ffunction-sections"
  8824. .PD 0
  8825. .IP "\fB\-fdata\-sections\fR" 4
  8826. .IX Item "-fdata-sections"
  8827. .PD
  8828. Place each function or data item into its own section in the output
  8829. file if the target supports arbitrary sections. The name of the
  8830. function or the name of the data item determines the section's name
  8831. in the output file.
  8832. .Sp
  8833. Use these options on systems where the linker can perform optimizations
  8834. to improve locality of reference in the instruction space. Most systems
  8835. using the \s-1ELF\s0 object format and \s-1SPARC\s0 processors running Solaris 2 have
  8836. linkers with such optimizations. \s-1AIX\s0 may have these optimizations in
  8837. the future.
  8838. .Sp
  8839. Only use these options when there are significant benefits from doing
  8840. so. When you specify these options, the assembler and linker
  8841. create larger object and executable files and are also slower.
  8842. You cannot use \fBgprof\fR on all systems if you
  8843. specify this option, and you may have problems with debugging if
  8844. you specify both this option and \fB\-g\fR.
  8845. .IP "\fB\-fbranch\-target\-load\-optimize\fR" 4
  8846. .IX Item "-fbranch-target-load-optimize"
  8847. Perform branch target register load optimization before prologue / epilogue
  8848. threading.
  8849. The use of target registers can typically be exposed only during reload,
  8850. thus hoisting loads out of loops and doing inter-block scheduling needs
  8851. a separate optimization pass.
  8852. .IP "\fB\-fbranch\-target\-load\-optimize2\fR" 4
  8853. .IX Item "-fbranch-target-load-optimize2"
  8854. Perform branch target register load optimization after prologue / epilogue
  8855. threading.
  8856. .IP "\fB\-fbtr\-bb\-exclusive\fR" 4
  8857. .IX Item "-fbtr-bb-exclusive"
  8858. When performing branch target register load optimization, don't reuse
  8859. branch target registers within any basic block.
  8860. .IP "\fB\-fstdarg\-opt\fR" 4
  8861. .IX Item "-fstdarg-opt"
  8862. Optimize the prologue of variadic argument functions with respect to usage of
  8863. those arguments.
  8864. .IP "\fB\-fsection\-anchors\fR" 4
  8865. .IX Item "-fsection-anchors"
  8866. Try to reduce the number of symbolic address calculations by using
  8867. shared \*(L"anchor\*(R" symbols to address nearby objects. This transformation
  8868. can help to reduce the number of \s-1GOT\s0 entries and \s-1GOT\s0 accesses on some
  8869. targets.
  8870. .Sp
  8871. For example, the implementation of the following function \f(CW\*(C`foo\*(C'\fR:
  8872. .Sp
  8873. .Vb 2
  8874. \& static int a, b, c;
  8875. \& int foo (void) { return a + b + c; }
  8876. .Ve
  8877. .Sp
  8878. usually calculates the addresses of all three variables, but if you
  8879. compile it with \fB\-fsection\-anchors\fR, it accesses the variables
  8880. from a common anchor point instead. The effect is similar to the
  8881. following pseudocode (which isn't valid C):
  8882. .Sp
  8883. .Vb 5
  8884. \& int foo (void)
  8885. \& {
  8886. \& register int *xr = &x;
  8887. \& return xr[&a \- &x] + xr[&b \- &x] + xr[&c \- &x];
  8888. \& }
  8889. .Ve
  8890. .Sp
  8891. Not all targets support this option.
  8892. .IP "\fB\-\-param\fR \fIname\fR\fB=\fR\fIvalue\fR" 4
  8893. .IX Item "--param name=value"
  8894. In some places, \s-1GCC\s0 uses various constants to control the amount of
  8895. optimization that is done. For example, \s-1GCC\s0 does not inline functions
  8896. that contain more than a certain number of instructions. You can
  8897. control some of these constants on the command line using the
  8898. \&\fB\-\-param\fR option.
  8899. .Sp
  8900. The names of specific parameters, and the meaning of the values, are
  8901. tied to the internals of the compiler, and are subject to change
  8902. without notice in future releases.
  8903. .Sp
  8904. In each case, the \fIvalue\fR is an integer. The allowable choices for
  8905. \&\fIname\fR are:
  8906. .RS 4
  8907. .IP "\fBpredictable-branch-outcome\fR" 4
  8908. .IX Item "predictable-branch-outcome"
  8909. When branch is predicted to be taken with probability lower than this threshold
  8910. (in percent), then it is considered well predictable. The default is 10.
  8911. .IP "\fBmax-rtl-if-conversion-insns\fR" 4
  8912. .IX Item "max-rtl-if-conversion-insns"
  8913. \&\s-1RTL\s0 if-conversion tries to remove conditional branches around a block and
  8914. replace them with conditionally executed instructions. This parameter
  8915. gives the maximum number of instructions in a block which should be
  8916. considered for if-conversion. The default is 10, though the compiler will
  8917. also use other heuristics to decide whether if-conversion is likely to be
  8918. profitable.
  8919. .IP "\fBmax-rtl-if-conversion-predictable-cost\fR" 4
  8920. .IX Item "max-rtl-if-conversion-predictable-cost"
  8921. .PD 0
  8922. .IP "\fBmax-rtl-if-conversion-unpredictable-cost\fR" 4
  8923. .IX Item "max-rtl-if-conversion-unpredictable-cost"
  8924. .PD
  8925. \&\s-1RTL\s0 if-conversion will try to remove conditional branches around a block
  8926. and replace them with conditionally executed instructions. These parameters
  8927. give the maximum permissible cost for the sequence that would be generated
  8928. by if-conversion depending on whether the branch is statically determined
  8929. to be predictable or not. The units for this parameter are the same as
  8930. those for the \s-1GCC\s0 internal seq_cost metric. The compiler will try to
  8931. provide a reasonable default for this parameter using the \s-1BRANCH_COST\s0
  8932. target macro.
  8933. .IP "\fBmax-crossjump-edges\fR" 4
  8934. .IX Item "max-crossjump-edges"
  8935. The maximum number of incoming edges to consider for cross-jumping.
  8936. The algorithm used by \fB\-fcrossjumping\fR is O(N^2) in
  8937. the number of edges incoming to each block. Increasing values mean
  8938. more aggressive optimization, making the compilation time increase with
  8939. probably small improvement in executable size.
  8940. .IP "\fBmin-crossjump-insns\fR" 4
  8941. .IX Item "min-crossjump-insns"
  8942. The minimum number of instructions that must be matched at the end
  8943. of two blocks before cross-jumping is performed on them. This
  8944. value is ignored in the case where all instructions in the block being
  8945. cross-jumped from are matched. The default value is 5.
  8946. .IP "\fBmax-grow-copy-bb-insns\fR" 4
  8947. .IX Item "max-grow-copy-bb-insns"
  8948. The maximum code size expansion factor when copying basic blocks
  8949. instead of jumping. The expansion is relative to a jump instruction.
  8950. The default value is 8.
  8951. .IP "\fBmax-goto-duplication-insns\fR" 4
  8952. .IX Item "max-goto-duplication-insns"
  8953. The maximum number of instructions to duplicate to a block that jumps
  8954. to a computed goto. To avoid O(N^2) behavior in a number of
  8955. passes, \s-1GCC\s0 factors computed gotos early in the compilation process,
  8956. and unfactors them as late as possible. Only computed jumps at the
  8957. end of a basic blocks with no more than max-goto-duplication-insns are
  8958. unfactored. The default value is 8.
  8959. .IP "\fBmax-delay-slot-insn-search\fR" 4
  8960. .IX Item "max-delay-slot-insn-search"
  8961. The maximum number of instructions to consider when looking for an
  8962. instruction to fill a delay slot. If more than this arbitrary number of
  8963. instructions are searched, the time savings from filling the delay slot
  8964. are minimal, so stop searching. Increasing values mean more
  8965. aggressive optimization, making the compilation time increase with probably
  8966. small improvement in execution time.
  8967. .IP "\fBmax-delay-slot-live-search\fR" 4
  8968. .IX Item "max-delay-slot-live-search"
  8969. When trying to fill delay slots, the maximum number of instructions to
  8970. consider when searching for a block with valid live register
  8971. information. Increasing this arbitrarily chosen value means more
  8972. aggressive optimization, increasing the compilation time. This parameter
  8973. should be removed when the delay slot code is rewritten to maintain the
  8974. control-flow graph.
  8975. .IP "\fBmax-gcse-memory\fR" 4
  8976. .IX Item "max-gcse-memory"
  8977. The approximate maximum amount of memory that can be allocated in
  8978. order to perform the global common subexpression elimination
  8979. optimization. If more memory than specified is required, the
  8980. optimization is not done.
  8981. .IP "\fBmax-gcse-insertion-ratio\fR" 4
  8982. .IX Item "max-gcse-insertion-ratio"
  8983. If the ratio of expression insertions to deletions is larger than this value
  8984. for any expression, then \s-1RTL PRE\s0 inserts or removes the expression and thus
  8985. leaves partially redundant computations in the instruction stream. The default value is 20.
  8986. .IP "\fBmax-pending-list-length\fR" 4
  8987. .IX Item "max-pending-list-length"
  8988. The maximum number of pending dependencies scheduling allows
  8989. before flushing the current state and starting over. Large functions
  8990. with few branches or calls can create excessively large lists which
  8991. needlessly consume memory and resources.
  8992. .IP "\fBmax-modulo-backtrack-attempts\fR" 4
  8993. .IX Item "max-modulo-backtrack-attempts"
  8994. The maximum number of backtrack attempts the scheduler should make
  8995. when modulo scheduling a loop. Larger values can exponentially increase
  8996. compilation time.
  8997. .IP "\fBmax-inline-insns-single\fR" 4
  8998. .IX Item "max-inline-insns-single"
  8999. Several parameters control the tree inliner used in \s-1GCC.\s0
  9000. This number sets the maximum number of instructions (counted in \s-1GCC\s0's
  9001. internal representation) in a single function that the tree inliner
  9002. considers for inlining. This only affects functions declared
  9003. inline and methods implemented in a class declaration (\*(C+).
  9004. The default value is 400.
  9005. .IP "\fBmax-inline-insns-auto\fR" 4
  9006. .IX Item "max-inline-insns-auto"
  9007. When you use \fB\-finline\-functions\fR (included in \fB\-O3\fR),
  9008. a lot of functions that would otherwise not be considered for inlining
  9009. by the compiler are investigated. To those functions, a different
  9010. (more restrictive) limit compared to functions declared inline can
  9011. be applied.
  9012. The default value is 40.
  9013. .IP "\fBinline-min-speedup\fR" 4
  9014. .IX Item "inline-min-speedup"
  9015. When estimated performance improvement of caller + callee runtime exceeds this
  9016. threshold (in percent), the function can be inlined regardless of the limit on
  9017. \&\fB\-\-param max-inline-insns-single\fR and \fB\-\-param
  9018. max-inline-insns-auto\fR.
  9019. .IP "\fBlarge-function-insns\fR" 4
  9020. .IX Item "large-function-insns"
  9021. The limit specifying really large functions. For functions larger than this
  9022. limit after inlining, inlining is constrained by
  9023. \&\fB\-\-param large-function-growth\fR. This parameter is useful primarily
  9024. to avoid extreme compilation time caused by non-linear algorithms used by the
  9025. back end.
  9026. The default value is 2700.
  9027. .IP "\fBlarge-function-growth\fR" 4
  9028. .IX Item "large-function-growth"
  9029. Specifies maximal growth of large function caused by inlining in percents.
  9030. The default value is 100 which limits large function growth to 2.0 times
  9031. the original size.
  9032. .IP "\fBlarge-unit-insns\fR" 4
  9033. .IX Item "large-unit-insns"
  9034. The limit specifying large translation unit. Growth caused by inlining of
  9035. units larger than this limit is limited by \fB\-\-param inline-unit-growth\fR.
  9036. For small units this might be too tight.
  9037. For example, consider a unit consisting of function A
  9038. that is inline and B that just calls A three times. If B is small relative to
  9039. A, the growth of unit is 300\e% and yet such inlining is very sane. For very
  9040. large units consisting of small inlineable functions, however, the overall unit
  9041. growth limit is needed to avoid exponential explosion of code size. Thus for
  9042. smaller units, the size is increased to \fB\-\-param large-unit-insns\fR
  9043. before applying \fB\-\-param inline-unit-growth\fR. The default is 10000.
  9044. .IP "\fBinline-unit-growth\fR" 4
  9045. .IX Item "inline-unit-growth"
  9046. Specifies maximal overall growth of the compilation unit caused by inlining.
  9047. The default value is 20 which limits unit growth to 1.2 times the original
  9048. size. Cold functions (either marked cold via an attribute or by profile
  9049. feedback) are not accounted into the unit size.
  9050. .IP "\fBipcp-unit-growth\fR" 4
  9051. .IX Item "ipcp-unit-growth"
  9052. Specifies maximal overall growth of the compilation unit caused by
  9053. interprocedural constant propagation. The default value is 10 which limits
  9054. unit growth to 1.1 times the original size.
  9055. .IP "\fBlarge-stack-frame\fR" 4
  9056. .IX Item "large-stack-frame"
  9057. The limit specifying large stack frames. While inlining the algorithm is trying
  9058. to not grow past this limit too much. The default value is 256 bytes.
  9059. .IP "\fBlarge-stack-frame-growth\fR" 4
  9060. .IX Item "large-stack-frame-growth"
  9061. Specifies maximal growth of large stack frames caused by inlining in percents.
  9062. The default value is 1000 which limits large stack frame growth to 11 times
  9063. the original size.
  9064. .IP "\fBmax-inline-insns-recursive\fR" 4
  9065. .IX Item "max-inline-insns-recursive"
  9066. .PD 0
  9067. .IP "\fBmax-inline-insns-recursive-auto\fR" 4
  9068. .IX Item "max-inline-insns-recursive-auto"
  9069. .PD
  9070. Specifies the maximum number of instructions an out-of-line copy of a
  9071. self-recursive inline
  9072. function can grow into by performing recursive inlining.
  9073. .Sp
  9074. \&\fB\-\-param max-inline-insns-recursive\fR applies to functions
  9075. declared inline.
  9076. For functions not declared inline, recursive inlining
  9077. happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
  9078. enabled; \fB\-\-param max-inline-insns-recursive-auto\fR applies instead. The
  9079. default value is 450.
  9080. .IP "\fBmax-inline-recursive-depth\fR" 4
  9081. .IX Item "max-inline-recursive-depth"
  9082. .PD 0
  9083. .IP "\fBmax-inline-recursive-depth-auto\fR" 4
  9084. .IX Item "max-inline-recursive-depth-auto"
  9085. .PD
  9086. Specifies the maximum recursion depth used for recursive inlining.
  9087. .Sp
  9088. \&\fB\-\-param max-inline-recursive-depth\fR applies to functions
  9089. declared inline. For functions not declared inline, recursive inlining
  9090. happens only when \fB\-finline\-functions\fR (included in \fB\-O3\fR) is
  9091. enabled; \fB\-\-param max-inline-recursive-depth-auto\fR applies instead. The
  9092. default value is 8.
  9093. .IP "\fBmin-inline-recursive-probability\fR" 4
  9094. .IX Item "min-inline-recursive-probability"
  9095. Recursive inlining is profitable only for function having deep recursion
  9096. in average and can hurt for function having little recursion depth by
  9097. increasing the prologue size or complexity of function body to other
  9098. optimizers.
  9099. .Sp
  9100. When profile feedback is available (see \fB\-fprofile\-generate\fR) the actual
  9101. recursion depth can be guessed from the probability that function recurses
  9102. via a given call expression. This parameter limits inlining only to call
  9103. expressions whose probability exceeds the given threshold (in percents).
  9104. The default value is 10.
  9105. .IP "\fBearly-inlining-insns\fR" 4
  9106. .IX Item "early-inlining-insns"
  9107. Specify growth that the early inliner can make. In effect it increases
  9108. the amount of inlining for code having a large abstraction penalty.
  9109. The default value is 14.
  9110. .IP "\fBmax-early-inliner-iterations\fR" 4
  9111. .IX Item "max-early-inliner-iterations"
  9112. Limit of iterations of the early inliner. This basically bounds
  9113. the number of nested indirect calls the early inliner can resolve.
  9114. Deeper chains are still handled by late inlining.
  9115. .IP "\fBcomdat-sharing-probability\fR" 4
  9116. .IX Item "comdat-sharing-probability"
  9117. Probability (in percent) that \*(C+ inline function with comdat visibility
  9118. are shared across multiple compilation units. The default value is 20.
  9119. .IP "\fBprofile-func-internal-id\fR" 4
  9120. .IX Item "profile-func-internal-id"
  9121. A parameter to control whether to use function internal id in profile
  9122. database lookup. If the value is 0, the compiler uses an id that
  9123. is based on function assembler name and filename, which makes old profile
  9124. data more tolerant to source changes such as function reordering etc.
  9125. The default value is 0.
  9126. .IP "\fBmin-vect-loop-bound\fR" 4
  9127. .IX Item "min-vect-loop-bound"
  9128. The minimum number of iterations under which loops are not vectorized
  9129. when \fB\-ftree\-vectorize\fR is used. The number of iterations after
  9130. vectorization needs to be greater than the value specified by this option
  9131. to allow vectorization. The default value is 0.
  9132. .IP "\fBgcse-cost-distance-ratio\fR" 4
  9133. .IX Item "gcse-cost-distance-ratio"
  9134. Scaling factor in calculation of maximum distance an expression
  9135. can be moved by \s-1GCSE\s0 optimizations. This is currently supported only in the
  9136. code hoisting pass. The bigger the ratio, the more aggressive code hoisting
  9137. is with simple expressions, i.e., the expressions that have cost
  9138. less than \fBgcse-unrestricted-cost\fR. Specifying 0 disables
  9139. hoisting of simple expressions. The default value is 10.
  9140. .IP "\fBgcse-unrestricted-cost\fR" 4
  9141. .IX Item "gcse-unrestricted-cost"
  9142. Cost, roughly measured as the cost of a single typical machine
  9143. instruction, at which \s-1GCSE\s0 optimizations do not constrain
  9144. the distance an expression can travel. This is currently
  9145. supported only in the code hoisting pass. The lesser the cost,
  9146. the more aggressive code hoisting is. Specifying 0
  9147. allows all expressions to travel unrestricted distances.
  9148. The default value is 3.
  9149. .IP "\fBmax-hoist-depth\fR" 4
  9150. .IX Item "max-hoist-depth"
  9151. The depth of search in the dominator tree for expressions to hoist.
  9152. This is used to avoid quadratic behavior in hoisting algorithm.
  9153. The value of 0 does not limit on the search, but may slow down compilation
  9154. of huge functions. The default value is 30.
  9155. .IP "\fBmax-tail-merge-comparisons\fR" 4
  9156. .IX Item "max-tail-merge-comparisons"
  9157. The maximum amount of similar bbs to compare a bb with. This is used to
  9158. avoid quadratic behavior in tree tail merging. The default value is 10.
  9159. .IP "\fBmax-tail-merge-iterations\fR" 4
  9160. .IX Item "max-tail-merge-iterations"
  9161. The maximum amount of iterations of the pass over the function. This is used to
  9162. limit compilation time in tree tail merging. The default value is 2.
  9163. .IP "\fBstore-merging-allow-unaligned\fR" 4
  9164. .IX Item "store-merging-allow-unaligned"
  9165. Allow the store merging pass to introduce unaligned stores if it is legal to
  9166. do so. The default value is 1.
  9167. .IP "\fBmax-stores-to-merge\fR" 4
  9168. .IX Item "max-stores-to-merge"
  9169. The maximum number of stores to attempt to merge into wider stores in the store
  9170. merging pass. The minimum value is 2 and the default is 64.
  9171. .IP "\fBmax-unrolled-insns\fR" 4
  9172. .IX Item "max-unrolled-insns"
  9173. The maximum number of instructions that a loop may have to be unrolled.
  9174. If a loop is unrolled, this parameter also determines how many times
  9175. the loop code is unrolled.
  9176. .IP "\fBmax-average-unrolled-insns\fR" 4
  9177. .IX Item "max-average-unrolled-insns"
  9178. The maximum number of instructions biased by probabilities of their execution
  9179. that a loop may have to be unrolled. If a loop is unrolled,
  9180. this parameter also determines how many times the loop code is unrolled.
  9181. .IP "\fBmax-unroll-times\fR" 4
  9182. .IX Item "max-unroll-times"
  9183. The maximum number of unrollings of a single loop.
  9184. .IP "\fBmax-peeled-insns\fR" 4
  9185. .IX Item "max-peeled-insns"
  9186. The maximum number of instructions that a loop may have to be peeled.
  9187. If a loop is peeled, this parameter also determines how many times
  9188. the loop code is peeled.
  9189. .IP "\fBmax-peel-times\fR" 4
  9190. .IX Item "max-peel-times"
  9191. The maximum number of peelings of a single loop.
  9192. .IP "\fBmax-peel-branches\fR" 4
  9193. .IX Item "max-peel-branches"
  9194. The maximum number of branches on the hot path through the peeled sequence.
  9195. .IP "\fBmax-completely-peeled-insns\fR" 4
  9196. .IX Item "max-completely-peeled-insns"
  9197. The maximum number of insns of a completely peeled loop.
  9198. .IP "\fBmax-completely-peel-times\fR" 4
  9199. .IX Item "max-completely-peel-times"
  9200. The maximum number of iterations of a loop to be suitable for complete peeling.
  9201. .IP "\fBmax-completely-peel-loop-nest-depth\fR" 4
  9202. .IX Item "max-completely-peel-loop-nest-depth"
  9203. The maximum depth of a loop nest suitable for complete peeling.
  9204. .IP "\fBmax-unswitch-insns\fR" 4
  9205. .IX Item "max-unswitch-insns"
  9206. The maximum number of insns of an unswitched loop.
  9207. .IP "\fBmax-unswitch-level\fR" 4
  9208. .IX Item "max-unswitch-level"
  9209. The maximum number of branches unswitched in a single loop.
  9210. .IP "\fBmax-loop-headers-insns\fR" 4
  9211. .IX Item "max-loop-headers-insns"
  9212. The maximum number of insns in loop header duplicated by the copy loop headers
  9213. pass.
  9214. .IP "\fBlim-expensive\fR" 4
  9215. .IX Item "lim-expensive"
  9216. The minimum cost of an expensive expression in the loop invariant motion.
  9217. .IP "\fBiv-consider-all-candidates-bound\fR" 4
  9218. .IX Item "iv-consider-all-candidates-bound"
  9219. Bound on number of candidates for induction variables, below which
  9220. all candidates are considered for each use in induction variable
  9221. optimizations. If there are more candidates than this,
  9222. only the most relevant ones are considered to avoid quadratic time complexity.
  9223. .IP "\fBiv-max-considered-uses\fR" 4
  9224. .IX Item "iv-max-considered-uses"
  9225. The induction variable optimizations give up on loops that contain more
  9226. induction variable uses.
  9227. .IP "\fBiv-always-prune-cand-set-bound\fR" 4
  9228. .IX Item "iv-always-prune-cand-set-bound"
  9229. If the number of candidates in the set is smaller than this value,
  9230. always try to remove unnecessary ivs from the set
  9231. when adding a new one.
  9232. .IP "\fBavg-loop-niter\fR" 4
  9233. .IX Item "avg-loop-niter"
  9234. Average number of iterations of a loop.
  9235. .IP "\fBdse-max-object-size\fR" 4
  9236. .IX Item "dse-max-object-size"
  9237. Maximum size (in bytes) of objects tracked bytewise by dead store elimination.
  9238. Larger values may result in larger compilation times.
  9239. .IP "\fBscev-max-expr-size\fR" 4
  9240. .IX Item "scev-max-expr-size"
  9241. Bound on size of expressions used in the scalar evolutions analyzer.
  9242. Large expressions slow the analyzer.
  9243. .IP "\fBscev-max-expr-complexity\fR" 4
  9244. .IX Item "scev-max-expr-complexity"
  9245. Bound on the complexity of the expressions in the scalar evolutions analyzer.
  9246. Complex expressions slow the analyzer.
  9247. .IP "\fBmax-tree-if-conversion-phi-args\fR" 4
  9248. .IX Item "max-tree-if-conversion-phi-args"
  9249. Maximum number of arguments in a \s-1PHI\s0 supported by \s-1TREE\s0 if conversion
  9250. unless the loop is marked with simd pragma.
  9251. .IP "\fBvect-max-version-for-alignment-checks\fR" 4
  9252. .IX Item "vect-max-version-for-alignment-checks"
  9253. The maximum number of run-time checks that can be performed when
  9254. doing loop versioning for alignment in the vectorizer.
  9255. .IP "\fBvect-max-version-for-alias-checks\fR" 4
  9256. .IX Item "vect-max-version-for-alias-checks"
  9257. The maximum number of run-time checks that can be performed when
  9258. doing loop versioning for alias in the vectorizer.
  9259. .IP "\fBvect-max-peeling-for-alignment\fR" 4
  9260. .IX Item "vect-max-peeling-for-alignment"
  9261. The maximum number of loop peels to enhance access alignment
  9262. for vectorizer. Value \-1 means no limit.
  9263. .IP "\fBmax-iterations-to-track\fR" 4
  9264. .IX Item "max-iterations-to-track"
  9265. The maximum number of iterations of a loop the brute-force algorithm
  9266. for analysis of the number of iterations of the loop tries to evaluate.
  9267. .IP "\fBhot-bb-count-ws-permille\fR" 4
  9268. .IX Item "hot-bb-count-ws-permille"
  9269. A basic block profile count is considered hot if it contributes to
  9270. the given permillage (i.e. 0...1000) of the entire profiled execution.
  9271. .IP "\fBhot-bb-frequency-fraction\fR" 4
  9272. .IX Item "hot-bb-frequency-fraction"
  9273. Select fraction of the entry block frequency of executions of basic block in
  9274. function given basic block needs to have to be considered hot.
  9275. .IP "\fBmax-predicted-iterations\fR" 4
  9276. .IX Item "max-predicted-iterations"
  9277. The maximum number of loop iterations we predict statically. This is useful
  9278. in cases where a function contains a single loop with known bound and
  9279. another loop with unknown bound.
  9280. The known number of iterations is predicted correctly, while
  9281. the unknown number of iterations average to roughly 10. This means that the
  9282. loop without bounds appears artificially cold relative to the other one.
  9283. .IP "\fBbuiltin-expect-probability\fR" 4
  9284. .IX Item "builtin-expect-probability"
  9285. Control the probability of the expression having the specified value. This
  9286. parameter takes a percentage (i.e. 0 ... 100) as input.
  9287. The default probability of 90 is obtained empirically.
  9288. .IP "\fBalign-threshold\fR" 4
  9289. .IX Item "align-threshold"
  9290. Select fraction of the maximal frequency of executions of a basic block in
  9291. a function to align the basic block.
  9292. .IP "\fBalign-loop-iterations\fR" 4
  9293. .IX Item "align-loop-iterations"
  9294. A loop expected to iterate at least the selected number of iterations is
  9295. aligned.
  9296. .IP "\fBtracer-dynamic-coverage\fR" 4
  9297. .IX Item "tracer-dynamic-coverage"
  9298. .PD 0
  9299. .IP "\fBtracer-dynamic-coverage-feedback\fR" 4
  9300. .IX Item "tracer-dynamic-coverage-feedback"
  9301. .PD
  9302. This value is used to limit superblock formation once the given percentage of
  9303. executed instructions is covered. This limits unnecessary code size
  9304. expansion.
  9305. .Sp
  9306. The \fBtracer-dynamic-coverage-feedback\fR parameter
  9307. is used only when profile
  9308. feedback is available. The real profiles (as opposed to statically estimated
  9309. ones) are much less balanced allowing the threshold to be larger value.
  9310. .IP "\fBtracer-max-code-growth\fR" 4
  9311. .IX Item "tracer-max-code-growth"
  9312. Stop tail duplication once code growth has reached given percentage. This is
  9313. a rather artificial limit, as most of the duplicates are eliminated later in
  9314. cross jumping, so it may be set to much higher values than is the desired code
  9315. growth.
  9316. .IP "\fBtracer-min-branch-ratio\fR" 4
  9317. .IX Item "tracer-min-branch-ratio"
  9318. Stop reverse growth when the reverse probability of best edge is less than this
  9319. threshold (in percent).
  9320. .IP "\fBtracer-min-branch-probability\fR" 4
  9321. .IX Item "tracer-min-branch-probability"
  9322. .PD 0
  9323. .IP "\fBtracer-min-branch-probability-feedback\fR" 4
  9324. .IX Item "tracer-min-branch-probability-feedback"
  9325. .PD
  9326. Stop forward growth if the best edge has probability lower than this
  9327. threshold.
  9328. .Sp
  9329. Similarly to \fBtracer-dynamic-coverage\fR two parameters are
  9330. provided. \fBtracer-min-branch-probability-feedback\fR is used for
  9331. compilation with profile feedback and \fBtracer-min-branch-probability\fR
  9332. compilation without. The value for compilation with profile feedback
  9333. needs to be more conservative (higher) in order to make tracer
  9334. effective.
  9335. .IP "\fBmax-cse-path-length\fR" 4
  9336. .IX Item "max-cse-path-length"
  9337. The maximum number of basic blocks on path that \s-1CSE\s0 considers.
  9338. The default is 10.
  9339. .IP "\fBmax-cse-insns\fR" 4
  9340. .IX Item "max-cse-insns"
  9341. The maximum number of instructions \s-1CSE\s0 processes before flushing.
  9342. The default is 1000.
  9343. .IP "\fBggc-min-expand\fR" 4
  9344. .IX Item "ggc-min-expand"
  9345. \&\s-1GCC\s0 uses a garbage collector to manage its own memory allocation. This
  9346. parameter specifies the minimum percentage by which the garbage
  9347. collector's heap should be allowed to expand between collections.
  9348. Tuning this may improve compilation speed; it has no effect on code
  9349. generation.
  9350. .Sp
  9351. The default is 30% + 70% * (\s-1RAM/1GB\s0) with an upper bound of 100% when
  9352. \&\s-1RAM \s0>= 1GB. If \f(CW\*(C`getrlimit\*(C'\fR is available, the notion of \*(L"\s-1RAM\*(R"\s0 is
  9353. the smallest of actual \s-1RAM\s0 and \f(CW\*(C`RLIMIT_DATA\*(C'\fR or \f(CW\*(C`RLIMIT_AS\*(C'\fR. If
  9354. \&\s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a particular platform, the lower
  9355. bound of 30% is used. Setting this parameter and
  9356. \&\fBggc-min-heapsize\fR to zero causes a full collection to occur at
  9357. every opportunity. This is extremely slow, but can be useful for
  9358. debugging.
  9359. .IP "\fBggc-min-heapsize\fR" 4
  9360. .IX Item "ggc-min-heapsize"
  9361. Minimum size of the garbage collector's heap before it begins bothering
  9362. to collect garbage. The first collection occurs after the heap expands
  9363. by \fBggc-min-expand\fR% beyond \fBggc-min-heapsize\fR. Again,
  9364. tuning this may improve compilation speed, and has no effect on code
  9365. generation.
  9366. .Sp
  9367. The default is the smaller of \s-1RAM/8, RLIMIT_RSS,\s0 or a limit that
  9368. tries to ensure that \s-1RLIMIT_DATA\s0 or \s-1RLIMIT_AS\s0 are not exceeded, but
  9369. with a lower bound of 4096 (four megabytes) and an upper bound of
  9370. 131072 (128 megabytes). If \s-1GCC\s0 is not able to calculate \s-1RAM\s0 on a
  9371. particular platform, the lower bound is used. Setting this parameter
  9372. very large effectively disables garbage collection. Setting this
  9373. parameter and \fBggc-min-expand\fR to zero causes a full collection
  9374. to occur at every opportunity.
  9375. .IP "\fBmax-reload-search-insns\fR" 4
  9376. .IX Item "max-reload-search-insns"
  9377. The maximum number of instruction reload should look backward for equivalent
  9378. register. Increasing values mean more aggressive optimization, making the
  9379. compilation time increase with probably slightly better performance.
  9380. The default value is 100.
  9381. .IP "\fBmax-cselib-memory-locations\fR" 4
  9382. .IX Item "max-cselib-memory-locations"
  9383. The maximum number of memory locations cselib should take into account.
  9384. Increasing values mean more aggressive optimization, making the compilation time
  9385. increase with probably slightly better performance. The default value is 500.
  9386. .IP "\fBmax-sched-ready-insns\fR" 4
  9387. .IX Item "max-sched-ready-insns"
  9388. The maximum number of instructions ready to be issued the scheduler should
  9389. consider at any given time during the first scheduling pass. Increasing
  9390. values mean more thorough searches, making the compilation time increase
  9391. with probably little benefit. The default value is 100.
  9392. .IP "\fBmax-sched-region-blocks\fR" 4
  9393. .IX Item "max-sched-region-blocks"
  9394. The maximum number of blocks in a region to be considered for
  9395. interblock scheduling. The default value is 10.
  9396. .IP "\fBmax-pipeline-region-blocks\fR" 4
  9397. .IX Item "max-pipeline-region-blocks"
  9398. The maximum number of blocks in a region to be considered for
  9399. pipelining in the selective scheduler. The default value is 15.
  9400. .IP "\fBmax-sched-region-insns\fR" 4
  9401. .IX Item "max-sched-region-insns"
  9402. The maximum number of insns in a region to be considered for
  9403. interblock scheduling. The default value is 100.
  9404. .IP "\fBmax-pipeline-region-insns\fR" 4
  9405. .IX Item "max-pipeline-region-insns"
  9406. The maximum number of insns in a region to be considered for
  9407. pipelining in the selective scheduler. The default value is 200.
  9408. .IP "\fBmin-spec-prob\fR" 4
  9409. .IX Item "min-spec-prob"
  9410. The minimum probability (in percents) of reaching a source block
  9411. for interblock speculative scheduling. The default value is 40.
  9412. .IP "\fBmax-sched-extend-regions-iters\fR" 4
  9413. .IX Item "max-sched-extend-regions-iters"
  9414. The maximum number of iterations through \s-1CFG\s0 to extend regions.
  9415. A value of 0 (the default) disables region extensions.
  9416. .IP "\fBmax-sched-insn-conflict-delay\fR" 4
  9417. .IX Item "max-sched-insn-conflict-delay"
  9418. The maximum conflict delay for an insn to be considered for speculative motion.
  9419. The default value is 3.
  9420. .IP "\fBsched-spec-prob-cutoff\fR" 4
  9421. .IX Item "sched-spec-prob-cutoff"
  9422. The minimal probability of speculation success (in percents), so that
  9423. speculative insns are scheduled.
  9424. The default value is 40.
  9425. .IP "\fBsched-state-edge-prob-cutoff\fR" 4
  9426. .IX Item "sched-state-edge-prob-cutoff"
  9427. The minimum probability an edge must have for the scheduler to save its
  9428. state across it.
  9429. The default value is 10.
  9430. .IP "\fBsched-mem-true-dep-cost\fR" 4
  9431. .IX Item "sched-mem-true-dep-cost"
  9432. Minimal distance (in \s-1CPU\s0 cycles) between store and load targeting same
  9433. memory locations. The default value is 1.
  9434. .IP "\fBselsched-max-lookahead\fR" 4
  9435. .IX Item "selsched-max-lookahead"
  9436. The maximum size of the lookahead window of selective scheduling. It is a
  9437. depth of search for available instructions.
  9438. The default value is 50.
  9439. .IP "\fBselsched-max-sched-times\fR" 4
  9440. .IX Item "selsched-max-sched-times"
  9441. The maximum number of times that an instruction is scheduled during
  9442. selective scheduling. This is the limit on the number of iterations
  9443. through which the instruction may be pipelined. The default value is 2.
  9444. .IP "\fBselsched-insns-to-rename\fR" 4
  9445. .IX Item "selsched-insns-to-rename"
  9446. The maximum number of best instructions in the ready list that are considered
  9447. for renaming in the selective scheduler. The default value is 2.
  9448. .IP "\fBsms-min-sc\fR" 4
  9449. .IX Item "sms-min-sc"
  9450. The minimum value of stage count that swing modulo scheduler
  9451. generates. The default value is 2.
  9452. .IP "\fBmax-last-value-rtl\fR" 4
  9453. .IX Item "max-last-value-rtl"
  9454. The maximum size measured as number of RTLs that can be recorded in an expression
  9455. in combiner for a pseudo register as last known value of that register. The default
  9456. is 10000.
  9457. .IP "\fBmax-combine-insns\fR" 4
  9458. .IX Item "max-combine-insns"
  9459. The maximum number of instructions the \s-1RTL\s0 combiner tries to combine.
  9460. The default value is 2 at \fB\-Og\fR and 4 otherwise.
  9461. .IP "\fBinteger-share-limit\fR" 4
  9462. .IX Item "integer-share-limit"
  9463. Small integer constants can use a shared data structure, reducing the
  9464. compiler's memory usage and increasing its speed. This sets the maximum
  9465. value of a shared integer constant. The default value is 256.
  9466. .IP "\fBssp-buffer-size\fR" 4
  9467. .IX Item "ssp-buffer-size"
  9468. The minimum size of buffers (i.e. arrays) that receive stack smashing
  9469. protection when \fB\-fstack\-protection\fR is used.
  9470. .IP "\fBmin-size-for-stack-sharing\fR" 4
  9471. .IX Item "min-size-for-stack-sharing"
  9472. The minimum size of variables taking part in stack slot sharing when not
  9473. optimizing. The default value is 32.
  9474. .IP "\fBmax-jump-thread-duplication-stmts\fR" 4
  9475. .IX Item "max-jump-thread-duplication-stmts"
  9476. Maximum number of statements allowed in a block that needs to be
  9477. duplicated when threading jumps.
  9478. .IP "\fBmax-fields-for-field-sensitive\fR" 4
  9479. .IX Item "max-fields-for-field-sensitive"
  9480. Maximum number of fields in a structure treated in
  9481. a field sensitive manner during pointer analysis. The default is zero
  9482. for \fB\-O0\fR and \fB\-O1\fR,
  9483. and 100 for \fB\-Os\fR, \fB\-O2\fR, and \fB\-O3\fR.
  9484. .IP "\fBprefetch-latency\fR" 4
  9485. .IX Item "prefetch-latency"
  9486. Estimate on average number of instructions that are executed before
  9487. prefetch finishes. The distance prefetched ahead is proportional
  9488. to this constant. Increasing this number may also lead to less
  9489. streams being prefetched (see \fBsimultaneous-prefetches\fR).
  9490. .IP "\fBsimultaneous-prefetches\fR" 4
  9491. .IX Item "simultaneous-prefetches"
  9492. Maximum number of prefetches that can run at the same time.
  9493. .IP "\fBl1\-cache\-line\-size\fR" 4
  9494. .IX Item "l1-cache-line-size"
  9495. The size of cache line in L1 cache, in bytes.
  9496. .IP "\fBl1\-cache\-size\fR" 4
  9497. .IX Item "l1-cache-size"
  9498. The size of L1 cache, in kilobytes.
  9499. .IP "\fBl2\-cache\-size\fR" 4
  9500. .IX Item "l2-cache-size"
  9501. The size of L2 cache, in kilobytes.
  9502. .IP "\fBmin-insn-to-prefetch-ratio\fR" 4
  9503. .IX Item "min-insn-to-prefetch-ratio"
  9504. The minimum ratio between the number of instructions and the
  9505. number of prefetches to enable prefetching in a loop.
  9506. .IP "\fBprefetch-min-insn-to-mem-ratio\fR" 4
  9507. .IX Item "prefetch-min-insn-to-mem-ratio"
  9508. The minimum ratio between the number of instructions and the
  9509. number of memory references to enable prefetching in a loop.
  9510. .IP "\fBuse-canonical-types\fR" 4
  9511. .IX Item "use-canonical-types"
  9512. Whether the compiler should use the \*(L"canonical\*(R" type system. By
  9513. default, this should always be 1, which uses a more efficient internal
  9514. mechanism for comparing types in \*(C+ and Objective\-\*(C+. However, if
  9515. bugs in the canonical type system are causing compilation failures,
  9516. set this value to 0 to disable canonical types.
  9517. .IP "\fBswitch-conversion-max-branch-ratio\fR" 4
  9518. .IX Item "switch-conversion-max-branch-ratio"
  9519. Switch initialization conversion refuses to create arrays that are
  9520. bigger than \fBswitch-conversion-max-branch-ratio\fR times the number of
  9521. branches in the switch.
  9522. .IP "\fBmax-partial-antic-length\fR" 4
  9523. .IX Item "max-partial-antic-length"
  9524. Maximum length of the partial antic set computed during the tree
  9525. partial redundancy elimination optimization (\fB\-ftree\-pre\fR) when
  9526. optimizing at \fB\-O3\fR and above. For some sorts of source code
  9527. the enhanced partial redundancy elimination optimization can run away,
  9528. consuming all of the memory available on the host machine. This
  9529. parameter sets a limit on the length of the sets that are computed,
  9530. which prevents the runaway behavior. Setting a value of 0 for
  9531. this parameter allows an unlimited set length.
  9532. .IP "\fBsccvn-max-scc-size\fR" 4
  9533. .IX Item "sccvn-max-scc-size"
  9534. Maximum size of a strongly connected component (\s-1SCC\s0) during \s-1SCCVN\s0
  9535. processing. If this limit is hit, \s-1SCCVN\s0 processing for the whole
  9536. function is not done and optimizations depending on it are
  9537. disabled. The default maximum \s-1SCC\s0 size is 10000.
  9538. .IP "\fBsccvn-max-alias-queries-per-access\fR" 4
  9539. .IX Item "sccvn-max-alias-queries-per-access"
  9540. Maximum number of alias-oracle queries we perform when looking for
  9541. redundancies for loads and stores. If this limit is hit the search
  9542. is aborted and the load or store is not considered redundant. The
  9543. number of queries is algorithmically limited to the number of
  9544. stores on all paths from the load to the function entry.
  9545. The default maximum number of queries is 1000.
  9546. .IP "\fBira-max-loops-num\fR" 4
  9547. .IX Item "ira-max-loops-num"
  9548. \&\s-1IRA\s0 uses regional register allocation by default. If a function
  9549. contains more loops than the number given by this parameter, only at most
  9550. the given number of the most frequently-executed loops form regions
  9551. for regional register allocation. The default value of the
  9552. parameter is 100.
  9553. .IP "\fBira-max-conflict-table-size\fR" 4
  9554. .IX Item "ira-max-conflict-table-size"
  9555. Although \s-1IRA\s0 uses a sophisticated algorithm to compress the conflict
  9556. table, the table can still require excessive amounts of memory for
  9557. huge functions. If the conflict table for a function could be more
  9558. than the size in \s-1MB\s0 given by this parameter, the register allocator
  9559. instead uses a faster, simpler, and lower-quality
  9560. algorithm that does not require building a pseudo-register conflict table.
  9561. The default value of the parameter is 2000.
  9562. .IP "\fBira-loop-reserved-regs\fR" 4
  9563. .IX Item "ira-loop-reserved-regs"
  9564. \&\s-1IRA\s0 can be used to evaluate more accurate register pressure in loops
  9565. for decisions to move loop invariants (see \fB\-O3\fR). The number
  9566. of available registers reserved for some other purposes is given
  9567. by this parameter. The default value of the parameter is 2, which is
  9568. the minimal number of registers needed by typical instructions.
  9569. This value is the best found from numerous experiments.
  9570. .IP "\fBlra-inheritance-ebb-probability-cutoff\fR" 4
  9571. .IX Item "lra-inheritance-ebb-probability-cutoff"
  9572. \&\s-1LRA\s0 tries to reuse values reloaded in registers in subsequent insns.
  9573. This optimization is called inheritance. \s-1EBB\s0 is used as a region to
  9574. do this optimization. The parameter defines a minimal fall-through
  9575. edge probability in percentage used to add \s-1BB\s0 to inheritance \s-1EBB\s0 in
  9576. \&\s-1LRA. \s0 The default value of the parameter is 40. The value was chosen
  9577. from numerous runs of \s-1SPEC2000\s0 on x86\-64.
  9578. .IP "\fBloop-invariant-max-bbs-in-loop\fR" 4
  9579. .IX Item "loop-invariant-max-bbs-in-loop"
  9580. Loop invariant motion can be very expensive, both in compilation time and
  9581. in amount of needed compile-time memory, with very large loops. Loops
  9582. with more basic blocks than this parameter won't have loop invariant
  9583. motion optimization performed on them. The default value of the
  9584. parameter is 1000 for \fB\-O1\fR and 10000 for \fB\-O2\fR and above.
  9585. .IP "\fBloop-max-datarefs-for-datadeps\fR" 4
  9586. .IX Item "loop-max-datarefs-for-datadeps"
  9587. Building data dependencies is expensive for very large loops. This
  9588. parameter limits the number of data references in loops that are
  9589. considered for data dependence analysis. These large loops are no
  9590. handled by the optimizations using loop data dependencies.
  9591. The default value is 1000.
  9592. .IP "\fBmax-vartrack-size\fR" 4
  9593. .IX Item "max-vartrack-size"
  9594. Sets a maximum number of hash table slots to use during variable
  9595. tracking dataflow analysis of any function. If this limit is exceeded
  9596. with variable tracking at assignments enabled, analysis for that
  9597. function is retried without it, after removing all debug insns from
  9598. the function. If the limit is exceeded even without debug insns, var
  9599. tracking analysis is completely disabled for the function. Setting
  9600. the parameter to zero makes it unlimited.
  9601. .IP "\fBmax-vartrack-expr-depth\fR" 4
  9602. .IX Item "max-vartrack-expr-depth"
  9603. Sets a maximum number of recursion levels when attempting to map
  9604. variable names or debug temporaries to value expressions. This trades
  9605. compilation time for more complete debug information. If this is set too
  9606. low, value expressions that are available and could be represented in
  9607. debug information may end up not being used; setting this higher may
  9608. enable the compiler to find more complex debug expressions, but compile
  9609. time and memory use may grow. The default is 12.
  9610. .IP "\fBmin-nondebug-insn-uid\fR" 4
  9611. .IX Item "min-nondebug-insn-uid"
  9612. Use uids starting at this parameter for nondebug insns. The range below
  9613. the parameter is reserved exclusively for debug insns created by
  9614. \&\fB\-fvar\-tracking\-assignments\fR, but debug insns may get
  9615. (non-overlapping) uids above it if the reserved range is exhausted.
  9616. .IP "\fBipa-sra-ptr-growth-factor\fR" 4
  9617. .IX Item "ipa-sra-ptr-growth-factor"
  9618. IPA-SRA replaces a pointer to an aggregate with one or more new
  9619. parameters only when their cumulative size is less or equal to
  9620. \&\fBipa-sra-ptr-growth-factor\fR times the size of the original
  9621. pointer parameter.
  9622. .IP "\fBsra-max-scalarization-size-Ospeed\fR" 4
  9623. .IX Item "sra-max-scalarization-size-Ospeed"
  9624. .PD 0
  9625. .IP "\fBsra-max-scalarization-size-Osize\fR" 4
  9626. .IX Item "sra-max-scalarization-size-Osize"
  9627. .PD
  9628. The two Scalar Reduction of Aggregates passes (\s-1SRA\s0 and IPA-SRA) aim to
  9629. replace scalar parts of aggregates with uses of independent scalar
  9630. variables. These parameters control the maximum size, in storage units,
  9631. of aggregate which is considered for replacement when compiling for
  9632. speed
  9633. (\fBsra-max-scalarization-size-Ospeed\fR) or size
  9634. (\fBsra-max-scalarization-size-Osize\fR) respectively.
  9635. .IP "\fBtm-max-aggregate-size\fR" 4
  9636. .IX Item "tm-max-aggregate-size"
  9637. When making copies of thread-local variables in a transaction, this
  9638. parameter specifies the size in bytes after which variables are
  9639. saved with the logging functions as opposed to save/restore code
  9640. sequence pairs. This option only applies when using
  9641. \&\fB\-fgnu\-tm\fR.
  9642. .IP "\fBgraphite-max-nb-scop-params\fR" 4
  9643. .IX Item "graphite-max-nb-scop-params"
  9644. To avoid exponential effects in the Graphite loop transforms, the
  9645. number of parameters in a Static Control Part (SCoP) is bounded. The
  9646. default value is 10 parameters. A variable whose value is unknown at
  9647. compilation time and defined outside a SCoP is a parameter of the SCoP.
  9648. .IP "\fBgraphite-max-bbs-per-function\fR" 4
  9649. .IX Item "graphite-max-bbs-per-function"
  9650. To avoid exponential effects in the detection of SCoPs, the size of
  9651. the functions analyzed by Graphite is bounded. The default value is
  9652. 100 basic blocks.
  9653. .IP "\fBloop-block-tile-size\fR" 4
  9654. .IX Item "loop-block-tile-size"
  9655. Loop blocking or strip mining transforms, enabled with
  9656. \&\fB\-floop\-block\fR or \fB\-floop\-strip\-mine\fR, strip mine each
  9657. loop in the loop nest by a given number of iterations. The strip
  9658. length can be changed using the \fBloop-block-tile-size\fR
  9659. parameter. The default value is 51 iterations.
  9660. .IP "\fBloop-unroll-jam-size\fR" 4
  9661. .IX Item "loop-unroll-jam-size"
  9662. Specify the unroll factor for the \fB\-floop\-unroll\-and\-jam\fR option. The
  9663. default value is 4.
  9664. .IP "\fBloop-unroll-jam-depth\fR" 4
  9665. .IX Item "loop-unroll-jam-depth"
  9666. Specify the dimension to be unrolled (counting from the most inner loop)
  9667. for the \fB\-floop\-unroll\-and\-jam\fR. The default value is 2.
  9668. .IP "\fBipa-cp-value-list-size\fR" 4
  9669. .IX Item "ipa-cp-value-list-size"
  9670. IPA-CP attempts to track all possible values and types passed to a function's
  9671. parameter in order to propagate them and perform devirtualization.
  9672. \&\fBipa-cp-value-list-size\fR is the maximum number of values and types it
  9673. stores per one formal parameter of a function.
  9674. .IP "\fBipa-cp-eval-threshold\fR" 4
  9675. .IX Item "ipa-cp-eval-threshold"
  9676. IPA-CP calculates its own score of cloning profitability heuristics
  9677. and performs those cloning opportunities with scores that exceed
  9678. \&\fBipa-cp-eval-threshold\fR.
  9679. .IP "\fBipa-cp-recursion-penalty\fR" 4
  9680. .IX Item "ipa-cp-recursion-penalty"
  9681. Percentage penalty the recursive functions will receive when they
  9682. are evaluated for cloning.
  9683. .IP "\fBipa-cp-single-call-penalty\fR" 4
  9684. .IX Item "ipa-cp-single-call-penalty"
  9685. Percentage penalty functions containing a single call to another
  9686. function will receive when they are evaluated for cloning.
  9687. .IP "\fBipa-max-agg-items\fR" 4
  9688. .IX Item "ipa-max-agg-items"
  9689. IPA-CP is also capable to propagate a number of scalar values passed
  9690. in an aggregate. \fBipa-max-agg-items\fR controls the maximum
  9691. number of such values per one parameter.
  9692. .IP "\fBipa-cp-loop-hint-bonus\fR" 4
  9693. .IX Item "ipa-cp-loop-hint-bonus"
  9694. When IPA-CP determines that a cloning candidate would make the number
  9695. of iterations of a loop known, it adds a bonus of
  9696. \&\fBipa-cp-loop-hint-bonus\fR to the profitability score of
  9697. the candidate.
  9698. .IP "\fBipa-cp-array-index-hint-bonus\fR" 4
  9699. .IX Item "ipa-cp-array-index-hint-bonus"
  9700. When IPA-CP determines that a cloning candidate would make the index of
  9701. an array access known, it adds a bonus of
  9702. \&\fBipa-cp-array-index-hint-bonus\fR to the profitability
  9703. score of the candidate.
  9704. .IP "\fBipa-max-aa-steps\fR" 4
  9705. .IX Item "ipa-max-aa-steps"
  9706. During its analysis of function bodies, IPA-CP employs alias analysis
  9707. in order to track values pointed to by function parameters. In order
  9708. not spend too much time analyzing huge functions, it gives up and
  9709. consider all memory clobbered after examining
  9710. \&\fBipa-max-aa-steps\fR statements modifying memory.
  9711. .IP "\fBlto-partitions\fR" 4
  9712. .IX Item "lto-partitions"
  9713. Specify desired number of partitions produced during \s-1WHOPR\s0 compilation.
  9714. The number of partitions should exceed the number of CPUs used for compilation.
  9715. The default value is 32.
  9716. .IP "\fBlto-min-partition\fR" 4
  9717. .IX Item "lto-min-partition"
  9718. Size of minimal partition for \s-1WHOPR \s0(in estimated instructions).
  9719. This prevents expenses of splitting very small programs into too many
  9720. partitions.
  9721. .IP "\fBlto-max-partition\fR" 4
  9722. .IX Item "lto-max-partition"
  9723. Size of max partition for \s-1WHOPR \s0(in estimated instructions).
  9724. to provide an upper bound for individual size of partition.
  9725. Meant to be used only with balanced partitioning.
  9726. .IP "\fBcxx-max-namespaces-for-diagnostic-help\fR" 4
  9727. .IX Item "cxx-max-namespaces-for-diagnostic-help"
  9728. The maximum number of namespaces to consult for suggestions when \*(C+
  9729. name lookup fails for an identifier. The default is 1000.
  9730. .IP "\fBsink-frequency-threshold\fR" 4
  9731. .IX Item "sink-frequency-threshold"
  9732. The maximum relative execution frequency (in percents) of the target block
  9733. relative to a statement's original block to allow statement sinking of a
  9734. statement. Larger numbers result in more aggressive statement sinking.
  9735. The default value is 75. A small positive adjustment is applied for
  9736. statements with memory operands as those are even more profitable so sink.
  9737. .IP "\fBmax-stores-to-sink\fR" 4
  9738. .IX Item "max-stores-to-sink"
  9739. The maximum number of conditional store pairs that can be sunk. Set to 0
  9740. if either vectorization (\fB\-ftree\-vectorize\fR) or if-conversion
  9741. (\fB\-ftree\-loop\-if\-convert\fR) is disabled. The default is 2.
  9742. .IP "\fBallow-store-data-races\fR" 4
  9743. .IX Item "allow-store-data-races"
  9744. Allow optimizers to introduce new data races on stores.
  9745. Set to 1 to allow, otherwise to 0. This option is enabled by default
  9746. at optimization level \fB\-Ofast\fR.
  9747. .IP "\fBcase-values-threshold\fR" 4
  9748. .IX Item "case-values-threshold"
  9749. The smallest number of different values for which it is best to use a
  9750. jump-table instead of a tree of conditional branches. If the value is
  9751. 0, use the default for the machine. The default is 0.
  9752. .IP "\fBtree-reassoc-width\fR" 4
  9753. .IX Item "tree-reassoc-width"
  9754. Set the maximum number of instructions executed in parallel in
  9755. reassociated tree. This parameter overrides target dependent
  9756. heuristics used by default if has non zero value.
  9757. .IP "\fBsched-pressure-algorithm\fR" 4
  9758. .IX Item "sched-pressure-algorithm"
  9759. Choose between the two available implementations of
  9760. \&\fB\-fsched\-pressure\fR. Algorithm 1 is the original implementation
  9761. and is the more likely to prevent instructions from being reordered.
  9762. Algorithm 2 was designed to be a compromise between the relatively
  9763. conservative approach taken by algorithm 1 and the rather aggressive
  9764. approach taken by the default scheduler. It relies more heavily on
  9765. having a regular register file and accurate register pressure classes.
  9766. See \fIhaifa\-sched.c\fR in the \s-1GCC\s0 sources for more details.
  9767. .Sp
  9768. The default choice depends on the target.
  9769. .IP "\fBmax-slsr-cand-scan\fR" 4
  9770. .IX Item "max-slsr-cand-scan"
  9771. Set the maximum number of existing candidates that are considered when
  9772. seeking a basis for a new straight-line strength reduction candidate.
  9773. .IP "\fBasan-globals\fR" 4
  9774. .IX Item "asan-globals"
  9775. Enable buffer overflow detection for global objects. This kind
  9776. of protection is enabled by default if you are using
  9777. \&\fB\-fsanitize=address\fR option.
  9778. To disable global objects protection use \fB\-\-param asan\-globals=0\fR.
  9779. .IP "\fBasan-stack\fR" 4
  9780. .IX Item "asan-stack"
  9781. Enable buffer overflow detection for stack objects. This kind of
  9782. protection is enabled by default when using \fB\-fsanitize=address\fR.
  9783. To disable stack protection use \fB\-\-param asan\-stack=0\fR option.
  9784. .IP "\fBasan-instrument-reads\fR" 4
  9785. .IX Item "asan-instrument-reads"
  9786. Enable buffer overflow detection for memory reads. This kind of
  9787. protection is enabled by default when using \fB\-fsanitize=address\fR.
  9788. To disable memory reads protection use
  9789. \&\fB\-\-param asan\-instrument\-reads=0\fR.
  9790. .IP "\fBasan-instrument-writes\fR" 4
  9791. .IX Item "asan-instrument-writes"
  9792. Enable buffer overflow detection for memory writes. This kind of
  9793. protection is enabled by default when using \fB\-fsanitize=address\fR.
  9794. To disable memory writes protection use
  9795. \&\fB\-\-param asan\-instrument\-writes=0\fR option.
  9796. .IP "\fBasan-memintrin\fR" 4
  9797. .IX Item "asan-memintrin"
  9798. Enable detection for built-in functions. This kind of protection
  9799. is enabled by default when using \fB\-fsanitize=address\fR.
  9800. To disable built-in functions protection use
  9801. \&\fB\-\-param asan\-memintrin=0\fR.
  9802. .IP "\fBasan-use-after-return\fR" 4
  9803. .IX Item "asan-use-after-return"
  9804. Enable detection of use-after-return. This kind of protection
  9805. is enabled by default when using the \fB\-fsanitize=address\fR option.
  9806. To disable it use \fB\-\-param asan\-use\-after\-return=0\fR.
  9807. .Sp
  9808. Note: By default the check is disabled at run time. To enable it,
  9809. add \f(CW\*(C`detect_stack_use_after_return=1\*(C'\fR to the environment variable
  9810. \&\fB\s-1ASAN_OPTIONS\s0\fR.
  9811. .IP "\fBasan-instrumentation-with-call-threshold\fR" 4
  9812. .IX Item "asan-instrumentation-with-call-threshold"
  9813. If number of memory accesses in function being instrumented
  9814. is greater or equal to this number, use callbacks instead of inline checks.
  9815. E.g. to disable inline code use
  9816. \&\fB\-\-param asan\-instrumentation\-with\-call\-threshold=0\fR.
  9817. .IP "\fBuse-after-scope-direct-emission-threshold\fR" 4
  9818. .IX Item "use-after-scope-direct-emission-threshold"
  9819. If the size of a local variable in bytes is smaller or equal to this
  9820. number, directly poison (or unpoison) shadow memory instead of using
  9821. run-time callbacks. The default value is 256.
  9822. .IP "\fBchkp-max-ctor-size\fR" 4
  9823. .IX Item "chkp-max-ctor-size"
  9824. Static constructors generated by Pointer Bounds Checker may become very
  9825. large and significantly increase compile time at optimization level
  9826. \&\fB\-O1\fR and higher. This parameter is a maximum number of statements
  9827. in a single generated constructor. Default value is 5000.
  9828. .IP "\fBmax-fsm-thread-path-insns\fR" 4
  9829. .IX Item "max-fsm-thread-path-insns"
  9830. Maximum number of instructions to copy when duplicating blocks on a
  9831. finite state automaton jump thread path. The default is 100.
  9832. .IP "\fBmax-fsm-thread-length\fR" 4
  9833. .IX Item "max-fsm-thread-length"
  9834. Maximum number of basic blocks on a finite state automaton jump thread
  9835. path. The default is 10.
  9836. .IP "\fBmax-fsm-thread-paths\fR" 4
  9837. .IX Item "max-fsm-thread-paths"
  9838. Maximum number of new jump thread paths to create for a finite state
  9839. automaton. The default is 50.
  9840. .IP "\fBparloops-chunk-size\fR" 4
  9841. .IX Item "parloops-chunk-size"
  9842. Chunk size of omp schedule for loops parallelized by parloops. The default
  9843. is 0.
  9844. .IP "\fBparloops-schedule\fR" 4
  9845. .IX Item "parloops-schedule"
  9846. Schedule type of omp schedule for loops parallelized by parloops (static,
  9847. dynamic, guided, auto, runtime). The default is static.
  9848. .IP "\fBmax-ssa-name-query-depth\fR" 4
  9849. .IX Item "max-ssa-name-query-depth"
  9850. Maximum depth of recursion when querying properties of \s-1SSA\s0 names in things
  9851. like fold routines. One level of recursion corresponds to following a
  9852. use-def chain.
  9853. .IP "\fBhsa-gen-debug-stores\fR" 4
  9854. .IX Item "hsa-gen-debug-stores"
  9855. Enable emission of special debug stores within \s-1HSA\s0 kernels which are
  9856. then read and reported by libgomp plugin. Generation of these stores
  9857. is disabled by default, use \fB\-\-param hsa\-gen\-debug\-stores=1\fR to
  9858. enable it.
  9859. .IP "\fBmax-speculative-devirt-maydefs\fR" 4
  9860. .IX Item "max-speculative-devirt-maydefs"
  9861. The maximum number of may-defs we analyze when looking for a must-def
  9862. specifying the dynamic type of an object that invokes a virtual call
  9863. we may be able to devirtualize speculatively.
  9864. .IP "\fBmax-vrp-switch-assertions\fR" 4
  9865. .IX Item "max-vrp-switch-assertions"
  9866. The maximum number of assertions to add along the default edge of a switch
  9867. statement during \s-1VRP. \s0 The default is 10.
  9868. .RE
  9869. .RS 4
  9870. .RE
  9871. .SS "Program Instrumentation Options"
  9872. .IX Subsection "Program Instrumentation Options"
  9873. \&\s-1GCC\s0 supports a number of command-line options that control adding
  9874. run-time instrumentation to the code it normally generates.
  9875. For example, one purpose of instrumentation is collect profiling
  9876. statistics for use in finding program hot spots, code coverage
  9877. analysis, or profile-guided optimizations.
  9878. Another class of program instrumentation is adding run-time checking
  9879. to detect programming errors like invalid pointer
  9880. dereferences or out-of-bounds array accesses, as well as deliberately
  9881. hostile attacks such as stack smashing or \*(C+ vtable hijacking.
  9882. There is also a general hook which can be used to implement other
  9883. forms of tracing or function-level instrumentation for debug or
  9884. program analysis purposes.
  9885. .IP "\fB\-p\fR" 4
  9886. .IX Item "-p"
  9887. Generate extra code to write profile information suitable for the
  9888. analysis program \fBprof\fR. You must use this option when compiling
  9889. the source files you want data about, and you must also use it when
  9890. linking.
  9891. .IP "\fB\-pg\fR" 4
  9892. .IX Item "-pg"
  9893. Generate extra code to write profile information suitable for the
  9894. analysis program \fBgprof\fR. You must use this option when compiling
  9895. the source files you want data about, and you must also use it when
  9896. linking.
  9897. .IP "\fB\-fprofile\-arcs\fR" 4
  9898. .IX Item "-fprofile-arcs"
  9899. Add code so that program flow \fIarcs\fR are instrumented. During
  9900. execution the program records how many times each branch and call is
  9901. executed and how many times it is taken or returns. On targets that support
  9902. constructors with priority support, profiling properly handles constructors,
  9903. destructors and \*(C+ constructors (and destructors) of classes which are used
  9904. as a type of a global variable.
  9905. .Sp
  9906. When the compiled
  9907. program exits it saves this data to a file called
  9908. \&\fI\fIauxname\fI.gcda\fR for each source file. The data may be used for
  9909. profile-directed optimizations (\fB\-fbranch\-probabilities\fR), or for
  9910. test coverage analysis (\fB\-ftest\-coverage\fR). Each object file's
  9911. \&\fIauxname\fR is generated from the name of the output file, if
  9912. explicitly specified and it is not the final executable, otherwise it is
  9913. the basename of the source file. In both cases any suffix is removed
  9914. (e.g. \fIfoo.gcda\fR for input file \fIdir/foo.c\fR, or
  9915. \&\fIdir/foo.gcda\fR for output file specified as \fB\-o dir/foo.o\fR).
  9916. .IP "\fB\-\-coverage\fR" 4
  9917. .IX Item "--coverage"
  9918. This option is used to compile and link code instrumented for coverage
  9919. analysis. The option is a synonym for \fB\-fprofile\-arcs\fR
  9920. \&\fB\-ftest\-coverage\fR (when compiling) and \fB\-lgcov\fR (when
  9921. linking). See the documentation for those options for more details.
  9922. .RS 4
  9923. .IP "*" 4
  9924. Compile the source files with \fB\-fprofile\-arcs\fR plus optimization
  9925. and code generation options. For test coverage analysis, use the
  9926. additional \fB\-ftest\-coverage\fR option. You do not need to profile
  9927. every source file in a program.
  9928. .IP "*" 4
  9929. Link your object files with \fB\-lgcov\fR or \fB\-fprofile\-arcs\fR
  9930. (the latter implies the former).
  9931. .IP "*" 4
  9932. Run the program on a representative workload to generate the arc profile
  9933. information. This may be repeated any number of times. You can run
  9934. concurrent instances of your program, and provided that the file system
  9935. supports locking, the data files will be correctly updated. Unless
  9936. a strict \s-1ISO C\s0 dialect option is in effect, \f(CW\*(C`fork\*(C'\fR calls are
  9937. detected and correctly handled without double counting.
  9938. .IP "*" 4
  9939. For profile-directed optimizations, compile the source files again with
  9940. the same optimization and code generation options plus
  9941. \&\fB\-fbranch\-probabilities\fR.
  9942. .IP "*" 4
  9943. For test coverage analysis, use \fBgcov\fR to produce human readable
  9944. information from the \fI.gcno\fR and \fI.gcda\fR files. Refer to the
  9945. \&\fBgcov\fR documentation for further information.
  9946. .RE
  9947. .RS 4
  9948. .Sp
  9949. With \fB\-fprofile\-arcs\fR, for each function of your program \s-1GCC\s0
  9950. creates a program flow graph, then finds a spanning tree for the graph.
  9951. Only arcs that are not on the spanning tree have to be instrumented: the
  9952. compiler adds code to count the number of times that these arcs are
  9953. executed. When an arc is the only exit or only entrance to a block, the
  9954. instrumentation code can be added to the block; otherwise, a new basic
  9955. block must be created to hold the instrumentation code.
  9956. .RE
  9957. .IP "\fB\-ftest\-coverage\fR" 4
  9958. .IX Item "-ftest-coverage"
  9959. Produce a notes file that the \fBgcov\fR code-coverage utility can use to
  9960. show program coverage. Each source file's note file is called
  9961. \&\fI\fIauxname\fI.gcno\fR. Refer to the \fB\-fprofile\-arcs\fR option
  9962. above for a description of \fIauxname\fR and instructions on how to
  9963. generate test coverage data. Coverage data matches the source files
  9964. more closely if you do not optimize.
  9965. .IP "\fB\-fprofile\-dir=\fR\fIpath\fR" 4
  9966. .IX Item "-fprofile-dir=path"
  9967. Set the directory to search for the profile data files in to \fIpath\fR.
  9968. This option affects only the profile data generated by
  9969. \&\fB\-fprofile\-generate\fR, \fB\-ftest\-coverage\fR, \fB\-fprofile\-arcs\fR
  9970. and used by \fB\-fprofile\-use\fR and \fB\-fbranch\-probabilities\fR
  9971. and its related options. Both absolute and relative paths can be used.
  9972. By default, \s-1GCC\s0 uses the current directory as \fIpath\fR, thus the
  9973. profile data file appears in the same directory as the object file.
  9974. .IP "\fB\-fprofile\-generate\fR" 4
  9975. .IX Item "-fprofile-generate"
  9976. .PD 0
  9977. .IP "\fB\-fprofile\-generate=\fR\fIpath\fR" 4
  9978. .IX Item "-fprofile-generate=path"
  9979. .PD
  9980. Enable options usually used for instrumenting application to produce
  9981. profile useful for later recompilation with profile feedback based
  9982. optimization. You must use \fB\-fprofile\-generate\fR both when
  9983. compiling and when linking your program.
  9984. .Sp
  9985. The following options are enabled: \fB\-fprofile\-arcs\fR, \fB\-fprofile\-values\fR, \fB\-fvpt\fR.
  9986. .Sp
  9987. If \fIpath\fR is specified, \s-1GCC\s0 looks at the \fIpath\fR to find
  9988. the profile feedback data files. See \fB\-fprofile\-dir\fR.
  9989. .Sp
  9990. To optimize the program based on the collected profile information, use
  9991. \&\fB\-fprofile\-use\fR.
  9992. .IP "\fB\-fprofile\-update=\fR\fImethod\fR" 4
  9993. .IX Item "-fprofile-update=method"
  9994. Alter the update method for an application instrumented for profile
  9995. feedback based optimization. The \fImethod\fR argument should be one of
  9996. \&\fBsingle\fR, \fBatomic\fR or \fBprefer-atomic\fR.
  9997. The first one is useful for single-threaded applications,
  9998. while the second one prevents profile corruption by emitting thread-safe code.
  9999. .Sp
  10000. \&\fBWarning:\fR When an application does not properly join all threads
  10001. (or creates an detached thread), a profile file can be still corrupted.
  10002. .Sp
  10003. Using \fBprefer-atomic\fR would be transformed either to \fBatomic\fR,
  10004. when supported by a target, or to \fBsingle\fR otherwise. The \s-1GCC\s0 driver
  10005. automatically selects \fBprefer-atomic\fR when \fB\-pthread\fR
  10006. is present in the command line.
  10007. .IP "\fB\-fsanitize=address\fR" 4
  10008. .IX Item "-fsanitize=address"
  10009. Enable AddressSanitizer, a fast memory error detector.
  10010. Memory access instructions are instrumented to detect
  10011. out-of-bounds and use-after-free bugs.
  10012. The option enables \fB\-fsanitize\-address\-use\-after\-scope\fR.
  10013. See <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizer\fR> for
  10014. more details. The run-time behavior can be influenced using the
  10015. \&\fB\s-1ASAN_OPTIONS\s0\fR environment variable. When set to \f(CW\*(C`help=1\*(C'\fR,
  10016. the available options are shown at startup of the instrumented program. See
  10017. <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizerFlags#run\-time\-flags\fR>
  10018. for a list of supported options.
  10019. The option cannot be combined with \fB\-fsanitize=thread\fR
  10020. and/or \fB\-fcheck\-pointer\-bounds\fR.
  10021. .IP "\fB\-fsanitize=kernel\-address\fR" 4
  10022. .IX Item "-fsanitize=kernel-address"
  10023. Enable AddressSanitizer for Linux kernel.
  10024. See <\fBhttps://github.com/google/kasan/wiki\fR> for more details.
  10025. The option cannot be combined with \fB\-fcheck\-pointer\-bounds\fR.
  10026. .IP "\fB\-fsanitize=thread\fR" 4
  10027. .IX Item "-fsanitize=thread"
  10028. Enable ThreadSanitizer, a fast data race detector.
  10029. Memory access instructions are instrumented to detect
  10030. data race bugs. See <\fBhttps://github.com/google/sanitizers/wiki#threadsanitizer\fR> for more
  10031. details. The run-time behavior can be influenced using the \fB\s-1TSAN_OPTIONS\s0\fR
  10032. environment variable; see
  10033. <\fBhttps://github.com/google/sanitizers/wiki/ThreadSanitizerFlags\fR> for a list of
  10034. supported options.
  10035. The option cannot be combined with \fB\-fsanitize=address\fR,
  10036. \&\fB\-fsanitize=leak\fR and/or \fB\-fcheck\-pointer\-bounds\fR.
  10037. .Sp
  10038. Note that sanitized atomic builtins cannot throw exceptions when
  10039. operating on invalid memory addresses with non-call exceptions
  10040. (\fB\-fnon\-call\-exceptions\fR).
  10041. .IP "\fB\-fsanitize=leak\fR" 4
  10042. .IX Item "-fsanitize=leak"
  10043. Enable LeakSanitizer, a memory leak detector.
  10044. This option only matters for linking of executables and
  10045. the executable is linked against a library that overrides \f(CW\*(C`malloc\*(C'\fR
  10046. and other allocator functions. See
  10047. <\fBhttps://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer\fR> for more
  10048. details. The run-time behavior can be influenced using the
  10049. \&\fB\s-1LSAN_OPTIONS\s0\fR environment variable.
  10050. The option cannot be combined with \fB\-fsanitize=thread\fR.
  10051. .IP "\fB\-fsanitize=undefined\fR" 4
  10052. .IX Item "-fsanitize=undefined"
  10053. Enable UndefinedBehaviorSanitizer, a fast undefined behavior detector.
  10054. Various computations are instrumented to detect undefined behavior
  10055. at runtime. Current suboptions are:
  10056. .RS 4
  10057. .IP "\fB\-fsanitize=shift\fR" 4
  10058. .IX Item "-fsanitize=shift"
  10059. This option enables checking that the result of a shift operation is
  10060. not undefined. Note that what exactly is considered undefined differs
  10061. slightly between C and \*(C+, as well as between \s-1ISO C90\s0 and C99, etc.
  10062. This option has two suboptions, \fB\-fsanitize=shift\-base\fR and
  10063. \&\fB\-fsanitize=shift\-exponent\fR.
  10064. .IP "\fB\-fsanitize=shift\-exponent\fR" 4
  10065. .IX Item "-fsanitize=shift-exponent"
  10066. This option enables checking that the second argument of a shift operation
  10067. is not negative and is smaller than the precision of the promoted first
  10068. argument.
  10069. .IP "\fB\-fsanitize=shift\-base\fR" 4
  10070. .IX Item "-fsanitize=shift-base"
  10071. If the second argument of a shift operation is within range, check that the
  10072. result of a shift operation is not undefined. Note that what exactly is
  10073. considered undefined differs slightly between C and \*(C+, as well as between
  10074. \&\s-1ISO C90\s0 and C99, etc.
  10075. .IP "\fB\-fsanitize=integer\-divide\-by\-zero\fR" 4
  10076. .IX Item "-fsanitize=integer-divide-by-zero"
  10077. Detect integer division by zero as well as \f(CW\*(C`INT_MIN / \-1\*(C'\fR division.
  10078. .IP "\fB\-fsanitize=unreachable\fR" 4
  10079. .IX Item "-fsanitize=unreachable"
  10080. With this option, the compiler turns the \f(CW\*(C`_\|_builtin_unreachable\*(C'\fR
  10081. call into a diagnostics message call instead. When reaching the
  10082. \&\f(CW\*(C`_\|_builtin_unreachable\*(C'\fR call, the behavior is undefined.
  10083. .IP "\fB\-fsanitize=vla\-bound\fR" 4
  10084. .IX Item "-fsanitize=vla-bound"
  10085. This option instructs the compiler to check that the size of a variable
  10086. length array is positive.
  10087. .IP "\fB\-fsanitize=null\fR" 4
  10088. .IX Item "-fsanitize=null"
  10089. This option enables pointer checking. Particularly, the application
  10090. built with this option turned on will issue an error message when it
  10091. tries to dereference a \s-1NULL\s0 pointer, or if a reference (possibly an
  10092. rvalue reference) is bound to a \s-1NULL\s0 pointer, or if a method is invoked
  10093. on an object pointed by a \s-1NULL\s0 pointer.
  10094. .IP "\fB\-fsanitize=return\fR" 4
  10095. .IX Item "-fsanitize=return"
  10096. This option enables return statement checking. Programs
  10097. built with this option turned on will issue an error message
  10098. when the end of a non-void function is reached without actually
  10099. returning a value. This option works in \*(C+ only.
  10100. .IP "\fB\-fsanitize=signed\-integer\-overflow\fR" 4
  10101. .IX Item "-fsanitize=signed-integer-overflow"
  10102. This option enables signed integer overflow checking. We check that
  10103. the result of \f(CW\*(C`+\*(C'\fR, \f(CW\*(C`*\*(C'\fR, and both unary and binary \f(CW\*(C`\-\*(C'\fR
  10104. does not overflow in the signed arithmetics. Note, integer promotion
  10105. rules must be taken into account. That is, the following is not an
  10106. overflow:
  10107. .Sp
  10108. .Vb 2
  10109. \& signed char a = SCHAR_MAX;
  10110. \& a++;
  10111. .Ve
  10112. .IP "\fB\-fsanitize=bounds\fR" 4
  10113. .IX Item "-fsanitize=bounds"
  10114. This option enables instrumentation of array bounds. Various out of bounds
  10115. accesses are detected. Flexible array members, flexible array member-like
  10116. arrays, and initializers of variables with static storage are not instrumented.
  10117. The option cannot be combined with \fB\-fcheck\-pointer\-bounds\fR.
  10118. .IP "\fB\-fsanitize=bounds\-strict\fR" 4
  10119. .IX Item "-fsanitize=bounds-strict"
  10120. This option enables strict instrumentation of array bounds. Most out of bounds
  10121. accesses are detected, including flexible array members and flexible array
  10122. member-like arrays. Initializers of variables with static storage are not
  10123. instrumented. The option cannot be combined
  10124. with \fB\-fcheck\-pointer\-bounds\fR.
  10125. .IP "\fB\-fsanitize=alignment\fR" 4
  10126. .IX Item "-fsanitize=alignment"
  10127. This option enables checking of alignment of pointers when they are
  10128. dereferenced, or when a reference is bound to insufficiently aligned target,
  10129. or when a method or constructor is invoked on insufficiently aligned object.
  10130. .IP "\fB\-fsanitize=object\-size\fR" 4
  10131. .IX Item "-fsanitize=object-size"
  10132. This option enables instrumentation of memory references using the
  10133. \&\f(CW\*(C`_\|_builtin_object_size\*(C'\fR function. Various out of bounds pointer
  10134. accesses are detected.
  10135. .IP "\fB\-fsanitize=float\-divide\-by\-zero\fR" 4
  10136. .IX Item "-fsanitize=float-divide-by-zero"
  10137. Detect floating-point division by zero. Unlike other similar options,
  10138. \&\fB\-fsanitize=float\-divide\-by\-zero\fR is not enabled by
  10139. \&\fB\-fsanitize=undefined\fR, since floating-point division by zero can
  10140. be a legitimate way of obtaining infinities and NaNs.
  10141. .IP "\fB\-fsanitize=float\-cast\-overflow\fR" 4
  10142. .IX Item "-fsanitize=float-cast-overflow"
  10143. This option enables floating-point type to integer conversion checking.
  10144. We check that the result of the conversion does not overflow.
  10145. Unlike other similar options, \fB\-fsanitize=float\-cast\-overflow\fR is
  10146. not enabled by \fB\-fsanitize=undefined\fR.
  10147. This option does not work well with \f(CW\*(C`FE_INVALID\*(C'\fR exceptions enabled.
  10148. .IP "\fB\-fsanitize=nonnull\-attribute\fR" 4
  10149. .IX Item "-fsanitize=nonnull-attribute"
  10150. This option enables instrumentation of calls, checking whether null values
  10151. are not passed to arguments marked as requiring a non-null value by the
  10152. \&\f(CW\*(C`nonnull\*(C'\fR function attribute.
  10153. .IP "\fB\-fsanitize=returns\-nonnull\-attribute\fR" 4
  10154. .IX Item "-fsanitize=returns-nonnull-attribute"
  10155. This option enables instrumentation of return statements in functions
  10156. marked with \f(CW\*(C`returns_nonnull\*(C'\fR function attribute, to detect returning
  10157. of null values from such functions.
  10158. .IP "\fB\-fsanitize=bool\fR" 4
  10159. .IX Item "-fsanitize=bool"
  10160. This option enables instrumentation of loads from bool. If a value other
  10161. than 0/1 is loaded, a run-time error is issued.
  10162. .IP "\fB\-fsanitize=enum\fR" 4
  10163. .IX Item "-fsanitize=enum"
  10164. This option enables instrumentation of loads from an enum type. If
  10165. a value outside the range of values for the enum type is loaded,
  10166. a run-time error is issued.
  10167. .IP "\fB\-fsanitize=vptr\fR" 4
  10168. .IX Item "-fsanitize=vptr"
  10169. This option enables instrumentation of \*(C+ member function calls, member
  10170. accesses and some conversions between pointers to base and derived classes,
  10171. to verify the referenced object has the correct dynamic type.
  10172. .RE
  10173. .RS 4
  10174. .Sp
  10175. While \fB\-ftrapv\fR causes traps for signed overflows to be emitted,
  10176. \&\fB\-fsanitize=undefined\fR gives a diagnostic message.
  10177. This currently works only for the C family of languages.
  10178. .RE
  10179. .IP "\fB\-fno\-sanitize=all\fR" 4
  10180. .IX Item "-fno-sanitize=all"
  10181. This option disables all previously enabled sanitizers.
  10182. \&\fB\-fsanitize=all\fR is not allowed, as some sanitizers cannot be used
  10183. together.
  10184. .IP "\fB\-fasan\-shadow\-offset=\fR\fInumber\fR" 4
  10185. .IX Item "-fasan-shadow-offset=number"
  10186. This option forces \s-1GCC\s0 to use custom shadow offset in AddressSanitizer checks.
  10187. It is useful for experimenting with different shadow memory layouts in
  10188. Kernel AddressSanitizer.
  10189. .IP "\fB\-fsanitize\-sections=\fR\fIs1\fR\fB,\fR\fIs2\fR\fB,...\fR" 4
  10190. .IX Item "-fsanitize-sections=s1,s2,..."
  10191. Sanitize global variables in selected user-defined sections. \fIsi\fR may
  10192. contain wildcards.
  10193. .IP "\fB\-fsanitize\-recover\fR[\fB=\fR\fIopts\fR]" 4
  10194. .IX Item "-fsanitize-recover[=opts]"
  10195. \&\fB\-fsanitize\-recover=\fR controls error recovery mode for sanitizers
  10196. mentioned in comma-separated list of \fIopts\fR. Enabling this option
  10197. for a sanitizer component causes it to attempt to continue
  10198. running the program as if no error happened. This means multiple
  10199. runtime errors can be reported in a single program run, and the exit
  10200. code of the program may indicate success even when errors
  10201. have been reported. The \fB\-fno\-sanitize\-recover=\fR option
  10202. can be used to alter
  10203. this behavior: only the first detected error is reported
  10204. and program then exits with a non-zero exit code.
  10205. .Sp
  10206. Currently this feature only works for \fB\-fsanitize=undefined\fR (and its suboptions
  10207. except for \fB\-fsanitize=unreachable\fR and \fB\-fsanitize=return\fR),
  10208. \&\fB\-fsanitize=float\-cast\-overflow\fR, \fB\-fsanitize=float\-divide\-by\-zero\fR,
  10209. \&\fB\-fsanitize=bounds\-strict\fR,
  10210. \&\fB\-fsanitize=kernel\-address\fR and \fB\-fsanitize=address\fR.
  10211. For these sanitizers error recovery is turned on by default,
  10212. except \fB\-fsanitize=address\fR, for which this feature is experimental.
  10213. \&\fB\-fsanitize\-recover=all\fR and \fB\-fno\-sanitize\-recover=all\fR is also
  10214. accepted, the former enables recovery for all sanitizers that support it,
  10215. the latter disables recovery for all sanitizers that support it.
  10216. .Sp
  10217. Even if a recovery mode is turned on the compiler side, it needs to be also
  10218. enabled on the runtime library side, otherwise the failures are still fatal.
  10219. The runtime library defaults to \f(CW\*(C`halt_on_error=0\*(C'\fR for
  10220. ThreadSanitizer and UndefinedBehaviorSanitizer, while default value for
  10221. AddressSanitizer is \f(CW\*(C`halt_on_error=1\*(C'\fR. This can be overridden through
  10222. setting the \f(CW\*(C`halt_on_error\*(C'\fR flag in the corresponding environment variable.
  10223. .Sp
  10224. Syntax without an explicit \fIopts\fR parameter is deprecated. It is
  10225. equivalent to specifying an \fIopts\fR list of:
  10226. .Sp
  10227. .Vb 1
  10228. \& undefined,float\-cast\-overflow,float\-divide\-by\-zero,bounds\-strict
  10229. .Ve
  10230. .IP "\fB\-fsanitize\-address\-use\-after\-scope\fR" 4
  10231. .IX Item "-fsanitize-address-use-after-scope"
  10232. Enable sanitization of local variables to detect use-after-scope bugs.
  10233. The option sets \fB\-fstack\-reuse\fR to \fBnone\fR.
  10234. .IP "\fB\-fsanitize\-undefined\-trap\-on\-error\fR" 4
  10235. .IX Item "-fsanitize-undefined-trap-on-error"
  10236. The \fB\-fsanitize\-undefined\-trap\-on\-error\fR option instructs the compiler to
  10237. report undefined behavior using \f(CW\*(C`_\|_builtin_trap\*(C'\fR rather than
  10238. a \f(CW\*(C`libubsan\*(C'\fR library routine. The advantage of this is that the
  10239. \&\f(CW\*(C`libubsan\*(C'\fR library is not needed and is not linked in, so this
  10240. is usable even in freestanding environments.
  10241. .IP "\fB\-fsanitize\-coverage=trace\-pc\fR" 4
  10242. .IX Item "-fsanitize-coverage=trace-pc"
  10243. Enable coverage-guided fuzzing code instrumentation.
  10244. Inserts a call to \f(CW\*(C`_\|_sanitizer_cov_trace_pc\*(C'\fR into every basic block.
  10245. .IP "\fB\-fbounds\-check\fR" 4
  10246. .IX Item "-fbounds-check"
  10247. For front ends that support it, generate additional code to check that
  10248. indices used to access arrays are within the declared range. This is
  10249. currently only supported by the Fortran front end, where this option
  10250. defaults to false.
  10251. .IP "\fB\-fcheck\-pointer\-bounds\fR" 4
  10252. .IX Item "-fcheck-pointer-bounds"
  10253. Enable Pointer Bounds Checker instrumentation. Each memory reference
  10254. is instrumented with checks of the pointer used for memory access against
  10255. bounds associated with that pointer.
  10256. .Sp
  10257. Currently there
  10258. is only an implementation for Intel \s-1MPX\s0 available, thus x86 GNU/Linux target
  10259. and \fB\-mmpx\fR are required to enable this feature.
  10260. MPX-based instrumentation requires
  10261. a runtime library to enable \s-1MPX\s0 in hardware and handle bounds
  10262. violation signals. By default when \fB\-fcheck\-pointer\-bounds\fR
  10263. and \fB\-mmpx\fR options are used to link a program, the \s-1GCC\s0 driver
  10264. links against the \fIlibmpx\fR and \fIlibmpxwrappers\fR libraries.
  10265. Bounds checking on calls to dynamic libraries requires a linker
  10266. with \fB\-z bndplt\fR support; if \s-1GCC\s0 was configured with a linker
  10267. without support for this option (including the Gold linker and older
  10268. versions of ld), a warning is given if you link with \fB\-mmpx\fR
  10269. without also specifying \fB\-static\fR, since the overall effectiveness
  10270. of the bounds checking protection is reduced.
  10271. See also \fB\-static\-libmpxwrappers\fR.
  10272. .Sp
  10273. MPX-based instrumentation
  10274. may be used for debugging and also may be included in production code
  10275. to increase program security. Depending on usage, you may
  10276. have different requirements for the runtime library. The current version
  10277. of the \s-1MPX\s0 runtime library is more oriented for use as a debugging
  10278. tool. \s-1MPX\s0 runtime library usage implies \fB\-lpthread\fR. See
  10279. also \fB\-static\-libmpx\fR. The runtime library behavior can be
  10280. influenced using various \fBCHKP_RT_*\fR environment variables. See
  10281. <\fBhttps://gcc.gnu.org/wiki/Intel%20MPX%20support%20in%20the%20GCC%20compiler\fR>
  10282. for more details.
  10283. .Sp
  10284. Generated instrumentation may be controlled by various
  10285. \&\fB\-fchkp\-*\fR options and by the \f(CW\*(C`bnd_variable_size\*(C'\fR
  10286. structure field attribute and
  10287. \&\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
  10288. functions for controlling the Pointer Bounds Checker.
  10289. .IP "\fB\-fchkp\-check\-incomplete\-type\fR" 4
  10290. .IX Item "-fchkp-check-incomplete-type"
  10291. Generate pointer bounds checks for variables with incomplete type.
  10292. Enabled by default.
  10293. .IP "\fB\-fchkp\-narrow\-bounds\fR" 4
  10294. .IX Item "-fchkp-narrow-bounds"
  10295. Controls bounds used by Pointer Bounds Checker for pointers to object
  10296. fields. If narrowing is enabled then field bounds are used. Otherwise
  10297. object bounds are used. See also \fB\-fchkp\-narrow\-to\-innermost\-array\fR
  10298. and \fB\-fchkp\-first\-field\-has\-own\-bounds\fR. Enabled by default.
  10299. .IP "\fB\-fchkp\-first\-field\-has\-own\-bounds\fR" 4
  10300. .IX Item "-fchkp-first-field-has-own-bounds"
  10301. Forces Pointer Bounds Checker to use narrowed bounds for the address of the
  10302. first field in the structure. By default a pointer to the first field has
  10303. the same bounds as a pointer to the whole structure.
  10304. .IP "\fB\-fchkp\-flexible\-struct\-trailing\-arrays\fR" 4
  10305. .IX Item "-fchkp-flexible-struct-trailing-arrays"
  10306. Forces Pointer Bounds Checker to treat all trailing arrays in structures as
  10307. possibly flexible. By default only array fields with zero length or that are
  10308. marked with attribute bnd_variable_size are treated as flexible.
  10309. .IP "\fB\-fchkp\-narrow\-to\-innermost\-array\fR" 4
  10310. .IX Item "-fchkp-narrow-to-innermost-array"
  10311. Forces Pointer Bounds Checker to use bounds of the innermost arrays in
  10312. case of nested static array access. By default this option is disabled and
  10313. bounds of the outermost array are used.
  10314. .IP "\fB\-fchkp\-optimize\fR" 4
  10315. .IX Item "-fchkp-optimize"
  10316. Enables Pointer Bounds Checker optimizations. Enabled by default at
  10317. optimization levels \fB\-O\fR, \fB\-O2\fR, \fB\-O3\fR.
  10318. .IP "\fB\-fchkp\-use\-fast\-string\-functions\fR" 4
  10319. .IX Item "-fchkp-use-fast-string-functions"
  10320. Enables use of \f(CW*_nobnd\fR versions of string functions (not copying bounds)
  10321. by Pointer Bounds Checker. Disabled by default.
  10322. .IP "\fB\-fchkp\-use\-nochk\-string\-functions\fR" 4
  10323. .IX Item "-fchkp-use-nochk-string-functions"
  10324. Enables use of \f(CW*_nochk\fR versions of string functions (not checking bounds)
  10325. by Pointer Bounds Checker. Disabled by default.
  10326. .IP "\fB\-fchkp\-use\-static\-bounds\fR" 4
  10327. .IX Item "-fchkp-use-static-bounds"
  10328. Allow Pointer Bounds Checker to generate static bounds holding
  10329. bounds of static variables. Enabled by default.
  10330. .IP "\fB\-fchkp\-use\-static\-const\-bounds\fR" 4
  10331. .IX Item "-fchkp-use-static-const-bounds"
  10332. Use statically-initialized bounds for constant bounds instead of
  10333. generating them each time they are required. By default enabled when
  10334. \&\fB\-fchkp\-use\-static\-bounds\fR is enabled.
  10335. .IP "\fB\-fchkp\-treat\-zero\-dynamic\-size\-as\-infinite\fR" 4
  10336. .IX Item "-fchkp-treat-zero-dynamic-size-as-infinite"
  10337. With this option, objects with incomplete type whose
  10338. dynamically-obtained size is zero are treated as having infinite size
  10339. instead by Pointer Bounds
  10340. Checker. This option may be helpful if a program is linked with a library
  10341. missing size information for some symbols. Disabled by default.
  10342. .IP "\fB\-fchkp\-check\-read\fR" 4
  10343. .IX Item "-fchkp-check-read"
  10344. Instructs Pointer Bounds Checker to generate checks for all read
  10345. accesses to memory. Enabled by default.
  10346. .IP "\fB\-fchkp\-check\-write\fR" 4
  10347. .IX Item "-fchkp-check-write"
  10348. Instructs Pointer Bounds Checker to generate checks for all write
  10349. accesses to memory. Enabled by default.
  10350. .IP "\fB\-fchkp\-store\-bounds\fR" 4
  10351. .IX Item "-fchkp-store-bounds"
  10352. Instructs Pointer Bounds Checker to generate bounds stores for
  10353. pointer writes. Enabled by default.
  10354. .IP "\fB\-fchkp\-instrument\-calls\fR" 4
  10355. .IX Item "-fchkp-instrument-calls"
  10356. Instructs Pointer Bounds Checker to pass pointer bounds to calls.
  10357. Enabled by default.
  10358. .IP "\fB\-fchkp\-instrument\-marked\-only\fR" 4
  10359. .IX Item "-fchkp-instrument-marked-only"
  10360. Instructs Pointer Bounds Checker to instrument only functions
  10361. marked with the \f(CW\*(C`bnd_instrument\*(C'\fR attribute. Disabled by default.
  10362. .IP "\fB\-fchkp\-use\-wrappers\fR" 4
  10363. .IX Item "-fchkp-use-wrappers"
  10364. Allows Pointer Bounds Checker to replace calls to built-in functions
  10365. with calls to wrapper functions. When \fB\-fchkp\-use\-wrappers\fR
  10366. is used to link a program, the \s-1GCC\s0 driver automatically links
  10367. against \fIlibmpxwrappers\fR. See also \fB\-static\-libmpxwrappers\fR.
  10368. Enabled by default.
  10369. .IP "\fB\-fstack\-protector\fR" 4
  10370. .IX Item "-fstack-protector"
  10371. Emit extra code to check for buffer overflows, such as stack smashing
  10372. attacks. This is done by adding a guard variable to functions with
  10373. vulnerable objects. This includes functions that call \f(CW\*(C`alloca\*(C'\fR, and
  10374. functions with buffers larger than 8 bytes. The guards are initialized
  10375. when a function is entered and then checked when the function exits.
  10376. If a guard check fails, an error message is printed and the program exits.
  10377. .IP "\fB\-fstack\-protector\-all\fR" 4
  10378. .IX Item "-fstack-protector-all"
  10379. Like \fB\-fstack\-protector\fR except that all functions are protected.
  10380. .IP "\fB\-fstack\-protector\-strong\fR" 4
  10381. .IX Item "-fstack-protector-strong"
  10382. Like \fB\-fstack\-protector\fR but includes additional functions to
  10383. be protected \-\-\- those that have local array definitions, or have
  10384. references to local frame addresses.
  10385. .IP "\fB\-fstack\-protector\-explicit\fR" 4
  10386. .IX Item "-fstack-protector-explicit"
  10387. Like \fB\-fstack\-protector\fR but only protects those functions which
  10388. have the \f(CW\*(C`stack_protect\*(C'\fR attribute.
  10389. .IP "\fB\-fstack\-check\fR" 4
  10390. .IX Item "-fstack-check"
  10391. Generate code to verify that you do not go beyond the boundary of the
  10392. stack. You should specify this flag if you are running in an
  10393. environment with multiple threads, but you only rarely need to specify it in
  10394. a single-threaded environment since stack overflow is automatically
  10395. detected on nearly all systems if there is only one stack.
  10396. .Sp
  10397. Note that this switch does not actually cause checking to be done; the
  10398. operating system or the language runtime must do that. The switch causes
  10399. generation of code to ensure that they see the stack being extended.
  10400. .Sp
  10401. You can additionally specify a string parameter: \fBno\fR means no
  10402. checking, \fBgeneric\fR means force the use of old-style checking,
  10403. \&\fBspecific\fR means use the best checking method and is equivalent
  10404. to bare \fB\-fstack\-check\fR.
  10405. .Sp
  10406. Old-style checking is a generic mechanism that requires no specific
  10407. target support in the compiler but comes with the following drawbacks:
  10408. .RS 4
  10409. .IP "1." 4
  10410. .IX Item "1."
  10411. Modified allocation strategy for large objects: they are always
  10412. allocated dynamically if their size exceeds a fixed threshold.
  10413. .IP "2." 4
  10414. .IX Item "2."
  10415. Fixed limit on the size of the static frame of functions: when it is
  10416. topped by a particular function, stack checking is not reliable and
  10417. a warning is issued by the compiler.
  10418. .IP "3." 4
  10419. .IX Item "3."
  10420. Inefficiency: because of both the modified allocation strategy and the
  10421. generic implementation, code performance is hampered.
  10422. .RE
  10423. .RS 4
  10424. .Sp
  10425. Note that old-style stack checking is also the fallback method for
  10426. \&\fBspecific\fR if no target support has been added in the compiler.
  10427. .RE
  10428. .IP "\fB\-fstack\-limit\-register=\fR\fIreg\fR" 4
  10429. .IX Item "-fstack-limit-register=reg"
  10430. .PD 0
  10431. .IP "\fB\-fstack\-limit\-symbol=\fR\fIsym\fR" 4
  10432. .IX Item "-fstack-limit-symbol=sym"
  10433. .IP "\fB\-fno\-stack\-limit\fR" 4
  10434. .IX Item "-fno-stack-limit"
  10435. .PD
  10436. Generate code to ensure that the stack does not grow beyond a certain value,
  10437. either the value of a register or the address of a symbol. If a larger
  10438. stack is required, a signal is raised at run time. For most targets,
  10439. the signal is raised before the stack overruns the boundary, so
  10440. it is possible to catch the signal without taking special precautions.
  10441. .Sp
  10442. For instance, if the stack starts at absolute address \fB0x80000000\fR
  10443. and grows downwards, you can use the flags
  10444. \&\fB\-fstack\-limit\-symbol=_\|_stack_limit\fR and
  10445. \&\fB\-Wl,\-\-defsym,_\|_stack_limit=0x7ffe0000\fR to enforce a stack limit
  10446. of 128KB. Note that this may only work with the \s-1GNU\s0 linker.
  10447. .Sp
  10448. You can locally override stack limit checking by using the
  10449. \&\f(CW\*(C`no_stack_limit\*(C'\fR function attribute.
  10450. .IP "\fB\-fsplit\-stack\fR" 4
  10451. .IX Item "-fsplit-stack"
  10452. Generate code to automatically split the stack before it overflows.
  10453. The resulting program has a discontiguous stack which can only
  10454. overflow if the program is unable to allocate any more memory. This
  10455. is most useful when running threaded programs, as it is no longer
  10456. necessary to calculate a good stack size to use for each thread. This
  10457. is currently only implemented for the x86 targets running
  10458. GNU/Linux.
  10459. .Sp
  10460. When code compiled with \fB\-fsplit\-stack\fR calls code compiled
  10461. without \fB\-fsplit\-stack\fR, there may not be much stack space
  10462. available for the latter code to run. If compiling all code,
  10463. including library code, with \fB\-fsplit\-stack\fR is not an option,
  10464. then the linker can fix up these calls so that the code compiled
  10465. without \fB\-fsplit\-stack\fR always has a large stack. Support for
  10466. this is implemented in the gold linker in \s-1GNU\s0 binutils release 2.21
  10467. and later.
  10468. .IP "\fB\-fvtable\-verify=\fR[\fBstd\fR|\fBpreinit\fR|\fBnone\fR]" 4
  10469. .IX Item "-fvtable-verify=[std|preinit|none]"
  10470. This option is only available when compiling \*(C+ code.
  10471. It turns on (or off, if using \fB\-fvtable\-verify=none\fR) the security
  10472. feature that verifies at run time, for every virtual call, that
  10473. the vtable pointer through which the call is made is valid for the type of
  10474. the object, and has not been corrupted or overwritten. If an invalid vtable
  10475. pointer is detected at run time, an error is reported and execution of the
  10476. program is immediately halted.
  10477. .Sp
  10478. This option causes run-time data structures to be built at program startup,
  10479. which are used for verifying the vtable pointers.
  10480. The options \fBstd\fR and \fBpreinit\fR
  10481. control the timing of when these data structures are built. In both cases the
  10482. data structures are built before execution reaches \f(CW\*(C`main\*(C'\fR. Using
  10483. \&\fB\-fvtable\-verify=std\fR causes the data structures to be built after
  10484. shared libraries have been loaded and initialized.
  10485. \&\fB\-fvtable\-verify=preinit\fR causes them to be built before shared
  10486. libraries have been loaded and initialized.
  10487. .Sp
  10488. If this option appears multiple times in the command line with different
  10489. values specified, \fBnone\fR takes highest priority over both \fBstd\fR and
  10490. \&\fBpreinit\fR; \fBpreinit\fR takes priority over \fBstd\fR.
  10491. .IP "\fB\-fvtv\-debug\fR" 4
  10492. .IX Item "-fvtv-debug"
  10493. When used in conjunction with \fB\-fvtable\-verify=std\fR or
  10494. \&\fB\-fvtable\-verify=preinit\fR, causes debug versions of the
  10495. runtime functions for the vtable verification feature to be called.
  10496. This flag also causes the compiler to log information about which
  10497. vtable pointers it finds for each class.
  10498. This information is written to a file named \fIvtv_set_ptr_data.log\fR
  10499. in the directory named by the environment variable \fB\s-1VTV_LOGS_DIR\s0\fR
  10500. if that is defined or the current working directory otherwise.
  10501. .Sp
  10502. Note: This feature \fIappends\fR data to the log file. If you want a fresh log
  10503. file, be sure to delete any existing one.
  10504. .IP "\fB\-fvtv\-counts\fR" 4
  10505. .IX Item "-fvtv-counts"
  10506. This is a debugging flag. When used in conjunction with
  10507. \&\fB\-fvtable\-verify=std\fR or \fB\-fvtable\-verify=preinit\fR, this
  10508. causes the compiler to keep track of the total number of virtual calls
  10509. it encounters and the number of verifications it inserts. It also
  10510. counts the number of calls to certain run-time library functions
  10511. that it inserts and logs this information for each compilation unit.
  10512. The compiler writes this information to a file named
  10513. \&\fIvtv_count_data.log\fR in the directory named by the environment
  10514. variable \fB\s-1VTV_LOGS_DIR\s0\fR if that is defined or the current working
  10515. directory otherwise. It also counts the size of the vtable pointer sets
  10516. for each class, and writes this information to \fIvtv_class_set_sizes.log\fR
  10517. in the same directory.
  10518. .Sp
  10519. Note: This feature \fIappends\fR data to the log files. To get fresh log
  10520. files, be sure to delete any existing ones.
  10521. .IP "\fB\-finstrument\-functions\fR" 4
  10522. .IX Item "-finstrument-functions"
  10523. Generate instrumentation calls for entry and exit to functions. Just
  10524. after function entry and just before function exit, the following
  10525. profiling functions are called with the address of the current
  10526. function and its call site. (On some platforms,
  10527. \&\f(CW\*(C`_\|_builtin_return_address\*(C'\fR does not work beyond the current
  10528. function, so the call site information may not be available to the
  10529. profiling functions otherwise.)
  10530. .Sp
  10531. .Vb 4
  10532. \& void _\|_cyg_profile_func_enter (void *this_fn,
  10533. \& void *call_site);
  10534. \& void _\|_cyg_profile_func_exit (void *this_fn,
  10535. \& void *call_site);
  10536. .Ve
  10537. .Sp
  10538. The first argument is the address of the start of the current function,
  10539. which may be looked up exactly in the symbol table.
  10540. .Sp
  10541. This instrumentation is also done for functions expanded inline in other
  10542. functions. The profiling calls indicate where, conceptually, the
  10543. inline function is entered and exited. This means that addressable
  10544. versions of such functions must be available. If all your uses of a
  10545. function are expanded inline, this may mean an additional expansion of
  10546. code size. If you use \f(CW\*(C`extern inline\*(C'\fR in your C code, an
  10547. addressable version of such functions must be provided. (This is
  10548. normally the case anyway, but if you get lucky and the optimizer always
  10549. expands the functions inline, you might have gotten away without
  10550. providing static copies.)
  10551. .Sp
  10552. A function may be given the attribute \f(CW\*(C`no_instrument_function\*(C'\fR, in
  10553. which case this instrumentation is not done. This can be used, for
  10554. example, for the profiling functions listed above, high-priority
  10555. interrupt routines, and any functions from which the profiling functions
  10556. cannot safely be called (perhaps signal handlers, if the profiling
  10557. routines generate output or allocate memory).
  10558. .IP "\fB\-finstrument\-functions\-exclude\-file\-list=\fR\fIfile\fR\fB,\fR\fIfile\fR\fB,...\fR" 4
  10559. .IX Item "-finstrument-functions-exclude-file-list=file,file,..."
  10560. Set the list of functions that are excluded from instrumentation (see
  10561. the description of \fB\-finstrument\-functions\fR). If the file that
  10562. contains a function definition matches with one of \fIfile\fR, then
  10563. that function is not instrumented. The match is done on substrings:
  10564. if the \fIfile\fR parameter is a substring of the file name, it is
  10565. considered to be a match.
  10566. .Sp
  10567. For example:
  10568. .Sp
  10569. .Vb 1
  10570. \& \-finstrument\-functions\-exclude\-file\-list=/bits/stl,include/sys
  10571. .Ve
  10572. .Sp
  10573. excludes any inline function defined in files whose pathnames
  10574. contain \fI/bits/stl\fR or \fIinclude/sys\fR.
  10575. .Sp
  10576. If, for some reason, you want to include letter \fB,\fR in one of
  10577. \&\fIsym\fR, write \fB,\fR. For example,
  10578. \&\fB\-finstrument\-functions\-exclude\-file\-list=',,tmp'\fR
  10579. (note the single quote surrounding the option).
  10580. .IP "\fB\-finstrument\-functions\-exclude\-function\-list=\fR\fIsym\fR\fB,\fR\fIsym\fR\fB,...\fR" 4
  10581. .IX Item "-finstrument-functions-exclude-function-list=sym,sym,..."
  10582. This is similar to \fB\-finstrument\-functions\-exclude\-file\-list\fR,
  10583. but this option sets the list of function names to be excluded from
  10584. instrumentation. The function name to be matched is its user-visible
  10585. name, such as \f(CW\*(C`vector<int> blah(const vector<int> &)\*(C'\fR, not the
  10586. internal mangled name (e.g., \f(CW\*(C`_Z4blahRSt6vectorIiSaIiEE\*(C'\fR). The
  10587. match is done on substrings: if the \fIsym\fR parameter is a substring
  10588. of the function name, it is considered to be a match. For C99 and \*(C+
  10589. extended identifiers, the function name must be given in \s-1UTF\-8,\s0 not
  10590. using universal character names.
  10591. .SS "Options Controlling the Preprocessor"
  10592. .IX Subsection "Options Controlling the Preprocessor"
  10593. These options control the C preprocessor, which is run on each C source
  10594. file before actual compilation.
  10595. .PP
  10596. If you use the \fB\-E\fR option, nothing is done except preprocessing.
  10597. Some of these options make sense only together with \fB\-E\fR because
  10598. they cause the preprocessor output to be unsuitable for actual
  10599. compilation.
  10600. .PP
  10601. In addition to the options listed here, there are a number of options
  10602. to control search paths for include files documented in
  10603. \&\fBDirectory Options\fR.
  10604. Options to control preprocessor diagnostics are listed in
  10605. \&\fBWarning Options\fR.
  10606. .IP "\fB\-D\fR \fIname\fR" 4
  10607. .IX Item "-D name"
  10608. Predefine \fIname\fR as a macro, with definition \f(CW1\fR.
  10609. .IP "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4
  10610. .IX Item "-D name=definition"
  10611. The contents of \fIdefinition\fR are tokenized and processed as if
  10612. they appeared during translation phase three in a \fB#define\fR
  10613. directive. In particular, the definition is truncated by
  10614. embedded newline characters.
  10615. .Sp
  10616. If you are invoking the preprocessor from a shell or shell-like
  10617. program you may need to use the shell's quoting syntax to protect
  10618. characters such as spaces that have a meaning in the shell syntax.
  10619. .Sp
  10620. If you wish to define a function-like macro on the command line, write
  10621. its argument list with surrounding parentheses before the equals sign
  10622. (if any). Parentheses are meaningful to most shells, so you should
  10623. quote the option. With \fBsh\fR and \fBcsh\fR,
  10624. \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works.
  10625. .Sp
  10626. \&\fB\-D\fR and \fB\-U\fR options are processed in the order they
  10627. are given on the command line. All \fB\-imacros\fR \fIfile\fR and
  10628. \&\fB\-include\fR \fIfile\fR options are processed after all
  10629. \&\fB\-D\fR and \fB\-U\fR options.
  10630. .IP "\fB\-U\fR \fIname\fR" 4
  10631. .IX Item "-U name"
  10632. Cancel any previous definition of \fIname\fR, either built in or
  10633. provided with a \fB\-D\fR option.
  10634. .IP "\fB\-include\fR \fIfile\fR" 4
  10635. .IX Item "-include file"
  10636. Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first
  10637. line of the primary source file. However, the first directory searched
  10638. for \fIfile\fR is the preprocessor's working directory \fIinstead of\fR
  10639. the directory containing the main source file. If not found there, it
  10640. is searched for in the remainder of the \f(CW\*(C`#include "..."\*(C'\fR search
  10641. chain as normal.
  10642. .Sp
  10643. If multiple \fB\-include\fR options are given, the files are included
  10644. in the order they appear on the command line.
  10645. .IP "\fB\-imacros\fR \fIfile\fR" 4
  10646. .IX Item "-imacros file"
  10647. Exactly like \fB\-include\fR, except that any output produced by
  10648. scanning \fIfile\fR is thrown away. Macros it defines remain defined.
  10649. This allows you to acquire all the macros from a header without also
  10650. processing its declarations.
  10651. .Sp
  10652. All files specified by \fB\-imacros\fR are processed before all files
  10653. specified by \fB\-include\fR.
  10654. .IP "\fB\-undef\fR" 4
  10655. .IX Item "-undef"
  10656. Do not predefine any system-specific or GCC-specific macros. The
  10657. standard predefined macros remain defined.
  10658. .IP "\fB\-pthread\fR" 4
  10659. .IX Item "-pthread"
  10660. Define additional macros required for using the \s-1POSIX\s0 threads library.
  10661. You should use this option consistently for both compilation and linking.
  10662. This option is supported on GNU/Linux targets, most other Unix derivatives,
  10663. and also on x86 Cygwin and MinGW targets.
  10664. .IP "\fB\-M\fR" 4
  10665. .IX Item "-M"
  10666. Instead of outputting the result of preprocessing, output a rule
  10667. suitable for \fBmake\fR describing the dependencies of the main
  10668. source file. The preprocessor outputs one \fBmake\fR rule containing
  10669. the object file name for that source file, a colon, and the names of all
  10670. the included files, including those coming from \fB\-include\fR or
  10671. \&\fB\-imacros\fR command-line options.
  10672. .Sp
  10673. Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the
  10674. object file name consists of the name of the source file with any
  10675. suffix replaced with object file suffix and with any leading directory
  10676. parts removed. If there are many included files then the rule is
  10677. split into several lines using \fB\e\fR\-newline. The rule has no
  10678. commands.
  10679. .Sp
  10680. This option does not suppress the preprocessor's debug output, such as
  10681. \&\fB\-dM\fR. To avoid mixing such debug output with the dependency
  10682. rules you should explicitly specify the dependency output file with
  10683. \&\fB\-MF\fR, or use an environment variable like
  10684. \&\fB\s-1DEPENDENCIES_OUTPUT\s0\fR. Debug output
  10685. is still sent to the regular output stream as normal.
  10686. .Sp
  10687. Passing \fB\-M\fR to the driver implies \fB\-E\fR, and suppresses
  10688. warnings with an implicit \fB\-w\fR.
  10689. .IP "\fB\-MM\fR" 4
  10690. .IX Item "-MM"
  10691. Like \fB\-M\fR but do not mention header files that are found in
  10692. system header directories, nor header files that are included,
  10693. directly or indirectly, from such a header.
  10694. .Sp
  10695. This implies that the choice of angle brackets or double quotes in an
  10696. \&\fB#include\fR directive does not in itself determine whether that
  10697. header appears in \fB\-MM\fR dependency output.
  10698. .IP "\fB\-MF\fR \fIfile\fR" 4
  10699. .IX Item "-MF file"
  10700. When used with \fB\-M\fR or \fB\-MM\fR, specifies a
  10701. file to write the dependencies to. If no \fB\-MF\fR switch is given
  10702. the preprocessor sends the rules to the same place it would send
  10703. preprocessed output.
  10704. .Sp
  10705. When used with the driver options \fB\-MD\fR or \fB\-MMD\fR,
  10706. \&\fB\-MF\fR overrides the default dependency output file.
  10707. .IP "\fB\-MG\fR" 4
  10708. .IX Item "-MG"
  10709. In conjunction with an option such as \fB\-M\fR requesting
  10710. dependency generation, \fB\-MG\fR assumes missing header files are
  10711. generated files and adds them to the dependency list without raising
  10712. an error. The dependency filename is taken directly from the
  10713. \&\f(CW\*(C`#include\*(C'\fR directive without prepending any path. \fB\-MG\fR
  10714. also suppresses preprocessed output, as a missing header file renders
  10715. this useless.
  10716. .Sp
  10717. This feature is used in automatic updating of makefiles.
  10718. .IP "\fB\-MP\fR" 4
  10719. .IX Item "-MP"
  10720. This option instructs \s-1CPP\s0 to add a phony target for each dependency
  10721. other than the main file, causing each to depend on nothing. These
  10722. dummy rules work around errors \fBmake\fR gives if you remove header
  10723. files without updating the \fIMakefile\fR to match.
  10724. .Sp
  10725. This is typical output:
  10726. .Sp
  10727. .Vb 1
  10728. \& test.o: test.c test.h
  10729. \&
  10730. \& test.h:
  10731. .Ve
  10732. .IP "\fB\-MT\fR \fItarget\fR" 4
  10733. .IX Item "-MT target"
  10734. Change the target of the rule emitted by dependency generation. By
  10735. default \s-1CPP\s0 takes the name of the main input file, deletes any
  10736. directory components and any file suffix such as \fB.c\fR, and
  10737. appends the platform's usual object suffix. The result is the target.
  10738. .Sp
  10739. An \fB\-MT\fR option sets the target to be exactly the string you
  10740. specify. If you want multiple targets, you can specify them as a single
  10741. argument to \fB\-MT\fR, or use multiple \fB\-MT\fR options.
  10742. .Sp
  10743. For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give
  10744. .Sp
  10745. .Vb 1
  10746. \& $(objpfx)foo.o: foo.c
  10747. .Ve
  10748. .IP "\fB\-MQ\fR \fItarget\fR" 4
  10749. .IX Item "-MQ target"
  10750. Same as \fB\-MT\fR, but it quotes any characters which are special to
  10751. Make. \fB\-MQ\ '$(objpfx)foo.o'\fR gives
  10752. .Sp
  10753. .Vb 1
  10754. \& $$(objpfx)foo.o: foo.c
  10755. .Ve
  10756. .Sp
  10757. The default target is automatically quoted, as if it were given with
  10758. \&\fB\-MQ\fR.
  10759. .IP "\fB\-MD\fR" 4
  10760. .IX Item "-MD"
  10761. \&\fB\-MD\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, except that
  10762. \&\fB\-E\fR is not implied. The driver determines \fIfile\fR based on
  10763. whether an \fB\-o\fR option is given. If it is, the driver uses its
  10764. argument but with a suffix of \fI.d\fR, otherwise it takes the name
  10765. of the input file, removes any directory components and suffix, and
  10766. applies a \fI.d\fR suffix.
  10767. .Sp
  10768. If \fB\-MD\fR is used in conjunction with \fB\-E\fR, any
  10769. \&\fB\-o\fR switch is understood to specify the dependency output file, but if used without \fB\-E\fR, each \fB\-o\fR
  10770. is understood to specify a target object file.
  10771. .Sp
  10772. Since \fB\-E\fR is not implied, \fB\-MD\fR can be used to generate
  10773. a dependency output file as a side-effect of the compilation process.
  10774. .IP "\fB\-MMD\fR" 4
  10775. .IX Item "-MMD"
  10776. Like \fB\-MD\fR except mention only user header files, not system
  10777. header files.
  10778. .IP "\fB\-fpreprocessed\fR" 4
  10779. .IX Item "-fpreprocessed"
  10780. Indicate to the preprocessor that the input file has already been
  10781. preprocessed. This suppresses things like macro expansion, trigraph
  10782. conversion, escaped newline splicing, and processing of most directives.
  10783. The preprocessor still recognizes and removes comments, so that you can
  10784. pass a file preprocessed with \fB\-C\fR to the compiler without
  10785. problems. In this mode the integrated preprocessor is little more than
  10786. a tokenizer for the front ends.
  10787. .Sp
  10788. \&\fB\-fpreprocessed\fR is implicit if the input file has one of the
  10789. extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR. These are the
  10790. extensions that \s-1GCC\s0 uses for preprocessed files created by
  10791. \&\fB\-save\-temps\fR.
  10792. .IP "\fB\-fdirectives\-only\fR" 4
  10793. .IX Item "-fdirectives-only"
  10794. When preprocessing, handle directives, but do not expand macros.
  10795. .Sp
  10796. The option's behavior depends on the \fB\-E\fR and \fB\-fpreprocessed\fR
  10797. options.
  10798. .Sp
  10799. With \fB\-E\fR, preprocessing is limited to the handling of directives
  10800. such as \f(CW\*(C`#define\*(C'\fR, \f(CW\*(C`#ifdef\*(C'\fR, and \f(CW\*(C`#error\*(C'\fR. Other
  10801. preprocessor operations, such as macro expansion and trigraph
  10802. conversion are not performed. In addition, the \fB\-dD\fR option is
  10803. implicitly enabled.
  10804. .Sp
  10805. With \fB\-fpreprocessed\fR, predefinition of command line and most
  10806. builtin macros is disabled. Macros such as \f(CW\*(C`_\|_LINE_\|_\*(C'\fR, which are
  10807. contextually dependent, are handled normally. This enables compilation of
  10808. files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
  10809. .Sp
  10810. With both \fB\-E\fR and \fB\-fpreprocessed\fR, the rules for
  10811. \&\fB\-fpreprocessed\fR take precedence. This enables full preprocessing of
  10812. files previously preprocessed with \f(CW\*(C`\-E \-fdirectives\-only\*(C'\fR.
  10813. .IP "\fB\-fdollars\-in\-identifiers\fR" 4
  10814. .IX Item "-fdollars-in-identifiers"
  10815. Accept \fB$\fR in identifiers.
  10816. .IP "\fB\-fextended\-identifiers\fR" 4
  10817. .IX Item "-fextended-identifiers"
  10818. Accept universal character names in identifiers. This option is
  10819. enabled by default for C99 (and later C standard versions) and \*(C+.
  10820. .IP "\fB\-fno\-canonical\-system\-headers\fR" 4
  10821. .IX Item "-fno-canonical-system-headers"
  10822. When preprocessing, do not shorten system header paths with canonicalization.
  10823. .IP "\fB\-ftabstop=\fR\fIwidth\fR" 4
  10824. .IX Item "-ftabstop=width"
  10825. Set the distance between tab stops. This helps the preprocessor report
  10826. correct column numbers in warnings or errors, even if tabs appear on the
  10827. line. If the value is less than 1 or greater than 100, the option is
  10828. ignored. The default is 8.
  10829. .IP "\fB\-ftrack\-macro\-expansion\fR[\fB=\fR\fIlevel\fR]" 4
  10830. .IX Item "-ftrack-macro-expansion[=level]"
  10831. Track locations of tokens across macro expansions. This allows the
  10832. compiler to emit diagnostic about the current macro expansion stack
  10833. when a compilation error occurs in a macro expansion. Using this
  10834. option makes the preprocessor and the compiler consume more
  10835. memory. The \fIlevel\fR parameter can be used to choose the level of
  10836. precision of token location tracking thus decreasing the memory
  10837. consumption if necessary. Value \fB0\fR of \fIlevel\fR de-activates
  10838. this option. Value \fB1\fR tracks tokens locations in a
  10839. degraded mode for the sake of minimal memory overhead. In this mode
  10840. all tokens resulting from the expansion of an argument of a
  10841. function-like macro have the same location. Value \fB2\fR tracks
  10842. tokens locations completely. This value is the most memory hungry.
  10843. When this option is given no argument, the default parameter value is
  10844. \&\fB2\fR.
  10845. .Sp
  10846. Note that \f(CW\*(C`\-ftrack\-macro\-expansion=2\*(C'\fR is activated by default.
  10847. .IP "\fB\-fexec\-charset=\fR\fIcharset\fR" 4
  10848. .IX Item "-fexec-charset=charset"
  10849. Set the execution character set, used for string and character
  10850. constants. The default is \s-1UTF\-8. \s0\fIcharset\fR can be any encoding
  10851. supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
  10852. .IP "\fB\-fwide\-exec\-charset=\fR\fIcharset\fR" 4
  10853. .IX Item "-fwide-exec-charset=charset"
  10854. Set the wide execution character set, used for wide string and
  10855. character constants. The default is \s-1UTF\-32\s0 or \s-1UTF\-16,\s0 whichever
  10856. corresponds to the width of \f(CW\*(C`wchar_t\*(C'\fR. As with
  10857. \&\fB\-fexec\-charset\fR, \fIcharset\fR can be any encoding supported
  10858. by the system's \f(CW\*(C`iconv\*(C'\fR library routine; however, you will have
  10859. problems with encodings that do not fit exactly in \f(CW\*(C`wchar_t\*(C'\fR.
  10860. .IP "\fB\-finput\-charset=\fR\fIcharset\fR" 4
  10861. .IX Item "-finput-charset=charset"
  10862. Set the input character set, used for translation from the character
  10863. set of the input file to the source character set used by \s-1GCC. \s0 If the
  10864. locale does not specify, or \s-1GCC\s0 cannot get this information from the
  10865. locale, the default is \s-1UTF\-8. \s0 This can be overridden by either the locale
  10866. or this command-line option. Currently the command-line option takes
  10867. precedence if there's a conflict. \fIcharset\fR can be any encoding
  10868. supported by the system's \f(CW\*(C`iconv\*(C'\fR library routine.
  10869. .IP "\fB\-fpch\-deps\fR" 4
  10870. .IX Item "-fpch-deps"
  10871. When using precompiled headers, this flag
  10872. causes the dependency-output flags to also list the files from the
  10873. precompiled header's dependencies. If not specified, only the
  10874. precompiled header are listed and not the files that were used to
  10875. create it, because those files are not consulted when a precompiled
  10876. header is used.
  10877. .IP "\fB\-fpch\-preprocess\fR" 4
  10878. .IX Item "-fpch-preprocess"
  10879. This option allows use of a precompiled header together with \fB\-E\fR. It inserts a special \f(CW\*(C`#pragma\*(C'\fR,
  10880. \&\f(CW\*(C`#pragma GCC pch_preprocess "\f(CIfilename\f(CW"\*(C'\fR in the output to mark
  10881. the place where the precompiled header was found, and its \fIfilename\fR.
  10882. When \fB\-fpreprocessed\fR is in use, \s-1GCC\s0 recognizes this \f(CW\*(C`#pragma\*(C'\fR
  10883. and loads the \s-1PCH.\s0
  10884. .Sp
  10885. This option is off by default, because the resulting preprocessed output
  10886. is only really suitable as input to \s-1GCC. \s0 It is switched on by
  10887. \&\fB\-save\-temps\fR.
  10888. .Sp
  10889. You should not write this \f(CW\*(C`#pragma\*(C'\fR in your own code, but it is
  10890. safe to edit the filename if the \s-1PCH\s0 file is available in a different
  10891. location. The filename may be absolute or it may be relative to \s-1GCC\s0's
  10892. current directory.
  10893. .IP "\fB\-fworking\-directory\fR" 4
  10894. .IX Item "-fworking-directory"
  10895. Enable generation of linemarkers in the preprocessor output that
  10896. let the compiler know the current working directory at the time of
  10897. preprocessing. When this option is enabled, the preprocessor
  10898. emits, after the initial linemarker, a second linemarker with the
  10899. current working directory followed by two slashes. \s-1GCC\s0 uses this
  10900. directory, when it's present in the preprocessed input, as the
  10901. directory emitted as the current working directory in some debugging
  10902. information formats. This option is implicitly enabled if debugging
  10903. information is enabled, but this can be inhibited with the negated
  10904. form \fB\-fno\-working\-directory\fR. If the \fB\-P\fR flag is
  10905. present in the command line, this option has no effect, since no
  10906. \&\f(CW\*(C`#line\*(C'\fR directives are emitted whatsoever.
  10907. .IP "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4
  10908. .IX Item "-A predicate=answer"
  10909. Make an assertion with the predicate \fIpredicate\fR and answer
  10910. \&\fIanswer\fR. This form is preferred to the older form \fB\-A\fR
  10911. \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because
  10912. it does not use shell special characters.
  10913. .IP "\fB\-A \-\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4
  10914. .IX Item "-A -predicate=answer"
  10915. Cancel an assertion with the predicate \fIpredicate\fR and answer
  10916. \&\fIanswer\fR.
  10917. .IP "\fB\-C\fR" 4
  10918. .IX Item "-C"
  10919. Do not discard comments. All comments are passed through to the output
  10920. file, except for comments in processed directives, which are deleted
  10921. along with the directive.
  10922. .Sp
  10923. You should be prepared for side effects when using \fB\-C\fR; it
  10924. causes the preprocessor to treat comments as tokens in their own right.
  10925. For example, comments appearing at the start of what would be a
  10926. directive line have the effect of turning that line into an ordinary
  10927. source line, since the first token on the line is no longer a \fB#\fR.
  10928. .IP "\fB\-CC\fR" 4
  10929. .IX Item "-CC"
  10930. Do not discard comments, including during macro expansion. This is
  10931. like \fB\-C\fR, except that comments contained within macros are
  10932. also passed through to the output file where the macro is expanded.
  10933. .Sp
  10934. In addition to the side-effects of the \fB\-C\fR option, the
  10935. \&\fB\-CC\fR option causes all \*(C+\-style comments inside a macro
  10936. to be converted to C\-style comments. This is to prevent later use
  10937. of that macro from inadvertently commenting out the remainder of
  10938. the source line.
  10939. .Sp
  10940. The \fB\-CC\fR option is generally used to support lint comments.
  10941. .IP "\fB\-P\fR" 4
  10942. .IX Item "-P"
  10943. Inhibit generation of linemarkers in the output from the preprocessor.
  10944. This might be useful when running the preprocessor on something that is
  10945. not C code, and will be sent to a program which might be confused by the
  10946. linemarkers.
  10947. .IP "\fB\-traditional\fR" 4
  10948. .IX Item "-traditional"
  10949. .PD 0
  10950. .IP "\fB\-traditional\-cpp\fR" 4
  10951. .IX Item "-traditional-cpp"
  10952. .PD
  10953. Try to imitate the behavior of pre-standard C preprocessors, as
  10954. opposed to \s-1ISO C\s0 preprocessors.
  10955. See the \s-1GNU CPP\s0 manual for details.
  10956. .Sp
  10957. Note that \s-1GCC\s0 does not otherwise attempt to emulate a pre-standard
  10958. C compiler, and these options are only supported with the \fB\-E\fR
  10959. switch, or when invoking \s-1CPP\s0 explicitly.
  10960. .IP "\fB\-trigraphs\fR" 4
  10961. .IX Item "-trigraphs"
  10962. Support \s-1ISO C\s0 trigraphs.
  10963. These are three-character sequences, all starting with \fB??\fR, that
  10964. are defined by \s-1ISO C\s0 to stand for single characters. For example,
  10965. \&\fB??/\fR stands for \fB\e\fR, so \fB'??/n'\fR is a character
  10966. constant for a newline.
  10967. .Sp
  10968. The nine trigraphs and their replacements are
  10969. .Sp
  10970. .Vb 2
  10971. \& Trigraph: ??( ??) ??< ??> ??= ??/ ??\*(Aq ??! ??\-
  10972. \& Replacement: [ ] { } # \e ^ | ~
  10973. .Ve
  10974. .Sp
  10975. By default, \s-1GCC\s0 ignores trigraphs, but in
  10976. standard-conforming modes it converts them. See the \fB\-std\fR and
  10977. \&\fB\-ansi\fR options.
  10978. .IP "\fB\-remap\fR" 4
  10979. .IX Item "-remap"
  10980. Enable special code to work around file systems which only permit very
  10981. short file names, such as MS-DOS.
  10982. .IP "\fB\-H\fR" 4
  10983. .IX Item "-H"
  10984. Print the name of each header file used, in addition to other normal
  10985. activities. Each name is indented to show how deep in the
  10986. \&\fB#include\fR stack it is. Precompiled header files are also
  10987. printed, even if they are found to be invalid; an invalid precompiled
  10988. header file is printed with \fB...x\fR and a valid one with \fB...!\fR .
  10989. .IP "\fB\-d\fR\fIletters\fR" 4
  10990. .IX Item "-dletters"
  10991. Says to make debugging dumps during compilation as specified by
  10992. \&\fIletters\fR. The flags documented here are those relevant to the
  10993. preprocessor. Other \fIletters\fR are interpreted
  10994. by the compiler proper, or reserved for future versions of \s-1GCC,\s0 and so
  10995. are silently ignored. If you specify \fIletters\fR whose behavior
  10996. conflicts, the result is undefined.
  10997. .RS 4
  10998. .IP "\fB\-dM\fR" 4
  10999. .IX Item "-dM"
  11000. Instead of the normal output, generate a list of \fB#define\fR
  11001. directives for all the macros defined during the execution of the
  11002. preprocessor, including predefined macros. This gives you a way of
  11003. finding out what is predefined in your version of the preprocessor.
  11004. Assuming you have no file \fIfoo.h\fR, the command
  11005. .Sp
  11006. .Vb 1
  11007. \& touch foo.h; cpp \-dM foo.h
  11008. .Ve
  11009. .Sp
  11010. shows all the predefined macros.
  11011. .Sp
  11012. If you use \fB\-dM\fR without the \fB\-E\fR option, \fB\-dM\fR is
  11013. interpreted as a synonym for \fB\-fdump\-rtl\-mach\fR.
  11014. .IP "\fB\-dD\fR" 4
  11015. .IX Item "-dD"
  11016. Like \fB\-dM\fR except in two respects: it does \fInot\fR include the
  11017. predefined macros, and it outputs \fIboth\fR the \fB#define\fR
  11018. directives and the result of preprocessing. Both kinds of output go to
  11019. the standard output file.
  11020. .IP "\fB\-dN\fR" 4
  11021. .IX Item "-dN"
  11022. Like \fB\-dD\fR, but emit only the macro names, not their expansions.
  11023. .IP "\fB\-dI\fR" 4
  11024. .IX Item "-dI"
  11025. Output \fB#include\fR directives in addition to the result of
  11026. preprocessing.
  11027. .IP "\fB\-dU\fR" 4
  11028. .IX Item "-dU"
  11029. Like \fB\-dD\fR except that only macros that are expanded, or whose
  11030. definedness is tested in preprocessor directives, are output; the
  11031. output is delayed until the use or test of the macro; and
  11032. \&\fB#undef\fR directives are also output for macros tested but
  11033. undefined at the time.
  11034. .RE
  11035. .RS 4
  11036. .RE
  11037. .IP "\fB\-fdebug\-cpp\fR" 4
  11038. .IX Item "-fdebug-cpp"
  11039. This option is only useful for debugging \s-1GCC. \s0 When used from \s-1CPP\s0 or with
  11040. \&\fB\-E\fR, it dumps debugging information about location maps. Every
  11041. token in the output is preceded by the dump of the map its location
  11042. belongs to.
  11043. .Sp
  11044. When used from \s-1GCC\s0 without \fB\-E\fR, this option has no effect.
  11045. .IP "\fB\-Wp,\fR\fIoption\fR" 4
  11046. .IX Item "-Wp,option"
  11047. You can use \fB\-Wp,\fR\fIoption\fR to bypass the compiler driver
  11048. and pass \fIoption\fR directly through to the preprocessor. If
  11049. \&\fIoption\fR contains commas, it is split into multiple options at the
  11050. commas. However, many options are modified, translated or interpreted
  11051. by the compiler driver before being passed to the preprocessor, and
  11052. \&\fB\-Wp\fR forcibly bypasses this phase. The preprocessor's direct
  11053. interface is undocumented and subject to change, so whenever possible
  11054. you should avoid using \fB\-Wp\fR and let the driver handle the
  11055. options instead.
  11056. .IP "\fB\-Xpreprocessor\fR \fIoption\fR" 4
  11057. .IX Item "-Xpreprocessor option"
  11058. Pass \fIoption\fR as an option to the preprocessor. You can use this to
  11059. supply system-specific preprocessor options that \s-1GCC\s0 does not
  11060. recognize.
  11061. .Sp
  11062. If you want to pass an option that takes an argument, you must use
  11063. \&\fB\-Xpreprocessor\fR twice, once for the option and once for the argument.
  11064. .IP "\fB\-no\-integrated\-cpp\fR" 4
  11065. .IX Item "-no-integrated-cpp"
  11066. Perform preprocessing as a separate pass before compilation.
  11067. By default, \s-1GCC\s0 performs preprocessing as an integrated part of
  11068. input tokenization and parsing.
  11069. If this option is provided, the appropriate language front end
  11070. (\fBcc1\fR, \fBcc1plus\fR, or \fBcc1obj\fR for C, \*(C+,
  11071. and Objective-C, respectively) is instead invoked twice,
  11072. once for preprocessing only and once for actual compilation
  11073. of the preprocessed input.
  11074. This option may be useful in conjunction with the \fB\-B\fR or
  11075. \&\fB\-wrapper\fR options to specify an alternate preprocessor or
  11076. perform additional processing of the program source between
  11077. normal preprocessing and compilation.
  11078. .SS "Passing Options to the Assembler"
  11079. .IX Subsection "Passing Options to the Assembler"
  11080. You can pass options to the assembler.
  11081. .IP "\fB\-Wa,\fR\fIoption\fR" 4
  11082. .IX Item "-Wa,option"
  11083. Pass \fIoption\fR as an option to the assembler. If \fIoption\fR
  11084. contains commas, it is split into multiple options at the commas.
  11085. .IP "\fB\-Xassembler\fR \fIoption\fR" 4
  11086. .IX Item "-Xassembler option"
  11087. Pass \fIoption\fR as an option to the assembler. You can use this to
  11088. supply system-specific assembler options that \s-1GCC\s0 does not
  11089. recognize.
  11090. .Sp
  11091. If you want to pass an option that takes an argument, you must use
  11092. \&\fB\-Xassembler\fR twice, once for the option and once for the argument.
  11093. .SS "Options for Linking"
  11094. .IX Subsection "Options for Linking"
  11095. These options come into play when the compiler links object files into
  11096. an executable output file. They are meaningless if the compiler is
  11097. not doing a link step.
  11098. .IP "\fIobject-file-name\fR" 4
  11099. .IX Item "object-file-name"
  11100. A file name that does not end in a special recognized suffix is
  11101. considered to name an object file or library. (Object files are
  11102. distinguished from libraries by the linker according to the file
  11103. contents.) If linking is done, these object files are used as input
  11104. to the linker.
  11105. .IP "\fB\-c\fR" 4
  11106. .IX Item "-c"
  11107. .PD 0
  11108. .IP "\fB\-S\fR" 4
  11109. .IX Item "-S"
  11110. .IP "\fB\-E\fR" 4
  11111. .IX Item "-E"
  11112. .PD
  11113. If any of these options is used, then the linker is not run, and
  11114. object file names should not be used as arguments.
  11115. .IP "\fB\-fuse\-ld=bfd\fR" 4
  11116. .IX Item "-fuse-ld=bfd"
  11117. Use the \fBbfd\fR linker instead of the default linker.
  11118. .IP "\fB\-fuse\-ld=gold\fR" 4
  11119. .IX Item "-fuse-ld=gold"
  11120. Use the \fBgold\fR linker instead of the default linker.
  11121. .IP "\fB\-l\fR\fIlibrary\fR" 4
  11122. .IX Item "-llibrary"
  11123. .PD 0
  11124. .IP "\fB\-l\fR \fIlibrary\fR" 4
  11125. .IX Item "-l library"
  11126. .PD
  11127. Search the library named \fIlibrary\fR when linking. (The second
  11128. alternative with the library as a separate argument is only for
  11129. \&\s-1POSIX\s0 compliance and is not recommended.)
  11130. .Sp
  11131. It makes a difference where in the command you write this option; the
  11132. linker searches and processes libraries and object files in the order they
  11133. are specified. Thus, \fBfoo.o \-lz bar.o\fR searches library \fBz\fR
  11134. after file \fIfoo.o\fR but before \fIbar.o\fR. If \fIbar.o\fR refers
  11135. to functions in \fBz\fR, those functions may not be loaded.
  11136. .Sp
  11137. The linker searches a standard list of directories for the library,
  11138. which is actually a file named \fIlib\fIlibrary\fI.a\fR. The linker
  11139. then uses this file as if it had been specified precisely by name.
  11140. .Sp
  11141. The directories searched include several standard system directories
  11142. plus any that you specify with \fB\-L\fR.
  11143. .Sp
  11144. Normally the files found this way are library files\-\-\-archive files
  11145. whose members are object files. The linker handles an archive file by
  11146. scanning through it for members which define symbols that have so far
  11147. been referenced but not defined. But if the file that is found is an
  11148. ordinary object file, it is linked in the usual fashion. The only
  11149. difference between using an \fB\-l\fR option and specifying a file name
  11150. is that \fB\-l\fR surrounds \fIlibrary\fR with \fBlib\fR and \fB.a\fR
  11151. and searches several directories.
  11152. .IP "\fB\-lobjc\fR" 4
  11153. .IX Item "-lobjc"
  11154. You need this special case of the \fB\-l\fR option in order to
  11155. link an Objective-C or Objective\-\*(C+ program.
  11156. .IP "\fB\-nostartfiles\fR" 4
  11157. .IX Item "-nostartfiles"
  11158. Do not use the standard system startup files when linking.
  11159. The standard system libraries are used normally, unless \fB\-nostdlib\fR
  11160. or \fB\-nodefaultlibs\fR is used.
  11161. .IP "\fB\-nodefaultlibs\fR" 4
  11162. .IX Item "-nodefaultlibs"
  11163. Do not use the standard system libraries when linking.
  11164. Only the libraries you specify are passed to the linker, and options
  11165. specifying linkage of the system libraries, such as \fB\-static\-libgcc\fR
  11166. or \fB\-shared\-libgcc\fR, are ignored.
  11167. The standard startup files are used normally, unless \fB\-nostartfiles\fR
  11168. is used.
  11169. .Sp
  11170. The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR,
  11171. \&\f(CW\*(C`memset\*(C'\fR, \f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
  11172. These entries are usually resolved by entries in
  11173. libc. These entry points should be supplied through some other
  11174. mechanism when this option is specified.
  11175. .IP "\fB\-nostdlib\fR" 4
  11176. .IX Item "-nostdlib"
  11177. Do not use the standard system startup files or libraries when linking.
  11178. No startup files and only the libraries you specify are passed to
  11179. the linker, and options specifying linkage of the system libraries, such as
  11180. \&\fB\-static\-libgcc\fR or \fB\-shared\-libgcc\fR, are ignored.
  11181. .Sp
  11182. The compiler may generate calls to \f(CW\*(C`memcmp\*(C'\fR, \f(CW\*(C`memset\*(C'\fR,
  11183. \&\f(CW\*(C`memcpy\*(C'\fR and \f(CW\*(C`memmove\*(C'\fR.
  11184. These entries are usually resolved by entries in
  11185. libc. These entry points should be supplied through some other
  11186. mechanism when this option is specified.
  11187. .Sp
  11188. One of the standard libraries bypassed by \fB\-nostdlib\fR and
  11189. \&\fB\-nodefaultlibs\fR is \fIlibgcc.a\fR, a library of internal subroutines
  11190. which \s-1GCC\s0 uses to overcome shortcomings of particular machines, or special
  11191. needs for some languages.
  11192. .Sp
  11193. In most cases, you need \fIlibgcc.a\fR even when you want to avoid
  11194. other standard libraries. In other words, when you specify \fB\-nostdlib\fR
  11195. or \fB\-nodefaultlibs\fR you should usually specify \fB\-lgcc\fR as well.
  11196. This ensures that you have no unresolved references to internal \s-1GCC\s0
  11197. library subroutines.
  11198. (An example of such an internal subroutine is \f(CW\*(C`_\|_main\*(C'\fR, used to ensure \*(C+
  11199. constructors are called.)
  11200. .IP "\fB\-pie\fR" 4
  11201. .IX Item "-pie"
  11202. Produce a position independent executable on targets that support it.
  11203. For predictable results, you must also specify the same set of options
  11204. used for compilation (\fB\-fpie\fR, \fB\-fPIE\fR,
  11205. or model suboptions) when you specify this linker option.
  11206. .IP "\fB\-no\-pie\fR" 4
  11207. .IX Item "-no-pie"
  11208. Don't produce a position independent executable.
  11209. .IP "\fB\-pthread\fR" 4
  11210. .IX Item "-pthread"
  11211. Link with the \s-1POSIX\s0 threads library. This option is supported on
  11212. GNU/Linux targets, most other Unix derivatives, and also on
  11213. x86 Cygwin and MinGW targets. On some targets this option also sets
  11214. flags for the preprocessor, so it should be used consistently for both
  11215. compilation and linking.
  11216. .IP "\fB\-rdynamic\fR" 4
  11217. .IX Item "-rdynamic"
  11218. Pass the flag \fB\-export\-dynamic\fR to the \s-1ELF\s0 linker, on targets
  11219. that support it. This instructs the linker to add all symbols, not
  11220. only used ones, to the dynamic symbol table. This option is needed
  11221. for some uses of \f(CW\*(C`dlopen\*(C'\fR or to allow obtaining backtraces
  11222. from within a program.
  11223. .IP "\fB\-s\fR" 4
  11224. .IX Item "-s"
  11225. Remove all symbol table and relocation information from the executable.
  11226. .IP "\fB\-static\fR" 4
  11227. .IX Item "-static"
  11228. On systems that support dynamic linking, this prevents linking with the shared
  11229. libraries. On other systems, this option has no effect.
  11230. .IP "\fB\-shared\fR" 4
  11231. .IX Item "-shared"
  11232. Produce a shared object which can then be linked with other objects to
  11233. form an executable. Not all systems support this option. For predictable
  11234. results, you must also specify the same set of options used for compilation
  11235. (\fB\-fpic\fR, \fB\-fPIC\fR, or model suboptions) when
  11236. you specify this linker option.[1]
  11237. .IP "\fB\-shared\-libgcc\fR" 4
  11238. .IX Item "-shared-libgcc"
  11239. .PD 0
  11240. .IP "\fB\-static\-libgcc\fR" 4
  11241. .IX Item "-static-libgcc"
  11242. .PD
  11243. On systems that provide \fIlibgcc\fR as a shared library, these options
  11244. force the use of either the shared or static version, respectively.
  11245. If no shared version of \fIlibgcc\fR was built when the compiler was
  11246. configured, these options have no effect.
  11247. .Sp
  11248. There are several situations in which an application should use the
  11249. shared \fIlibgcc\fR instead of the static version. The most common
  11250. of these is when the application wishes to throw and catch exceptions
  11251. across different shared libraries. In that case, each of the libraries
  11252. as well as the application itself should use the shared \fIlibgcc\fR.
  11253. .Sp
  11254. Therefore, the G++ driver automatically adds \fB\-shared\-libgcc\fR
  11255. whenever you build a shared library or a main executable, because \*(C+
  11256. programs typically use exceptions, so this is the right thing to do.
  11257. .Sp
  11258. If, instead, you use the \s-1GCC\s0 driver to create shared libraries, you may
  11259. find that they are not always linked with the shared \fIlibgcc\fR.
  11260. If \s-1GCC\s0 finds, at its configuration time, that you have a non-GNU linker
  11261. or a \s-1GNU\s0 linker that does not support option \fB\-\-eh\-frame\-hdr\fR,
  11262. it links the shared version of \fIlibgcc\fR into shared libraries
  11263. by default. Otherwise, it takes advantage of the linker and optimizes
  11264. away the linking with the shared version of \fIlibgcc\fR, linking with
  11265. the static version of libgcc by default. This allows exceptions to
  11266. propagate through such shared libraries, without incurring relocation
  11267. costs at library load time.
  11268. .Sp
  11269. However, if a library or main executable is supposed to throw or catch
  11270. exceptions, you must link it using the G++ driver, or using the option
  11271. \&\fB\-shared\-libgcc\fR, such that it is linked with the shared
  11272. \&\fIlibgcc\fR.
  11273. .IP "\fB\-static\-libasan\fR" 4
  11274. .IX Item "-static-libasan"
  11275. When the \fB\-fsanitize=address\fR option is used to link a program,
  11276. the \s-1GCC\s0 driver automatically links against \fBlibasan\fR. If
  11277. \&\fIlibasan\fR is available as a shared library, and the \fB\-static\fR
  11278. option is not used, then this links against the shared version of
  11279. \&\fIlibasan\fR. The \fB\-static\-libasan\fR option directs the \s-1GCC\s0
  11280. driver to link \fIlibasan\fR statically, without necessarily linking
  11281. other libraries statically.
  11282. .IP "\fB\-static\-libtsan\fR" 4
  11283. .IX Item "-static-libtsan"
  11284. When the \fB\-fsanitize=thread\fR option is used to link a program,
  11285. the \s-1GCC\s0 driver automatically links against \fBlibtsan\fR. If
  11286. \&\fIlibtsan\fR is available as a shared library, and the \fB\-static\fR
  11287. option is not used, then this links against the shared version of
  11288. \&\fIlibtsan\fR. The \fB\-static\-libtsan\fR option directs the \s-1GCC\s0
  11289. driver to link \fIlibtsan\fR statically, without necessarily linking
  11290. other libraries statically.
  11291. .IP "\fB\-static\-liblsan\fR" 4
  11292. .IX Item "-static-liblsan"
  11293. When the \fB\-fsanitize=leak\fR option is used to link a program,
  11294. the \s-1GCC\s0 driver automatically links against \fBliblsan\fR. If
  11295. \&\fIliblsan\fR is available as a shared library, and the \fB\-static\fR
  11296. option is not used, then this links against the shared version of
  11297. \&\fIliblsan\fR. The \fB\-static\-liblsan\fR option directs the \s-1GCC\s0
  11298. driver to link \fIliblsan\fR statically, without necessarily linking
  11299. other libraries statically.
  11300. .IP "\fB\-static\-libubsan\fR" 4
  11301. .IX Item "-static-libubsan"
  11302. When the \fB\-fsanitize=undefined\fR option is used to link a program,
  11303. the \s-1GCC\s0 driver automatically links against \fBlibubsan\fR. If
  11304. \&\fIlibubsan\fR is available as a shared library, and the \fB\-static\fR
  11305. option is not used, then this links against the shared version of
  11306. \&\fIlibubsan\fR. The \fB\-static\-libubsan\fR option directs the \s-1GCC\s0
  11307. driver to link \fIlibubsan\fR statically, without necessarily linking
  11308. other libraries statically.
  11309. .IP "\fB\-static\-libmpx\fR" 4
  11310. .IX Item "-static-libmpx"
  11311. When the \fB\-fcheck\-pointer bounds\fR and \fB\-mmpx\fR options are
  11312. used to link a program, the \s-1GCC\s0 driver automatically links against
  11313. \&\fIlibmpx\fR. If \fIlibmpx\fR is available as a shared library,
  11314. and the \fB\-static\fR option is not used, then this links against
  11315. the shared version of \fIlibmpx\fR. The \fB\-static\-libmpx\fR
  11316. option directs the \s-1GCC\s0 driver to link \fIlibmpx\fR statically,
  11317. without necessarily linking other libraries statically.
  11318. .IP "\fB\-static\-libmpxwrappers\fR" 4
  11319. .IX Item "-static-libmpxwrappers"
  11320. When the \fB\-fcheck\-pointer bounds\fR and \fB\-mmpx\fR options are used
  11321. to link a program without also using \fB\-fno\-chkp\-use\-wrappers\fR, the
  11322. \&\s-1GCC\s0 driver automatically links against \fIlibmpxwrappers\fR. If
  11323. \&\fIlibmpxwrappers\fR is available as a shared library, and the
  11324. \&\fB\-static\fR option is not used, then this links against the shared
  11325. version of \fIlibmpxwrappers\fR. The \fB\-static\-libmpxwrappers\fR
  11326. option directs the \s-1GCC\s0 driver to link \fIlibmpxwrappers\fR statically,
  11327. without necessarily linking other libraries statically.
  11328. .IP "\fB\-static\-libstdc++\fR" 4
  11329. .IX Item "-static-libstdc++"
  11330. When the \fBg++\fR program is used to link a \*(C+ program, it
  11331. normally automatically links against \fBlibstdc++\fR. If
  11332. \&\fIlibstdc++\fR is available as a shared library, and the
  11333. \&\fB\-static\fR option is not used, then this links against the
  11334. shared version of \fIlibstdc++\fR. That is normally fine. However, it
  11335. is sometimes useful to freeze the version of \fIlibstdc++\fR used by
  11336. the program without going all the way to a fully static link. The
  11337. \&\fB\-static\-libstdc++\fR option directs the \fBg++\fR driver to
  11338. link \fIlibstdc++\fR statically, without necessarily linking other
  11339. libraries statically.
  11340. .IP "\fB\-symbolic\fR" 4
  11341. .IX Item "-symbolic"
  11342. Bind references to global symbols when building a shared object. Warn
  11343. about any unresolved references (unless overridden by the link editor
  11344. option \fB\-Xlinker \-z \-Xlinker defs\fR). Only a few systems support
  11345. this option.
  11346. .IP "\fB\-T\fR \fIscript\fR" 4
  11347. .IX Item "-T script"
  11348. Use \fIscript\fR as the linker script. This option is supported by most
  11349. systems using the \s-1GNU\s0 linker. On some targets, such as bare-board
  11350. targets without an operating system, the \fB\-T\fR option may be required
  11351. when linking to avoid references to undefined symbols.
  11352. .IP "\fB\-Xlinker\fR \fIoption\fR" 4
  11353. .IX Item "-Xlinker option"
  11354. Pass \fIoption\fR as an option to the linker. You can use this to
  11355. supply system-specific linker options that \s-1GCC\s0 does not recognize.
  11356. .Sp
  11357. If you want to pass an option that takes a separate argument, you must use
  11358. \&\fB\-Xlinker\fR twice, once for the option and once for the argument.
  11359. For example, to pass \fB\-assert definitions\fR, you must write
  11360. \&\fB\-Xlinker \-assert \-Xlinker definitions\fR. It does not work to write
  11361. \&\fB\-Xlinker \*(L"\-assert definitions\*(R"\fR, because this passes the entire
  11362. string as a single argument, which is not what the linker expects.
  11363. .Sp
  11364. When using the \s-1GNU\s0 linker, it is usually more convenient to pass
  11365. arguments to linker options using the \fIoption\fR\fB=\fR\fIvalue\fR
  11366. syntax than as separate arguments. For example, you can specify
  11367. \&\fB\-Xlinker \-Map=output.map\fR rather than
  11368. \&\fB\-Xlinker \-Map \-Xlinker output.map\fR. Other linkers may not support
  11369. this syntax for command-line options.
  11370. .IP "\fB\-Wl,\fR\fIoption\fR" 4
  11371. .IX Item "-Wl,option"
  11372. Pass \fIoption\fR as an option to the linker. If \fIoption\fR contains
  11373. commas, it is split into multiple options at the commas. You can use this
  11374. syntax to pass an argument to the option.
  11375. For example, \fB\-Wl,\-Map,output.map\fR passes \fB\-Map output.map\fR to the
  11376. linker. When using the \s-1GNU\s0 linker, you can also get the same effect with
  11377. \&\fB\-Wl,\-Map=output.map\fR.
  11378. .IP "\fB\-u\fR \fIsymbol\fR" 4
  11379. .IX Item "-u symbol"
  11380. Pretend the symbol \fIsymbol\fR is undefined, to force linking of
  11381. library modules to define it. You can use \fB\-u\fR multiple times with
  11382. different symbols to force loading of additional library modules.
  11383. .IP "\fB\-z\fR \fIkeyword\fR" 4
  11384. .IX Item "-z keyword"
  11385. \&\fB\-z\fR is passed directly on to the linker along with the keyword
  11386. \&\fIkeyword\fR. See the section in the documentation of your linker for
  11387. permitted values and their meanings.
  11388. .SS "Options for Directory Search"
  11389. .IX Subsection "Options for Directory Search"
  11390. These options specify directories to search for header files, for
  11391. libraries and for parts of the compiler:
  11392. .IP "\fB\-I\fR \fIdir\fR" 4
  11393. .IX Item "-I dir"
  11394. .PD 0
  11395. .IP "\fB\-iquote\fR \fIdir\fR" 4
  11396. .IX Item "-iquote dir"
  11397. .IP "\fB\-isystem\fR \fIdir\fR" 4
  11398. .IX Item "-isystem dir"
  11399. .IP "\fB\-idirafter\fR \fIdir\fR" 4
  11400. .IX Item "-idirafter dir"
  11401. .PD
  11402. Add the directory \fIdir\fR to the list of directories to be searched
  11403. for header files during preprocessing.
  11404. If \fIdir\fR begins with \fB=\fR, then the \fB=\fR is replaced
  11405. by the sysroot prefix; see \fB\-\-sysroot\fR and \fB\-isysroot\fR.
  11406. .Sp
  11407. Directories specified with \fB\-iquote\fR apply only to the quote
  11408. form of the directive, \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR.
  11409. Directories specified with \fB\-I\fR, \fB\-isystem\fR,
  11410. or \fB\-idirafter\fR apply to lookup for both the
  11411. \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR and
  11412. \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR directives.
  11413. .Sp
  11414. You can specify any number or combination of these options on the
  11415. command line to search for header files in several directories.
  11416. The lookup order is as follows:
  11417. .RS 4
  11418. .IP "1." 4
  11419. .IX Item "1."
  11420. For the quote form of the include directive, the directory of the current
  11421. file is searched first.
  11422. .IP "2." 4
  11423. .IX Item "2."
  11424. For the quote form of the include directive, the directories specified
  11425. by \fB\-iquote\fR options are searched in left-to-right order,
  11426. as they appear on the command line.
  11427. .IP "3." 4
  11428. .IX Item "3."
  11429. Directories specified with \fB\-I\fR options are scanned in
  11430. left-to-right order.
  11431. .IP "4." 4
  11432. .IX Item "4."
  11433. Directories specified with \fB\-isystem\fR options are scanned in
  11434. left-to-right order.
  11435. .IP "5." 4
  11436. .IX Item "5."
  11437. Standard system directories are scanned.
  11438. .IP "6." 4
  11439. .IX Item "6."
  11440. Directories specified with \fB\-idirafter\fR options are scanned in
  11441. left-to-right order.
  11442. .RE
  11443. .RS 4
  11444. .Sp
  11445. You can use \fB\-I\fR to override a system header
  11446. file, substituting your own version, since these directories are
  11447. searched before the standard system header file directories.
  11448. However, you should
  11449. not use this option to add directories that contain vendor-supplied
  11450. system header files; use \fB\-isystem\fR for that.
  11451. .Sp
  11452. The \fB\-isystem\fR and \fB\-idirafter\fR options also mark the directory
  11453. as a system directory, so that it gets the same special treatment that
  11454. is applied to the standard system directories.
  11455. .Sp
  11456. If a standard system include directory, or a directory specified with
  11457. \&\fB\-isystem\fR, is also specified with \fB\-I\fR, the \fB\-I\fR
  11458. option is ignored. The directory is still searched but as a
  11459. system directory at its normal position in the system include chain.
  11460. This is to ensure that \s-1GCC\s0's procedure to fix buggy system headers and
  11461. the ordering for the \f(CW\*(C`#include_next\*(C'\fR directive are not inadvertently
  11462. changed.
  11463. If you really need to change the search order for system directories,
  11464. use the \fB\-nostdinc\fR and/or \fB\-isystem\fR options.
  11465. .RE
  11466. .IP "\fB\-I\-\fR" 4
  11467. .IX Item "-I-"
  11468. Split the include path.
  11469. This option has been deprecated. Please use \fB\-iquote\fR instead for
  11470. \&\fB\-I\fR directories before the \fB\-I\-\fR and remove the \fB\-I\-\fR
  11471. option.
  11472. .Sp
  11473. Any directories specified with \fB\-I\fR
  11474. options before \fB\-I\-\fR are searched only for headers requested with
  11475. \&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for
  11476. \&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR. If additional directories are
  11477. specified with \fB\-I\fR options after the \fB\-I\-\fR, those
  11478. directories are searched for all \fB#include\fR directives.
  11479. .Sp
  11480. In addition, \fB\-I\-\fR inhibits the use of the directory of the current
  11481. 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.
  11482. .IP "\fB\-iprefix\fR \fIprefix\fR" 4
  11483. .IX Item "-iprefix prefix"
  11484. Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR
  11485. options. If the prefix represents a directory, you should include the
  11486. final \fB/\fR.
  11487. .IP "\fB\-iwithprefix\fR \fIdir\fR" 4
  11488. .IX Item "-iwithprefix dir"
  11489. .PD 0
  11490. .IP "\fB\-iwithprefixbefore\fR \fIdir\fR" 4
  11491. .IX Item "-iwithprefixbefore dir"
  11492. .PD
  11493. Append \fIdir\fR to the prefix specified previously with
  11494. \&\fB\-iprefix\fR, and add the resulting directory to the include search
  11495. path. \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR
  11496. would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would.
  11497. .IP "\fB\-isysroot\fR \fIdir\fR" 4
  11498. .IX Item "-isysroot dir"
  11499. This option is like the \fB\-\-sysroot\fR option, but applies only to
  11500. header files (except for Darwin targets, where it applies to both header
  11501. files and libraries). See the \fB\-\-sysroot\fR option for more
  11502. information.
  11503. .IP "\fB\-imultilib\fR \fIdir\fR" 4
  11504. .IX Item "-imultilib dir"
  11505. Use \fIdir\fR as a subdirectory of the directory containing
  11506. target-specific \*(C+ headers.
  11507. .IP "\fB\-nostdinc\fR" 4
  11508. .IX Item "-nostdinc"
  11509. Do not search the standard system directories for header files.
  11510. Only the directories explicitly specified with \fB\-I\fR,
  11511. \&\fB\-iquote\fR, \fB\-isystem\fR, and/or \fB\-idirafter\fR
  11512. options (and the directory of the current file, if appropriate)
  11513. are searched.
  11514. .IP "\fB\-nostdinc++\fR" 4
  11515. .IX Item "-nostdinc++"
  11516. Do not search for header files in the \*(C+\-specific standard directories,
  11517. but do still search the other standard directories. (This option is
  11518. used when building the \*(C+ library.)
  11519. .IP "\fB\-iplugindir=\fR\fIdir\fR" 4
  11520. .IX Item "-iplugindir=dir"
  11521. Set the directory to search for plugins that are passed
  11522. by \fB\-fplugin=\fR\fIname\fR instead of
  11523. \&\fB\-fplugin=\fR\fIpath\fR\fB/\fR\fIname\fR\fB.so\fR. This option is not meant
  11524. to be used by the user, but only passed by the driver.
  11525. .IP "\fB\-L\fR\fIdir\fR" 4
  11526. .IX Item "-Ldir"
  11527. Add directory \fIdir\fR to the list of directories to be searched
  11528. for \fB\-l\fR.
  11529. .IP "\fB\-B\fR\fIprefix\fR" 4
  11530. .IX Item "-Bprefix"
  11531. This option specifies where to find the executables, libraries,
  11532. include files, and data files of the compiler itself.
  11533. .Sp
  11534. The compiler driver program runs one or more of the subprograms
  11535. \&\fBcpp\fR, \fBcc1\fR, \fBas\fR and \fBld\fR. It tries
  11536. \&\fIprefix\fR as a prefix for each program it tries to run, both with and
  11537. without \fImachine\fR\fB/\fR\fIversion\fR\fB/\fR for the corresponding target
  11538. machine and compiler version.
  11539. .Sp
  11540. For each subprogram to be run, the compiler driver first tries the
  11541. \&\fB\-B\fR prefix, if any. If that name is not found, or if \fB\-B\fR
  11542. is not specified, the driver tries two standard prefixes,
  11543. \&\fI/usr/lib/gcc/\fR and \fI/usr/local/lib/gcc/\fR. If neither of
  11544. those results in a file name that is found, the unmodified program
  11545. name is searched for using the directories specified in your
  11546. \&\fB\s-1PATH\s0\fR environment variable.
  11547. .Sp
  11548. The compiler checks to see if the path provided by \fB\-B\fR
  11549. refers to a directory, and if necessary it adds a directory
  11550. separator character at the end of the path.
  11551. .Sp
  11552. \&\fB\-B\fR prefixes that effectively specify directory names also apply
  11553. to libraries in the linker, because the compiler translates these
  11554. options into \fB\-L\fR options for the linker. They also apply to
  11555. include files in the preprocessor, because the compiler translates these
  11556. options into \fB\-isystem\fR options for the preprocessor. In this case,
  11557. the compiler appends \fBinclude\fR to the prefix.
  11558. .Sp
  11559. The runtime support file \fIlibgcc.a\fR can also be searched for using
  11560. the \fB\-B\fR prefix, if needed. If it is not found there, the two
  11561. standard prefixes above are tried, and that is all. The file is left
  11562. out of the link if it is not found by those means.
  11563. .Sp
  11564. Another way to specify a prefix much like the \fB\-B\fR prefix is to use
  11565. the environment variable \fB\s-1GCC_EXEC_PREFIX\s0\fR.
  11566. .Sp
  11567. As a special kludge, if the path provided by \fB\-B\fR is
  11568. \&\fI[dir/]stage\fIN\fI/\fR, where \fIN\fR is a number in the range 0 to
  11569. 9, then it is replaced by \fI[dir/]include\fR. This is to help
  11570. with boot-strapping the compiler.
  11571. .IP "\fB\-no\-canonical\-prefixes\fR" 4
  11572. .IX Item "-no-canonical-prefixes"
  11573. Do not expand any symbolic links, resolve references to \fB/../\fR
  11574. or \fB/./\fR, or make the path absolute when generating a relative
  11575. prefix.
  11576. .IP "\fB\-\-sysroot=\fR\fIdir\fR" 4
  11577. .IX Item "--sysroot=dir"
  11578. Use \fIdir\fR as the logical root directory for headers and libraries.
  11579. For example, if the compiler normally searches for headers in
  11580. \&\fI/usr/include\fR and libraries in \fI/usr/lib\fR, it instead
  11581. searches \fI\fIdir\fI/usr/include\fR and \fI\fIdir\fI/usr/lib\fR.
  11582. .Sp
  11583. If you use both this option and the \fB\-isysroot\fR option, then
  11584. the \fB\-\-sysroot\fR option applies to libraries, but the
  11585. \&\fB\-isysroot\fR option applies to header files.
  11586. .Sp
  11587. The \s-1GNU\s0 linker (beginning with version 2.16) has the necessary support
  11588. for this option. If your linker does not support this option, the
  11589. header file aspect of \fB\-\-sysroot\fR still works, but the
  11590. library aspect does not.
  11591. .IP "\fB\-\-no\-sysroot\-suffix\fR" 4
  11592. .IX Item "--no-sysroot-suffix"
  11593. For some targets, a suffix is added to the root directory specified
  11594. with \fB\-\-sysroot\fR, depending on the other options used, so that
  11595. headers may for example be found in
  11596. \&\fI\fIdir\fI/\fIsuffix\fI/usr/include\fR instead of
  11597. \&\fI\fIdir\fI/usr/include\fR. This option disables the addition of
  11598. such a suffix.
  11599. .SS "Options for Code Generation Conventions"
  11600. .IX Subsection "Options for Code Generation Conventions"
  11601. These machine-independent options control the interface conventions
  11602. used in code generation.
  11603. .PP
  11604. Most of them have both positive and negative forms; the negative form
  11605. of \fB\-ffoo\fR is \fB\-fno\-foo\fR. In the table below, only
  11606. one of the forms is listed\-\-\-the one that is not the default. You
  11607. can figure out the other form by either removing \fBno\-\fR or adding
  11608. it.
  11609. .IP "\fB\-fstack\-reuse=\fR\fIreuse-level\fR" 4
  11610. .IX Item "-fstack-reuse=reuse-level"
  11611. This option controls stack space reuse for user declared local/auto variables
  11612. and compiler generated temporaries. \fIreuse_level\fR can be \fBall\fR,
  11613. \&\fBnamed_vars\fR, or \fBnone\fR. \fBall\fR enables stack reuse for all
  11614. local variables and temporaries, \fBnamed_vars\fR enables the reuse only for
  11615. user defined local variables with names, and \fBnone\fR disables stack reuse
  11616. completely. The default value is \fBall\fR. The option is needed when the
  11617. program extends the lifetime of a scoped local variable or a compiler generated
  11618. temporary beyond the end point defined by the language. When a lifetime of
  11619. a variable ends, and if the variable lives in memory, the optimizing compiler
  11620. has the freedom to reuse its stack space with other temporaries or scoped
  11621. local variables whose live range does not overlap with it. Legacy code extending
  11622. local lifetime is likely to break with the stack reuse optimization.
  11623. .Sp
  11624. For example,
  11625. .Sp
  11626. .Vb 3
  11627. \& int *p;
  11628. \& {
  11629. \& int local1;
  11630. \&
  11631. \& p = &local1;
  11632. \& local1 = 10;
  11633. \& ....
  11634. \& }
  11635. \& {
  11636. \& int local2;
  11637. \& local2 = 20;
  11638. \& ...
  11639. \& }
  11640. \&
  11641. \& if (*p == 10) // out of scope use of local1
  11642. \& {
  11643. \&
  11644. \& }
  11645. .Ve
  11646. .Sp
  11647. Another example:
  11648. .Sp
  11649. .Vb 6
  11650. \& struct A
  11651. \& {
  11652. \& A(int k) : i(k), j(k) { }
  11653. \& int i;
  11654. \& int j;
  11655. \& };
  11656. \&
  11657. \& A *ap;
  11658. \&
  11659. \& void foo(const A& ar)
  11660. \& {
  11661. \& ap = &ar;
  11662. \& }
  11663. \&
  11664. \& void bar()
  11665. \& {
  11666. \& foo(A(10)); // temp object\*(Aqs lifetime ends when foo returns
  11667. \&
  11668. \& {
  11669. \& A a(20);
  11670. \& ....
  11671. \& }
  11672. \& ap\->i+= 10; // ap references out of scope temp whose space
  11673. \& // is reused with a. What is the value of ap\->i?
  11674. \& }
  11675. .Ve
  11676. .Sp
  11677. The lifetime of a compiler generated temporary is well defined by the \*(C+
  11678. standard. When a lifetime of a temporary ends, and if the temporary lives
  11679. in memory, the optimizing compiler has the freedom to reuse its stack
  11680. space with other temporaries or scoped local variables whose live range
  11681. does not overlap with it. However some of the legacy code relies on
  11682. the behavior of older compilers in which temporaries' stack space is
  11683. not reused, the aggressive stack reuse can lead to runtime errors. This
  11684. option is used to control the temporary stack reuse optimization.
  11685. .IP "\fB\-ftrapv\fR" 4
  11686. .IX Item "-ftrapv"
  11687. This option generates traps for signed overflow on addition, subtraction,
  11688. multiplication operations.
  11689. The options \fB\-ftrapv\fR and \fB\-fwrapv\fR override each other, so using
  11690. \&\fB\-ftrapv\fR \fB\-fwrapv\fR on the command-line results in
  11691. \&\fB\-fwrapv\fR being effective. Note that only active options override, so
  11692. using \fB\-ftrapv\fR \fB\-fwrapv\fR \fB\-fno\-wrapv\fR on the command-line
  11693. results in \fB\-ftrapv\fR being effective.
  11694. .IP "\fB\-fwrapv\fR" 4
  11695. .IX Item "-fwrapv"
  11696. This option instructs the compiler to assume that signed arithmetic
  11697. overflow of addition, subtraction and multiplication wraps around
  11698. using twos-complement representation. This flag enables some optimizations
  11699. and disables others.
  11700. The options \fB\-ftrapv\fR and \fB\-fwrapv\fR override each other, so using
  11701. \&\fB\-ftrapv\fR \fB\-fwrapv\fR on the command-line results in
  11702. \&\fB\-fwrapv\fR being effective. Note that only active options override, so
  11703. using \fB\-ftrapv\fR \fB\-fwrapv\fR \fB\-fno\-wrapv\fR on the command-line
  11704. results in \fB\-ftrapv\fR being effective.
  11705. .IP "\fB\-fexceptions\fR" 4
  11706. .IX Item "-fexceptions"
  11707. Enable exception handling. Generates extra code needed to propagate
  11708. exceptions. For some targets, this implies \s-1GCC\s0 generates frame
  11709. unwind information for all functions, which can produce significant data
  11710. size overhead, although it does not affect execution. If you do not
  11711. specify this option, \s-1GCC\s0 enables it by default for languages like
  11712. \&\*(C+ that normally require exception handling, and disables it for
  11713. languages like C that do not normally require it. However, you may need
  11714. to enable this option when compiling C code that needs to interoperate
  11715. properly with exception handlers written in \*(C+. You may also wish to
  11716. disable this option if you are compiling older \*(C+ programs that don't
  11717. use exception handling.
  11718. .IP "\fB\-fnon\-call\-exceptions\fR" 4
  11719. .IX Item "-fnon-call-exceptions"
  11720. Generate code that allows trapping instructions to throw exceptions.
  11721. Note that this requires platform-specific runtime support that does
  11722. not exist everywhere. Moreover, it only allows \fItrapping\fR
  11723. instructions to throw exceptions, i.e. memory references or floating-point
  11724. instructions. It does not allow exceptions to be thrown from
  11725. arbitrary signal handlers such as \f(CW\*(C`SIGALRM\*(C'\fR.
  11726. .IP "\fB\-fdelete\-dead\-exceptions\fR" 4
  11727. .IX Item "-fdelete-dead-exceptions"
  11728. Consider that instructions that may throw exceptions but don't otherwise
  11729. contribute to the execution of the program can be optimized away.
  11730. This option is enabled by default for the Ada front end, as permitted by
  11731. the Ada language specification.
  11732. Optimization passes that cause dead exceptions to be removed are enabled independently at different optimization levels.
  11733. .IP "\fB\-funwind\-tables\fR" 4
  11734. .IX Item "-funwind-tables"
  11735. Similar to \fB\-fexceptions\fR, except that it just generates any needed
  11736. static data, but does not affect the generated code in any other way.
  11737. You normally do not need to enable this option; instead, a language processor
  11738. that needs this handling enables it on your behalf.
  11739. .IP "\fB\-fasynchronous\-unwind\-tables\fR" 4
  11740. .IX Item "-fasynchronous-unwind-tables"
  11741. Generate unwind table in \s-1DWARF\s0 format, if supported by target machine. The
  11742. table is exact at each instruction boundary, so it can be used for stack
  11743. unwinding from asynchronous events (such as debugger or garbage collector).
  11744. .IP "\fB\-fno\-gnu\-unique\fR" 4
  11745. .IX Item "-fno-gnu-unique"
  11746. On systems with recent \s-1GNU\s0 assembler and C library, the \*(C+ compiler
  11747. uses the \f(CW\*(C`STB_GNU_UNIQUE\*(C'\fR binding to make sure that definitions
  11748. of template static data members and static local variables in inline
  11749. functions are unique even in the presence of \f(CW\*(C`RTLD_LOCAL\*(C'\fR; this
  11750. is necessary to avoid problems with a library used by two different
  11751. \&\f(CW\*(C`RTLD_LOCAL\*(C'\fR plugins depending on a definition in one of them and
  11752. therefore disagreeing with the other one about the binding of the
  11753. symbol. But this causes \f(CW\*(C`dlclose\*(C'\fR to be ignored for affected
  11754. DSOs; if your program relies on reinitialization of a \s-1DSO\s0 via
  11755. \&\f(CW\*(C`dlclose\*(C'\fR and \f(CW\*(C`dlopen\*(C'\fR, you can use
  11756. \&\fB\-fno\-gnu\-unique\fR.
  11757. .IP "\fB\-fpcc\-struct\-return\fR" 4
  11758. .IX Item "-fpcc-struct-return"
  11759. Return \*(L"short\*(R" \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in memory like
  11760. longer ones, rather than in registers. This convention is less
  11761. efficient, but it has the advantage of allowing intercallability between
  11762. GCC-compiled files and files compiled with other compilers, particularly
  11763. the Portable C Compiler (pcc).
  11764. .Sp
  11765. The precise convention for returning structures in memory depends
  11766. on the target configuration macros.
  11767. .Sp
  11768. Short structures and unions are those whose size and alignment match
  11769. that of some integer type.
  11770. .Sp
  11771. \&\fBWarning:\fR code compiled with the \fB\-fpcc\-struct\-return\fR
  11772. switch is not binary compatible with code compiled with the
  11773. \&\fB\-freg\-struct\-return\fR switch.
  11774. Use it to conform to a non-default application binary interface.
  11775. .IP "\fB\-freg\-struct\-return\fR" 4
  11776. .IX Item "-freg-struct-return"
  11777. Return \f(CW\*(C`struct\*(C'\fR and \f(CW\*(C`union\*(C'\fR values in registers when possible.
  11778. This is more efficient for small structures than
  11779. \&\fB\-fpcc\-struct\-return\fR.
  11780. .Sp
  11781. If you specify neither \fB\-fpcc\-struct\-return\fR nor
  11782. \&\fB\-freg\-struct\-return\fR, \s-1GCC\s0 defaults to whichever convention is
  11783. standard for the target. If there is no standard convention, \s-1GCC\s0
  11784. defaults to \fB\-fpcc\-struct\-return\fR, except on targets where \s-1GCC\s0 is
  11785. the principal compiler. In those cases, we can choose the standard, and
  11786. we chose the more efficient register return alternative.
  11787. .Sp
  11788. \&\fBWarning:\fR code compiled with the \fB\-freg\-struct\-return\fR
  11789. switch is not binary compatible with code compiled with the
  11790. \&\fB\-fpcc\-struct\-return\fR switch.
  11791. Use it to conform to a non-default application binary interface.
  11792. .IP "\fB\-fshort\-enums\fR" 4
  11793. .IX Item "-fshort-enums"
  11794. Allocate to an \f(CW\*(C`enum\*(C'\fR type only as many bytes as it needs for the
  11795. declared range of possible values. Specifically, the \f(CW\*(C`enum\*(C'\fR type
  11796. is equivalent to the smallest integer type that has enough room.
  11797. .Sp
  11798. \&\fBWarning:\fR the \fB\-fshort\-enums\fR switch causes \s-1GCC\s0 to generate
  11799. code that is not binary compatible with code generated without that switch.
  11800. Use it to conform to a non-default application binary interface.
  11801. .IP "\fB\-fshort\-wchar\fR" 4
  11802. .IX Item "-fshort-wchar"
  11803. Override the underlying type for \f(CW\*(C`wchar_t\*(C'\fR to be \f(CW\*(C`short
  11804. unsigned int\*(C'\fR instead of the default for the target. This option is
  11805. useful for building programs to run under \s-1WINE.\s0
  11806. .Sp
  11807. \&\fBWarning:\fR the \fB\-fshort\-wchar\fR switch causes \s-1GCC\s0 to generate
  11808. code that is not binary compatible with code generated without that switch.
  11809. Use it to conform to a non-default application binary interface.
  11810. .IP "\fB\-fno\-common\fR" 4
  11811. .IX Item "-fno-common"
  11812. In C code, this option controls the placement of global variables
  11813. defined without an initializer, known as \fItentative definitions\fR
  11814. in the C standard. Tentative definitions are distinct from declarations
  11815. of a variable with the \f(CW\*(C`extern\*(C'\fR keyword, which do not allocate storage.
  11816. .Sp
  11817. Unix C compilers have traditionally allocated storage for
  11818. uninitialized global variables in a common block. This allows the
  11819. linker to resolve all tentative definitions of the same variable
  11820. in different compilation units to the same object, or to a non-tentative
  11821. definition.
  11822. This is the behavior specified by \fB\-fcommon\fR, and is the default for
  11823. \&\s-1GCC\s0 on most targets.
  11824. On the other hand, this behavior is not required by \s-1ISO
  11825. C,\s0 and on some targets may carry a speed or code size penalty on
  11826. variable references.
  11827. .Sp
  11828. The \fB\-fno\-common\fR option specifies that the compiler should instead
  11829. place uninitialized global variables in the data section of the object file.
  11830. This inhibits the merging of tentative definitions by the linker so
  11831. you get a multiple-definition error if the same
  11832. variable is defined in more than one compilation unit.
  11833. Compiling with \fB\-fno\-common\fR is useful on targets for which
  11834. it provides better performance, or if you wish to verify that the
  11835. program will work on other systems that always treat uninitialized
  11836. variable definitions this way.
  11837. .IP "\fB\-fno\-ident\fR" 4
  11838. .IX Item "-fno-ident"
  11839. Ignore the \f(CW\*(C`#ident\*(C'\fR directive.
  11840. .IP "\fB\-finhibit\-size\-directive\fR" 4
  11841. .IX Item "-finhibit-size-directive"
  11842. Don't output a \f(CW\*(C`.size\*(C'\fR assembler directive, or anything else that
  11843. would cause trouble if the function is split in the middle, and the
  11844. two halves are placed at locations far apart in memory. This option is
  11845. used when compiling \fIcrtstuff.c\fR; you should not need to use it
  11846. for anything else.
  11847. .IP "\fB\-fverbose\-asm\fR" 4
  11848. .IX Item "-fverbose-asm"
  11849. Put extra commentary information in the generated assembly code to
  11850. make it more readable. This option is generally only of use to those
  11851. who actually need to read the generated assembly code (perhaps while
  11852. debugging the compiler itself).
  11853. .Sp
  11854. \&\fB\-fno\-verbose\-asm\fR, the default, causes the
  11855. extra information to be omitted and is useful when comparing two assembler
  11856. files.
  11857. .Sp
  11858. The added comments include:
  11859. .RS 4
  11860. .IP "*" 4
  11861. information on the compiler version and command-line options,
  11862. .IP "*" 4
  11863. the source code lines associated with the assembly instructions,
  11864. in the form \s-1FILENAME:LINENUMBER:CONTENT OF LINE,\s0
  11865. .IP "*" 4
  11866. hints on which high-level expressions correspond to
  11867. the various assembly instruction operands.
  11868. .RE
  11869. .RS 4
  11870. .Sp
  11871. For example, given this C source file:
  11872. .Sp
  11873. .Vb 4
  11874. \& int test (int n)
  11875. \& {
  11876. \& int i;
  11877. \& int total = 0;
  11878. \&
  11879. \& for (i = 0; i < n; i++)
  11880. \& total += i * i;
  11881. \&
  11882. \& return total;
  11883. \& }
  11884. .Ve
  11885. .Sp
  11886. compiling to (x86_64) assembly via \fB\-S\fR and emitting the result
  11887. direct to stdout via \fB\-o\fR \fB\-\fR
  11888. .Sp
  11889. .Vb 1
  11890. \& gcc \-S test.c \-fverbose\-asm \-Os \-o \-
  11891. .Ve
  11892. .Sp
  11893. gives output similar to this:
  11894. .Sp
  11895. .Vb 5
  11896. \& .file "test.c"
  11897. \& # GNU C11 (GCC) version 7.0.0 20160809 (experimental) (x86_64\-pc\-linux\-gnu)
  11898. \& [...snip...]
  11899. \& # options passed:
  11900. \& [...snip...]
  11901. \&
  11902. \& .text
  11903. \& .globl test
  11904. \& .type test, @function
  11905. \& test:
  11906. \& .LFB0:
  11907. \& .cfi_startproc
  11908. \& # test.c:4: int total = 0;
  11909. \& xorl %eax, %eax # <retval>
  11910. \& # test.c:6: for (i = 0; i < n; i++)
  11911. \& xorl %edx, %edx # i
  11912. \& .L2:
  11913. \& # test.c:6: for (i = 0; i < n; i++)
  11914. \& cmpl %edi, %edx # n, i
  11915. \& jge .L5 #,
  11916. \& # test.c:7: total += i * i;
  11917. \& movl %edx, %ecx # i, tmp92
  11918. \& imull %edx, %ecx # i, tmp92
  11919. \& # test.c:6: for (i = 0; i < n; i++)
  11920. \& incl %edx # i
  11921. \& # test.c:7: total += i * i;
  11922. \& addl %ecx, %eax # tmp92, <retval>
  11923. \& jmp .L2 #
  11924. \& .L5:
  11925. \& # test.c:10: }
  11926. \& ret
  11927. \& .cfi_endproc
  11928. \& .LFE0:
  11929. \& .size test, .\-test
  11930. \& .ident "GCC: (GNU) 7.0.0 20160809 (experimental)"
  11931. \& .section .note.GNU\-stack,"",@progbits
  11932. .Ve
  11933. .Sp
  11934. The comments are intended for humans rather than machines and hence the
  11935. precise format of the comments is subject to change.
  11936. .RE
  11937. .IP "\fB\-frecord\-gcc\-switches\fR" 4
  11938. .IX Item "-frecord-gcc-switches"
  11939. This switch causes the command line used to invoke the
  11940. compiler to be recorded into the object file that is being created.
  11941. This switch is only implemented on some targets and the exact format
  11942. of the recording is target and binary file format dependent, but it
  11943. usually takes the form of a section containing \s-1ASCII\s0 text. This
  11944. switch is related to the \fB\-fverbose\-asm\fR switch, but that
  11945. switch only records information in the assembler output file as
  11946. comments, so it never reaches the object file.
  11947. See also \fB\-grecord\-gcc\-switches\fR for another
  11948. way of storing compiler options into the object file.
  11949. .IP "\fB\-fpic\fR" 4
  11950. .IX Item "-fpic"
  11951. Generate position-independent code (\s-1PIC\s0) suitable for use in a shared
  11952. library, if supported for the target machine. Such code accesses all
  11953. constant addresses through a global offset table (\s-1GOT\s0). The dynamic
  11954. loader resolves the \s-1GOT\s0 entries when the program starts (the dynamic
  11955. loader is not part of \s-1GCC\s0; it is part of the operating system). If
  11956. the \s-1GOT\s0 size for the linked executable exceeds a machine-specific
  11957. maximum size, you get an error message from the linker indicating that
  11958. \&\fB\-fpic\fR does not work; in that case, recompile with \fB\-fPIC\fR
  11959. instead. (These maximums are 8k on the \s-1SPARC,\s0 28k on AArch64 and 32k
  11960. on the m68k and \s-1RS/6000. \s0 The x86 has no such limit.)
  11961. .Sp
  11962. Position-independent code requires special support, and therefore works
  11963. only on certain machines. For the x86, \s-1GCC\s0 supports \s-1PIC\s0 for System V
  11964. but not for the Sun 386i. Code generated for the \s-1IBM RS/6000\s0 is always
  11965. position-independent.
  11966. .Sp
  11967. When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
  11968. are defined to 1.
  11969. .IP "\fB\-fPIC\fR" 4
  11970. .IX Item "-fPIC"
  11971. If supported for the target machine, emit position-independent code,
  11972. suitable for dynamic linking and avoiding any limit on the size of the
  11973. global offset table. This option makes a difference on AArch64, m68k,
  11974. PowerPC and \s-1SPARC.\s0
  11975. .Sp
  11976. Position-independent code requires special support, and therefore works
  11977. only on certain machines.
  11978. .Sp
  11979. When this flag is set, the macros \f(CW\*(C`_\|_pic_\|_\*(C'\fR and \f(CW\*(C`_\|_PIC_\|_\*(C'\fR
  11980. are defined to 2.
  11981. .IP "\fB\-fpie\fR" 4
  11982. .IX Item "-fpie"
  11983. .PD 0
  11984. .IP "\fB\-fPIE\fR" 4
  11985. .IX Item "-fPIE"
  11986. .PD
  11987. These options are similar to \fB\-fpic\fR and \fB\-fPIC\fR, but
  11988. generated position independent code can be only linked into executables.
  11989. Usually these options are used when \fB\-pie\fR \s-1GCC\s0 option is
  11990. used during linking.
  11991. .Sp
  11992. \&\fB\-fpie\fR and \fB\-fPIE\fR both define the macros
  11993. \&\f(CW\*(C`_\|_pie_\|_\*(C'\fR and \f(CW\*(C`_\|_PIE_\|_\*(C'\fR. The macros have the value 1
  11994. for \fB\-fpie\fR and 2 for \fB\-fPIE\fR.
  11995. .IP "\fB\-fno\-plt\fR" 4
  11996. .IX Item "-fno-plt"
  11997. Do not use the \s-1PLT\s0 for external function calls in position-independent code.
  11998. Instead, load the callee address at call sites from the \s-1GOT\s0 and branch to it.
  11999. This leads to more efficient code by eliminating \s-1PLT\s0 stubs and exposing
  12000. \&\s-1GOT\s0 loads to optimizations. On architectures such as 32\-bit x86 where
  12001. \&\s-1PLT\s0 stubs expect the \s-1GOT\s0 pointer in a specific register, this gives more
  12002. register allocation freedom to the compiler.
  12003. Lazy binding requires use of the \s-1PLT\s0;
  12004. with \fB\-fno\-plt\fR all external symbols are resolved at load time.
  12005. .Sp
  12006. Alternatively, the function attribute \f(CW\*(C`noplt\*(C'\fR can be used to avoid calls
  12007. through the \s-1PLT\s0 for specific external functions.
  12008. .Sp
  12009. In position-dependent code, a few targets also convert calls to
  12010. functions that are marked to not use the \s-1PLT\s0 to use the \s-1GOT\s0 instead.
  12011. .IP "\fB\-fno\-jump\-tables\fR" 4
  12012. .IX Item "-fno-jump-tables"
  12013. Do not use jump tables for switch statements even where it would be
  12014. more efficient than other code generation strategies. This option is
  12015. of use in conjunction with \fB\-fpic\fR or \fB\-fPIC\fR for
  12016. building code that forms part of a dynamic linker and cannot
  12017. reference the address of a jump table. On some targets, jump tables
  12018. do not require a \s-1GOT\s0 and this option is not needed.
  12019. .IP "\fB\-ffixed\-\fR\fIreg\fR" 4
  12020. .IX Item "-ffixed-reg"
  12021. Treat the register named \fIreg\fR as a fixed register; generated code
  12022. should never refer to it (except perhaps as a stack pointer, frame
  12023. pointer or in some other fixed role).
  12024. .Sp
  12025. \&\fIreg\fR must be the name of a register. The register names accepted
  12026. are machine-specific and are defined in the \f(CW\*(C`REGISTER_NAMES\*(C'\fR
  12027. macro in the machine description macro file.
  12028. .Sp
  12029. This flag does not have a negative form, because it specifies a
  12030. three-way choice.
  12031. .IP "\fB\-fcall\-used\-\fR\fIreg\fR" 4
  12032. .IX Item "-fcall-used-reg"
  12033. Treat the register named \fIreg\fR as an allocable register that is
  12034. clobbered by function calls. It may be allocated for temporaries or
  12035. variables that do not live across a call. Functions compiled this way
  12036. do not save and restore the register \fIreg\fR.
  12037. .Sp
  12038. It is an error to use this flag with the frame pointer or stack pointer.
  12039. Use of this flag for other registers that have fixed pervasive roles in
  12040. the machine's execution model produces disastrous results.
  12041. .Sp
  12042. This flag does not have a negative form, because it specifies a
  12043. three-way choice.
  12044. .IP "\fB\-fcall\-saved\-\fR\fIreg\fR" 4
  12045. .IX Item "-fcall-saved-reg"
  12046. Treat the register named \fIreg\fR as an allocable register saved by
  12047. functions. It may be allocated even for temporaries or variables that
  12048. live across a call. Functions compiled this way save and restore
  12049. the register \fIreg\fR if they use it.
  12050. .Sp
  12051. It is an error to use this flag with the frame pointer or stack pointer.
  12052. Use of this flag for other registers that have fixed pervasive roles in
  12053. the machine's execution model produces disastrous results.
  12054. .Sp
  12055. A different sort of disaster results from the use of this flag for
  12056. a register in which function values may be returned.
  12057. .Sp
  12058. This flag does not have a negative form, because it specifies a
  12059. three-way choice.
  12060. .IP "\fB\-fpack\-struct[=\fR\fIn\fR\fB]\fR" 4
  12061. .IX Item "-fpack-struct[=n]"
  12062. Without a value specified, pack all structure members together without
  12063. holes. When a value is specified (which must be a small power of two), pack
  12064. structure members according to this value, representing the maximum
  12065. alignment (that is, objects with default alignment requirements larger than
  12066. this are output potentially unaligned at the next fitting location.
  12067. .Sp
  12068. \&\fBWarning:\fR the \fB\-fpack\-struct\fR switch causes \s-1GCC\s0 to generate
  12069. code that is not binary compatible with code generated without that switch.
  12070. Additionally, it makes the code suboptimal.
  12071. Use it to conform to a non-default application binary interface.
  12072. .IP "\fB\-fleading\-underscore\fR" 4
  12073. .IX Item "-fleading-underscore"
  12074. This option and its counterpart, \fB\-fno\-leading\-underscore\fR, forcibly
  12075. change the way C symbols are represented in the object file. One use
  12076. is to help link with legacy assembly code.
  12077. .Sp
  12078. \&\fBWarning:\fR the \fB\-fleading\-underscore\fR switch causes \s-1GCC\s0 to
  12079. generate code that is not binary compatible with code generated without that
  12080. switch. Use it to conform to a non-default application binary interface.
  12081. Not all targets provide complete support for this switch.
  12082. .IP "\fB\-ftls\-model=\fR\fImodel\fR" 4
  12083. .IX Item "-ftls-model=model"
  12084. Alter the thread-local storage model to be used.
  12085. The \fImodel\fR argument should be one of \fBglobal-dynamic\fR,
  12086. \&\fBlocal-dynamic\fR, \fBinitial-exec\fR or \fBlocal-exec\fR.
  12087. Note that the choice is subject to optimization: the compiler may use
  12088. a more efficient model for symbols not visible outside of the translation
  12089. unit, or if \fB\-fpic\fR is not given on the command line.
  12090. .Sp
  12091. The default without \fB\-fpic\fR is \fBinitial-exec\fR; with
  12092. \&\fB\-fpic\fR the default is \fBglobal-dynamic\fR.
  12093. .IP "\fB\-ftrampolines\fR" 4
  12094. .IX Item "-ftrampolines"
  12095. For targets that normally need trampolines for nested functions, always
  12096. generate them instead of using descriptors. Otherwise, for targets that
  12097. do not need them, like for example HP-PA or \s-1IA\-64,\s0 do nothing.
  12098. .Sp
  12099. A trampoline is a small piece of code that is created at run time on the
  12100. stack when the address of a nested function is taken, and is used to call
  12101. the nested function indirectly. Therefore, it requires the stack to be
  12102. made executable in order for the program to work properly.
  12103. .Sp
  12104. \&\fB\-fno\-trampolines\fR is enabled by default on a language by language
  12105. basis to let the compiler avoid generating them, if it computes that this
  12106. is safe, and replace them with descriptors. Descriptors are made up of data
  12107. only, but the generated code must be prepared to deal with them. As of this
  12108. writing, \fB\-fno\-trampolines\fR is enabled by default only for Ada.
  12109. .Sp
  12110. Moreover, code compiled with \fB\-ftrampolines\fR and code compiled with
  12111. \&\fB\-fno\-trampolines\fR are not binary compatible if nested functions are
  12112. present. This option must therefore be used on a program-wide basis and be
  12113. manipulated with extreme care.
  12114. .IP "\fB\-fvisibility=\fR[\fBdefault\fR|\fBinternal\fR|\fBhidden\fR|\fBprotected\fR]" 4
  12115. .IX Item "-fvisibility=[default|internal|hidden|protected]"
  12116. Set the default \s-1ELF\s0 image symbol visibility to the specified option\-\-\-all
  12117. symbols are marked with this unless overridden within the code.
  12118. Using this feature can very substantially improve linking and
  12119. load times of shared object libraries, produce more optimized
  12120. code, provide near-perfect \s-1API\s0 export and prevent symbol clashes.
  12121. It is \fBstrongly\fR recommended that you use this in any shared objects
  12122. you distribute.
  12123. .Sp
  12124. Despite the nomenclature, \fBdefault\fR always means public; i.e.,
  12125. available to be linked against from outside the shared object.
  12126. \&\fBprotected\fR and \fBinternal\fR are pretty useless in real-world
  12127. usage so the only other commonly used option is \fBhidden\fR.
  12128. The default if \fB\-fvisibility\fR isn't specified is
  12129. \&\fBdefault\fR, i.e., make every symbol public.
  12130. .Sp
  12131. A good explanation of the benefits offered by ensuring \s-1ELF\s0
  12132. symbols have the correct visibility is given by \*(L"How To Write
  12133. Shared Libraries\*(R" by Ulrich Drepper (which can be found at
  12134. <\fBhttps://www.akkadia.org/drepper/\fR>)\-\-\-however a superior
  12135. solution made possible by this option to marking things hidden when
  12136. the default is public is to make the default hidden and mark things
  12137. public. This is the norm with DLLs on Windows and with \fB\-fvisibility=hidden\fR
  12138. and \f(CW\*(C`_\|_attribute_\|_ ((visibility("default")))\*(C'\fR instead of
  12139. \&\f(CW\*(C`_\|_declspec(dllexport)\*(C'\fR you get almost identical semantics with
  12140. identical syntax. This is a great boon to those working with
  12141. cross-platform projects.
  12142. .Sp
  12143. For those adding visibility support to existing code, you may find
  12144. \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR of use. This works by you enclosing
  12145. the declarations you wish to set visibility for with (for example)
  12146. \&\f(CW\*(C`#pragma GCC visibility push(hidden)\*(C'\fR and
  12147. \&\f(CW\*(C`#pragma GCC visibility pop\*(C'\fR.
  12148. Bear in mind that symbol visibility should be viewed \fBas
  12149. part of the \s-1API\s0 interface contract\fR and thus all new code should
  12150. always specify visibility when it is not the default; i.e., declarations
  12151. only for use within the local \s-1DSO\s0 should \fBalways\fR be marked explicitly
  12152. as hidden as so to avoid \s-1PLT\s0 indirection overheads\-\-\-making this
  12153. abundantly clear also aids readability and self-documentation of the code.
  12154. Note that due to \s-1ISO \*(C+\s0 specification requirements, \f(CW\*(C`operator new\*(C'\fR and
  12155. \&\f(CW\*(C`operator delete\*(C'\fR must always be of default visibility.
  12156. .Sp
  12157. Be aware that headers from outside your project, in particular system
  12158. headers and headers from any other library you use, may not be
  12159. expecting to be compiled with visibility other than the default. You
  12160. may need to explicitly say \f(CW\*(C`#pragma GCC visibility push(default)\*(C'\fR
  12161. before including any such headers.
  12162. .Sp
  12163. \&\f(CW\*(C`extern\*(C'\fR declarations are not affected by \fB\-fvisibility\fR, so
  12164. a lot of code can be recompiled with \fB\-fvisibility=hidden\fR with
  12165. no modifications. However, this means that calls to \f(CW\*(C`extern\*(C'\fR
  12166. functions with no explicit visibility use the \s-1PLT,\s0 so it is more
  12167. effective to use \f(CW\*(C`_\|_attribute ((visibility))\*(C'\fR and/or
  12168. \&\f(CW\*(C`#pragma GCC visibility\*(C'\fR to tell the compiler which \f(CW\*(C`extern\*(C'\fR
  12169. declarations should be treated as hidden.
  12170. .Sp
  12171. Note that \fB\-fvisibility\fR does affect \*(C+ vague linkage
  12172. entities. This means that, for instance, an exception class that is
  12173. be thrown between DSOs must be explicitly marked with default
  12174. visibility so that the \fBtype_info\fR nodes are unified between
  12175. the DSOs.
  12176. .Sp
  12177. An overview of these techniques, their benefits and how to use them
  12178. is at <\fBhttp://gcc.gnu.org/wiki/Visibility\fR>.
  12179. .IP "\fB\-fstrict\-volatile\-bitfields\fR" 4
  12180. .IX Item "-fstrict-volatile-bitfields"
  12181. This option should be used if accesses to volatile bit-fields (or other
  12182. structure fields, although the compiler usually honors those types
  12183. anyway) should use a single access of the width of the
  12184. field's type, aligned to a natural alignment if possible. For
  12185. example, targets with memory-mapped peripheral registers might require
  12186. all such accesses to be 16 bits wide; with this flag you can
  12187. declare all peripheral bit-fields as \f(CW\*(C`unsigned short\*(C'\fR (assuming short
  12188. is 16 bits on these targets) to force \s-1GCC\s0 to use 16\-bit accesses
  12189. instead of, perhaps, a more efficient 32\-bit access.
  12190. .Sp
  12191. If this option is disabled, the compiler uses the most efficient
  12192. instruction. In the previous example, that might be a 32\-bit load
  12193. instruction, even though that accesses bytes that do not contain
  12194. any portion of the bit-field, or memory-mapped registers unrelated to
  12195. the one being updated.
  12196. .Sp
  12197. In some cases, such as when the \f(CW\*(C`packed\*(C'\fR attribute is applied to a
  12198. structure field, it may not be possible to access the field with a single
  12199. read or write that is correctly aligned for the target machine. In this
  12200. case \s-1GCC\s0 falls back to generating multiple accesses rather than code that
  12201. will fault or truncate the result at run time.
  12202. .Sp
  12203. Note: Due to restrictions of the C/\*(C+11 memory model, write accesses are
  12204. not allowed to touch non bit-field members. It is therefore recommended
  12205. to define all bits of the field's type as bit-field members.
  12206. .Sp
  12207. The default value of this option is determined by the application binary
  12208. interface for the target processor.
  12209. .IP "\fB\-fsync\-libcalls\fR" 4
  12210. .IX Item "-fsync-libcalls"
  12211. This option controls whether any out-of-line instance of the \f(CW\*(C`_\|_sync\*(C'\fR
  12212. family of functions may be used to implement the \*(C+11 \f(CW\*(C`_\|_atomic\*(C'\fR
  12213. family of functions.
  12214. .Sp
  12215. The default value of this option is enabled, thus the only useful form
  12216. of the option is \fB\-fno\-sync\-libcalls\fR. This option is used in
  12217. the implementation of the \fIlibatomic\fR runtime library.
  12218. .SS "\s-1GCC\s0 Developer Options"
  12219. .IX Subsection "GCC Developer Options"
  12220. This section describes command-line options that are primarily of
  12221. interest to \s-1GCC\s0 developers, including options to support compiler
  12222. testing and investigation of compiler bugs and compile-time
  12223. performance problems. This includes options that produce debug dumps
  12224. at various points in the compilation; that print statistics such as
  12225. memory use and execution time; and that print information about \s-1GCC\s0's
  12226. configuration, such as where it searches for libraries. You should
  12227. rarely need to use any of these options for ordinary compilation and
  12228. linking tasks.
  12229. .IP "\fB\-d\fR\fIletters\fR" 4
  12230. .IX Item "-dletters"
  12231. .PD 0
  12232. .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR" 4
  12233. .IX Item "-fdump-rtl-pass"
  12234. .IP "\fB\-fdump\-rtl\-\fR\fIpass\fR\fB=\fR\fIfilename\fR" 4
  12235. .IX Item "-fdump-rtl-pass=filename"
  12236. .PD
  12237. Says to make debugging dumps during compilation at times specified by
  12238. \&\fIletters\fR. This is used for debugging the RTL-based passes of the
  12239. compiler. The file names for most of the dumps are made by appending
  12240. a pass number and a word to the \fIdumpname\fR, and the files are
  12241. created in the directory of the output file. In case of
  12242. \&\fB=\fR\fIfilename\fR option, the dump is output on the given file
  12243. instead of the pass numbered dump files. Note that the pass number is
  12244. assigned as passes are registered into the pass manager. Most passes
  12245. are registered in the order that they will execute and for these passes
  12246. the number corresponds to the pass execution order. However, passes
  12247. registered by plugins, passes specific to compilation targets, or
  12248. passes that are otherwise registered after all the other passes are
  12249. numbered higher than a pass named \*(L"final\*(R", even if they are executed
  12250. earlier. \fIdumpname\fR is generated from the name of the output
  12251. file if explicitly specified and not an executable, otherwise it is
  12252. the basename of the source file.
  12253. .Sp
  12254. Some \fB\-d\fR\fIletters\fR switches have different meaning when
  12255. \&\fB\-E\fR is used for preprocessing.
  12256. .Sp
  12257. Debug dumps can be enabled with a \fB\-fdump\-rtl\fR switch or some
  12258. \&\fB\-d\fR option \fIletters\fR. Here are the possible
  12259. letters for use in \fIpass\fR and \fIletters\fR, and their meanings:
  12260. .RS 4
  12261. .IP "\fB\-fdump\-rtl\-alignments\fR" 4
  12262. .IX Item "-fdump-rtl-alignments"
  12263. Dump after branch alignments have been computed.
  12264. .IP "\fB\-fdump\-rtl\-asmcons\fR" 4
  12265. .IX Item "-fdump-rtl-asmcons"
  12266. Dump after fixing rtl statements that have unsatisfied in/out constraints.
  12267. .IP "\fB\-fdump\-rtl\-auto_inc_dec\fR" 4
  12268. .IX Item "-fdump-rtl-auto_inc_dec"
  12269. Dump after auto-inc-dec discovery. This pass is only run on
  12270. architectures that have auto inc or auto dec instructions.
  12271. .IP "\fB\-fdump\-rtl\-barriers\fR" 4
  12272. .IX Item "-fdump-rtl-barriers"
  12273. Dump after cleaning up the barrier instructions.
  12274. .IP "\fB\-fdump\-rtl\-bbpart\fR" 4
  12275. .IX Item "-fdump-rtl-bbpart"
  12276. Dump after partitioning hot and cold basic blocks.
  12277. .IP "\fB\-fdump\-rtl\-bbro\fR" 4
  12278. .IX Item "-fdump-rtl-bbro"
  12279. Dump after block reordering.
  12280. .IP "\fB\-fdump\-rtl\-btl1\fR" 4
  12281. .IX Item "-fdump-rtl-btl1"
  12282. .PD 0
  12283. .IP "\fB\-fdump\-rtl\-btl2\fR" 4
  12284. .IX Item "-fdump-rtl-btl2"
  12285. .PD
  12286. \&\fB\-fdump\-rtl\-btl1\fR and \fB\-fdump\-rtl\-btl2\fR enable dumping
  12287. after the two branch
  12288. target load optimization passes.
  12289. .IP "\fB\-fdump\-rtl\-bypass\fR" 4
  12290. .IX Item "-fdump-rtl-bypass"
  12291. Dump after jump bypassing and control flow optimizations.
  12292. .IP "\fB\-fdump\-rtl\-combine\fR" 4
  12293. .IX Item "-fdump-rtl-combine"
  12294. Dump after the \s-1RTL\s0 instruction combination pass.
  12295. .IP "\fB\-fdump\-rtl\-compgotos\fR" 4
  12296. .IX Item "-fdump-rtl-compgotos"
  12297. Dump after duplicating the computed gotos.
  12298. .IP "\fB\-fdump\-rtl\-ce1\fR" 4
  12299. .IX Item "-fdump-rtl-ce1"
  12300. .PD 0
  12301. .IP "\fB\-fdump\-rtl\-ce2\fR" 4
  12302. .IX Item "-fdump-rtl-ce2"
  12303. .IP "\fB\-fdump\-rtl\-ce3\fR" 4
  12304. .IX Item "-fdump-rtl-ce3"
  12305. .PD
  12306. \&\fB\-fdump\-rtl\-ce1\fR, \fB\-fdump\-rtl\-ce2\fR, and
  12307. \&\fB\-fdump\-rtl\-ce3\fR enable dumping after the three
  12308. if conversion passes.
  12309. .IP "\fB\-fdump\-rtl\-cprop_hardreg\fR" 4
  12310. .IX Item "-fdump-rtl-cprop_hardreg"
  12311. Dump after hard register copy propagation.
  12312. .IP "\fB\-fdump\-rtl\-csa\fR" 4
  12313. .IX Item "-fdump-rtl-csa"
  12314. Dump after combining stack adjustments.
  12315. .IP "\fB\-fdump\-rtl\-cse1\fR" 4
  12316. .IX Item "-fdump-rtl-cse1"
  12317. .PD 0
  12318. .IP "\fB\-fdump\-rtl\-cse2\fR" 4
  12319. .IX Item "-fdump-rtl-cse2"
  12320. .PD
  12321. \&\fB\-fdump\-rtl\-cse1\fR and \fB\-fdump\-rtl\-cse2\fR enable dumping after
  12322. the two common subexpression elimination passes.
  12323. .IP "\fB\-fdump\-rtl\-dce\fR" 4
  12324. .IX Item "-fdump-rtl-dce"
  12325. Dump after the standalone dead code elimination passes.
  12326. .IP "\fB\-fdump\-rtl\-dbr\fR" 4
  12327. .IX Item "-fdump-rtl-dbr"
  12328. Dump after delayed branch scheduling.
  12329. .IP "\fB\-fdump\-rtl\-dce1\fR" 4
  12330. .IX Item "-fdump-rtl-dce1"
  12331. .PD 0
  12332. .IP "\fB\-fdump\-rtl\-dce2\fR" 4
  12333. .IX Item "-fdump-rtl-dce2"
  12334. .PD
  12335. \&\fB\-fdump\-rtl\-dce1\fR and \fB\-fdump\-rtl\-dce2\fR enable dumping after
  12336. the two dead store elimination passes.
  12337. .IP "\fB\-fdump\-rtl\-eh\fR" 4
  12338. .IX Item "-fdump-rtl-eh"
  12339. Dump after finalization of \s-1EH\s0 handling code.
  12340. .IP "\fB\-fdump\-rtl\-eh_ranges\fR" 4
  12341. .IX Item "-fdump-rtl-eh_ranges"
  12342. Dump after conversion of \s-1EH\s0 handling range regions.
  12343. .IP "\fB\-fdump\-rtl\-expand\fR" 4
  12344. .IX Item "-fdump-rtl-expand"
  12345. Dump after \s-1RTL\s0 generation.
  12346. .IP "\fB\-fdump\-rtl\-fwprop1\fR" 4
  12347. .IX Item "-fdump-rtl-fwprop1"
  12348. .PD 0
  12349. .IP "\fB\-fdump\-rtl\-fwprop2\fR" 4
  12350. .IX Item "-fdump-rtl-fwprop2"
  12351. .PD
  12352. \&\fB\-fdump\-rtl\-fwprop1\fR and \fB\-fdump\-rtl\-fwprop2\fR enable
  12353. dumping after the two forward propagation passes.
  12354. .IP "\fB\-fdump\-rtl\-gcse1\fR" 4
  12355. .IX Item "-fdump-rtl-gcse1"
  12356. .PD 0
  12357. .IP "\fB\-fdump\-rtl\-gcse2\fR" 4
  12358. .IX Item "-fdump-rtl-gcse2"
  12359. .PD
  12360. \&\fB\-fdump\-rtl\-gcse1\fR and \fB\-fdump\-rtl\-gcse2\fR enable dumping
  12361. after global common subexpression elimination.
  12362. .IP "\fB\-fdump\-rtl\-init\-regs\fR" 4
  12363. .IX Item "-fdump-rtl-init-regs"
  12364. Dump after the initialization of the registers.
  12365. .IP "\fB\-fdump\-rtl\-initvals\fR" 4
  12366. .IX Item "-fdump-rtl-initvals"
  12367. Dump after the computation of the initial value sets.
  12368. .IP "\fB\-fdump\-rtl\-into_cfglayout\fR" 4
  12369. .IX Item "-fdump-rtl-into_cfglayout"
  12370. Dump after converting to cfglayout mode.
  12371. .IP "\fB\-fdump\-rtl\-ira\fR" 4
  12372. .IX Item "-fdump-rtl-ira"
  12373. Dump after iterated register allocation.
  12374. .IP "\fB\-fdump\-rtl\-jump\fR" 4
  12375. .IX Item "-fdump-rtl-jump"
  12376. Dump after the second jump optimization.
  12377. .IP "\fB\-fdump\-rtl\-loop2\fR" 4
  12378. .IX Item "-fdump-rtl-loop2"
  12379. \&\fB\-fdump\-rtl\-loop2\fR enables dumping after the rtl
  12380. loop optimization passes.
  12381. .IP "\fB\-fdump\-rtl\-mach\fR" 4
  12382. .IX Item "-fdump-rtl-mach"
  12383. Dump after performing the machine dependent reorganization pass, if that
  12384. pass exists.
  12385. .IP "\fB\-fdump\-rtl\-mode_sw\fR" 4
  12386. .IX Item "-fdump-rtl-mode_sw"
  12387. Dump after removing redundant mode switches.
  12388. .IP "\fB\-fdump\-rtl\-rnreg\fR" 4
  12389. .IX Item "-fdump-rtl-rnreg"
  12390. Dump after register renumbering.
  12391. .IP "\fB\-fdump\-rtl\-outof_cfglayout\fR" 4
  12392. .IX Item "-fdump-rtl-outof_cfglayout"
  12393. Dump after converting from cfglayout mode.
  12394. .IP "\fB\-fdump\-rtl\-peephole2\fR" 4
  12395. .IX Item "-fdump-rtl-peephole2"
  12396. Dump after the peephole pass.
  12397. .IP "\fB\-fdump\-rtl\-postreload\fR" 4
  12398. .IX Item "-fdump-rtl-postreload"
  12399. Dump after post-reload optimizations.
  12400. .IP "\fB\-fdump\-rtl\-pro_and_epilogue\fR" 4
  12401. .IX Item "-fdump-rtl-pro_and_epilogue"
  12402. Dump after generating the function prologues and epilogues.
  12403. .IP "\fB\-fdump\-rtl\-sched1\fR" 4
  12404. .IX Item "-fdump-rtl-sched1"
  12405. .PD 0
  12406. .IP "\fB\-fdump\-rtl\-sched2\fR" 4
  12407. .IX Item "-fdump-rtl-sched2"
  12408. .PD
  12409. \&\fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR enable dumping
  12410. after the basic block scheduling passes.
  12411. .IP "\fB\-fdump\-rtl\-ree\fR" 4
  12412. .IX Item "-fdump-rtl-ree"
  12413. Dump after sign/zero extension elimination.
  12414. .IP "\fB\-fdump\-rtl\-seqabstr\fR" 4
  12415. .IX Item "-fdump-rtl-seqabstr"
  12416. Dump after common sequence discovery.
  12417. .IP "\fB\-fdump\-rtl\-shorten\fR" 4
  12418. .IX Item "-fdump-rtl-shorten"
  12419. Dump after shortening branches.
  12420. .IP "\fB\-fdump\-rtl\-sibling\fR" 4
  12421. .IX Item "-fdump-rtl-sibling"
  12422. Dump after sibling call optimizations.
  12423. .IP "\fB\-fdump\-rtl\-split1\fR" 4
  12424. .IX Item "-fdump-rtl-split1"
  12425. .PD 0
  12426. .IP "\fB\-fdump\-rtl\-split2\fR" 4
  12427. .IX Item "-fdump-rtl-split2"
  12428. .IP "\fB\-fdump\-rtl\-split3\fR" 4
  12429. .IX Item "-fdump-rtl-split3"
  12430. .IP "\fB\-fdump\-rtl\-split4\fR" 4
  12431. .IX Item "-fdump-rtl-split4"
  12432. .IP "\fB\-fdump\-rtl\-split5\fR" 4
  12433. .IX Item "-fdump-rtl-split5"
  12434. .PD
  12435. These options enable dumping after five rounds of
  12436. instruction splitting.
  12437. .IP "\fB\-fdump\-rtl\-sms\fR" 4
  12438. .IX Item "-fdump-rtl-sms"
  12439. Dump after modulo scheduling. This pass is only run on some
  12440. architectures.
  12441. .IP "\fB\-fdump\-rtl\-stack\fR" 4
  12442. .IX Item "-fdump-rtl-stack"
  12443. Dump after conversion from \s-1GCC\s0's \*(L"flat register file\*(R" registers to the
  12444. x87's stack-like registers. This pass is only run on x86 variants.
  12445. .IP "\fB\-fdump\-rtl\-subreg1\fR" 4
  12446. .IX Item "-fdump-rtl-subreg1"
  12447. .PD 0
  12448. .IP "\fB\-fdump\-rtl\-subreg2\fR" 4
  12449. .IX Item "-fdump-rtl-subreg2"
  12450. .PD
  12451. \&\fB\-fdump\-rtl\-subreg1\fR and \fB\-fdump\-rtl\-subreg2\fR enable dumping after
  12452. the two subreg expansion passes.
  12453. .IP "\fB\-fdump\-rtl\-unshare\fR" 4
  12454. .IX Item "-fdump-rtl-unshare"
  12455. Dump after all rtl has been unshared.
  12456. .IP "\fB\-fdump\-rtl\-vartrack\fR" 4
  12457. .IX Item "-fdump-rtl-vartrack"
  12458. Dump after variable tracking.
  12459. .IP "\fB\-fdump\-rtl\-vregs\fR" 4
  12460. .IX Item "-fdump-rtl-vregs"
  12461. Dump after converting virtual registers to hard registers.
  12462. .IP "\fB\-fdump\-rtl\-web\fR" 4
  12463. .IX Item "-fdump-rtl-web"
  12464. Dump after live range splitting.
  12465. .IP "\fB\-fdump\-rtl\-regclass\fR" 4
  12466. .IX Item "-fdump-rtl-regclass"
  12467. .PD 0
  12468. .IP "\fB\-fdump\-rtl\-subregs_of_mode_init\fR" 4
  12469. .IX Item "-fdump-rtl-subregs_of_mode_init"
  12470. .IP "\fB\-fdump\-rtl\-subregs_of_mode_finish\fR" 4
  12471. .IX Item "-fdump-rtl-subregs_of_mode_finish"
  12472. .IP "\fB\-fdump\-rtl\-dfinit\fR" 4
  12473. .IX Item "-fdump-rtl-dfinit"
  12474. .IP "\fB\-fdump\-rtl\-dfinish\fR" 4
  12475. .IX Item "-fdump-rtl-dfinish"
  12476. .PD
  12477. These dumps are defined but always produce empty files.
  12478. .IP "\fB\-da\fR" 4
  12479. .IX Item "-da"
  12480. .PD 0
  12481. .IP "\fB\-fdump\-rtl\-all\fR" 4
  12482. .IX Item "-fdump-rtl-all"
  12483. .PD
  12484. Produce all the dumps listed above.
  12485. .IP "\fB\-dA\fR" 4
  12486. .IX Item "-dA"
  12487. Annotate the assembler output with miscellaneous debugging information.
  12488. .IP "\fB\-dD\fR" 4
  12489. .IX Item "-dD"
  12490. Dump all macro definitions, at the end of preprocessing, in addition to
  12491. normal output.
  12492. .IP "\fB\-dH\fR" 4
  12493. .IX Item "-dH"
  12494. Produce a core dump whenever an error occurs.
  12495. .IP "\fB\-dp\fR" 4
  12496. .IX Item "-dp"
  12497. Annotate the assembler output with a comment indicating which
  12498. pattern and alternative is used. The length of each instruction is
  12499. also printed.
  12500. .IP "\fB\-dP\fR" 4
  12501. .IX Item "-dP"
  12502. Dump the \s-1RTL\s0 in the assembler output as a comment before each instruction.
  12503. Also turns on \fB\-dp\fR annotation.
  12504. .IP "\fB\-dx\fR" 4
  12505. .IX Item "-dx"
  12506. Just generate \s-1RTL\s0 for a function instead of compiling it. Usually used
  12507. with \fB\-fdump\-rtl\-expand\fR.
  12508. .RE
  12509. .RS 4
  12510. .RE
  12511. .IP "\fB\-fdump\-noaddr\fR" 4
  12512. .IX Item "-fdump-noaddr"
  12513. When doing debugging dumps, suppress address output. This makes it more
  12514. feasible to use diff on debugging dumps for compiler invocations with
  12515. different compiler binaries and/or different
  12516. text / bss / data / heap / stack / dso start locations.
  12517. .IP "\fB\-freport\-bug\fR" 4
  12518. .IX Item "-freport-bug"
  12519. Collect and dump debug information into a temporary file if an
  12520. internal compiler error (\s-1ICE\s0) occurs.
  12521. .IP "\fB\-fdump\-unnumbered\fR" 4
  12522. .IX Item "-fdump-unnumbered"
  12523. When doing debugging dumps, suppress instruction numbers and address output.
  12524. This makes it more feasible to use diff on debugging dumps for compiler
  12525. invocations with different options, in particular with and without
  12526. \&\fB\-g\fR.
  12527. .IP "\fB\-fdump\-unnumbered\-links\fR" 4
  12528. .IX Item "-fdump-unnumbered-links"
  12529. When doing debugging dumps (see \fB\-d\fR option above), suppress
  12530. instruction numbers for the links to the previous and next instructions
  12531. in a sequence.
  12532. .IP "\fB\-fdump\-translation\-unit\fR (\*(C+ only)" 4
  12533. .IX Item "-fdump-translation-unit ( only)"
  12534. .PD 0
  12535. .IP "\fB\-fdump\-translation\-unit\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
  12536. .IX Item "-fdump-translation-unit-options ( only)"
  12537. .PD
  12538. Dump a representation of the tree structure for the entire translation
  12539. unit to a file. The file name is made by appending \fI.tu\fR to the
  12540. source file name, and the file is created in the same directory as the
  12541. output file. If the \fB\-\fR\fIoptions\fR form is used, \fIoptions\fR
  12542. controls the details of the dump as described for the
  12543. \&\fB\-fdump\-tree\fR options.
  12544. .IP "\fB\-fdump\-class\-hierarchy\fR (\*(C+ only)" 4
  12545. .IX Item "-fdump-class-hierarchy ( only)"
  12546. .PD 0
  12547. .IP "\fB\-fdump\-class\-hierarchy\-\fR\fIoptions\fR\fB \fR(\*(C+ only)" 4
  12548. .IX Item "-fdump-class-hierarchy-options ( only)"
  12549. .PD
  12550. Dump a representation of each class's hierarchy and virtual function
  12551. table layout to a file. The file name is made by appending
  12552. \&\fI.class\fR to the source file name, and the file is created in the
  12553. same directory as the output file. If the \fB\-\fR\fIoptions\fR form
  12554. is used, \fIoptions\fR controls the details of the dump as described
  12555. for the \fB\-fdump\-tree\fR options.
  12556. .IP "\fB\-fdump\-ipa\-\fR\fIswitch\fR" 4
  12557. .IX Item "-fdump-ipa-switch"
  12558. Control the dumping at various stages of inter-procedural analysis
  12559. language tree to a file. The file name is generated by appending a
  12560. switch specific suffix to the source file name, and the file is created
  12561. in the same directory as the output file. The following dumps are
  12562. possible:
  12563. .RS 4
  12564. .IP "\fBall\fR" 4
  12565. .IX Item "all"
  12566. Enables all inter-procedural analysis dumps.
  12567. .IP "\fBcgraph\fR" 4
  12568. .IX Item "cgraph"
  12569. Dumps information about call-graph optimization, unused function removal,
  12570. and inlining decisions.
  12571. .IP "\fBinline\fR" 4
  12572. .IX Item "inline"
  12573. Dump after function inlining.
  12574. .RE
  12575. .RS 4
  12576. .RE
  12577. .IP "\fB\-fdump\-passes\fR" 4
  12578. .IX Item "-fdump-passes"
  12579. Print on \fIstderr\fR the list of optimization passes that are turned
  12580. on and off by the current command-line options.
  12581. .IP "\fB\-fdump\-statistics\-\fR\fIoption\fR" 4
  12582. .IX Item "-fdump-statistics-option"
  12583. Enable and control dumping of pass statistics in a separate file. The
  12584. file name is generated by appending a suffix ending in
  12585. \&\fB.statistics\fR to the source file name, and the file is created in
  12586. the same directory as the output file. If the \fB\-\fR\fIoption\fR
  12587. form is used, \fB\-stats\fR causes counters to be summed over the
  12588. whole compilation unit while \fB\-details\fR dumps every event as
  12589. the passes generate them. The default with no option is to sum
  12590. counters for each function compiled.
  12591. .IP "\fB\-fdump\-tree\-all\fR" 4
  12592. .IX Item "-fdump-tree-all"
  12593. .PD 0
  12594. .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR" 4
  12595. .IX Item "-fdump-tree-switch"
  12596. .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR" 4
  12597. .IX Item "-fdump-tree-switch-options"
  12598. .IP "\fB\-fdump\-tree\-\fR\fIswitch\fR\fB\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
  12599. .IX Item "-fdump-tree-switch-options=filename"
  12600. .PD
  12601. Control the dumping at various stages of processing the intermediate
  12602. language tree to a file. The file name is generated by appending a
  12603. switch-specific suffix to the source file name, and the file is
  12604. created in the same directory as the output file. In case of
  12605. \&\fB=\fR\fIfilename\fR option, the dump is output on the given file
  12606. instead of the auto named dump files. If the \fB\-\fR\fIoptions\fR
  12607. form is used, \fIoptions\fR is a list of \fB\-\fR separated options
  12608. which control the details of the dump. Not all options are applicable
  12609. to all dumps; those that are not meaningful are ignored. The
  12610. following options are available
  12611. .RS 4
  12612. .IP "\fBaddress\fR" 4
  12613. .IX Item "address"
  12614. Print the address of each node. Usually this is not meaningful as it
  12615. changes according to the environment and source file. Its primary use
  12616. is for tying up a dump file with a debug environment.
  12617. .IP "\fBasmname\fR" 4
  12618. .IX Item "asmname"
  12619. If \f(CW\*(C`DECL_ASSEMBLER_NAME\*(C'\fR has been set for a given decl, use that
  12620. in the dump instead of \f(CW\*(C`DECL_NAME\*(C'\fR. Its primary use is ease of
  12621. use working backward from mangled names in the assembly file.
  12622. .IP "\fBslim\fR" 4
  12623. .IX Item "slim"
  12624. When dumping front-end intermediate representations, inhibit dumping
  12625. of members of a scope or body of a function merely because that scope
  12626. has been reached. Only dump such items when they are directly reachable
  12627. by some other path.
  12628. .Sp
  12629. When dumping pretty-printed trees, this option inhibits dumping the
  12630. bodies of control structures.
  12631. .Sp
  12632. When dumping \s-1RTL,\s0 print the \s-1RTL\s0 in slim (condensed) form instead of
  12633. the default LISP-like representation.
  12634. .IP "\fBraw\fR" 4
  12635. .IX Item "raw"
  12636. Print a raw representation of the tree. By default, trees are
  12637. pretty-printed into a C\-like representation.
  12638. .IP "\fBdetails\fR" 4
  12639. .IX Item "details"
  12640. Enable more detailed dumps (not honored by every dump option). Also
  12641. include information from the optimization passes.
  12642. .IP "\fBstats\fR" 4
  12643. .IX Item "stats"
  12644. Enable dumping various statistics about the pass (not honored by every dump
  12645. option).
  12646. .IP "\fBblocks\fR" 4
  12647. .IX Item "blocks"
  12648. Enable showing basic block boundaries (disabled in raw dumps).
  12649. .IP "\fBgraph\fR" 4
  12650. .IX Item "graph"
  12651. For each of the other indicated dump files (\fB\-fdump\-rtl\-\fR\fIpass\fR),
  12652. dump a representation of the control flow graph suitable for viewing with
  12653. GraphViz to \fI\fIfile\fI.\fIpassid\fI.\fIpass\fI.dot\fR. Each function in
  12654. the file is pretty-printed as a subgraph, so that GraphViz can render them
  12655. all in a single plot.
  12656. .Sp
  12657. This option currently only works for \s-1RTL\s0 dumps, and the \s-1RTL\s0 is always
  12658. dumped in slim form.
  12659. .IP "\fBvops\fR" 4
  12660. .IX Item "vops"
  12661. Enable showing virtual operands for every statement.
  12662. .IP "\fBlineno\fR" 4
  12663. .IX Item "lineno"
  12664. Enable showing line numbers for statements.
  12665. .IP "\fBuid\fR" 4
  12666. .IX Item "uid"
  12667. Enable showing the unique \s-1ID \s0(\f(CW\*(C`DECL_UID\*(C'\fR) for each variable.
  12668. .IP "\fBverbose\fR" 4
  12669. .IX Item "verbose"
  12670. Enable showing the tree dump for each statement.
  12671. .IP "\fBeh\fR" 4
  12672. .IX Item "eh"
  12673. Enable showing the \s-1EH\s0 region number holding each statement.
  12674. .IP "\fBscev\fR" 4
  12675. .IX Item "scev"
  12676. Enable showing scalar evolution analysis details.
  12677. .IP "\fBoptimized\fR" 4
  12678. .IX Item "optimized"
  12679. Enable showing optimization information (only available in certain
  12680. passes).
  12681. .IP "\fBmissed\fR" 4
  12682. .IX Item "missed"
  12683. Enable showing missed optimization information (only available in certain
  12684. passes).
  12685. .IP "\fBnote\fR" 4
  12686. .IX Item "note"
  12687. Enable other detailed optimization information (only available in
  12688. certain passes).
  12689. .IP "\fB=\fR\fIfilename\fR" 4
  12690. .IX Item "=filename"
  12691. Instead of an auto named dump file, output into the given file
  12692. name. The file names \fIstdout\fR and \fIstderr\fR are treated
  12693. specially and are considered already open standard streams. For
  12694. example,
  12695. .Sp
  12696. .Vb 2
  12697. \& gcc \-O2 \-ftree\-vectorize \-fdump\-tree\-vect\-blocks=foo.dump
  12698. \& \-fdump\-tree\-pre=/dev/stderr file.c
  12699. .Ve
  12700. .Sp
  12701. outputs vectorizer dump into \fIfoo.dump\fR, while the \s-1PRE\s0 dump is
  12702. output on to \fIstderr\fR. If two conflicting dump filenames are
  12703. given for the same pass, then the latter option overrides the earlier
  12704. one.
  12705. .IP "\fBall\fR" 4
  12706. .IX Item "all"
  12707. Turn on all options, except \fBraw\fR, \fBslim\fR, \fBverbose\fR
  12708. and \fBlineno\fR.
  12709. .IP "\fBoptall\fR" 4
  12710. .IX Item "optall"
  12711. Turn on all optimization options, i.e., \fBoptimized\fR,
  12712. \&\fBmissed\fR, and \fBnote\fR.
  12713. .RE
  12714. .RS 4
  12715. .Sp
  12716. To determine what tree dumps are available or find the dump for a pass
  12717. of interest follow the steps below.
  12718. .IP "1." 4
  12719. .IX Item "1."
  12720. Invoke \s-1GCC\s0 with \fB\-fdump\-passes\fR and in the \fIstderr\fR output
  12721. look for a code that corresponds to the pass you are interested in.
  12722. For example, the codes \f(CW\*(C`tree\-evrp\*(C'\fR, \f(CW\*(C`tree\-vrp1\*(C'\fR, and
  12723. \&\f(CW\*(C`tree\-vrp2\*(C'\fR correspond to the three Value Range Propagation passes.
  12724. The number at the end distinguishes distinct invocations of the same pass.
  12725. .IP "2." 4
  12726. .IX Item "2."
  12727. To enable the creation of the dump file, append the pass code to
  12728. the \fB\-fdump\-\fR option prefix and invoke \s-1GCC\s0 with it. For example,
  12729. to enable the dump from the Early Value Range Propagation pass, invoke
  12730. \&\s-1GCC\s0 with the \fB\-fdump\-tree\-evrp\fR option. Optionally, you may
  12731. specify the name of the dump file. If you don't specify one, \s-1GCC\s0
  12732. creates as described below.
  12733. .IP "3." 4
  12734. .IX Item "3."
  12735. Find the pass dump in a file whose name is composed of three components
  12736. separated by a period: the name of the source file \s-1GCC\s0 was invoked to
  12737. compile, a numeric suffix indicating the pass number followed by the
  12738. letter \fBt\fR for tree passes (and the letter \fBr\fR for \s-1RTL\s0 passes),
  12739. and finally the pass code. For example, the Early \s-1VRP\s0 pass dump might
  12740. be in a file named \fImyfile.c.038t.evrp\fR in the current working
  12741. directory. Note that the numeric codes are not stable and may change
  12742. from one version of \s-1GCC\s0 to another.
  12743. .RE
  12744. .RS 4
  12745. .RE
  12746. .IP "\fB\-fopt\-info\fR" 4
  12747. .IX Item "-fopt-info"
  12748. .PD 0
  12749. .IP "\fB\-fopt\-info\-\fR\fIoptions\fR" 4
  12750. .IX Item "-fopt-info-options"
  12751. .IP "\fB\-fopt\-info\-\fR\fIoptions\fR\fB=\fR\fIfilename\fR" 4
  12752. .IX Item "-fopt-info-options=filename"
  12753. .PD
  12754. Controls optimization dumps from various optimization passes. If the
  12755. \&\fB\-\fR\fIoptions\fR form is used, \fIoptions\fR is a list of
  12756. \&\fB\-\fR separated option keywords to select the dump details and
  12757. optimizations.
  12758. .Sp
  12759. The \fIoptions\fR can be divided into two groups: options describing the
  12760. verbosity of the dump, and options describing which optimizations
  12761. should be included. The options from both the groups can be freely
  12762. mixed as they are non-overlapping. However, in case of any conflicts,
  12763. the later options override the earlier options on the command
  12764. line.
  12765. .Sp
  12766. The following options control the dump verbosity:
  12767. .RS 4
  12768. .IP "\fBoptimized\fR" 4
  12769. .IX Item "optimized"
  12770. Print information when an optimization is successfully applied. It is
  12771. up to a pass to decide which information is relevant. For example, the
  12772. vectorizer passes print the source location of loops which are
  12773. successfully vectorized.
  12774. .IP "\fBmissed\fR" 4
  12775. .IX Item "missed"
  12776. Print information about missed optimizations. Individual passes
  12777. control which information to include in the output.
  12778. .IP "\fBnote\fR" 4
  12779. .IX Item "note"
  12780. Print verbose information about optimizations, such as certain
  12781. transformations, more detailed messages about decisions etc.
  12782. .IP "\fBall\fR" 4
  12783. .IX Item "all"
  12784. Print detailed optimization information. This includes
  12785. \&\fBoptimized\fR, \fBmissed\fR, and \fBnote\fR.
  12786. .RE
  12787. .RS 4
  12788. .Sp
  12789. One or more of the following option keywords can be used to describe a
  12790. group of optimizations:
  12791. .IP "\fBipa\fR" 4
  12792. .IX Item "ipa"
  12793. Enable dumps from all interprocedural optimizations.
  12794. .IP "\fBloop\fR" 4
  12795. .IX Item "loop"
  12796. Enable dumps from all loop optimizations.
  12797. .IP "\fBinline\fR" 4
  12798. .IX Item "inline"
  12799. Enable dumps from all inlining optimizations.
  12800. .IP "\fBomp\fR" 4
  12801. .IX Item "omp"
  12802. Enable dumps from all \s-1OMP \s0(Offloading and Multi Processing) optimizations.
  12803. .IP "\fBvec\fR" 4
  12804. .IX Item "vec"
  12805. Enable dumps from all vectorization optimizations.
  12806. .IP "\fBoptall\fR" 4
  12807. .IX Item "optall"
  12808. Enable dumps from all optimizations. This is a superset of
  12809. the optimization groups listed above.
  12810. .RE
  12811. .RS 4
  12812. .Sp
  12813. If \fIoptions\fR is
  12814. omitted, it defaults to \fBoptimized-optall\fR, which means to dump all
  12815. info about successful optimizations from all the passes.
  12816. .Sp
  12817. If the \fIfilename\fR is provided, then the dumps from all the
  12818. applicable optimizations are concatenated into the \fIfilename\fR.
  12819. Otherwise the dump is output onto \fIstderr\fR. Though multiple
  12820. \&\fB\-fopt\-info\fR options are accepted, only one of them can include
  12821. a \fIfilename\fR. If other filenames are provided then all but the
  12822. first such option are ignored.
  12823. .Sp
  12824. Note that the output \fIfilename\fR is overwritten
  12825. in case of multiple translation units. If a combined output from
  12826. multiple translation units is desired, \fIstderr\fR should be used
  12827. instead.
  12828. .Sp
  12829. In the following example, the optimization info is output to
  12830. \&\fIstderr\fR:
  12831. .Sp
  12832. .Vb 1
  12833. \& gcc \-O3 \-fopt\-info
  12834. .Ve
  12835. .Sp
  12836. This example:
  12837. .Sp
  12838. .Vb 1
  12839. \& gcc \-O3 \-fopt\-info\-missed=missed.all
  12840. .Ve
  12841. .Sp
  12842. outputs missed optimization report from all the passes into
  12843. \&\fImissed.all\fR, and this one:
  12844. .Sp
  12845. .Vb 1
  12846. \& gcc \-O2 \-ftree\-vectorize \-fopt\-info\-vec\-missed
  12847. .Ve
  12848. .Sp
  12849. prints information about missed optimization opportunities from
  12850. vectorization passes on \fIstderr\fR.
  12851. Note that \fB\-fopt\-info\-vec\-missed\fR is equivalent to
  12852. \&\fB\-fopt\-info\-missed\-vec\fR.
  12853. .Sp
  12854. As another example,
  12855. .Sp
  12856. .Vb 1
  12857. \& gcc \-O3 \-fopt\-info\-inline\-optimized\-missed=inline.txt
  12858. .Ve
  12859. .Sp
  12860. outputs information about missed optimizations as well as
  12861. optimized locations from all the inlining passes into
  12862. \&\fIinline.txt\fR.
  12863. .Sp
  12864. Finally, consider:
  12865. .Sp
  12866. .Vb 1
  12867. \& gcc \-fopt\-info\-vec\-missed=vec.miss \-fopt\-info\-loop\-optimized=loop.opt
  12868. .Ve
  12869. .Sp
  12870. Here the two output filenames \fIvec.miss\fR and \fIloop.opt\fR are
  12871. in conflict since only one output file is allowed. In this case, only
  12872. the first option takes effect and the subsequent options are
  12873. ignored. Thus only \fIvec.miss\fR is produced which contains
  12874. dumps from the vectorizer about missed opportunities.
  12875. .RE
  12876. .IP "\fB\-fsched\-verbose=\fR\fIn\fR" 4
  12877. .IX Item "-fsched-verbose=n"
  12878. On targets that use instruction scheduling, this option controls the
  12879. amount of debugging output the scheduler prints to the dump files.
  12880. .Sp
  12881. For \fIn\fR greater than zero, \fB\-fsched\-verbose\fR outputs the
  12882. same information as \fB\-fdump\-rtl\-sched1\fR and \fB\-fdump\-rtl\-sched2\fR.
  12883. For \fIn\fR greater than one, it also output basic block probabilities,
  12884. detailed ready list information and unit/insn info. For \fIn\fR greater
  12885. than two, it includes \s-1RTL\s0 at abort point, control-flow and regions info.
  12886. And for \fIn\fR over four, \fB\-fsched\-verbose\fR also includes
  12887. dependence info.
  12888. .IP "\fB\-fenable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR" 4
  12889. .IX Item "-fenable-kind-pass"
  12890. .PD 0
  12891. .IP "\fB\-fdisable\-\fR\fIkind\fR\fB\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  12892. .IX Item "-fdisable-kind-pass=range-list"
  12893. .PD
  12894. This is a set of options that are used to explicitly disable/enable
  12895. optimization passes. These options are intended for use for debugging \s-1GCC.\s0
  12896. Compiler users should use regular options for enabling/disabling
  12897. passes instead.
  12898. .RS 4
  12899. .IP "\fB\-fdisable\-ipa\-\fR\fIpass\fR" 4
  12900. .IX Item "-fdisable-ipa-pass"
  12901. Disable \s-1IPA\s0 pass \fIpass\fR. \fIpass\fR is the pass name. If the same pass is
  12902. statically invoked in the compiler multiple times, the pass name should be
  12903. appended with a sequential number starting from 1.
  12904. .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR" 4
  12905. .IX Item "-fdisable-rtl-pass"
  12906. .PD 0
  12907. .IP "\fB\-fdisable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  12908. .IX Item "-fdisable-rtl-pass=range-list"
  12909. .PD
  12910. Disable \s-1RTL\s0 pass \fIpass\fR. \fIpass\fR is the pass name. If the same pass is
  12911. statically invoked in the compiler multiple times, the pass name should be
  12912. appended with a sequential number starting from 1. \fIrange-list\fR is a
  12913. comma-separated list of function ranges or assembler names. Each range is a number
  12914. pair separated by a colon. The range is inclusive in both ends. If the range
  12915. is trivial, the number pair can be simplified as a single number. If the
  12916. function's call graph node's \fIuid\fR falls within one of the specified ranges,
  12917. the \fIpass\fR is disabled for that function. The \fIuid\fR is shown in the
  12918. function header of a dump file, and the pass names can be dumped by using
  12919. option \fB\-fdump\-passes\fR.
  12920. .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR" 4
  12921. .IX Item "-fdisable-tree-pass"
  12922. .PD 0
  12923. .IP "\fB\-fdisable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  12924. .IX Item "-fdisable-tree-pass=range-list"
  12925. .PD
  12926. Disable tree pass \fIpass\fR. See \fB\-fdisable\-rtl\fR for the description of
  12927. option arguments.
  12928. .IP "\fB\-fenable\-ipa\-\fR\fIpass\fR" 4
  12929. .IX Item "-fenable-ipa-pass"
  12930. Enable \s-1IPA\s0 pass \fIpass\fR. \fIpass\fR is the pass name. If the same pass is
  12931. statically invoked in the compiler multiple times, the pass name should be
  12932. appended with a sequential number starting from 1.
  12933. .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR" 4
  12934. .IX Item "-fenable-rtl-pass"
  12935. .PD 0
  12936. .IP "\fB\-fenable\-rtl\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  12937. .IX Item "-fenable-rtl-pass=range-list"
  12938. .PD
  12939. Enable \s-1RTL\s0 pass \fIpass\fR. See \fB\-fdisable\-rtl\fR for option argument
  12940. description and examples.
  12941. .IP "\fB\-fenable\-tree\-\fR\fIpass\fR" 4
  12942. .IX Item "-fenable-tree-pass"
  12943. .PD 0
  12944. .IP "\fB\-fenable\-tree\-\fR\fIpass\fR\fB=\fR\fIrange-list\fR" 4
  12945. .IX Item "-fenable-tree-pass=range-list"
  12946. .PD
  12947. Enable tree pass \fIpass\fR. See \fB\-fdisable\-rtl\fR for the description
  12948. of option arguments.
  12949. .RE
  12950. .RS 4
  12951. .Sp
  12952. Here are some examples showing uses of these options.
  12953. .Sp
  12954. .Vb 10
  12955. \& # disable ccp1 for all functions
  12956. \& \-fdisable\-tree\-ccp1
  12957. \& # disable complete unroll for function whose cgraph node uid is 1
  12958. \& \-fenable\-tree\-cunroll=1
  12959. \& # disable gcse2 for functions at the following ranges [1,1],
  12960. \& # [300,400], and [400,1000]
  12961. \& # disable gcse2 for functions foo and foo2
  12962. \& \-fdisable\-rtl\-gcse2=foo,foo2
  12963. \& # disable early inlining
  12964. \& \-fdisable\-tree\-einline
  12965. \& # disable ipa inlining
  12966. \& \-fdisable\-ipa\-inline
  12967. \& # enable tree full unroll
  12968. \& \-fenable\-tree\-unroll
  12969. .Ve
  12970. .RE
  12971. .IP "\fB\-fchecking\fR" 4
  12972. .IX Item "-fchecking"
  12973. .PD 0
  12974. .IP "\fB\-fchecking=\fR\fIn\fR" 4
  12975. .IX Item "-fchecking=n"
  12976. .PD
  12977. Enable internal consistency checking. The default depends on
  12978. the compiler configuration. \fB\-fchecking=2\fR enables further
  12979. internal consistency checking that might affect code generation.
  12980. .IP "\fB\-frandom\-seed=\fR\fIstring\fR" 4
  12981. .IX Item "-frandom-seed=string"
  12982. This option provides a seed that \s-1GCC\s0 uses in place of
  12983. random numbers in generating certain symbol names
  12984. that have to be different in every compiled file. It is also used to
  12985. place unique stamps in coverage data files and the object files that
  12986. produce them. You can use the \fB\-frandom\-seed\fR option to produce
  12987. reproducibly identical object files.
  12988. .Sp
  12989. The \fIstring\fR can either be a number (decimal, octal or hex) or an
  12990. arbitrary string (in which case it's converted to a number by
  12991. computing \s-1CRC32\s0).
  12992. .Sp
  12993. The \fIstring\fR should be different for every file you compile.
  12994. .IP "\fB\-save\-temps\fR" 4
  12995. .IX Item "-save-temps"
  12996. .PD 0
  12997. .IP "\fB\-save\-temps=cwd\fR" 4
  12998. .IX Item "-save-temps=cwd"
  12999. .PD
  13000. Store the usual \*(L"temporary\*(R" intermediate files permanently; place them
  13001. in the current directory and name them based on the source file. Thus,
  13002. compiling \fIfoo.c\fR with \fB\-c \-save\-temps\fR produces files
  13003. \&\fIfoo.i\fR and \fIfoo.s\fR, as well as \fIfoo.o\fR. This creates a
  13004. preprocessed \fIfoo.i\fR output file even though the compiler now
  13005. normally uses an integrated preprocessor.
  13006. .Sp
  13007. When used in combination with the \fB\-x\fR command-line option,
  13008. \&\fB\-save\-temps\fR is sensible enough to avoid over writing an
  13009. input source file with the same extension as an intermediate file.
  13010. The corresponding intermediate file may be obtained by renaming the
  13011. source file before using \fB\-save\-temps\fR.
  13012. .Sp
  13013. If you invoke \s-1GCC\s0 in parallel, compiling several different source
  13014. files that share a common base name in different subdirectories or the
  13015. same source file compiled for multiple output destinations, it is
  13016. likely that the different parallel compilers will interfere with each
  13017. other, and overwrite the temporary files. For instance:
  13018. .Sp
  13019. .Vb 2
  13020. \& gcc \-save\-temps \-o outdir1/foo.o indir1/foo.c&
  13021. \& gcc \-save\-temps \-o outdir2/foo.o indir2/foo.c&
  13022. .Ve
  13023. .Sp
  13024. may result in \fIfoo.i\fR and \fIfoo.o\fR being written to
  13025. simultaneously by both compilers.
  13026. .IP "\fB\-save\-temps=obj\fR" 4
  13027. .IX Item "-save-temps=obj"
  13028. Store the usual \*(L"temporary\*(R" intermediate files permanently. If the
  13029. \&\fB\-o\fR option is used, the temporary files are based on the
  13030. object file. If the \fB\-o\fR option is not used, the
  13031. \&\fB\-save\-temps=obj\fR switch behaves like \fB\-save\-temps\fR.
  13032. .Sp
  13033. For example:
  13034. .Sp
  13035. .Vb 3
  13036. \& gcc \-save\-temps=obj \-c foo.c
  13037. \& gcc \-save\-temps=obj \-c bar.c \-o dir/xbar.o
  13038. \& gcc \-save\-temps=obj foobar.c \-o dir2/yfoobar
  13039. .Ve
  13040. .Sp
  13041. creates \fIfoo.i\fR, \fIfoo.s\fR, \fIdir/xbar.i\fR,
  13042. \&\fIdir/xbar.s\fR, \fIdir2/yfoobar.i\fR, \fIdir2/yfoobar.s\fR, and
  13043. \&\fIdir2/yfoobar.o\fR.
  13044. .IP "\fB\-time\fR[\fB=\fR\fIfile\fR]" 4
  13045. .IX Item "-time[=file]"
  13046. Report the \s-1CPU\s0 time taken by each subprocess in the compilation
  13047. sequence. For C source files, this is the compiler proper and assembler
  13048. (plus the linker if linking is done).
  13049. .Sp
  13050. Without the specification of an output file, the output looks like this:
  13051. .Sp
  13052. .Vb 2
  13053. \& # cc1 0.12 0.01
  13054. \& # as 0.00 0.01
  13055. .Ve
  13056. .Sp
  13057. The first number on each line is the \*(L"user time\*(R", that is time spent
  13058. executing the program itself. The second number is \*(L"system time\*(R",
  13059. time spent executing operating system routines on behalf of the program.
  13060. Both numbers are in seconds.
  13061. .Sp
  13062. With the specification of an output file, the output is appended to the
  13063. named file, and it looks like this:
  13064. .Sp
  13065. .Vb 2
  13066. \& 0.12 0.01 cc1 <options>
  13067. \& 0.00 0.01 as <options>
  13068. .Ve
  13069. .Sp
  13070. The \*(L"user time\*(R" and the \*(L"system time\*(R" are moved before the program
  13071. name, and the options passed to the program are displayed, so that one
  13072. can later tell what file was being compiled, and with which options.
  13073. .IP "\fB\-fdump\-final\-insns\fR[\fB=\fR\fIfile\fR]" 4
  13074. .IX Item "-fdump-final-insns[=file]"
  13075. Dump the final internal representation (\s-1RTL\s0) to \fIfile\fR. If the
  13076. optional argument is omitted (or if \fIfile\fR is \f(CW\*(C`.\*(C'\fR), the name
  13077. of the dump file is determined by appending \f(CW\*(C`.gkd\*(C'\fR to the
  13078. compilation output file name.
  13079. .IP "\fB\-fcompare\-debug\fR[\fB=\fR\fIopts\fR]" 4
  13080. .IX Item "-fcompare-debug[=opts]"
  13081. If no error occurs during compilation, run the compiler a second time,
  13082. adding \fIopts\fR and \fB\-fcompare\-debug\-second\fR to the arguments
  13083. passed to the second compilation. Dump the final internal
  13084. representation in both compilations, and print an error if they differ.
  13085. .Sp
  13086. If the equal sign is omitted, the default \fB\-gtoggle\fR is used.
  13087. .Sp
  13088. The environment variable \fB\s-1GCC_COMPARE_DEBUG\s0\fR, if defined, non-empty
  13089. and nonzero, implicitly enables \fB\-fcompare\-debug\fR. If
  13090. \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR is defined to a string starting with a dash,
  13091. then it is used for \fIopts\fR, otherwise the default \fB\-gtoggle\fR
  13092. is used.
  13093. .Sp
  13094. \&\fB\-fcompare\-debug=\fR, with the equal sign but without \fIopts\fR,
  13095. is equivalent to \fB\-fno\-compare\-debug\fR, which disables the dumping
  13096. of the final representation and the second compilation, preventing even
  13097. \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR from taking effect.
  13098. .Sp
  13099. To verify full coverage during \fB\-fcompare\-debug\fR testing, set
  13100. \&\fB\s-1GCC_COMPARE_DEBUG\s0\fR to say \fB\-fcompare\-debug\-not\-overridden\fR,
  13101. which \s-1GCC\s0 rejects as an invalid option in any actual compilation
  13102. (rather than preprocessing, assembly or linking). To get just a
  13103. warning, setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR to \fB\-w%n\-fcompare\-debug
  13104. not overridden\fR will do.
  13105. .IP "\fB\-fcompare\-debug\-second\fR" 4
  13106. .IX Item "-fcompare-debug-second"
  13107. This option is implicitly passed to the compiler for the second
  13108. compilation requested by \fB\-fcompare\-debug\fR, along with options to
  13109. silence warnings, and omitting other options that would cause
  13110. side-effect compiler outputs to files or to the standard output. Dump
  13111. files and preserved temporary files are renamed so as to contain the
  13112. \&\f(CW\*(C`.gk\*(C'\fR additional extension during the second compilation, to avoid
  13113. overwriting those generated by the first.
  13114. .Sp
  13115. When this option is passed to the compiler driver, it causes the
  13116. \&\fIfirst\fR compilation to be skipped, which makes it useful for little
  13117. other than debugging the compiler proper.
  13118. .IP "\fB\-gtoggle\fR" 4
  13119. .IX Item "-gtoggle"
  13120. Turn off generation of debug info, if leaving out this option
  13121. generates it, or turn it on at level 2 otherwise. The position of this
  13122. argument in the command line does not matter; it takes effect after all
  13123. other options are processed, and it does so only once, no matter how
  13124. many times it is given. This is mainly intended to be used with
  13125. \&\fB\-fcompare\-debug\fR.
  13126. .IP "\fB\-fvar\-tracking\-assignments\-toggle\fR" 4
  13127. .IX Item "-fvar-tracking-assignments-toggle"
  13128. Toggle \fB\-fvar\-tracking\-assignments\fR, in the same way that
  13129. \&\fB\-gtoggle\fR toggles \fB\-g\fR.
  13130. .IP "\fB\-Q\fR" 4
  13131. .IX Item "-Q"
  13132. Makes the compiler print out each function name as it is compiled, and
  13133. print some statistics about each pass when it finishes.
  13134. .IP "\fB\-ftime\-report\fR" 4
  13135. .IX Item "-ftime-report"
  13136. Makes the compiler print some statistics about the time consumed by each
  13137. pass when it finishes.
  13138. .IP "\fB\-ftime\-report\-details\fR" 4
  13139. .IX Item "-ftime-report-details"
  13140. Record the time consumed by infrastructure parts separately for each pass.
  13141. .IP "\fB\-fira\-verbose=\fR\fIn\fR" 4
  13142. .IX Item "-fira-verbose=n"
  13143. Control the verbosity of the dump file for the integrated register allocator.
  13144. The default value is 5. If the value \fIn\fR is greater or equal to 10,
  13145. the dump output is sent to stderr using the same format as \fIn\fR minus 10.
  13146. .IP "\fB\-flto\-report\fR" 4
  13147. .IX Item "-flto-report"
  13148. Prints a report with internal details on the workings of the link-time
  13149. optimizer. The contents of this report vary from version to version.
  13150. It is meant to be useful to \s-1GCC\s0 developers when processing object
  13151. files in \s-1LTO\s0 mode (via \fB\-flto\fR).
  13152. .Sp
  13153. Disabled by default.
  13154. .IP "\fB\-flto\-report\-wpa\fR" 4
  13155. .IX Item "-flto-report-wpa"
  13156. Like \fB\-flto\-report\fR, but only print for the \s-1WPA\s0 phase of Link
  13157. Time Optimization.
  13158. .IP "\fB\-fmem\-report\fR" 4
  13159. .IX Item "-fmem-report"
  13160. Makes the compiler print some statistics about permanent memory
  13161. allocation when it finishes.
  13162. .IP "\fB\-fmem\-report\-wpa\fR" 4
  13163. .IX Item "-fmem-report-wpa"
  13164. Makes the compiler print some statistics about permanent memory
  13165. allocation for the \s-1WPA\s0 phase only.
  13166. .IP "\fB\-fpre\-ipa\-mem\-report\fR" 4
  13167. .IX Item "-fpre-ipa-mem-report"
  13168. .PD 0
  13169. .IP "\fB\-fpost\-ipa\-mem\-report\fR" 4
  13170. .IX Item "-fpost-ipa-mem-report"
  13171. .PD
  13172. Makes the compiler print some statistics about permanent memory
  13173. allocation before or after interprocedural optimization.
  13174. .IP "\fB\-fprofile\-report\fR" 4
  13175. .IX Item "-fprofile-report"
  13176. Makes the compiler print some statistics about consistency of the
  13177. (estimated) profile and effect of individual passes.
  13178. .IP "\fB\-fstack\-usage\fR" 4
  13179. .IX Item "-fstack-usage"
  13180. Makes the compiler output stack usage information for the program, on a
  13181. per-function basis. The filename for the dump is made by appending
  13182. \&\fI.su\fR to the \fIauxname\fR. \fIauxname\fR is generated from the name of
  13183. the output file, if explicitly specified and it is not an executable,
  13184. otherwise it is the basename of the source file. An entry is made up
  13185. of three fields:
  13186. .RS 4
  13187. .IP "*" 4
  13188. The name of the function.
  13189. .IP "*" 4
  13190. A number of bytes.
  13191. .IP "*" 4
  13192. One or more qualifiers: \f(CW\*(C`static\*(C'\fR, \f(CW\*(C`dynamic\*(C'\fR, \f(CW\*(C`bounded\*(C'\fR.
  13193. .RE
  13194. .RS 4
  13195. .Sp
  13196. The qualifier \f(CW\*(C`static\*(C'\fR means that the function manipulates the stack
  13197. statically: a fixed number of bytes are allocated for the frame on function
  13198. entry and released on function exit; no stack adjustments are otherwise made
  13199. in the function. The second field is this fixed number of bytes.
  13200. .Sp
  13201. The qualifier \f(CW\*(C`dynamic\*(C'\fR means that the function manipulates the stack
  13202. dynamically: in addition to the static allocation described above, stack
  13203. adjustments are made in the body of the function, for example to push/pop
  13204. arguments around function calls. If the qualifier \f(CW\*(C`bounded\*(C'\fR is also
  13205. present, the amount of these adjustments is bounded at compile time and
  13206. the second field is an upper bound of the total amount of stack used by
  13207. the function. If it is not present, the amount of these adjustments is
  13208. not bounded at compile time and the second field only represents the
  13209. bounded part.
  13210. .RE
  13211. .IP "\fB\-fstats\fR" 4
  13212. .IX Item "-fstats"
  13213. Emit statistics about front-end processing at the end of the compilation.
  13214. This option is supported only by the \*(C+ front end, and
  13215. the information is generally only useful to the G++ development team.
  13216. .IP "\fB\-fdbg\-cnt\-list\fR" 4
  13217. .IX Item "-fdbg-cnt-list"
  13218. Print the name and the counter upper bound for all debug counters.
  13219. .IP "\fB\-fdbg\-cnt=\fR\fIcounter-value-list\fR" 4
  13220. .IX Item "-fdbg-cnt=counter-value-list"
  13221. Set the internal debug counter upper bound. \fIcounter-value-list\fR
  13222. is a comma-separated list of \fIname\fR:\fIvalue\fR pairs
  13223. which sets the upper bound of each debug counter \fIname\fR to \fIvalue\fR.
  13224. All debug counters have the initial upper bound of \f(CW\*(C`UINT_MAX\*(C'\fR;
  13225. thus \f(CW\*(C`dbg_cnt\*(C'\fR returns true always unless the upper bound
  13226. is set by this option.
  13227. For example, with \fB\-fdbg\-cnt=dce:10,tail_call:0\fR,
  13228. \&\f(CW\*(C`dbg_cnt(dce)\*(C'\fR returns true only for first 10 invocations.
  13229. .IP "\fB\-print\-file\-name=\fR\fIlibrary\fR" 4
  13230. .IX Item "-print-file-name=library"
  13231. Print the full absolute name of the library file \fIlibrary\fR that
  13232. would be used when linking\-\-\-and don't do anything else. With this
  13233. option, \s-1GCC\s0 does not compile or link anything; it just prints the
  13234. file name.
  13235. .IP "\fB\-print\-multi\-directory\fR" 4
  13236. .IX Item "-print-multi-directory"
  13237. Print the directory name corresponding to the multilib selected by any
  13238. other switches present in the command line. This directory is supposed
  13239. to exist in \fB\s-1GCC_EXEC_PREFIX\s0\fR.
  13240. .IP "\fB\-print\-multi\-lib\fR" 4
  13241. .IX Item "-print-multi-lib"
  13242. Print the mapping from multilib directory names to compiler switches
  13243. that enable them. The directory name is separated from the switches by
  13244. \&\fB;\fR, and each switch starts with an \fB@\fR instead of the
  13245. \&\fB\-\fR, without spaces between multiple switches. This is supposed to
  13246. ease shell processing.
  13247. .IP "\fB\-print\-multi\-os\-directory\fR" 4
  13248. .IX Item "-print-multi-os-directory"
  13249. Print the path to \s-1OS\s0 libraries for the selected
  13250. multilib, relative to some \fIlib\fR subdirectory. If \s-1OS\s0 libraries are
  13251. present in the \fIlib\fR subdirectory and no multilibs are used, this is
  13252. usually just \fI.\fR, if \s-1OS\s0 libraries are present in \fIlib\fIsuffix\fI\fR
  13253. sibling directories this prints e.g. \fI../lib64\fR, \fI../lib\fR or
  13254. \&\fI../lib32\fR, or if \s-1OS\s0 libraries are present in \fIlib/\fIsubdir\fI\fR
  13255. subdirectories it prints e.g. \fIamd64\fR, \fIsparcv9\fR or \fIev6\fR.
  13256. .IP "\fB\-print\-multiarch\fR" 4
  13257. .IX Item "-print-multiarch"
  13258. Print the path to \s-1OS\s0 libraries for the selected multiarch,
  13259. relative to some \fIlib\fR subdirectory.
  13260. .IP "\fB\-print\-prog\-name=\fR\fIprogram\fR" 4
  13261. .IX Item "-print-prog-name=program"
  13262. Like \fB\-print\-file\-name\fR, but searches for a program such as \fBcpp\fR.
  13263. .IP "\fB\-print\-libgcc\-file\-name\fR" 4
  13264. .IX Item "-print-libgcc-file-name"
  13265. Same as \fB\-print\-file\-name=libgcc.a\fR.
  13266. .Sp
  13267. This is useful when you use \fB\-nostdlib\fR or \fB\-nodefaultlibs\fR
  13268. but you do want to link with \fIlibgcc.a\fR. You can do:
  13269. .Sp
  13270. .Vb 1
  13271. \& gcc \-nostdlib <files>... \`gcc \-print\-libgcc\-file\-name\`
  13272. .Ve
  13273. .IP "\fB\-print\-search\-dirs\fR" 4
  13274. .IX Item "-print-search-dirs"
  13275. Print the name of the configured installation directory and a list of
  13276. program and library directories \fBgcc\fR searches\-\-\-and don't do anything else.
  13277. .Sp
  13278. This is useful when \fBgcc\fR prints the error message
  13279. \&\fBinstallation problem, cannot exec cpp0: No such file or directory\fR.
  13280. To resolve this you either need to put \fIcpp0\fR and the other compiler
  13281. components where \fBgcc\fR expects to find them, or you can set the environment
  13282. variable \fB\s-1GCC_EXEC_PREFIX\s0\fR to the directory where you installed them.
  13283. Don't forget the trailing \fB/\fR.
  13284. .IP "\fB\-print\-sysroot\fR" 4
  13285. .IX Item "-print-sysroot"
  13286. Print the target sysroot directory that is used during
  13287. compilation. This is the target sysroot specified either at configure
  13288. time or using the \fB\-\-sysroot\fR option, possibly with an extra
  13289. suffix that depends on compilation options. If no target sysroot is
  13290. specified, the option prints nothing.
  13291. .IP "\fB\-print\-sysroot\-headers\-suffix\fR" 4
  13292. .IX Item "-print-sysroot-headers-suffix"
  13293. Print the suffix added to the target sysroot when searching for
  13294. headers, or give an error if the compiler is not configured with such
  13295. a suffix\-\-\-and don't do anything else.
  13296. .IP "\fB\-dumpmachine\fR" 4
  13297. .IX Item "-dumpmachine"
  13298. Print the compiler's target machine (for example,
  13299. \&\fBi686\-pc\-linux\-gnu\fR)\-\-\-and don't do anything else.
  13300. .IP "\fB\-dumpversion\fR" 4
  13301. .IX Item "-dumpversion"
  13302. Print the compiler version (for example, \f(CW3.0\fR, \f(CW6.3.0\fR or \f(CW7\fR)\-\-\-and don't do
  13303. anything else. This is the compiler version used in filesystem paths,
  13304. specs, can be depending on how the compiler has been configured just
  13305. a single number (major version), two numbers separated by dot (major and
  13306. minor version) or three numbers separated by dots (major, minor and patchlevel
  13307. version).
  13308. .IP "\fB\-dumpfullversion\fR" 4
  13309. .IX Item "-dumpfullversion"
  13310. Print the full compiler version, always 3 numbers separated by dots,
  13311. major, minor and patchlevel version.
  13312. .IP "\fB\-dumpspecs\fR" 4
  13313. .IX Item "-dumpspecs"
  13314. Print the compiler's built-in specs\-\-\-and don't do anything else. (This
  13315. is used when \s-1GCC\s0 itself is being built.)
  13316. .SS "Machine-Dependent Options"
  13317. .IX Subsection "Machine-Dependent Options"
  13318. Each target machine supported by \s-1GCC\s0 can have its own options\-\-\-for
  13319. example, to allow you to compile for a particular processor variant or
  13320. \&\s-1ABI,\s0 or to control optimizations specific to that machine. By
  13321. convention, the names of machine-specific options start with
  13322. \&\fB\-m\fR.
  13323. .PP
  13324. Some configurations of the compiler also support additional target-specific
  13325. options, usually for compatibility with other compilers on the same
  13326. platform.
  13327. .PP
  13328. \fIAArch64 Options\fR
  13329. .IX Subsection "AArch64 Options"
  13330. .PP
  13331. These options are defined for AArch64 implementations:
  13332. .IP "\fB\-mabi=\fR\fIname\fR" 4
  13333. .IX Item "-mabi=name"
  13334. Generate code for the specified data model. Permissible values
  13335. are \fBilp32\fR for SysV-like data model where int, long int and pointers
  13336. are 32 bits, and \fBlp64\fR for SysV-like data model where int is 32 bits,
  13337. but long int and pointers are 64 bits.
  13338. .Sp
  13339. The default depends on the specific target configuration. Note that
  13340. the \s-1LP64\s0 and \s-1ILP32\s0 ABIs are not link-compatible; you must compile your
  13341. entire program with the same \s-1ABI,\s0 and link with a compatible set of libraries.
  13342. .IP "\fB\-mbig\-endian\fR" 4
  13343. .IX Item "-mbig-endian"
  13344. Generate big-endian code. This is the default when \s-1GCC\s0 is configured for an
  13345. \&\fBaarch64_be\-*\-*\fR target.
  13346. .IP "\fB\-mgeneral\-regs\-only\fR" 4
  13347. .IX Item "-mgeneral-regs-only"
  13348. Generate code which uses only the general-purpose registers. This will prevent
  13349. the compiler from using floating-point and Advanced \s-1SIMD\s0 registers but will not
  13350. impose any restrictions on the assembler.
  13351. .IP "\fB\-mlittle\-endian\fR" 4
  13352. .IX Item "-mlittle-endian"
  13353. Generate little-endian code. This is the default when \s-1GCC\s0 is configured for an
  13354. \&\fBaarch64\-*\-*\fR but not an \fBaarch64_be\-*\-*\fR target.
  13355. .IP "\fB\-mcmodel=tiny\fR" 4
  13356. .IX Item "-mcmodel=tiny"
  13357. Generate code for the tiny code model. The program and its statically defined
  13358. symbols must be within 1MB of each other. Programs can be statically or
  13359. dynamically linked.
  13360. .IP "\fB\-mcmodel=small\fR" 4
  13361. .IX Item "-mcmodel=small"
  13362. Generate code for the small code model. The program and its statically defined
  13363. symbols must be within 4GB of each other. Programs can be statically or
  13364. dynamically linked. This is the default code model.
  13365. .IP "\fB\-mcmodel=large\fR" 4
  13366. .IX Item "-mcmodel=large"
  13367. Generate code for the large code model. This makes no assumptions about
  13368. addresses and sizes of sections. Programs can be statically linked only.
  13369. .IP "\fB\-mstrict\-align\fR" 4
  13370. .IX Item "-mstrict-align"
  13371. Avoid generating memory accesses that may not be aligned on a natural object
  13372. boundary as described in the architecture specification.
  13373. .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
  13374. .IX Item "-momit-leaf-frame-pointer"
  13375. .PD 0
  13376. .IP "\fB\-mno\-omit\-leaf\-frame\-pointer\fR" 4
  13377. .IX Item "-mno-omit-leaf-frame-pointer"
  13378. .PD
  13379. Omit or keep the frame pointer in leaf functions. The former behavior is the
  13380. default.
  13381. .IP "\fB\-mtls\-dialect=desc\fR" 4
  13382. .IX Item "-mtls-dialect=desc"
  13383. Use \s-1TLS\s0 descriptors as the thread-local storage mechanism for dynamic accesses
  13384. of \s-1TLS\s0 variables. This is the default.
  13385. .IP "\fB\-mtls\-dialect=traditional\fR" 4
  13386. .IX Item "-mtls-dialect=traditional"
  13387. Use traditional \s-1TLS\s0 as the thread-local storage mechanism for dynamic accesses
  13388. of \s-1TLS\s0 variables.
  13389. .IP "\fB\-mtls\-size=\fR\fIsize\fR" 4
  13390. .IX Item "-mtls-size=size"
  13391. Specify bit size of immediate \s-1TLS\s0 offsets. Valid values are 12, 24, 32, 48.
  13392. This option requires binutils 2.26 or newer.
  13393. .IP "\fB\-mfix\-cortex\-a53\-835769\fR" 4
  13394. .IX Item "-mfix-cortex-a53-835769"
  13395. .PD 0
  13396. .IP "\fB\-mno\-fix\-cortex\-a53\-835769\fR" 4
  13397. .IX Item "-mno-fix-cortex-a53-835769"
  13398. .PD
  13399. Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 835769.
  13400. This involves inserting a \s-1NOP\s0 instruction between memory instructions and
  13401. 64\-bit integer multiply-accumulate instructions.
  13402. .IP "\fB\-mfix\-cortex\-a53\-843419\fR" 4
  13403. .IX Item "-mfix-cortex-a53-843419"
  13404. .PD 0
  13405. .IP "\fB\-mno\-fix\-cortex\-a53\-843419\fR" 4
  13406. .IX Item "-mno-fix-cortex-a53-843419"
  13407. .PD
  13408. Enable or disable the workaround for the \s-1ARM\s0 Cortex\-A53 erratum number 843419.
  13409. This erratum workaround is made at link time and this will only pass the
  13410. corresponding flag to the linker.
  13411. .IP "\fB\-mlow\-precision\-recip\-sqrt\fR" 4
  13412. .IX Item "-mlow-precision-recip-sqrt"
  13413. .PD 0
  13414. .IP "\fB\-mno\-low\-precision\-recip\-sqrt\fR" 4
  13415. .IX Item "-mno-low-precision-recip-sqrt"
  13416. .PD
  13417. Enable or disable the reciprocal square root approximation.
  13418. This option only has an effect if \fB\-ffast\-math\fR or
  13419. \&\fB\-funsafe\-math\-optimizations\fR is used as well. Enabling this reduces
  13420. precision of reciprocal square root results to about 16 bits for
  13421. single precision and to 32 bits for double precision.
  13422. .IP "\fB\-mlow\-precision\-sqrt\fR" 4
  13423. .IX Item "-mlow-precision-sqrt"
  13424. .PD 0
  13425. .IP "\fB\-mno\-low\-precision\-sqrt\fR" 4
  13426. .IX Item "-mno-low-precision-sqrt"
  13427. .PD
  13428. Enable or disable the square root approximation.
  13429. This option only has an effect if \fB\-ffast\-math\fR or
  13430. \&\fB\-funsafe\-math\-optimizations\fR is used as well. Enabling this reduces
  13431. precision of square root results to about 16 bits for
  13432. single precision and to 32 bits for double precision.
  13433. If enabled, it implies \fB\-mlow\-precision\-recip\-sqrt\fR.
  13434. .IP "\fB\-mlow\-precision\-div\fR" 4
  13435. .IX Item "-mlow-precision-div"
  13436. .PD 0
  13437. .IP "\fB\-mno\-low\-precision\-div\fR" 4
  13438. .IX Item "-mno-low-precision-div"
  13439. .PD
  13440. Enable or disable the division approximation.
  13441. This option only has an effect if \fB\-ffast\-math\fR or
  13442. \&\fB\-funsafe\-math\-optimizations\fR is used as well. Enabling this reduces
  13443. precision of division results to about 16 bits for
  13444. single precision and to 32 bits for double precision.
  13445. .IP "\fB\-march=\fR\fIname\fR" 4
  13446. .IX Item "-march=name"
  13447. Specify the name of the target architecture and, optionally, one or
  13448. more feature modifiers. This option has the form
  13449. \&\fB\-march=\fR\fIarch\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*.
  13450. .Sp
  13451. The permissible values for \fIarch\fR are \fBarmv8\-a\fR,
  13452. \&\fBarmv8.1\-a\fR, \fBarmv8.2\-a\fR, \fBarmv8.3\-a\fR or \fInative\fR.
  13453. .Sp
  13454. The value \fBarmv8.3\-a\fR implies \fBarmv8.2\-a\fR and enables compiler
  13455. support for the ARMv8.3\-A architecture extensions.
  13456. .Sp
  13457. The value \fBarmv8.2\-a\fR implies \fBarmv8.1\-a\fR and enables compiler
  13458. support for the ARMv8.2\-A architecture extensions.
  13459. .Sp
  13460. The value \fBarmv8.1\-a\fR implies \fBarmv8\-a\fR and enables compiler
  13461. support for the ARMv8.1\-A architecture extension. In particular, it
  13462. enables the \fB+crc\fR, \fB+lse\fR, and \fB+rdma\fR features.
  13463. .Sp
  13464. The value \fBnative\fR is available on native AArch64 GNU/Linux and
  13465. causes the compiler to pick the architecture of the host system. This
  13466. option has no effect if the compiler is unable to recognize the
  13467. architecture of the host system,
  13468. .Sp
  13469. The permissible values for \fIfeature\fR are listed in the sub-section
  13470. on \fBaarch64\-feature\-modifiers,,\fR\fB\-march\fR \fBand\fR \fB\-mcpu\fR
  13471. \&\fBFeature Modifiers\fR. Where conflicting feature modifiers are
  13472. specified, the right-most feature is used.
  13473. .Sp
  13474. \&\s-1GCC\s0 uses \fIname\fR to determine what kind of instructions it can emit
  13475. when generating assembly code. If \fB\-march\fR is specified
  13476. without either of \fB\-mtune\fR or \fB\-mcpu\fR also being
  13477. specified, the code is tuned to perform well across a range of target
  13478. processors implementing the target architecture.
  13479. .IP "\fB\-mtune=\fR\fIname\fR" 4
  13480. .IX Item "-mtune=name"
  13481. Specify the name of the target processor for which \s-1GCC\s0 should tune the
  13482. performance of the code. Permissible values for this option are:
  13483. \&\fBgeneric\fR, \fBcortex\-a35\fR, \fBcortex\-a53\fR, \fBcortex\-a57\fR,
  13484. \&\fBcortex\-a72\fR, \fBcortex\-a73\fR, \fBexynos\-m1\fR, \fBfalkor\fR,
  13485. \&\fBqdf24xx\fR, \fBxgene1\fR, \fBvulcan\fR, \fBthunderx\fR,
  13486. \&\fBthunderxt88\fR, \fBthunderxt88p1\fR, \fBthunderxt81\fR,
  13487. \&\fBthunderxt83\fR, \fBthunderx2t99\fR, \fBcortex\-a57.cortex\-a53\fR,
  13488. \&\fBcortex\-a72.cortex\-a53\fR, \fBcortex\-a73.cortex\-a35\fR,
  13489. \&\fBcortex\-a73.cortex\-a53\fR, \fBnative\fR.
  13490. .Sp
  13491. The values \fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
  13492. \&\fBcortex\-a73.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR
  13493. specify that \s-1GCC\s0 should tune for a big.LITTLE system.
  13494. .Sp
  13495. Additionally on native AArch64 GNU/Linux systems the value
  13496. \&\fBnative\fR tunes performance to the host system. This option has no effect
  13497. if the compiler is unable to recognize the processor of the host system.
  13498. .Sp
  13499. Where none of \fB\-mtune=\fR, \fB\-mcpu=\fR or \fB\-march=\fR
  13500. are specified, the code is tuned to perform well across a range
  13501. of target processors.
  13502. .Sp
  13503. This option cannot be suffixed by feature modifiers.
  13504. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  13505. .IX Item "-mcpu=name"
  13506. Specify the name of the target processor, optionally suffixed by one
  13507. or more feature modifiers. This option has the form
  13508. \&\fB\-mcpu=\fR\fIcpu\fR{\fB+\fR[\fBno\fR]\fIfeature\fR}*, where
  13509. the permissible values for \fIcpu\fR are the same as those available
  13510. for \fB\-mtune\fR. The permissible values for \fIfeature\fR are
  13511. documented in the sub-section on
  13512. \&\fBaarch64\-feature\-modifiers,,\fR\fB\-march\fR \fBand\fR \fB\-mcpu\fR
  13513. \&\fBFeature Modifiers\fR. Where conflicting feature modifiers are
  13514. specified, the right-most feature is used.
  13515. .Sp
  13516. \&\s-1GCC\s0 uses \fIname\fR to determine what kind of instructions it can emit when
  13517. generating assembly code (as if by \fB\-march\fR) and to determine
  13518. the target processor for which to tune for performance (as if
  13519. by \fB\-mtune\fR). Where this option is used in conjunction
  13520. with \fB\-march\fR or \fB\-mtune\fR, those options take precedence
  13521. over the appropriate part of this option.
  13522. .IP "\fB\-moverride=\fR\fIstring\fR" 4
  13523. .IX Item "-moverride=string"
  13524. Override tuning decisions made by the back-end in response to a
  13525. \&\fB\-mtune=\fR switch. The syntax, semantics, and accepted values
  13526. for \fIstring\fR in this option are not guaranteed to be consistent
  13527. across releases.
  13528. .Sp
  13529. This option is only intended to be useful when developing \s-1GCC.\s0
  13530. .IP "\fB\-mpc\-relative\-literal\-loads\fR" 4
  13531. .IX Item "-mpc-relative-literal-loads"
  13532. .PD 0
  13533. .IP "\fB\-mno\-pc\-relative\-literal\-loads\fR" 4
  13534. .IX Item "-mno-pc-relative-literal-loads"
  13535. .PD
  13536. Enable or disable PC-relative literal loads. With this option literal pools are
  13537. accessed using a single instruction and emitted after each function. This
  13538. limits the maximum size of functions to 1MB. This is enabled by default for
  13539. \&\fB\-mcmodel=tiny\fR.
  13540. .IP "\fB\-msign\-return\-address=\fR\fIscope\fR" 4
  13541. .IX Item "-msign-return-address=scope"
  13542. Select the function scope on which return address signing will be applied.
  13543. Permissible values are \fBnone\fR, which disables return address signing,
  13544. \&\fBnon-leaf\fR, which enables pointer signing for functions which are not leaf
  13545. functions, and \fBall\fR, which enables pointer signing for all functions. The
  13546. default value is \fBnone\fR.
  13547. .PP
  13548. \fB\-march\fR and \fB\-mcpu\fR Feature Modifiers
  13549. .IX Subsection "-march and -mcpu Feature Modifiers"
  13550. .PP
  13551. Feature modifiers used with \fB\-march\fR and \fB\-mcpu\fR can be any of
  13552. the following and their inverses \fBno\fR\fIfeature\fR:
  13553. .IP "\fBcrc\fR" 4
  13554. .IX Item "crc"
  13555. Enable \s-1CRC\s0 extension. This is on by default for
  13556. \&\fB\-march=armv8.1\-a\fR.
  13557. .IP "\fBcrypto\fR" 4
  13558. .IX Item "crypto"
  13559. Enable Crypto extension. This also enables Advanced \s-1SIMD\s0 and floating-point
  13560. instructions.
  13561. .IP "\fBfp\fR" 4
  13562. .IX Item "fp"
  13563. Enable floating-point instructions. This is on by default for all possible
  13564. values for options \fB\-march\fR and \fB\-mcpu\fR.
  13565. .IP "\fBsimd\fR" 4
  13566. .IX Item "simd"
  13567. Enable Advanced \s-1SIMD\s0 instructions. This also enables floating-point
  13568. instructions. This is on by default for all possible values for options
  13569. \&\fB\-march\fR and \fB\-mcpu\fR.
  13570. .IP "\fBlse\fR" 4
  13571. .IX Item "lse"
  13572. Enable Large System Extension instructions. This is on by default for
  13573. \&\fB\-march=armv8.1\-a\fR.
  13574. .IP "\fBrdma\fR" 4
  13575. .IX Item "rdma"
  13576. Enable Round Double Multiply Accumulate instructions. This is on by default
  13577. for \fB\-march=armv8.1\-a\fR.
  13578. .IP "\fBfp16\fR" 4
  13579. .IX Item "fp16"
  13580. Enable \s-1FP16\s0 extension. This also enables floating-point instructions.
  13581. .IP "\fBrcpc\fR" 4
  13582. .IX Item "rcpc"
  13583. Enable the RcPc extension. This does not change code generation from \s-1GCC,\s0
  13584. but is passed on to the assembler, enabling inline asm statements to use
  13585. instructions from the RcPc extension.
  13586. .IP "\fBdotprod\fR" 4
  13587. .IX Item "dotprod"
  13588. Enable the Dot Product extension. This also enables Advanced \s-1SIMD\s0 instructions.
  13589. .PP
  13590. Feature \fBcrypto\fR implies \fBsimd\fR, which implies \fBfp\fR.
  13591. Conversely, \fBnofp\fR implies \fBnosimd\fR, which implies
  13592. \&\fBnocrypto\fR.
  13593. .PP
  13594. \fIAdapteva Epiphany Options\fR
  13595. .IX Subsection "Adapteva Epiphany Options"
  13596. .PP
  13597. These \fB\-m\fR options are defined for Adapteva Epiphany:
  13598. .IP "\fB\-mhalf\-reg\-file\fR" 4
  13599. .IX Item "-mhalf-reg-file"
  13600. Don't allocate any register in the range \f(CW\*(C`r32\*(C'\fR...\f(CW\*(C`r63\*(C'\fR.
  13601. That allows code to run on hardware variants that lack these registers.
  13602. .IP "\fB\-mprefer\-short\-insn\-regs\fR" 4
  13603. .IX Item "-mprefer-short-insn-regs"
  13604. Preferentially allocate registers that allow short instruction generation.
  13605. This can result in increased instruction count, so this may either reduce or
  13606. increase overall code size.
  13607. .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
  13608. .IX Item "-mbranch-cost=num"
  13609. Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
  13610. This cost is only a heuristic and is not guaranteed to produce
  13611. consistent results across releases.
  13612. .IP "\fB\-mcmove\fR" 4
  13613. .IX Item "-mcmove"
  13614. Enable the generation of conditional moves.
  13615. .IP "\fB\-mnops=\fR\fInum\fR" 4
  13616. .IX Item "-mnops=num"
  13617. Emit \fInum\fR NOPs before every other generated instruction.
  13618. .IP "\fB\-mno\-soft\-cmpsf\fR" 4
  13619. .IX Item "-mno-soft-cmpsf"
  13620. For single-precision floating-point comparisons, emit an \f(CW\*(C`fsub\*(C'\fR instruction
  13621. and test the flags. This is faster than a software comparison, but can
  13622. get incorrect results in the presence of NaNs, or when two different small
  13623. numbers are compared such that their difference is calculated as zero.
  13624. The default is \fB\-msoft\-cmpsf\fR, which uses slower, but IEEE-compliant,
  13625. software comparisons.
  13626. .IP "\fB\-mstack\-offset=\fR\fInum\fR" 4
  13627. .IX Item "-mstack-offset=num"
  13628. Set the offset between the top of the stack and the stack pointer.
  13629. E.g., a value of 8 means that the eight bytes in the range \f(CW\*(C`sp+0...sp+7\*(C'\fR
  13630. can be used by leaf functions without stack allocation.
  13631. Values other than \fB8\fR or \fB16\fR are untested and unlikely to work.
  13632. Note also that this option changes the \s-1ABI\s0; compiling a program with a
  13633. different stack offset than the libraries have been compiled with
  13634. generally does not work.
  13635. This option can be useful if you want to evaluate if a different stack
  13636. offset would give you better code, but to actually use a different stack
  13637. offset to build working programs, it is recommended to configure the
  13638. toolchain with the appropriate \fB\-\-with\-stack\-offset=\fR\fInum\fR option.
  13639. .IP "\fB\-mno\-round\-nearest\fR" 4
  13640. .IX Item "-mno-round-nearest"
  13641. Make the scheduler assume that the rounding mode has been set to
  13642. truncating. The default is \fB\-mround\-nearest\fR.
  13643. .IP "\fB\-mlong\-calls\fR" 4
  13644. .IX Item "-mlong-calls"
  13645. If not otherwise specified by an attribute, assume all calls might be beyond
  13646. the offset range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, and therefore load the
  13647. function address into a register before performing a (otherwise direct) call.
  13648. This is the default.
  13649. .IP "\fB\-mshort\-calls\fR" 4
  13650. .IX Item "-mshort-calls"
  13651. If not otherwise specified by an attribute, assume all direct calls are
  13652. in the range of the \f(CW\*(C`b\*(C'\fR / \f(CW\*(C`bl\*(C'\fR instructions, so use these instructions
  13653. for direct calls. The default is \fB\-mlong\-calls\fR.
  13654. .IP "\fB\-msmall16\fR" 4
  13655. .IX Item "-msmall16"
  13656. Assume addresses can be loaded as 16\-bit unsigned values. This does not
  13657. apply to function addresses for which \fB\-mlong\-calls\fR semantics
  13658. are in effect.
  13659. .IP "\fB\-mfp\-mode=\fR\fImode\fR" 4
  13660. .IX Item "-mfp-mode=mode"
  13661. Set the prevailing mode of the floating-point unit.
  13662. This determines the floating-point mode that is provided and expected
  13663. at function call and return time. Making this mode match the mode you
  13664. predominantly need at function start can make your programs smaller and
  13665. faster by avoiding unnecessary mode switches.
  13666. .Sp
  13667. \&\fImode\fR can be set to one the following values:
  13668. .RS 4
  13669. .IP "\fBcaller\fR" 4
  13670. .IX Item "caller"
  13671. Any mode at function entry is valid, and retained or restored when
  13672. the function returns, and when it calls other functions.
  13673. This mode is useful for compiling libraries or other compilation units
  13674. you might want to incorporate into different programs with different
  13675. prevailing \s-1FPU\s0 modes, and the convenience of being able to use a single
  13676. object file outweighs the size and speed overhead for any extra
  13677. mode switching that might be needed, compared with what would be needed
  13678. with a more specific choice of prevailing \s-1FPU\s0 mode.
  13679. .IP "\fBtruncate\fR" 4
  13680. .IX Item "truncate"
  13681. This is the mode used for floating-point calculations with
  13682. truncating (i.e. round towards zero) rounding mode. That includes
  13683. conversion from floating point to integer.
  13684. .IP "\fBround-nearest\fR" 4
  13685. .IX Item "round-nearest"
  13686. This is the mode used for floating-point calculations with
  13687. round-to-nearest-or-even rounding mode.
  13688. .IP "\fBint\fR" 4
  13689. .IX Item "int"
  13690. This is the mode used to perform integer calculations in the \s-1FPU,\s0 e.g.
  13691. integer multiply, or integer multiply-and-accumulate.
  13692. .RE
  13693. .RS 4
  13694. .Sp
  13695. The default is \fB\-mfp\-mode=caller\fR
  13696. .RE
  13697. .IP "\fB\-mnosplit\-lohi\fR" 4
  13698. .IX Item "-mnosplit-lohi"
  13699. .PD 0
  13700. .IP "\fB\-mno\-postinc\fR" 4
  13701. .IX Item "-mno-postinc"
  13702. .IP "\fB\-mno\-postmodify\fR" 4
  13703. .IX Item "-mno-postmodify"
  13704. .PD
  13705. Code generation tweaks that disable, respectively, splitting of 32\-bit
  13706. loads, generation of post-increment addresses, and generation of
  13707. post-modify addresses. The defaults are \fBmsplit-lohi\fR,
  13708. \&\fB\-mpost\-inc\fR, and \fB\-mpost\-modify\fR.
  13709. .IP "\fB\-mnovect\-double\fR" 4
  13710. .IX Item "-mnovect-double"
  13711. Change the preferred \s-1SIMD\s0 mode to SImode. The default is
  13712. \&\fB\-mvect\-double\fR, which uses DImode as preferred \s-1SIMD\s0 mode.
  13713. .IP "\fB\-max\-vect\-align=\fR\fInum\fR" 4
  13714. .IX Item "-max-vect-align=num"
  13715. The maximum alignment for \s-1SIMD\s0 vector mode types.
  13716. \&\fInum\fR may be 4 or 8. The default is 8.
  13717. Note that this is an \s-1ABI\s0 change, even though many library function
  13718. interfaces are unaffected if they don't use \s-1SIMD\s0 vector modes
  13719. in places that affect size and/or alignment of relevant types.
  13720. .IP "\fB\-msplit\-vecmove\-early\fR" 4
  13721. .IX Item "-msplit-vecmove-early"
  13722. Split vector moves into single word moves before reload. In theory this
  13723. can give better register allocation, but so far the reverse seems to be
  13724. generally the case.
  13725. .IP "\fB\-m1reg\-\fR\fIreg\fR" 4
  13726. .IX Item "-m1reg-reg"
  13727. Specify a register to hold the constant \-1, which makes loading small negative
  13728. constants and certain bitmasks faster.
  13729. Allowable values for \fIreg\fR are \fBr43\fR and \fBr63\fR,
  13730. which specify use of that register as a fixed register,
  13731. and \fBnone\fR, which means that no register is used for this
  13732. purpose. The default is \fB\-m1reg\-none\fR.
  13733. .PP
  13734. \fI\s-1ARC\s0 Options\fR
  13735. .IX Subsection "ARC Options"
  13736. .PP
  13737. The following options control the architecture variant for which code
  13738. is being compiled:
  13739. .IP "\fB\-mbarrel\-shifter\fR" 4
  13740. .IX Item "-mbarrel-shifter"
  13741. Generate instructions supported by barrel shifter. This is the default
  13742. unless \fB\-mcpu=ARC601\fR or \fB\-mcpu=ARCEM\fR is in effect.
  13743. .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
  13744. .IX Item "-mcpu=cpu"
  13745. Set architecture type, register usage, and instruction scheduling
  13746. parameters for \fIcpu\fR. There are also shortcut alias options
  13747. available for backward compatibility and convenience. Supported
  13748. values for \fIcpu\fR are
  13749. .RS 4
  13750. .IP "\fBarc600\fR" 4
  13751. .IX Item "arc600"
  13752. Compile for \s-1ARC600. \s0 Aliases: \fB\-mA6\fR, \fB\-mARC600\fR.
  13753. .IP "\fBarc601\fR" 4
  13754. .IX Item "arc601"
  13755. Compile for \s-1ARC601. \s0 Alias: \fB\-mARC601\fR.
  13756. .IP "\fBarc700\fR" 4
  13757. .IX Item "arc700"
  13758. Compile for \s-1ARC700. \s0 Aliases: \fB\-mA7\fR, \fB\-mARC700\fR.
  13759. This is the default when configured with \fB\-\-with\-cpu=arc700\fR.
  13760. .IP "\fBarcem\fR" 4
  13761. .IX Item "arcem"
  13762. Compile for \s-1ARC EM.\s0
  13763. .IP "\fBarchs\fR" 4
  13764. .IX Item "archs"
  13765. Compile for \s-1ARC HS.\s0
  13766. .IP "\fBem\fR" 4
  13767. .IX Item "em"
  13768. Compile for \s-1ARC EM CPU\s0 with no hardware extensions.
  13769. .IP "\fBem4\fR" 4
  13770. .IX Item "em4"
  13771. Compile for \s-1ARC EM4 CPU.\s0
  13772. .IP "\fBem4_dmips\fR" 4
  13773. .IX Item "em4_dmips"
  13774. Compile for \s-1ARC EM4 DMIPS CPU.\s0
  13775. .IP "\fBem4_fpus\fR" 4
  13776. .IX Item "em4_fpus"
  13777. Compile for \s-1ARC EM4 DMIPS CPU\s0 with the single-precision floating-point
  13778. extension.
  13779. .IP "\fBem4_fpuda\fR" 4
  13780. .IX Item "em4_fpuda"
  13781. Compile for \s-1ARC EM4 DMIPS CPU\s0 with single-precision floating-point and
  13782. double assist instructions.
  13783. .IP "\fBhs\fR" 4
  13784. .IX Item "hs"
  13785. Compile for \s-1ARC HS CPU\s0 with no hardware extensions except the atomic
  13786. instructions.
  13787. .IP "\fBhs34\fR" 4
  13788. .IX Item "hs34"
  13789. Compile for \s-1ARC HS34 CPU.\s0
  13790. .IP "\fBhs38\fR" 4
  13791. .IX Item "hs38"
  13792. Compile for \s-1ARC HS38 CPU.\s0
  13793. .IP "\fBhs38_linux\fR" 4
  13794. .IX Item "hs38_linux"
  13795. Compile for \s-1ARC HS38 CPU\s0 with all hardware extensions on.
  13796. .IP "\fBarc600_norm\fR" 4
  13797. .IX Item "arc600_norm"
  13798. Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR instructions enabled.
  13799. .IP "\fBarc600_mul32x16\fR" 4
  13800. .IX Item "arc600_mul32x16"
  13801. Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and 32x16\-bit multiply
  13802. instructions enabled.
  13803. .IP "\fBarc600_mul64\fR" 4
  13804. .IX Item "arc600_mul64"
  13805. Compile for \s-1ARC 600 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and \f(CW\*(C`mul64\*(C'\fR\-family
  13806. instructions enabled.
  13807. .IP "\fBarc601_norm\fR" 4
  13808. .IX Item "arc601_norm"
  13809. Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR instructions enabled.
  13810. .IP "\fBarc601_mul32x16\fR" 4
  13811. .IX Item "arc601_mul32x16"
  13812. Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and 32x16\-bit multiply
  13813. instructions enabled.
  13814. .IP "\fBarc601_mul64\fR" 4
  13815. .IX Item "arc601_mul64"
  13816. Compile for \s-1ARC 601 CPU\s0 with \f(CW\*(C`norm\*(C'\fR and \f(CW\*(C`mul64\*(C'\fR\-family
  13817. instructions enabled.
  13818. .IP "\fBnps400\fR" 4
  13819. .IX Item "nps400"
  13820. Compile for \s-1ARC 700\s0 on \s-1NPS400\s0 chip.
  13821. .RE
  13822. .RS 4
  13823. .RE
  13824. .IP "\fB\-mdpfp\fR" 4
  13825. .IX Item "-mdpfp"
  13826. .PD 0
  13827. .IP "\fB\-mdpfp\-compact\fR" 4
  13828. .IX Item "-mdpfp-compact"
  13829. .PD
  13830. Generate double-precision \s-1FPX\s0 instructions, tuned for the compact
  13831. implementation.
  13832. .IP "\fB\-mdpfp\-fast\fR" 4
  13833. .IX Item "-mdpfp-fast"
  13834. Generate double-precision \s-1FPX\s0 instructions, tuned for the fast
  13835. implementation.
  13836. .IP "\fB\-mno\-dpfp\-lrsr\fR" 4
  13837. .IX Item "-mno-dpfp-lrsr"
  13838. Disable \f(CW\*(C`lr\*(C'\fR and \f(CW\*(C`sr\*(C'\fR instructions from using \s-1FPX\s0 extension
  13839. aux registers.
  13840. .IP "\fB\-mea\fR" 4
  13841. .IX Item "-mea"
  13842. Generate extended arithmetic instructions. Currently only
  13843. \&\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
  13844. supported. This is always enabled for \fB\-mcpu=ARC700\fR.
  13845. .IP "\fB\-mno\-mpy\fR" 4
  13846. .IX Item "-mno-mpy"
  13847. Do not generate \f(CW\*(C`mpy\*(C'\fR\-family instructions for \s-1ARC700. \s0 This option is
  13848. deprecated.
  13849. .IP "\fB\-mmul32x16\fR" 4
  13850. .IX Item "-mmul32x16"
  13851. Generate 32x16\-bit multiply and multiply-accumulate instructions.
  13852. .IP "\fB\-mmul64\fR" 4
  13853. .IX Item "-mmul64"
  13854. Generate \f(CW\*(C`mul64\*(C'\fR and \f(CW\*(C`mulu64\*(C'\fR instructions.
  13855. Only valid for \fB\-mcpu=ARC600\fR.
  13856. .IP "\fB\-mnorm\fR" 4
  13857. .IX Item "-mnorm"
  13858. Generate \f(CW\*(C`norm\*(C'\fR instructions. This is the default if \fB\-mcpu=ARC700\fR
  13859. is in effect.
  13860. .IP "\fB\-mspfp\fR" 4
  13861. .IX Item "-mspfp"
  13862. .PD 0
  13863. .IP "\fB\-mspfp\-compact\fR" 4
  13864. .IX Item "-mspfp-compact"
  13865. .PD
  13866. Generate single-precision \s-1FPX\s0 instructions, tuned for the compact
  13867. implementation.
  13868. .IP "\fB\-mspfp\-fast\fR" 4
  13869. .IX Item "-mspfp-fast"
  13870. Generate single-precision \s-1FPX\s0 instructions, tuned for the fast
  13871. implementation.
  13872. .IP "\fB\-msimd\fR" 4
  13873. .IX Item "-msimd"
  13874. Enable generation of \s-1ARC SIMD\s0 instructions via target-specific
  13875. builtins. Only valid for \fB\-mcpu=ARC700\fR.
  13876. .IP "\fB\-msoft\-float\fR" 4
  13877. .IX Item "-msoft-float"
  13878. This option ignored; it is provided for compatibility purposes only.
  13879. Software floating-point code is emitted by default, and this default
  13880. can overridden by \s-1FPX\s0 options; \fB\-mspfp\fR, \fB\-mspfp\-compact\fR, or
  13881. \&\fB\-mspfp\-fast\fR for single precision, and \fB\-mdpfp\fR,
  13882. \&\fB\-mdpfp\-compact\fR, or \fB\-mdpfp\-fast\fR for double precision.
  13883. .IP "\fB\-mswap\fR" 4
  13884. .IX Item "-mswap"
  13885. Generate \f(CW\*(C`swap\*(C'\fR instructions.
  13886. .IP "\fB\-matomic\fR" 4
  13887. .IX Item "-matomic"
  13888. This enables use of the locked load/store conditional extension to implement
  13889. atomic memory built-in functions. Not available for \s-1ARC\s0 6xx or \s-1ARC
  13890. EM\s0 cores.
  13891. .IP "\fB\-mdiv\-rem\fR" 4
  13892. .IX Item "-mdiv-rem"
  13893. Enable \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`rem\*(C'\fR instructions for ARCv2 cores.
  13894. .IP "\fB\-mcode\-density\fR" 4
  13895. .IX Item "-mcode-density"
  13896. Enable code density instructions for \s-1ARC EM. \s0
  13897. This option is on by default for \s-1ARC HS.\s0
  13898. .IP "\fB\-mll64\fR" 4
  13899. .IX Item "-mll64"
  13900. Enable double load/store operations for \s-1ARC HS\s0 cores.
  13901. .IP "\fB\-mtp\-regno=\fR\fIregno\fR" 4
  13902. .IX Item "-mtp-regno=regno"
  13903. Specify thread pointer register number.
  13904. .IP "\fB\-mmpy\-option=\fR\fImulto\fR" 4
  13905. .IX Item "-mmpy-option=multo"
  13906. Compile ARCv2 code with a multiplier design option. You can specify
  13907. the option using either a string or numeric value for \fImulto\fR.
  13908. \&\fBwlh1\fR is the default value. The recognized values are:
  13909. .RS 4
  13910. .IP "\fB0\fR" 4
  13911. .IX Item "0"
  13912. .PD 0
  13913. .IP "\fBnone\fR" 4
  13914. .IX Item "none"
  13915. .PD
  13916. No multiplier available.
  13917. .IP "\fB1\fR" 4
  13918. .IX Item "1"
  13919. .PD 0
  13920. .IP "\fBw\fR" 4
  13921. .IX Item "w"
  13922. .PD
  13923. 16x16 multiplier, fully pipelined.
  13924. The following instructions are enabled: \f(CW\*(C`mpyw\*(C'\fR and \f(CW\*(C`mpyuw\*(C'\fR.
  13925. .IP "\fB2\fR" 4
  13926. .IX Item "2"
  13927. .PD 0
  13928. .IP "\fBwlh1\fR" 4
  13929. .IX Item "wlh1"
  13930. .PD
  13931. 32x32 multiplier, fully
  13932. pipelined (1 stage). The following instructions are additionally
  13933. 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.
  13934. .IP "\fB3\fR" 4
  13935. .IX Item "3"
  13936. .PD 0
  13937. .IP "\fBwlh2\fR" 4
  13938. .IX Item "wlh2"
  13939. .PD
  13940. 32x32 multiplier, fully pipelined
  13941. (2 stages). The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
  13942. \&\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.
  13943. .IP "\fB4\fR" 4
  13944. .IX Item "4"
  13945. .PD 0
  13946. .IP "\fBwlh3\fR" 4
  13947. .IX Item "wlh3"
  13948. .PD
  13949. Two 16x16 multipliers, blocking,
  13950. sequential. The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
  13951. \&\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.
  13952. .IP "\fB5\fR" 4
  13953. .IX Item "5"
  13954. .PD 0
  13955. .IP "\fBwlh4\fR" 4
  13956. .IX Item "wlh4"
  13957. .PD
  13958. One 16x16 multiplier, blocking,
  13959. sequential. The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
  13960. \&\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.
  13961. .IP "\fB6\fR" 4
  13962. .IX Item "6"
  13963. .PD 0
  13964. .IP "\fBwlh5\fR" 4
  13965. .IX Item "wlh5"
  13966. .PD
  13967. One 32x4 multiplier, blocking,
  13968. sequential. The following instructions are additionally enabled: \f(CW\*(C`mpy\*(C'\fR,
  13969. \&\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.
  13970. .IP "\fB7\fR" 4
  13971. .IX Item "7"
  13972. .PD 0
  13973. .IP "\fBplus_dmpy\fR" 4
  13974. .IX Item "plus_dmpy"
  13975. .PD
  13976. \&\s-1ARC HS SIMD\s0 support.
  13977. .IP "\fB8\fR" 4
  13978. .IX Item "8"
  13979. .PD 0
  13980. .IP "\fBplus_macd\fR" 4
  13981. .IX Item "plus_macd"
  13982. .PD
  13983. \&\s-1ARC HS SIMD\s0 support.
  13984. .IP "\fB9\fR" 4
  13985. .IX Item "9"
  13986. .PD 0
  13987. .IP "\fBplus_qmacw\fR" 4
  13988. .IX Item "plus_qmacw"
  13989. .PD
  13990. \&\s-1ARC HS SIMD\s0 support.
  13991. .RE
  13992. .RS 4
  13993. .Sp
  13994. This option is only available for ARCv2 cores.
  13995. .RE
  13996. .IP "\fB\-mfpu=\fR\fIfpu\fR" 4
  13997. .IX Item "-mfpu=fpu"
  13998. Enables support for specific floating-point hardware extensions for ARCv2
  13999. cores. Supported values for \fIfpu\fR are:
  14000. .RS 4
  14001. .IP "\fBfpus\fR" 4
  14002. .IX Item "fpus"
  14003. Enables support for single-precision floating-point hardware
  14004. extensions.
  14005. .IP "\fBfpud\fR" 4
  14006. .IX Item "fpud"
  14007. Enables support for double-precision floating-point hardware
  14008. extensions. The single-precision floating-point extension is also
  14009. enabled. Not available for \s-1ARC EM.\s0
  14010. .IP "\fBfpuda\fR" 4
  14011. .IX Item "fpuda"
  14012. Enables support for double-precision floating-point hardware
  14013. extensions using double-precision assist instructions. The single-precision
  14014. floating-point extension is also enabled. This option is
  14015. only available for \s-1ARC EM.\s0
  14016. .IP "\fBfpuda_div\fR" 4
  14017. .IX Item "fpuda_div"
  14018. Enables support for double-precision floating-point hardware
  14019. extensions using double-precision assist instructions.
  14020. The single-precision floating-point, square-root, and divide
  14021. extensions are also enabled. This option is
  14022. only available for \s-1ARC EM.\s0
  14023. .IP "\fBfpuda_fma\fR" 4
  14024. .IX Item "fpuda_fma"
  14025. Enables support for double-precision floating-point hardware
  14026. extensions using double-precision assist instructions.
  14027. The single-precision floating-point and fused multiply and add
  14028. hardware extensions are also enabled. This option is
  14029. only available for \s-1ARC EM.\s0
  14030. .IP "\fBfpuda_all\fR" 4
  14031. .IX Item "fpuda_all"
  14032. Enables support for double-precision floating-point hardware
  14033. extensions using double-precision assist instructions.
  14034. All single-precision floating-point hardware extensions are also
  14035. enabled. This option is only available for \s-1ARC EM.\s0
  14036. .IP "\fBfpus_div\fR" 4
  14037. .IX Item "fpus_div"
  14038. Enables support for single-precision floating-point, square-root and divide
  14039. hardware extensions.
  14040. .IP "\fBfpud_div\fR" 4
  14041. .IX Item "fpud_div"
  14042. Enables support for double-precision floating-point, square-root and divide
  14043. hardware extensions. This option
  14044. includes option \fBfpus_div\fR. Not available for \s-1ARC EM.\s0
  14045. .IP "\fBfpus_fma\fR" 4
  14046. .IX Item "fpus_fma"
  14047. Enables support for single-precision floating-point and
  14048. fused multiply and add hardware extensions.
  14049. .IP "\fBfpud_fma\fR" 4
  14050. .IX Item "fpud_fma"
  14051. Enables support for double-precision floating-point and
  14052. fused multiply and add hardware extensions. This option
  14053. includes option \fBfpus_fma\fR. Not available for \s-1ARC EM.\s0
  14054. .IP "\fBfpus_all\fR" 4
  14055. .IX Item "fpus_all"
  14056. Enables support for all single-precision floating-point hardware
  14057. extensions.
  14058. .IP "\fBfpud_all\fR" 4
  14059. .IX Item "fpud_all"
  14060. Enables support for all single\- and double-precision floating-point
  14061. hardware extensions. Not available for \s-1ARC EM.\s0
  14062. .RE
  14063. .RS 4
  14064. .RE
  14065. .PP
  14066. The following options are passed through to the assembler, and also
  14067. define preprocessor macro symbols.
  14068. .IP "\fB\-mdsp\-packa\fR" 4
  14069. .IX Item "-mdsp-packa"
  14070. Passed down to the assembler to enable the \s-1DSP\s0 Pack A extensions.
  14071. Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdsp_packa\*(C'\fR. This option is
  14072. deprecated.
  14073. .IP "\fB\-mdvbf\fR" 4
  14074. .IX Item "-mdvbf"
  14075. Passed down to the assembler to enable the dual Viterbi butterfly
  14076. extension. Also sets the preprocessor symbol \f(CW\*(C`_\|_Xdvbf\*(C'\fR. This
  14077. option is deprecated.
  14078. .IP "\fB\-mlock\fR" 4
  14079. .IX Item "-mlock"
  14080. Passed down to the assembler to enable the locked load/store
  14081. conditional extension. Also sets the preprocessor symbol
  14082. \&\f(CW\*(C`_\|_Xlock\*(C'\fR.
  14083. .IP "\fB\-mmac\-d16\fR" 4
  14084. .IX Item "-mmac-d16"
  14085. Passed down to the assembler. Also sets the preprocessor symbol
  14086. \&\f(CW\*(C`_\|_Xxmac_d16\*(C'\fR. This option is deprecated.
  14087. .IP "\fB\-mmac\-24\fR" 4
  14088. .IX Item "-mmac-24"
  14089. Passed down to the assembler. Also sets the preprocessor symbol
  14090. \&\f(CW\*(C`_\|_Xxmac_24\*(C'\fR. This option is deprecated.
  14091. .IP "\fB\-mrtsc\fR" 4
  14092. .IX Item "-mrtsc"
  14093. Passed down to the assembler to enable the 64\-bit time-stamp counter
  14094. extension instruction. Also sets the preprocessor symbol
  14095. \&\f(CW\*(C`_\|_Xrtsc\*(C'\fR. This option is deprecated.
  14096. .IP "\fB\-mswape\fR" 4
  14097. .IX Item "-mswape"
  14098. Passed down to the assembler to enable the swap byte ordering
  14099. extension instruction. Also sets the preprocessor symbol
  14100. \&\f(CW\*(C`_\|_Xswape\*(C'\fR.
  14101. .IP "\fB\-mtelephony\fR" 4
  14102. .IX Item "-mtelephony"
  14103. Passed down to the assembler to enable dual\- and single-operand
  14104. instructions for telephony. Also sets the preprocessor symbol
  14105. \&\f(CW\*(C`_\|_Xtelephony\*(C'\fR. This option is deprecated.
  14106. .IP "\fB\-mxy\fR" 4
  14107. .IX Item "-mxy"
  14108. Passed down to the assembler to enable the \s-1XY\s0 memory extension. Also
  14109. sets the preprocessor symbol \f(CW\*(C`_\|_Xxy\*(C'\fR.
  14110. .PP
  14111. The following options control how the assembly code is annotated:
  14112. .IP "\fB\-misize\fR" 4
  14113. .IX Item "-misize"
  14114. Annotate assembler instructions with estimated addresses.
  14115. .IP "\fB\-mannotate\-align\fR" 4
  14116. .IX Item "-mannotate-align"
  14117. Explain what alignment considerations lead to the decision to make an
  14118. instruction short or long.
  14119. .PP
  14120. The following options are passed through to the linker:
  14121. .IP "\fB\-marclinux\fR" 4
  14122. .IX Item "-marclinux"
  14123. Passed through to the linker, to specify use of the \f(CW\*(C`arclinux\*(C'\fR emulation.
  14124. This option is enabled by default in tool chains built for
  14125. \&\f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets
  14126. when profiling is not requested.
  14127. .IP "\fB\-marclinux_prof\fR" 4
  14128. .IX Item "-marclinux_prof"
  14129. Passed through to the linker, to specify use of the
  14130. \&\f(CW\*(C`arclinux_prof\*(C'\fR emulation. This option is enabled by default in
  14131. tool chains built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and
  14132. \&\f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets when profiling is requested.
  14133. .PP
  14134. The following options control the semantics of generated code:
  14135. .IP "\fB\-mlong\-calls\fR" 4
  14136. .IX Item "-mlong-calls"
  14137. Generate calls as register indirect calls, thus providing access
  14138. to the full 32\-bit address range.
  14139. .IP "\fB\-mmedium\-calls\fR" 4
  14140. .IX Item "-mmedium-calls"
  14141. Don't use less than 25\-bit addressing range for calls, which is the
  14142. offset available for an unconditional branch-and-link
  14143. instruction. Conditional execution of function calls is suppressed, to
  14144. allow use of the 25\-bit range, rather than the 21\-bit range with
  14145. conditional branch-and-link. This is the default for tool chains built
  14146. for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets.
  14147. .IP "\fB\-mno\-sdata\fR" 4
  14148. .IX Item "-mno-sdata"
  14149. Do not generate sdata references. This is the default for tool chains
  14150. built for \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR
  14151. targets.
  14152. .IP "\fB\-mvolatile\-cache\fR" 4
  14153. .IX Item "-mvolatile-cache"
  14154. Use ordinarily cached memory accesses for volatile references. This is the
  14155. default.
  14156. .IP "\fB\-mno\-volatile\-cache\fR" 4
  14157. .IX Item "-mno-volatile-cache"
  14158. Enable cache bypass for volatile references.
  14159. .PP
  14160. The following options fine tune code generation:
  14161. .IP "\fB\-malign\-call\fR" 4
  14162. .IX Item "-malign-call"
  14163. Do alignment optimizations for call instructions.
  14164. .IP "\fB\-mauto\-modify\-reg\fR" 4
  14165. .IX Item "-mauto-modify-reg"
  14166. Enable the use of pre/post modify with register displacement.
  14167. .IP "\fB\-mbbit\-peephole\fR" 4
  14168. .IX Item "-mbbit-peephole"
  14169. Enable bbit peephole2.
  14170. .IP "\fB\-mno\-brcc\fR" 4
  14171. .IX Item "-mno-brcc"
  14172. This option disables a target-specific pass in \fIarc_reorg\fR to
  14173. generate compare-and-branch (\f(CW\*(C`br\f(CIcc\f(CW\*(C'\fR) instructions.
  14174. It has no effect on
  14175. generation of these instructions driven by the combiner pass.
  14176. .IP "\fB\-mcase\-vector\-pcrel\fR" 4
  14177. .IX Item "-mcase-vector-pcrel"
  14178. Use PC-relative switch case tables to enable case table shortening.
  14179. This is the default for \fB\-Os\fR.
  14180. .IP "\fB\-mcompact\-casesi\fR" 4
  14181. .IX Item "-mcompact-casesi"
  14182. Enable compact \f(CW\*(C`casesi\*(C'\fR pattern. This is the default for \fB\-Os\fR,
  14183. and only available for ARCv1 cores.
  14184. .IP "\fB\-mno\-cond\-exec\fR" 4
  14185. .IX Item "-mno-cond-exec"
  14186. Disable the ARCompact-specific pass to generate conditional
  14187. execution instructions.
  14188. .Sp
  14189. Due to delay slot scheduling and interactions between operand numbers,
  14190. literal sizes, instruction lengths, and the support for conditional execution,
  14191. the target-independent pass to generate conditional execution is often lacking,
  14192. so the \s-1ARC\s0 port has kept a special pass around that tries to find more
  14193. conditional execution generation opportunities after register allocation,
  14194. branch shortening, and delay slot scheduling have been done. This pass
  14195. generally, but not always, improves performance and code size, at the cost of
  14196. extra compilation time, which is why there is an option to switch it off.
  14197. If you have a problem with call instructions exceeding their allowable
  14198. offset range because they are conditionalized, you should consider using
  14199. \&\fB\-mmedium\-calls\fR instead.
  14200. .IP "\fB\-mearly\-cbranchsi\fR" 4
  14201. .IX Item "-mearly-cbranchsi"
  14202. Enable pre-reload use of the \f(CW\*(C`cbranchsi\*(C'\fR pattern.
  14203. .IP "\fB\-mexpand\-adddi\fR" 4
  14204. .IX Item "-mexpand-adddi"
  14205. Expand \f(CW\*(C`adddi3\*(C'\fR and \f(CW\*(C`subdi3\*(C'\fR at \s-1RTL\s0 generation time into
  14206. \&\f(CW\*(C`add.f\*(C'\fR, \f(CW\*(C`adc\*(C'\fR etc.
  14207. .IP "\fB\-mindexed\-loads\fR" 4
  14208. .IX Item "-mindexed-loads"
  14209. Enable the use of indexed loads. This can be problematic because some
  14210. optimizers then assume that indexed stores exist, which is not
  14211. the case.
  14212. .Sp
  14213. Enable Local Register Allocation. This is still experimental for \s-1ARC,\s0
  14214. so by default the compiler uses standard reload
  14215. (i.e. \fB\-mno\-lra\fR).
  14216. .IP "\fB\-mlra\-priority\-none\fR" 4
  14217. .IX Item "-mlra-priority-none"
  14218. Don't indicate any priority for target registers.
  14219. .IP "\fB\-mlra\-priority\-compact\fR" 4
  14220. .IX Item "-mlra-priority-compact"
  14221. Indicate target register priority for r0..r3 / r12..r15.
  14222. .IP "\fB\-mlra\-priority\-noncompact\fR" 4
  14223. .IX Item "-mlra-priority-noncompact"
  14224. Reduce target register priority for r0..r3 / r12..r15.
  14225. .IP "\fB\-mno\-millicode\fR" 4
  14226. .IX Item "-mno-millicode"
  14227. When optimizing for size (using \fB\-Os\fR), prologues and epilogues
  14228. that have to save or restore a large number of registers are often
  14229. shortened by using call to a special function in libgcc; this is
  14230. referred to as a \fImillicode\fR call. As these calls can pose
  14231. performance issues, and/or cause linking issues when linking in a
  14232. nonstandard way, this option is provided to turn off millicode call
  14233. generation.
  14234. .IP "\fB\-mmixed\-code\fR" 4
  14235. .IX Item "-mmixed-code"
  14236. Tweak register allocation to help 16\-bit instruction generation.
  14237. This generally has the effect of decreasing the average instruction size
  14238. while increasing the instruction count.
  14239. .IP "\fB\-mq\-class\fR" 4
  14240. .IX Item "-mq-class"
  14241. Enable \fBq\fR instruction alternatives.
  14242. This is the default for \fB\-Os\fR.
  14243. .IP "\fB\-mRcq\fR" 4
  14244. .IX Item "-mRcq"
  14245. Enable \fBRcq\fR constraint handling.
  14246. Most short code generation depends on this.
  14247. This is the default.
  14248. .IP "\fB\-mRcw\fR" 4
  14249. .IX Item "-mRcw"
  14250. Enable \fBRcw\fR constraint handling.
  14251. Most ccfsm condexec mostly depends on this.
  14252. This is the default.
  14253. .IP "\fB\-msize\-level=\fR\fIlevel\fR" 4
  14254. .IX Item "-msize-level=level"
  14255. Fine-tune size optimization with regards to instruction lengths and alignment.
  14256. The recognized values for \fIlevel\fR are:
  14257. .RS 4
  14258. .IP "\fB0\fR" 4
  14259. .IX Item "0"
  14260. No size optimization. This level is deprecated and treated like \fB1\fR.
  14261. .IP "\fB1\fR" 4
  14262. .IX Item "1"
  14263. Short instructions are used opportunistically.
  14264. .IP "\fB2\fR" 4
  14265. .IX Item "2"
  14266. In addition, alignment of loops and of code after barriers are dropped.
  14267. .IP "\fB3\fR" 4
  14268. .IX Item "3"
  14269. In addition, optional data alignment is dropped, and the option \fBOs\fR is enabled.
  14270. .RE
  14271. .RS 4
  14272. .Sp
  14273. This defaults to \fB3\fR when \fB\-Os\fR is in effect. Otherwise,
  14274. the behavior when this is not set is equivalent to level \fB1\fR.
  14275. .RE
  14276. .IP "\fB\-mtune=\fR\fIcpu\fR" 4
  14277. .IX Item "-mtune=cpu"
  14278. Set instruction scheduling parameters for \fIcpu\fR, overriding any implied
  14279. by \fB\-mcpu=\fR.
  14280. .Sp
  14281. Supported values for \fIcpu\fR are
  14282. .RS 4
  14283. .IP "\fB\s-1ARC600\s0\fR" 4
  14284. .IX Item "ARC600"
  14285. Tune for \s-1ARC600 CPU.\s0
  14286. .IP "\fB\s-1ARC601\s0\fR" 4
  14287. .IX Item "ARC601"
  14288. Tune for \s-1ARC601 CPU.\s0
  14289. .IP "\fB\s-1ARC700\s0\fR" 4
  14290. .IX Item "ARC700"
  14291. Tune for \s-1ARC700 CPU\s0 with standard multiplier block.
  14292. .IP "\fBARC700\-xmac\fR" 4
  14293. .IX Item "ARC700-xmac"
  14294. Tune for \s-1ARC700 CPU\s0 with \s-1XMAC\s0 block.
  14295. .IP "\fB\s-1ARC725D\s0\fR" 4
  14296. .IX Item "ARC725D"
  14297. Tune for \s-1ARC725D CPU.\s0
  14298. .IP "\fB\s-1ARC750D\s0\fR" 4
  14299. .IX Item "ARC750D"
  14300. Tune for \s-1ARC750D CPU.\s0
  14301. .RE
  14302. .RS 4
  14303. .RE
  14304. .IP "\fB\-mmultcost=\fR\fInum\fR" 4
  14305. .IX Item "-mmultcost=num"
  14306. Cost to assume for a multiply instruction, with \fB4\fR being equal to a
  14307. normal instruction.
  14308. .IP "\fB\-munalign\-prob\-threshold=\fR\fIprobability\fR" 4
  14309. .IX Item "-munalign-prob-threshold=probability"
  14310. Set probability threshold for unaligning branches.
  14311. When tuning for \fB\s-1ARC700\s0\fR and optimizing for speed, branches without
  14312. filled delay slot are preferably emitted unaligned and long, unless
  14313. profiling indicates that the probability for the branch to be taken
  14314. is below \fIprobability\fR.
  14315. The default is (\s-1REG_BR_PROB_BASE/2\s0), i.e. 5000.
  14316. .PP
  14317. The following options are maintained for backward compatibility, but
  14318. are now deprecated and will be removed in a future release:
  14319. .IP "\fB\-margonaut\fR" 4
  14320. .IX Item "-margonaut"
  14321. Obsolete \s-1FPX.\s0
  14322. .IP "\fB\-mbig\-endian\fR" 4
  14323. .IX Item "-mbig-endian"
  14324. .PD 0
  14325. .IP "\fB\-EB\fR" 4
  14326. .IX Item "-EB"
  14327. .PD
  14328. Compile code for big-endian targets. Use of these options is now
  14329. deprecated. Big-endian code is supported by configuring \s-1GCC\s0 to build
  14330. \&\f(CW\*(C`arceb\-elf32\*(C'\fR and \f(CW\*(C`arceb\-linux\-uclibc\*(C'\fR targets,
  14331. for which big endian is the default.
  14332. .IP "\fB\-mlittle\-endian\fR" 4
  14333. .IX Item "-mlittle-endian"
  14334. .PD 0
  14335. .IP "\fB\-EL\fR" 4
  14336. .IX Item "-EL"
  14337. .PD
  14338. Compile code for little-endian targets. Use of these options is now
  14339. deprecated. Little-endian code is supported by configuring \s-1GCC\s0 to build
  14340. \&\f(CW\*(C`arc\-elf32\*(C'\fR and \f(CW\*(C`arc\-linux\-uclibc\*(C'\fR targets,
  14341. for which little endian is the default.
  14342. .IP "\fB\-mbarrel_shifter\fR" 4
  14343. .IX Item "-mbarrel_shifter"
  14344. Replaced by \fB\-mbarrel\-shifter\fR.
  14345. .IP "\fB\-mdpfp_compact\fR" 4
  14346. .IX Item "-mdpfp_compact"
  14347. Replaced by \fB\-mdpfp\-compact\fR.
  14348. .IP "\fB\-mdpfp_fast\fR" 4
  14349. .IX Item "-mdpfp_fast"
  14350. Replaced by \fB\-mdpfp\-fast\fR.
  14351. .IP "\fB\-mdsp_packa\fR" 4
  14352. .IX Item "-mdsp_packa"
  14353. Replaced by \fB\-mdsp\-packa\fR.
  14354. .IP "\fB\-mEA\fR" 4
  14355. .IX Item "-mEA"
  14356. Replaced by \fB\-mea\fR.
  14357. .IP "\fB\-mmac_24\fR" 4
  14358. .IX Item "-mmac_24"
  14359. Replaced by \fB\-mmac\-24\fR.
  14360. .IP "\fB\-mmac_d16\fR" 4
  14361. .IX Item "-mmac_d16"
  14362. Replaced by \fB\-mmac\-d16\fR.
  14363. .IP "\fB\-mspfp_compact\fR" 4
  14364. .IX Item "-mspfp_compact"
  14365. Replaced by \fB\-mspfp\-compact\fR.
  14366. .IP "\fB\-mspfp_fast\fR" 4
  14367. .IX Item "-mspfp_fast"
  14368. Replaced by \fB\-mspfp\-fast\fR.
  14369. .IP "\fB\-mtune=\fR\fIcpu\fR" 4
  14370. .IX Item "-mtune=cpu"
  14371. Values \fBarc600\fR, \fBarc601\fR, \fBarc700\fR and
  14372. \&\fBarc700\-xmac\fR for \fIcpu\fR are replaced by \fB\s-1ARC600\s0\fR,
  14373. \&\fB\s-1ARC601\s0\fR, \fB\s-1ARC700\s0\fR and \fBARC700\-xmac\fR respectively.
  14374. .IP "\fB\-multcost=\fR\fInum\fR" 4
  14375. .IX Item "-multcost=num"
  14376. Replaced by \fB\-mmultcost\fR.
  14377. .PP
  14378. \fI\s-1ARM\s0 Options\fR
  14379. .IX Subsection "ARM Options"
  14380. .PP
  14381. These \fB\-m\fR options are defined for the \s-1ARM\s0 port:
  14382. .IP "\fB\-mabi=\fR\fIname\fR" 4
  14383. .IX Item "-mabi=name"
  14384. Generate code for the specified \s-1ABI. \s0 Permissible values are: \fBapcs-gnu\fR,
  14385. \&\fBatpcs\fR, \fBaapcs\fR, \fBaapcs-linux\fR and \fBiwmmxt\fR.
  14386. .IP "\fB\-mapcs\-frame\fR" 4
  14387. .IX Item "-mapcs-frame"
  14388. Generate a stack frame that is compliant with the \s-1ARM\s0 Procedure Call
  14389. Standard for all functions, even if this is not strictly necessary for
  14390. correct execution of the code. Specifying \fB\-fomit\-frame\-pointer\fR
  14391. with this option causes the stack frames not to be generated for
  14392. leaf functions. The default is \fB\-mno\-apcs\-frame\fR.
  14393. This option is deprecated.
  14394. .IP "\fB\-mapcs\fR" 4
  14395. .IX Item "-mapcs"
  14396. This is a synonym for \fB\-mapcs\-frame\fR and is deprecated.
  14397. .IP "\fB\-mthumb\-interwork\fR" 4
  14398. .IX Item "-mthumb-interwork"
  14399. Generate code that supports calling between the \s-1ARM\s0 and Thumb
  14400. instruction sets. Without this option, on pre\-v5 architectures, the
  14401. two instruction sets cannot be reliably used inside one program. The
  14402. default is \fB\-mno\-thumb\-interwork\fR, since slightly larger code
  14403. is generated when \fB\-mthumb\-interwork\fR is specified. In \s-1AAPCS\s0
  14404. configurations this option is meaningless.
  14405. .IP "\fB\-mno\-sched\-prolog\fR" 4
  14406. .IX Item "-mno-sched-prolog"
  14407. Prevent the reordering of instructions in the function prologue, or the
  14408. merging of those instruction with the instructions in the function's
  14409. body. This means that all functions start with a recognizable set
  14410. of instructions (or in fact one of a choice from a small set of
  14411. different function prologues), and this information can be used to
  14412. locate the start of functions inside an executable piece of code. The
  14413. default is \fB\-msched\-prolog\fR.
  14414. .IP "\fB\-mfloat\-abi=\fR\fIname\fR" 4
  14415. .IX Item "-mfloat-abi=name"
  14416. Specifies which floating-point \s-1ABI\s0 to use. Permissible values
  14417. are: \fBsoft\fR, \fBsoftfp\fR and \fBhard\fR.
  14418. .Sp
  14419. Specifying \fBsoft\fR causes \s-1GCC\s0 to generate output containing
  14420. library calls for floating-point operations.
  14421. \&\fBsoftfp\fR allows the generation of code using hardware floating-point
  14422. instructions, but still uses the soft-float calling conventions.
  14423. \&\fBhard\fR allows generation of floating-point instructions
  14424. and uses FPU-specific calling conventions.
  14425. .Sp
  14426. The default depends on the specific target configuration. Note that
  14427. the hard-float and soft-float ABIs are not link-compatible; you must
  14428. compile your entire program with the same \s-1ABI,\s0 and link with a
  14429. compatible set of libraries.
  14430. .IP "\fB\-mlittle\-endian\fR" 4
  14431. .IX Item "-mlittle-endian"
  14432. Generate code for a processor running in little-endian mode. This is
  14433. the default for all standard configurations.
  14434. .IP "\fB\-mbig\-endian\fR" 4
  14435. .IX Item "-mbig-endian"
  14436. Generate code for a processor running in big-endian mode; the default is
  14437. to compile code for a little-endian processor.
  14438. .IP "\fB\-march=\fR\fIname\fR" 4
  14439. .IX Item "-march=name"
  14440. This specifies the name of the target \s-1ARM\s0 architecture. \s-1GCC\s0 uses this
  14441. name to determine what kind of instructions it can emit when generating
  14442. assembly code. This option can be used in conjunction with or instead
  14443. of the \fB\-mcpu=\fR option. Permissible names are: \fBarmv2\fR,
  14444. \&\fBarmv2a\fR, \fBarmv3\fR, \fBarmv3m\fR, \fBarmv4\fR, \fBarmv4t\fR,
  14445. \&\fBarmv5\fR, \fBarmv5e\fR, \fBarmv5t\fR, \fBarmv5te\fR,
  14446. \&\fBarmv6\fR, \fBarmv6\-m\fR, \fBarmv6j\fR, \fBarmv6k\fR,
  14447. \&\fBarmv6kz\fR, \fBarmv6s\-m\fR,
  14448. \&\fBarmv6t2\fR, \fBarmv6z\fR, \fBarmv6zk\fR,
  14449. \&\fBarmv7\fR, \fBarmv7\-a\fR, \fBarmv7\-m\fR, \fBarmv7\-r\fR, \fBarmv7e\-m\fR,
  14450. \&\fBarmv7ve\fR, \fBarmv8\-a\fR, \fBarmv8\-a+crc\fR, \fBarmv8.1\-a\fR,
  14451. \&\fBarmv8.1\-a+crc\fR, \fBarmv8\-m.base\fR, \fBarmv8\-m.main\fR,
  14452. \&\fBarmv8\-m.main+dsp\fR, \fBiwmmxt\fR, \fBiwmmxt2\fR.
  14453. .Sp
  14454. Architecture revisions older than \fBarmv4t\fR are deprecated.
  14455. .Sp
  14456. \&\fB\-march=armv6s\-m\fR is the \fBarmv6\-m\fR architecture with support for
  14457. the (now mandatory) \s-1SVC\s0 instruction.
  14458. .Sp
  14459. \&\fB\-march=armv6zk\fR is an alias for \fBarmv6kz\fR, existing for backwards
  14460. compatibility.
  14461. .Sp
  14462. \&\fB\-march=armv7ve\fR is the \fBarmv7\-a\fR architecture with virtualization
  14463. extensions.
  14464. .Sp
  14465. \&\fB\-march=armv8\-a+crc\fR enables code generation for the ARMv8\-A
  14466. architecture together with the optional \s-1CRC32\s0 extensions.
  14467. .Sp
  14468. \&\fB\-march=armv8.1\-a\fR enables compiler support for the ARMv8.1\-A
  14469. architecture. This also enables the features provided by
  14470. \&\fB\-march=armv8\-a+crc\fR.
  14471. .Sp
  14472. \&\fB\-march=armv8.2\-a\fR enables compiler support for the ARMv8.2\-A
  14473. architecture. This also enables the features provided by
  14474. \&\fB\-march=armv8.1\-a\fR.
  14475. .Sp
  14476. \&\fB\-march=armv8.2\-a+fp16\fR enables compiler support for the
  14477. ARMv8.2\-A architecture with the optional \s-1FP16\s0 instructions extension.
  14478. This also enables the features provided by \fB\-march=armv8.1\-a\fR
  14479. and implies \fB\-mfp16\-format=ieee\fR.
  14480. .Sp
  14481. \&\fB\-march=armv8.2\-a+dotprod\fR enables compiler support for the
  14482. ARMv8.2\-A architecture with the optional Dot Product instructions extension.
  14483. This also enables the features provided by \fB\-march=armv8.1\-a\fR.
  14484. .Sp
  14485. \&\fB\-march=armv8.2\-a+fp16+dotprod\fR enables compiler support for the
  14486. ARMv8.2\-A architecture with the optional \s-1FP16\s0 and Dot Product instructions
  14487. extension. This also enables the features provided by \fB\-march=armv8.1\-a\fR
  14488. and implies \fB\-mfp16\-format=ieee\fR.
  14489. .Sp
  14490. \&\fB\-march=native\fR causes the compiler to auto-detect the architecture
  14491. of the build computer. At present, this feature is only supported on
  14492. GNU/Linux, and not all architectures are recognized. If the auto-detect
  14493. is unsuccessful the option has no effect.
  14494. .IP "\fB\-mtune=\fR\fIname\fR" 4
  14495. .IX Item "-mtune=name"
  14496. This option specifies the name of the target \s-1ARM\s0 processor for
  14497. which \s-1GCC\s0 should tune the performance of the code.
  14498. For some \s-1ARM\s0 implementations better performance can be obtained by using
  14499. this option.
  14500. Permissible names are: \fBarm2\fR, \fBarm250\fR,
  14501. \&\fBarm3\fR, \fBarm6\fR, \fBarm60\fR, \fBarm600\fR, \fBarm610\fR,
  14502. \&\fBarm620\fR, \fBarm7\fR, \fBarm7m\fR, \fBarm7d\fR, \fBarm7dm\fR,
  14503. \&\fBarm7di\fR, \fBarm7dmi\fR, \fBarm70\fR, \fBarm700\fR,
  14504. \&\fBarm700i\fR, \fBarm710\fR, \fBarm710c\fR, \fBarm7100\fR,
  14505. \&\fBarm720\fR,
  14506. \&\fBarm7500\fR, \fBarm7500fe\fR, \fBarm7tdmi\fR, \fBarm7tdmi\-s\fR,
  14507. \&\fBarm710t\fR, \fBarm720t\fR, \fBarm740t\fR,
  14508. \&\fBstrongarm\fR, \fBstrongarm110\fR, \fBstrongarm1100\fR,
  14509. \&\fBstrongarm1110\fR,
  14510. \&\fBarm8\fR, \fBarm810\fR, \fBarm9\fR, \fBarm9e\fR, \fBarm920\fR,
  14511. \&\fBarm920t\fR, \fBarm922t\fR, \fBarm946e\-s\fR, \fBarm966e\-s\fR,
  14512. \&\fBarm968e\-s\fR, \fBarm926ej\-s\fR, \fBarm940t\fR, \fBarm9tdmi\fR,
  14513. \&\fBarm10tdmi\fR, \fBarm1020t\fR, \fBarm1026ej\-s\fR,
  14514. \&\fBarm10e\fR, \fBarm1020e\fR, \fBarm1022e\fR,
  14515. \&\fBarm1136j\-s\fR, \fBarm1136jf\-s\fR, \fBmpcore\fR, \fBmpcorenovfp\fR,
  14516. \&\fBarm1156t2\-s\fR, \fBarm1156t2f\-s\fR, \fBarm1176jz\-s\fR, \fBarm1176jzf\-s\fR,
  14517. \&\fBgeneric\-armv7\-a\fR, \fBcortex\-a5\fR, \fBcortex\-a7\fR, \fBcortex\-a8\fR,
  14518. \&\fBcortex\-a9\fR, \fBcortex\-a12\fR, \fBcortex\-a15\fR, \fBcortex\-a17\fR,
  14519. \&\fBcortex\-a32\fR, \fBcortex\-a35\fR, \fBcortex\-a53\fR, \fBcortex\-a57\fR,
  14520. \&\fBcortex\-a72\fR, \fBcortex\-a73\fR, \fBcortex\-r4\fR,
  14521. \&\fBcortex\-r4f\fR, \fBcortex\-r5\fR, \fBcortex\-r7\fR, \fBcortex\-r8\fR,
  14522. \&\fBcortex\-m33\fR,
  14523. \&\fBcortex\-m23\fR,
  14524. \&\fBcortex\-m7\fR,
  14525. \&\fBcortex\-m4\fR,
  14526. \&\fBcortex\-m3\fR,
  14527. \&\fBcortex\-m1\fR,
  14528. \&\fBcortex\-m0\fR,
  14529. \&\fBcortex\-m0plus\fR,
  14530. \&\fBcortex\-m1.small\-multiply\fR,
  14531. \&\fBcortex\-m0.small\-multiply\fR,
  14532. \&\fBcortex\-m0plus.small\-multiply\fR,
  14533. \&\fBexynos\-m1\fR,
  14534. \&\fBmarvell\-pj4\fR,
  14535. \&\fBxscale\fR, \fBiwmmxt\fR, \fBiwmmxt2\fR, \fBep9312\fR,
  14536. \&\fBfa526\fR, \fBfa626\fR,
  14537. \&\fBfa606te\fR, \fBfa626te\fR, \fBfmp626\fR, \fBfa726te\fR,
  14538. \&\fBxgene1\fR.
  14539. .Sp
  14540. Additionally, this option can specify that \s-1GCC\s0 should tune the performance
  14541. of the code for a big.LITTLE system. Permissible names are:
  14542. \&\fBcortex\-a15.cortex\-a7\fR, \fBcortex\-a17.cortex\-a7\fR,
  14543. \&\fBcortex\-a57.cortex\-a53\fR, \fBcortex\-a72.cortex\-a53\fR,
  14544. \&\fBcortex\-a72.cortex\-a35\fR, \fBcortex\-a73.cortex\-a53\fR.
  14545. .Sp
  14546. \&\fB\-mtune=generic\-\fR\fIarch\fR specifies that \s-1GCC\s0 should tune the
  14547. performance for a blend of processors within architecture \fIarch\fR.
  14548. The aim is to generate code that run well on the current most popular
  14549. processors, balancing between optimizations that benefit some CPUs in the
  14550. range, and avoiding performance pitfalls of other CPUs. The effects of
  14551. this option may change in future \s-1GCC\s0 versions as \s-1CPU\s0 models come and go.
  14552. .Sp
  14553. \&\fB\-mtune=native\fR causes the compiler to auto-detect the \s-1CPU\s0
  14554. of the build computer. At present, this feature is only supported on
  14555. GNU/Linux, and not all architectures are recognized. If the auto-detect is
  14556. unsuccessful the option has no effect.
  14557. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  14558. .IX Item "-mcpu=name"
  14559. This specifies the name of the target \s-1ARM\s0 processor. \s-1GCC\s0 uses this name
  14560. to derive the name of the target \s-1ARM\s0 architecture (as if specified
  14561. by \fB\-march\fR) and the \s-1ARM\s0 processor type for which to tune for
  14562. performance (as if specified by \fB\-mtune\fR). Where this option
  14563. is used in conjunction with \fB\-march\fR or \fB\-mtune\fR,
  14564. those options take precedence over the appropriate part of this option.
  14565. .Sp
  14566. Permissible names for this option are the same as those for
  14567. \&\fB\-mtune\fR.
  14568. .Sp
  14569. \&\fB\-mcpu=generic\-\fR\fIarch\fR is also permissible, and is
  14570. equivalent to \fB\-march=\fR\fIarch\fR \fB\-mtune=generic\-\fR\fIarch\fR.
  14571. See \fB\-mtune\fR for more information.
  14572. .Sp
  14573. \&\fB\-mcpu=native\fR causes the compiler to auto-detect the \s-1CPU\s0
  14574. of the build computer. At present, this feature is only supported on
  14575. GNU/Linux, and not all architectures are recognized. If the auto-detect
  14576. is unsuccessful the option has no effect.
  14577. .IP "\fB\-mfpu=\fR\fIname\fR" 4
  14578. .IX Item "-mfpu=name"
  14579. This specifies what floating-point hardware (or hardware emulation) is
  14580. available on the target. Permissible names are: \fBvfpv2\fR, \fBvfpv3\fR,
  14581. \&\fBvfpv3\-fp16\fR, \fBvfpv3\-d16\fR, \fBvfpv3\-d16\-fp16\fR, \fBvfpv3xd\fR,
  14582. \&\fBvfpv3xd\-fp16\fR, \fBneon\-vfpv3\fR, \fBneon\-fp16\fR, \fBvfpv4\fR,
  14583. \&\fBvfpv4\-d16\fR, \fBfpv4\-sp\-d16\fR, \fBneon\-vfpv4\fR,
  14584. \&\fBfpv5\-d16\fR, \fBfpv5\-sp\-d16\fR,
  14585. \&\fBfp\-armv8\fR, \fBneon\-fp\-armv8\fR and \fBcrypto\-neon\-fp\-armv8\fR.
  14586. Note that \fBneon\fR is an alias for \fBneon\-vfpv3\fR and \fBvfp\fR
  14587. is an alias for \fBvfpv2\fR.
  14588. .Sp
  14589. If \fB\-msoft\-float\fR is specified this specifies the format of
  14590. floating-point values.
  14591. .Sp
  14592. If the selected floating-point hardware includes the \s-1NEON\s0 extension
  14593. (e.g. \fB\-mfpu\fR=\fBneon\fR), note that floating-point
  14594. operations are not generated by \s-1GCC\s0's auto-vectorization pass unless
  14595. \&\fB\-funsafe\-math\-optimizations\fR is also specified. This is
  14596. because \s-1NEON\s0 hardware does not fully implement the \s-1IEEE 754\s0 standard for
  14597. floating-point arithmetic (in particular denormal values are treated as
  14598. zero), so the use of \s-1NEON\s0 instructions may lead to a loss of precision.
  14599. .Sp
  14600. You can also set the fpu name at function level by using the \f(CW\*(C`target("fpu=")\*(C'\fR function attributes or pragmas.
  14601. .IP "\fB\-mfp16\-format=\fR\fIname\fR" 4
  14602. .IX Item "-mfp16-format=name"
  14603. Specify the format of the \f(CW\*(C`_\|_fp16\*(C'\fR half-precision floating-point type.
  14604. Permissible names are \fBnone\fR, \fBieee\fR, and \fBalternative\fR;
  14605. the default is \fBnone\fR, in which case the \f(CW\*(C`_\|_fp16\*(C'\fR type is not
  14606. defined.
  14607. .IP "\fB\-mstructure\-size\-boundary=\fR\fIn\fR" 4
  14608. .IX Item "-mstructure-size-boundary=n"
  14609. The sizes of all structures and unions are rounded up to a multiple
  14610. of the number of bits set by this option. Permissible values are 8, 32
  14611. and 64. The default value varies for different toolchains. For the \s-1COFF\s0
  14612. targeted toolchain the default value is 8. A value of 64 is only allowed
  14613. if the underlying \s-1ABI\s0 supports it.
  14614. .Sp
  14615. Specifying a larger number can produce faster, more efficient code, but
  14616. can also increase the size of the program. Different values are potentially
  14617. incompatible. Code compiled with one value cannot necessarily expect to
  14618. work with code or libraries compiled with another value, if they exchange
  14619. information using structures or unions.
  14620. .IP "\fB\-mabort\-on\-noreturn\fR" 4
  14621. .IX Item "-mabort-on-noreturn"
  14622. Generate a call to the function \f(CW\*(C`abort\*(C'\fR at the end of a
  14623. \&\f(CW\*(C`noreturn\*(C'\fR function. It is executed if the function tries to
  14624. return.
  14625. .IP "\fB\-mlong\-calls\fR" 4
  14626. .IX Item "-mlong-calls"
  14627. .PD 0
  14628. .IP "\fB\-mno\-long\-calls\fR" 4
  14629. .IX Item "-mno-long-calls"
  14630. .PD
  14631. Tells the compiler to perform function calls by first loading the
  14632. address of the function into a register and then performing a subroutine
  14633. call on this register. This switch is needed if the target function
  14634. lies outside of the 64\-megabyte addressing range of the offset-based
  14635. version of subroutine call instruction.
  14636. .Sp
  14637. Even if this switch is enabled, not all function calls are turned
  14638. into long calls. The heuristic is that static functions, functions
  14639. that have the \f(CW\*(C`short_call\*(C'\fR attribute, functions that are inside
  14640. the scope of a \f(CW\*(C`#pragma no_long_calls\*(C'\fR directive, and functions whose
  14641. definitions have already been compiled within the current compilation
  14642. unit are not turned into long calls. The exceptions to this rule are
  14643. that weak function definitions, functions with the \f(CW\*(C`long_call\*(C'\fR
  14644. attribute or the \f(CW\*(C`section\*(C'\fR attribute, and functions that are within
  14645. the scope of a \f(CW\*(C`#pragma long_calls\*(C'\fR directive are always
  14646. turned into long calls.
  14647. .Sp
  14648. This feature is not enabled by default. Specifying
  14649. \&\fB\-mno\-long\-calls\fR restores the default behavior, as does
  14650. placing the function calls within the scope of a \f(CW\*(C`#pragma
  14651. long_calls_off\*(C'\fR directive. Note these switches have no effect on how
  14652. the compiler generates code to handle function calls via function
  14653. pointers.
  14654. .IP "\fB\-msingle\-pic\-base\fR" 4
  14655. .IX Item "-msingle-pic-base"
  14656. Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
  14657. loading it in the prologue for each function. The runtime system is
  14658. responsible for initializing this register with an appropriate value
  14659. before execution begins.
  14660. .IP "\fB\-mpic\-register=\fR\fIreg\fR" 4
  14661. .IX Item "-mpic-register=reg"
  14662. Specify the register to be used for \s-1PIC\s0 addressing.
  14663. For standard \s-1PIC\s0 base case, the default is any suitable register
  14664. determined by compiler. For single \s-1PIC\s0 base case, the default is
  14665. \&\fBR9\fR if target is \s-1EABI\s0 based or stack-checking is enabled,
  14666. otherwise the default is \fBR10\fR.
  14667. .IP "\fB\-mpic\-data\-is\-text\-relative\fR" 4
  14668. .IX Item "-mpic-data-is-text-relative"
  14669. Assume that the displacement between the text and data segments is fixed
  14670. at static link time. This permits using PC-relative addressing
  14671. operations to access data known to be in the data segment. For
  14672. non-VxWorks \s-1RTP\s0 targets, this option is enabled by default. When
  14673. disabled on such targets, it will enable \fB\-msingle\-pic\-base\fR by
  14674. default.
  14675. .IP "\fB\-mpoke\-function\-name\fR" 4
  14676. .IX Item "-mpoke-function-name"
  14677. Write the name of each function into the text section, directly
  14678. preceding the function prologue. The generated code is similar to this:
  14679. .Sp
  14680. .Vb 9
  14681. \& t0
  14682. \& .ascii "arm_poke_function_name", 0
  14683. \& .align
  14684. \& t1
  14685. \& .word 0xff000000 + (t1 \- t0)
  14686. \& arm_poke_function_name
  14687. \& mov ip, sp
  14688. \& stmfd sp!, {fp, ip, lr, pc}
  14689. \& sub fp, ip, #4
  14690. .Ve
  14691. .Sp
  14692. When performing a stack backtrace, code can inspect the value of
  14693. \&\f(CW\*(C`pc\*(C'\fR stored at \f(CW\*(C`fp + 0\*(C'\fR. If the trace function then looks at
  14694. location \f(CW\*(C`pc \- 12\*(C'\fR and the top 8 bits are set, then we know that
  14695. there is a function name embedded immediately preceding this location
  14696. and has length \f(CW\*(C`((pc[\-3]) & 0xff000000)\*(C'\fR.
  14697. .IP "\fB\-mthumb\fR" 4
  14698. .IX Item "-mthumb"
  14699. .PD 0
  14700. .IP "\fB\-marm\fR" 4
  14701. .IX Item "-marm"
  14702. .PD
  14703. Select between generating code that executes in \s-1ARM\s0 and Thumb
  14704. states. The default for most configurations is to generate code
  14705. that executes in \s-1ARM\s0 state, but the default can be changed by
  14706. configuring \s-1GCC\s0 with the \fB\-\-with\-mode=\fR\fIstate\fR
  14707. configure option.
  14708. .Sp
  14709. You can also override the \s-1ARM\s0 and Thumb mode for each function
  14710. by using the \f(CW\*(C`target("thumb")\*(C'\fR and \f(CW\*(C`target("arm")\*(C'\fR function attributes or pragmas.
  14711. .IP "\fB\-mtpcs\-frame\fR" 4
  14712. .IX Item "-mtpcs-frame"
  14713. Generate a stack frame that is compliant with the Thumb Procedure Call
  14714. Standard for all non-leaf functions. (A leaf function is one that does
  14715. not call any other functions.) The default is \fB\-mno\-tpcs\-frame\fR.
  14716. .IP "\fB\-mtpcs\-leaf\-frame\fR" 4
  14717. .IX Item "-mtpcs-leaf-frame"
  14718. Generate a stack frame that is compliant with the Thumb Procedure Call
  14719. Standard for all leaf functions. (A leaf function is one that does
  14720. not call any other functions.) The default is \fB\-mno\-apcs\-leaf\-frame\fR.
  14721. .IP "\fB\-mcallee\-super\-interworking\fR" 4
  14722. .IX Item "-mcallee-super-interworking"
  14723. Gives all externally visible functions in the file being compiled an \s-1ARM\s0
  14724. instruction set header which switches to Thumb mode before executing the
  14725. rest of the function. This allows these functions to be called from
  14726. non-interworking code. This option is not valid in \s-1AAPCS\s0 configurations
  14727. because interworking is enabled by default.
  14728. .IP "\fB\-mcaller\-super\-interworking\fR" 4
  14729. .IX Item "-mcaller-super-interworking"
  14730. Allows calls via function pointers (including virtual functions) to
  14731. execute correctly regardless of whether the target code has been
  14732. compiled for interworking or not. There is a small overhead in the cost
  14733. of executing a function pointer if this option is enabled. This option
  14734. is not valid in \s-1AAPCS\s0 configurations because interworking is enabled
  14735. by default.
  14736. .IP "\fB\-mtp=\fR\fIname\fR" 4
  14737. .IX Item "-mtp=name"
  14738. Specify the access model for the thread local storage pointer. The valid
  14739. models are \fBsoft\fR, which generates calls to \f(CW\*(C`_\|_aeabi_read_tp\*(C'\fR,
  14740. \&\fBcp15\fR, which fetches the thread pointer from \f(CW\*(C`cp15\*(C'\fR directly
  14741. (supported in the arm6k architecture), and \fBauto\fR, which uses the
  14742. best available method for the selected processor. The default setting is
  14743. \&\fBauto\fR.
  14744. .IP "\fB\-mtls\-dialect=\fR\fIdialect\fR" 4
  14745. .IX Item "-mtls-dialect=dialect"
  14746. Specify the dialect to use for accessing thread local storage. Two
  14747. \&\fIdialect\fRs are supported\-\-\-\fBgnu\fR and \fBgnu2\fR. The
  14748. \&\fBgnu\fR dialect selects the original \s-1GNU\s0 scheme for supporting
  14749. local and global dynamic \s-1TLS\s0 models. The \fBgnu2\fR dialect
  14750. selects the \s-1GNU\s0 descriptor scheme, which provides better performance
  14751. for shared libraries. The \s-1GNU\s0 descriptor scheme is compatible with
  14752. the original scheme, but does require new assembler, linker and
  14753. library support. Initial and local exec \s-1TLS\s0 models are unaffected by
  14754. this option and always use the original scheme.
  14755. .IP "\fB\-mword\-relocations\fR" 4
  14756. .IX Item "-mword-relocations"
  14757. Only generate absolute relocations on word-sized values (i.e. R_ARM_ABS32).
  14758. This is enabled by default on targets (uClinux, SymbianOS) where the runtime
  14759. loader imposes this restriction, and when \fB\-fpic\fR or \fB\-fPIC\fR
  14760. is specified.
  14761. .IP "\fB\-mfix\-cortex\-m3\-ldrd\fR" 4
  14762. .IX Item "-mfix-cortex-m3-ldrd"
  14763. Some Cortex\-M3 cores can cause data corruption when \f(CW\*(C`ldrd\*(C'\fR instructions
  14764. with overlapping destination and base registers are used. This option avoids
  14765. generating these instructions. This option is enabled by default when
  14766. \&\fB\-mcpu=cortex\-m3\fR is specified.
  14767. .IP "\fB\-munaligned\-access\fR" 4
  14768. .IX Item "-munaligned-access"
  14769. .PD 0
  14770. .IP "\fB\-mno\-unaligned\-access\fR" 4
  14771. .IX Item "-mno-unaligned-access"
  14772. .PD
  14773. Enables (or disables) reading and writing of 16\- and 32\- bit values
  14774. from addresses that are not 16\- or 32\- bit aligned. By default
  14775. unaligned access is disabled for all pre\-ARMv6, all ARMv6\-M and for
  14776. ARMv8\-M Baseline architectures, and enabled for all other
  14777. architectures. If unaligned access is not enabled then words in packed
  14778. data structures are accessed a byte at a time.
  14779. .Sp
  14780. The \s-1ARM\s0 attribute \f(CW\*(C`Tag_CPU_unaligned_access\*(C'\fR is set in the
  14781. generated object file to either true or false, depending upon the
  14782. setting of this option. If unaligned access is enabled then the
  14783. preprocessor symbol \f(CW\*(C`_\|_ARM_FEATURE_UNALIGNED\*(C'\fR is also
  14784. defined.
  14785. .IP "\fB\-mneon\-for\-64bits\fR" 4
  14786. .IX Item "-mneon-for-64bits"
  14787. Enables using Neon to handle scalar 64\-bits operations. This is
  14788. disabled by default since the cost of moving data from core registers
  14789. to Neon is high.
  14790. .IP "\fB\-mslow\-flash\-data\fR" 4
  14791. .IX Item "-mslow-flash-data"
  14792. Assume loading data from flash is slower than fetching instruction.
  14793. Therefore literal load is minimized for better performance.
  14794. This option is only supported when compiling for ARMv7 M\-profile and
  14795. off by default.
  14796. .IP "\fB\-masm\-syntax\-unified\fR" 4
  14797. .IX Item "-masm-syntax-unified"
  14798. Assume inline assembler is using unified asm syntax. The default is
  14799. currently off which implies divided syntax. This option has no impact
  14800. on Thumb2. However, this may change in future releases of \s-1GCC.\s0
  14801. Divided syntax should be considered deprecated.
  14802. .IP "\fB\-mrestrict\-it\fR" 4
  14803. .IX Item "-mrestrict-it"
  14804. Restricts generation of \s-1IT\s0 blocks to conform to the rules of ARMv8.
  14805. \&\s-1IT\s0 blocks can only contain a single 16\-bit instruction from a select
  14806. set of instructions. This option is on by default for ARMv8 Thumb mode.
  14807. .IP "\fB\-mprint\-tune\-info\fR" 4
  14808. .IX Item "-mprint-tune-info"
  14809. Print \s-1CPU\s0 tuning information as comment in assembler file. This is
  14810. an option used only for regression testing of the compiler and not
  14811. intended for ordinary use in compiling code. This option is disabled
  14812. by default.
  14813. .IP "\fB\-mpure\-code\fR" 4
  14814. .IX Item "-mpure-code"
  14815. Do not allow constant data to be placed in code sections.
  14816. Additionally, when compiling for \s-1ELF\s0 object format give all text sections the
  14817. \&\s-1ELF\s0 processor-specific section attribute \f(CW\*(C`SHF_ARM_PURECODE\*(C'\fR. This option
  14818. is only available when generating non-pic code for ARMv7\-M targets.
  14819. .IP "\fB\-mcmse\fR" 4
  14820. .IX Item "-mcmse"
  14821. Generate secure code as per the \*(L"ARMv8\-M Security Extensions: Requirements on
  14822. Development Tools Engineering Specification\*(R", which can be found on
  14823. <\fBhttp://infocenter.arm.com/help/topic/com.arm.doc.ecm0359818/ECM0359818_armv8m_security_extensions_reqs_on_dev_tools_1_0.pdf\fR>.
  14824. .PP
  14825. \fI\s-1AVR\s0 Options\fR
  14826. .IX Subsection "AVR Options"
  14827. .PP
  14828. These options are defined for \s-1AVR\s0 implementations:
  14829. .IP "\fB\-mmcu=\fR\fImcu\fR" 4
  14830. .IX Item "-mmcu=mcu"
  14831. Specify Atmel \s-1AVR\s0 instruction set architectures (\s-1ISA\s0) or \s-1MCU\s0 type.
  14832. .Sp
  14833. The default for this option is@tie{}\fBavr2\fR.
  14834. .Sp
  14835. \&\s-1GCC\s0 supports the following \s-1AVR\s0 devices and ISAs:
  14836. .RS 4
  14837. .ie n .IP """avr2""" 4
  14838. .el .IP "\f(CWavr2\fR" 4
  14839. .IX Item "avr2"
  14840. \&\*(L"Classic\*(R" devices with up to 8@tie{}KiB of program memory.
  14841. \&\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.
  14842. .ie n .IP """avr25""" 4
  14843. .el .IP "\f(CWavr25\fR" 4
  14844. .IX Item "avr25"
  14845. \&\*(L"Classic\*(R" devices with up to 8@tie{}KiB of program memory and with the \f(CW\*(C`MOVW\*(C'\fR instruction.
  14846. \&\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.
  14847. .ie n .IP """avr3""" 4
  14848. .el .IP "\f(CWavr3\fR" 4
  14849. .IX Item "avr3"
  14850. \&\*(L"Classic\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of program memory.
  14851. \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`at43usb355\*(C'\fR, \f(CW\*(C`at76c711\*(C'\fR.
  14852. .ie n .IP """avr31""" 4
  14853. .el .IP "\f(CWavr31\fR" 4
  14854. .IX Item "avr31"
  14855. \&\*(L"Classic\*(R" devices with 128@tie{}KiB of program memory.
  14856. \&\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atmega103\*(C'\fR, \f(CW\*(C`at43usb320\*(C'\fR.
  14857. .ie n .IP """avr35""" 4
  14858. .el .IP "\f(CWavr35\fR" 4
  14859. .IX Item "avr35"
  14860. \&\*(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.
  14861. \&\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.
  14862. .ie n .IP """avr4""" 4
  14863. .el .IP "\f(CWavr4\fR" 4
  14864. .IX Item "avr4"
  14865. \&\*(L"Enhanced\*(R" devices with up to 8@tie{}KiB of program memory.
  14866. \&\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.
  14867. .ie n .IP """avr5""" 4
  14868. .el .IP "\f(CWavr5\fR" 4
  14869. .IX Item "avr5"
  14870. \&\*(L"Enhanced\*(R" devices with 16@tie{}KiB up to 64@tie{}KiB of program memory.
  14871. \&\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.
  14872. .ie n .IP """avr51""" 4
  14873. .el .IP "\f(CWavr51\fR" 4
  14874. .IX Item "avr51"
  14875. \&\*(L"Enhanced\*(R" devices with 128@tie{}KiB of program memory.
  14876. \&\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.
  14877. .ie n .IP """avr6""" 4
  14878. .el .IP "\f(CWavr6\fR" 4
  14879. .IX Item "avr6"
  14880. \&\*(L"Enhanced\*(R" devices with 3\-byte \s-1PC,\s0 i.e. with more than 128@tie{}KiB of program memory.
  14881. \&\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.
  14882. .ie n .IP """avrxmega2""" 4
  14883. .el .IP "\f(CWavrxmega2\fR" 4
  14884. .IX Item "avrxmega2"
  14885. \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 8@tie{}KiB and up to 64@tie{}KiB of program memory.
  14886. \&\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.
  14887. .ie n .IP """avrxmega4""" 4
  14888. .el .IP "\f(CWavrxmega4\fR" 4
  14889. .IX Item "avrxmega4"
  14890. \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 64@tie{}KiB and up to 128@tie{}KiB of program memory.
  14891. \&\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.
  14892. .ie n .IP """avrxmega5""" 4
  14893. .el .IP "\f(CWavrxmega5\fR" 4
  14894. .IX Item "avrxmega5"
  14895. \&\*(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.
  14896. \&\s0\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega64a1\*(C'\fR, \f(CW\*(C`atxmega64a1u\*(C'\fR.
  14897. .ie n .IP """avrxmega6""" 4
  14898. .el .IP "\f(CWavrxmega6\fR" 4
  14899. .IX Item "avrxmega6"
  14900. \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 128@tie{}KiB of program memory.
  14901. \&\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.
  14902. .ie n .IP """avrxmega7""" 4
  14903. .el .IP "\f(CWavrxmega7\fR" 4
  14904. .IX Item "avrxmega7"
  14905. \&\*(L"\s-1XMEGA\*(R"\s0 devices with more than 128@tie{}KiB of program memory and more than 64@tie{}KiB of \s-1RAM.
  14906. \&\s0\fImcu\fR\f(CW@tie\fR{}= \f(CW\*(C`atxmega128a1\*(C'\fR, \f(CW\*(C`atxmega128a1u\*(C'\fR, \f(CW\*(C`atxmega128a4u\*(C'\fR.
  14907. .ie n .IP """avrtiny""" 4
  14908. .el .IP "\f(CWavrtiny\fR" 4
  14909. .IX Item "avrtiny"
  14910. \&\*(L"\s-1TINY\*(R"\s0 Tiny core devices with 512@tie{}B up to 4@tie{}KiB of program memory.
  14911. \&\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.
  14912. .ie n .IP """avr1""" 4
  14913. .el .IP "\f(CWavr1\fR" 4
  14914. .IX Item "avr1"
  14915. This \s-1ISA\s0 is implemented by the minimal \s-1AVR\s0 core and supported for assembler only.
  14916. \&\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.
  14917. .RE
  14918. .RS 4
  14919. .RE
  14920. .IP "\fB\-mabsdata\fR" 4
  14921. .IX Item "-mabsdata"
  14922. Assume that all data in static storage can be accessed by \s-1LDS / STS\s0
  14923. instructions. This option has only an effect on reduced Tiny devices like
  14924. ATtiny40. See also the \f(CW\*(C`absdata\*(C'\fR
  14925. \&\fB\s-1AVR\s0 Variable Attributes,variable attribute\fR.
  14926. .IP "\fB\-maccumulate\-args\fR" 4
  14927. .IX Item "-maccumulate-args"
  14928. Accumulate outgoing function arguments and acquire/release the needed
  14929. stack space for outgoing function arguments once in function
  14930. prologue/epilogue. Without this option, outgoing arguments are pushed
  14931. before calling a function and popped afterwards.
  14932. .Sp
  14933. Popping the arguments after the function call can be expensive on
  14934. \&\s-1AVR\s0 so that accumulating the stack space might lead to smaller
  14935. executables because arguments need not be removed from the
  14936. stack after such a function call.
  14937. .Sp
  14938. This option can lead to reduced code size for functions that perform
  14939. several calls to functions that get their arguments on the stack like
  14940. calls to printf-like functions.
  14941. .IP "\fB\-mbranch\-cost=\fR\fIcost\fR" 4
  14942. .IX Item "-mbranch-cost=cost"
  14943. Set the branch costs for conditional branch instructions to
  14944. \&\fIcost\fR. Reasonable values for \fIcost\fR are small, non-negative
  14945. integers. The default branch cost is 0.
  14946. .IP "\fB\-mcall\-prologues\fR" 4
  14947. .IX Item "-mcall-prologues"
  14948. Functions prologues/epilogues are expanded as calls to appropriate
  14949. subroutines. Code size is smaller.
  14950. .IP "\fB\-mint8\fR" 4
  14951. .IX Item "-mint8"
  14952. Assume \f(CW\*(C`int\*(C'\fR to be 8\-bit integer. This affects the sizes of all types: a
  14953. \&\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,
  14954. and \f(CW\*(C`long long\*(C'\fR is 4 bytes. Please note that this option does not
  14955. conform to the C standards, but it results in smaller code
  14956. size.
  14957. .IP "\fB\-mn\-flash=\fR\fInum\fR" 4
  14958. .IX Item "-mn-flash=num"
  14959. Assume that the flash memory has a size of
  14960. \&\fInum\fR times 64@tie{}KiB.
  14961. .IP "\fB\-mno\-interrupts\fR" 4
  14962. .IX Item "-mno-interrupts"
  14963. Generated code is not compatible with hardware interrupts.
  14964. Code size is smaller.
  14965. .IP "\fB\-mrelax\fR" 4
  14966. .IX Item "-mrelax"
  14967. Try to replace \f(CW\*(C`CALL\*(C'\fR resp. \f(CW\*(C`JMP\*(C'\fR instruction by the shorter
  14968. \&\f(CW\*(C`RCALL\*(C'\fR resp. \f(CW\*(C`RJMP\*(C'\fR instruction if applicable.
  14969. Setting \fB\-mrelax\fR just adds the \fB\-\-mlink\-relax\fR option to
  14970. the assembler's command line and the \fB\-\-relax\fR option to the
  14971. linker's command line.
  14972. .Sp
  14973. Jump relaxing is performed by the linker because jump offsets are not
  14974. known before code is located. Therefore, the assembler code generated by the
  14975. compiler is the same, but the instructions in the executable may
  14976. differ from instructions in the assembler code.
  14977. .Sp
  14978. Relaxing must be turned on if linker stubs are needed, see the
  14979. section on \f(CW\*(C`EIND\*(C'\fR and linker stubs below.
  14980. .IP "\fB\-mrmw\fR" 4
  14981. .IX Item "-mrmw"
  14982. Assume that the device supports the Read-Modify-Write
  14983. 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.
  14984. .IP "\fB\-msp8\fR" 4
  14985. .IX Item "-msp8"
  14986. Treat the stack pointer register as an 8\-bit register,
  14987. i.e. assume the high byte of the stack pointer is zero.
  14988. In general, you don't need to set this option by hand.
  14989. .Sp
  14990. This option is used internally by the compiler to select and
  14991. build multilibs for architectures \f(CW\*(C`avr2\*(C'\fR and \f(CW\*(C`avr25\*(C'\fR.
  14992. These architectures mix devices with and without \f(CW\*(C`SPH\*(C'\fR.
  14993. For any setting other than \fB\-mmcu=avr2\fR or \fB\-mmcu=avr25\fR
  14994. the compiler driver adds or removes this option from the compiler
  14995. proper's command line, because the compiler then knows if the device
  14996. or architecture has an 8\-bit stack pointer and thus no \f(CW\*(C`SPH\*(C'\fR
  14997. register or not.
  14998. .IP "\fB\-mstrict\-X\fR" 4
  14999. .IX Item "-mstrict-X"
  15000. Use address register \f(CW\*(C`X\*(C'\fR in a way proposed by the hardware. This means
  15001. that \f(CW\*(C`X\*(C'\fR is only used in indirect, post-increment or
  15002. pre-decrement addressing.
  15003. .Sp
  15004. Without this option, the \f(CW\*(C`X\*(C'\fR register may be used in the same way
  15005. as \f(CW\*(C`Y\*(C'\fR or \f(CW\*(C`Z\*(C'\fR which then is emulated by additional
  15006. instructions.
  15007. For example, loading a value with \f(CW\*(C`X+const\*(C'\fR addressing with a
  15008. small non-negative \f(CW\*(C`const < 64\*(C'\fR to a register \fIRn\fR is
  15009. performed as
  15010. .Sp
  15011. .Vb 3
  15012. \& adiw r26, const ; X += const
  15013. \& ld <Rn>, X ; <Rn> = *X
  15014. \& sbiw r26, const ; X \-= const
  15015. .Ve
  15016. .IP "\fB\-mtiny\-stack\fR" 4
  15017. .IX Item "-mtiny-stack"
  15018. Only change the lower 8@tie{}bits of the stack pointer.
  15019. .IP "\fB\-mfract\-convert\-truncate\fR" 4
  15020. .IX Item "-mfract-convert-truncate"
  15021. Allow to use truncation instead of rounding towards zero for fractional fixed-point types.
  15022. .IP "\fB\-nodevicelib\fR" 4
  15023. .IX Item "-nodevicelib"
  15024. Don't link against AVR-LibC's device specific library \f(CW\*(C`lib<mcu>.a\*(C'\fR.
  15025. .IP "\fB\-Waddr\-space\-convert\fR" 4
  15026. .IX Item "-Waddr-space-convert"
  15027. Warn about conversions between address spaces in the case where the
  15028. resulting address space is not contained in the incoming address space.
  15029. .IP "\fB\-Wmisspelled\-isr\fR" 4
  15030. .IX Item "-Wmisspelled-isr"
  15031. Warn if the \s-1ISR\s0 is misspelled, i.e. without _\|_vector prefix.
  15032. Enabled by default.
  15033. .PP
  15034. \f(CW\*(C`EIND\*(C'\fR and Devices with More Than 128 Ki Bytes of Flash
  15035. .IX Subsection "EIND and Devices with More Than 128 Ki Bytes of Flash"
  15036. .PP
  15037. Pointers in the implementation are 16@tie{}bits wide.
  15038. The address of a function or label is represented as word address so
  15039. that indirect jumps and calls can target any code address in the
  15040. range of 64@tie{}Ki words.
  15041. .PP
  15042. In order to facilitate indirect jump on devices with more than 128@tie{}Ki
  15043. bytes of program memory space, there is a special function register called
  15044. \&\f(CW\*(C`EIND\*(C'\fR that serves as most significant part of the target address
  15045. when \f(CW\*(C`EICALL\*(C'\fR or \f(CW\*(C`EIJMP\*(C'\fR instructions are used.
  15046. .PP
  15047. Indirect jumps and calls on these devices are handled as follows by
  15048. the compiler and are subject to some limitations:
  15049. .IP "*" 4
  15050. The compiler never sets \f(CW\*(C`EIND\*(C'\fR.
  15051. .IP "*" 4
  15052. The compiler uses \f(CW\*(C`EIND\*(C'\fR implicitly in \f(CW\*(C`EICALL\*(C'\fR/\f(CW\*(C`EIJMP\*(C'\fR
  15053. instructions or might read \f(CW\*(C`EIND\*(C'\fR directly in order to emulate an
  15054. indirect call/jump by means of a \f(CW\*(C`RET\*(C'\fR instruction.
  15055. .IP "*" 4
  15056. The compiler assumes that \f(CW\*(C`EIND\*(C'\fR never changes during the startup
  15057. code or during the application. In particular, \f(CW\*(C`EIND\*(C'\fR is not
  15058. saved/restored in function or interrupt service routine
  15059. prologue/epilogue.
  15060. .IP "*" 4
  15061. For indirect calls to functions and computed goto, the linker
  15062. generates \fIstubs\fR. Stubs are jump pads sometimes also called
  15063. \&\fItrampolines\fR. Thus, the indirect call/jump jumps to such a stub.
  15064. The stub contains a direct jump to the desired address.
  15065. .IP "*" 4
  15066. Linker relaxation must be turned on so that the linker generates
  15067. the stubs correctly in all situations. See the compiler option
  15068. \&\fB\-mrelax\fR and the linker option \fB\-\-relax\fR.
  15069. There are corner cases where the linker is supposed to generate stubs
  15070. but aborts without relaxation and without a helpful error message.
  15071. .IP "*" 4
  15072. The default linker script is arranged for code with \f(CW\*(C`EIND = 0\*(C'\fR.
  15073. If code is supposed to work for a setup with \f(CW\*(C`EIND != 0\*(C'\fR, a custom
  15074. linker script has to be used in order to place the sections whose
  15075. name start with \f(CW\*(C`.trampolines\*(C'\fR into the segment where \f(CW\*(C`EIND\*(C'\fR
  15076. points to.
  15077. .IP "*" 4
  15078. The startup code from libgcc never sets \f(CW\*(C`EIND\*(C'\fR.
  15079. Notice that startup code is a blend of code from libgcc and AVR-LibC.
  15080. For the impact of AVR-LibC on \f(CW\*(C`EIND\*(C'\fR, see the
  15081. AVR-LibC\ user\ manual (\f(CW\*(C`http://nongnu.org/avr\-libc/user\-manual/\*(C'\fR).
  15082. .IP "*" 4
  15083. It is legitimate for user-specific startup code to set up \f(CW\*(C`EIND\*(C'\fR
  15084. early, for example by means of initialization code located in
  15085. section \f(CW\*(C`.init3\*(C'\fR. Such code runs prior to general startup code
  15086. that initializes \s-1RAM\s0 and calls constructors, but after the bit
  15087. of startup code from AVR-LibC that sets \f(CW\*(C`EIND\*(C'\fR to the segment
  15088. where the vector table is located.
  15089. .Sp
  15090. .Vb 1
  15091. \& #include <avr/io.h>
  15092. \&
  15093. \& static void
  15094. \& _\|_attribute_\|_((section(".init3"),naked,used,no_instrument_function))
  15095. \& init3_set_eind (void)
  15096. \& {
  15097. \& _\|_asm volatile ("ldi r24,pm_hh8(_\|_trampolines_start)\en\et"
  15098. \& "out %i0,r24" :: "n" (&EIND) : "r24","memory");
  15099. \& }
  15100. .Ve
  15101. .Sp
  15102. The \f(CW\*(C`_\|_trampolines_start\*(C'\fR symbol is defined in the linker script.
  15103. .IP "*" 4
  15104. Stubs are generated automatically by the linker if
  15105. the following two conditions are met:
  15106. .RS 4
  15107. .ie n .IP "\-<The address of a label is taken by means of the ""gs"" modifier>" 4
  15108. .el .IP "\-<The address of a label is taken by means of the \f(CWgs\fR modifier>" 4
  15109. .IX Item "-<The address of a label is taken by means of the gs modifier>"
  15110. (short for \fIgenerate stubs\fR) like so:
  15111. .Sp
  15112. .Vb 2
  15113. \& LDI r24, lo8(gs(<func>))
  15114. \& LDI r25, hi8(gs(<func>))
  15115. .Ve
  15116. .IP "\-<The final location of that label is in a code segment>" 4
  15117. .IX Item "-<The final location of that label is in a code segment>"
  15118. \&\fIoutside\fR the segment where the stubs are located.
  15119. .RE
  15120. .RS 4
  15121. .RE
  15122. .IP "*" 4
  15123. The compiler emits such \f(CW\*(C`gs\*(C'\fR modifiers for code labels in the
  15124. following situations:
  15125. .RS 4
  15126. .IP "\-<Taking address of a function or code label.>" 4
  15127. .IX Item "-<Taking address of a function or code label.>"
  15128. .PD 0
  15129. .IP "\-<Computed goto.>" 4
  15130. .IX Item "-<Computed goto.>"
  15131. .IP "\-<If prologue-save function is used, see \fB\-mcall\-prologues\fR>" 4
  15132. .IX Item "-<If prologue-save function is used, see -mcall-prologues>"
  15133. .PD
  15134. command-line option.
  15135. .IP "\-<Switch/case dispatch tables. If you do not want such dispatch>" 4
  15136. .IX Item "-<Switch/case dispatch tables. If you do not want such dispatch>"
  15137. tables you can specify the \fB\-fno\-jump\-tables\fR command-line option.
  15138. .IP "\-<C and \*(C+ constructors/destructors called during startup/shutdown.>" 4
  15139. .IX Item "-<C and constructors/destructors called during startup/shutdown.>"
  15140. .PD 0
  15141. .ie n .IP "\-<If the tools hit a ""gs()"" modifier explained above.>" 4
  15142. .el .IP "\-<If the tools hit a \f(CWgs()\fR modifier explained above.>" 4
  15143. .IX Item "-<If the tools hit a gs() modifier explained above.>"
  15144. .RE
  15145. .RS 4
  15146. .RE
  15147. .IP "*" 4
  15148. .PD
  15149. Jumping to non-symbolic addresses like so is \fInot\fR supported:
  15150. .Sp
  15151. .Vb 5
  15152. \& int main (void)
  15153. \& {
  15154. \& /* Call function at word address 0x2 */
  15155. \& return ((int(*)(void)) 0x2)();
  15156. \& }
  15157. .Ve
  15158. .Sp
  15159. Instead, a stub has to be set up, i.e. the function has to be called
  15160. through a symbol (\f(CW\*(C`func_4\*(C'\fR in the example):
  15161. .Sp
  15162. .Vb 3
  15163. \& int main (void)
  15164. \& {
  15165. \& extern int func_4 (void);
  15166. \&
  15167. \& /* Call function at byte address 0x4 */
  15168. \& return func_4();
  15169. \& }
  15170. .Ve
  15171. .Sp
  15172. and the application be linked with \fB\-Wl,\-\-defsym,func_4=0x4\fR.
  15173. Alternatively, \f(CW\*(C`func_4\*(C'\fR can be defined in the linker script.
  15174. .PP
  15175. 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
  15176. .IX Subsection "Handling of the RAMPD, RAMPX, RAMPY and RAMPZ Special Function Registers"
  15177. .PP
  15178. Some \s-1AVR\s0 devices support memories larger than the 64@tie{}KiB range
  15179. that can be accessed with 16\-bit pointers. To access memory locations
  15180. outside this 64@tie{}KiB range, the content of a \f(CW\*(C`RAMP\*(C'\fR
  15181. register is used as high part of the address:
  15182. The \f(CW\*(C`X\*(C'\fR, \f(CW\*(C`Y\*(C'\fR, \f(CW\*(C`Z\*(C'\fR address register is concatenated
  15183. with the \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR, \f(CW\*(C`RAMPZ\*(C'\fR special function
  15184. register, respectively, to get a wide address. Similarly,
  15185. \&\f(CW\*(C`RAMPD\*(C'\fR is used together with direct addressing.
  15186. .IP "*" 4
  15187. The startup code initializes the \f(CW\*(C`RAMP\*(C'\fR special function
  15188. registers with zero.
  15189. .IP "*" 4
  15190. If a \fB\s-1AVR\s0 Named Address Spaces,named address space\fR other than
  15191. generic or \f(CW\*(C`_\|_flash\*(C'\fR is used, then \f(CW\*(C`RAMPZ\*(C'\fR is set
  15192. as needed before the operation.
  15193. .IP "*" 4
  15194. If the device supports \s-1RAM\s0 larger than 64@tie{}KiB and the compiler
  15195. needs to change \f(CW\*(C`RAMPZ\*(C'\fR to accomplish an operation, \f(CW\*(C`RAMPZ\*(C'\fR
  15196. is reset to zero after the operation.
  15197. .IP "*" 4
  15198. If the device comes with a specific \f(CW\*(C`RAMP\*(C'\fR register, the \s-1ISR\s0
  15199. prologue/epilogue saves/restores that \s-1SFR\s0 and initializes it with
  15200. zero in case the \s-1ISR\s0 code might (implicitly) use it.
  15201. .IP "*" 4
  15202. \&\s-1RAM\s0 larger than 64@tie{}KiB is not supported by \s-1GCC\s0 for \s-1AVR\s0 targets.
  15203. If you use inline assembler to read from locations outside the
  15204. 16\-bit address range and change one of the \f(CW\*(C`RAMP\*(C'\fR registers,
  15205. you must reset it to zero after the access.
  15206. .PP
  15207. \s-1AVR\s0 Built-in Macros
  15208. .IX Subsection "AVR Built-in Macros"
  15209. .PP
  15210. \&\s-1GCC\s0 defines several built-in macros so that the user code can test
  15211. for the presence or absence of features. Almost any of the following
  15212. built-in macros are deduced from device capabilities and thus
  15213. triggered by the \fB\-mmcu=\fR command-line option.
  15214. .PP
  15215. For even more AVR-specific built-in macros see
  15216. \&\fB\s-1AVR\s0 Named Address Spaces\fR and \fB\s-1AVR\s0 Built-in Functions\fR.
  15217. .ie n .IP """_\|_AVR_ARCH_\|_""" 4
  15218. .el .IP "\f(CW_\|_AVR_ARCH_\|_\fR" 4
  15219. .IX Item "__AVR_ARCH__"
  15220. Build-in macro that resolves to a decimal number that identifies the
  15221. architecture and depends on the \fB\-mmcu=\fR\fImcu\fR option.
  15222. Possible values are:
  15223. .Sp
  15224. \&\f(CW2\fR, \f(CW25\fR, \f(CW3\fR, \f(CW31\fR, \f(CW35\fR,
  15225. \&\f(CW4\fR, \f(CW5\fR, \f(CW51\fR, \f(CW6\fR
  15226. .Sp
  15227. 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,
  15228. \&\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,
  15229. .Sp
  15230. respectively and
  15231. .Sp
  15232. \&\f(CW100\fR, \f(CW102\fR, \f(CW104\fR,
  15233. \&\f(CW105\fR, \f(CW106\fR, \f(CW107\fR
  15234. .Sp
  15235. for \fImcu\fR=\f(CW\*(C`avrtiny\*(C'\fR, \f(CW\*(C`avrxmega2\*(C'\fR, \f(CW\*(C`avrxmega4\*(C'\fR,
  15236. \&\f(CW\*(C`avrxmega5\*(C'\fR, \f(CW\*(C`avrxmega6\*(C'\fR, \f(CW\*(C`avrxmega7\*(C'\fR, respectively.
  15237. If \fImcu\fR specifies a device, this built-in macro is set
  15238. accordingly. For example, with \fB\-mmcu=atmega8\fR the macro is
  15239. defined to \f(CW4\fR.
  15240. .ie n .IP """_\|_AVR_\f(CIDevice\f(CW_\|_""" 4
  15241. .el .IP "\f(CW_\|_AVR_\f(CIDevice\f(CW_\|_\fR" 4
  15242. .IX Item "__AVR_Device__"
  15243. Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro which reflects
  15244. the device's name. For example, \fB\-mmcu=atmega8\fR defines the
  15245. built-in macro \f(CW\*(C`_\|_AVR_ATmega8_\|_\*(C'\fR, \fB\-mmcu=attiny261a\fR defines
  15246. \&\f(CW\*(C`_\|_AVR_ATtiny261A_\|_\*(C'\fR, etc.
  15247. .Sp
  15248. The built-in macros' names follow
  15249. the scheme \f(CW\*(C`_\|_AVR_\f(CIDevice\f(CW_\|_\*(C'\fR where \fIDevice\fR is
  15250. the device name as from the \s-1AVR\s0 user manual. The difference between
  15251. \&\fIDevice\fR in the built-in macro and \fIdevice\fR in
  15252. \&\fB\-mmcu=\fR\fIdevice\fR is that the latter is always lowercase.
  15253. .Sp
  15254. If \fIdevice\fR is not a device but only a core architecture like
  15255. \&\fBavr51\fR, this macro is not defined.
  15256. .ie n .IP """_\|_AVR_DEVICE_NAME_\|_""" 4
  15257. .el .IP "\f(CW_\|_AVR_DEVICE_NAME_\|_\fR" 4
  15258. .IX Item "__AVR_DEVICE_NAME__"
  15259. Setting \fB\-mmcu=\fR\fIdevice\fR defines this built-in macro to
  15260. the device's name. For example, with \fB\-mmcu=atmega8\fR the macro
  15261. is defined to \f(CW\*(C`atmega8\*(C'\fR.
  15262. .Sp
  15263. If \fIdevice\fR is not a device but only a core architecture like
  15264. \&\fBavr51\fR, this macro is not defined.
  15265. .ie n .IP """_\|_AVR_XMEGA_\|_""" 4
  15266. .el .IP "\f(CW_\|_AVR_XMEGA_\|_\fR" 4
  15267. .IX Item "__AVR_XMEGA__"
  15268. The device / architecture belongs to the \s-1XMEGA\s0 family of devices.
  15269. .ie n .IP """_\|_AVR_HAVE_ELPM_\|_""" 4
  15270. .el .IP "\f(CW_\|_AVR_HAVE_ELPM_\|_\fR" 4
  15271. .IX Item "__AVR_HAVE_ELPM__"
  15272. The device has the \f(CW\*(C`ELPM\*(C'\fR instruction.
  15273. .ie n .IP """_\|_AVR_HAVE_ELPMX_\|_""" 4
  15274. .el .IP "\f(CW_\|_AVR_HAVE_ELPMX_\|_\fR" 4
  15275. .IX Item "__AVR_HAVE_ELPMX__"
  15276. The device has the \f(CW\*(C`ELPM R\f(CIn\f(CW,Z\*(C'\fR and \f(CW\*(C`ELPM
  15277. R\f(CIn\f(CW,Z+\*(C'\fR instructions.
  15278. .ie n .IP """_\|_AVR_HAVE_MOVW_\|_""" 4
  15279. .el .IP "\f(CW_\|_AVR_HAVE_MOVW_\|_\fR" 4
  15280. .IX Item "__AVR_HAVE_MOVW__"
  15281. The device has the \f(CW\*(C`MOVW\*(C'\fR instruction to perform 16\-bit
  15282. register-register moves.
  15283. .ie n .IP """_\|_AVR_HAVE_LPMX_\|_""" 4
  15284. .el .IP "\f(CW_\|_AVR_HAVE_LPMX_\|_\fR" 4
  15285. .IX Item "__AVR_HAVE_LPMX__"
  15286. The device has the \f(CW\*(C`LPM R\f(CIn\f(CW,Z\*(C'\fR and
  15287. \&\f(CW\*(C`LPM R\f(CIn\f(CW,Z+\*(C'\fR instructions.
  15288. .ie n .IP """_\|_AVR_HAVE_MUL_\|_""" 4
  15289. .el .IP "\f(CW_\|_AVR_HAVE_MUL_\|_\fR" 4
  15290. .IX Item "__AVR_HAVE_MUL__"
  15291. The device has a hardware multiplier.
  15292. .ie n .IP """_\|_AVR_HAVE_JMP_CALL_\|_""" 4
  15293. .el .IP "\f(CW_\|_AVR_HAVE_JMP_CALL_\|_\fR" 4
  15294. .IX Item "__AVR_HAVE_JMP_CALL__"
  15295. The device has the \f(CW\*(C`JMP\*(C'\fR and \f(CW\*(C`CALL\*(C'\fR instructions.
  15296. This is the case for devices with at least 16@tie{}KiB of program
  15297. memory.
  15298. .ie n .IP """_\|_AVR_HAVE_EIJMP_EICALL_\|_""" 4
  15299. .el .IP "\f(CW_\|_AVR_HAVE_EIJMP_EICALL_\|_\fR" 4
  15300. .IX Item "__AVR_HAVE_EIJMP_EICALL__"
  15301. .PD 0
  15302. .ie n .IP """_\|_AVR_3_BYTE_PC_\|_""" 4
  15303. .el .IP "\f(CW_\|_AVR_3_BYTE_PC_\|_\fR" 4
  15304. .IX Item "__AVR_3_BYTE_PC__"
  15305. .PD
  15306. The device has the \f(CW\*(C`EIJMP\*(C'\fR and \f(CW\*(C`EICALL\*(C'\fR instructions.
  15307. This is the case for devices with more than 128@tie{}KiB of program memory.
  15308. This also means that the program counter
  15309. (\s-1PC\s0) is 3@tie{}bytes wide.
  15310. .ie n .IP """_\|_AVR_2_BYTE_PC_\|_""" 4
  15311. .el .IP "\f(CW_\|_AVR_2_BYTE_PC_\|_\fR" 4
  15312. .IX Item "__AVR_2_BYTE_PC__"
  15313. The program counter (\s-1PC\s0) is 2@tie{}bytes wide. This is the case for devices
  15314. with up to 128@tie{}KiB of program memory.
  15315. .ie n .IP """_\|_AVR_HAVE_8BIT_SP_\|_""" 4
  15316. .el .IP "\f(CW_\|_AVR_HAVE_8BIT_SP_\|_\fR" 4
  15317. .IX Item "__AVR_HAVE_8BIT_SP__"
  15318. .PD 0
  15319. .ie n .IP """_\|_AVR_HAVE_16BIT_SP_\|_""" 4
  15320. .el .IP "\f(CW_\|_AVR_HAVE_16BIT_SP_\|_\fR" 4
  15321. .IX Item "__AVR_HAVE_16BIT_SP__"
  15322. .PD
  15323. The stack pointer (\s-1SP\s0) register is treated as 8\-bit respectively
  15324. 16\-bit register by the compiler.
  15325. The definition of these macros is affected by \fB\-mtiny\-stack\fR.
  15326. .ie n .IP """_\|_AVR_HAVE_SPH_\|_""" 4
  15327. .el .IP "\f(CW_\|_AVR_HAVE_SPH_\|_\fR" 4
  15328. .IX Item "__AVR_HAVE_SPH__"
  15329. .PD 0
  15330. .ie n .IP """_\|_AVR_SP8_\|_""" 4
  15331. .el .IP "\f(CW_\|_AVR_SP8_\|_\fR" 4
  15332. .IX Item "__AVR_SP8__"
  15333. .PD
  15334. The device has the \s-1SPH \s0(high part of stack pointer) special function
  15335. register or has an 8\-bit stack pointer, respectively.
  15336. The definition of these macros is affected by \fB\-mmcu=\fR and
  15337. in the cases of \fB\-mmcu=avr2\fR and \fB\-mmcu=avr25\fR also
  15338. by \fB\-msp8\fR.
  15339. .ie n .IP """_\|_AVR_HAVE_RAMPD_\|_""" 4
  15340. .el .IP "\f(CW_\|_AVR_HAVE_RAMPD_\|_\fR" 4
  15341. .IX Item "__AVR_HAVE_RAMPD__"
  15342. .PD 0
  15343. .ie n .IP """_\|_AVR_HAVE_RAMPX_\|_""" 4
  15344. .el .IP "\f(CW_\|_AVR_HAVE_RAMPX_\|_\fR" 4
  15345. .IX Item "__AVR_HAVE_RAMPX__"
  15346. .ie n .IP """_\|_AVR_HAVE_RAMPY_\|_""" 4
  15347. .el .IP "\f(CW_\|_AVR_HAVE_RAMPY_\|_\fR" 4
  15348. .IX Item "__AVR_HAVE_RAMPY__"
  15349. .ie n .IP """_\|_AVR_HAVE_RAMPZ_\|_""" 4
  15350. .el .IP "\f(CW_\|_AVR_HAVE_RAMPZ_\|_\fR" 4
  15351. .IX Item "__AVR_HAVE_RAMPZ__"
  15352. .PD
  15353. The device has the \f(CW\*(C`RAMPD\*(C'\fR, \f(CW\*(C`RAMPX\*(C'\fR, \f(CW\*(C`RAMPY\*(C'\fR,
  15354. \&\f(CW\*(C`RAMPZ\*(C'\fR special function register, respectively.
  15355. .ie n .IP """_\|_NO_INTERRUPTS_\|_""" 4
  15356. .el .IP "\f(CW_\|_NO_INTERRUPTS_\|_\fR" 4
  15357. .IX Item "__NO_INTERRUPTS__"
  15358. This macro reflects the \fB\-mno\-interrupts\fR command-line option.
  15359. .ie n .IP """_\|_AVR_ERRATA_SKIP_\|_""" 4
  15360. .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_\|_\fR" 4
  15361. .IX Item "__AVR_ERRATA_SKIP__"
  15362. .PD 0
  15363. .ie n .IP """_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_""" 4
  15364. .el .IP "\f(CW_\|_AVR_ERRATA_SKIP_JMP_CALL_\|_\fR" 4
  15365. .IX Item "__AVR_ERRATA_SKIP_JMP_CALL__"
  15366. .PD
  15367. Some \s-1AVR\s0 devices (\s-1AT90S8515,\s0 ATmega103) must not skip 32\-bit
  15368. instructions because of a hardware erratum. Skip instructions are
  15369. \&\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.
  15370. The second macro is only defined if \f(CW\*(C`_\|_AVR_HAVE_JMP_CALL_\|_\*(C'\fR is also
  15371. set.
  15372. .ie n .IP """_\|_AVR_ISA_RMW_\|_""" 4
  15373. .el .IP "\f(CW_\|_AVR_ISA_RMW_\|_\fR" 4
  15374. .IX Item "__AVR_ISA_RMW__"
  15375. The device has Read-Modify-Write instructions (\s-1XCH, LAC, LAS\s0 and \s-1LAT\s0).
  15376. .ie n .IP """_\|_AVR_SFR_OFFSET_\|_=\f(CIoffset\f(CW""" 4
  15377. .el .IP "\f(CW_\|_AVR_SFR_OFFSET_\|_=\f(CIoffset\f(CW\fR" 4
  15378. .IX Item "__AVR_SFR_OFFSET__=offset"
  15379. Instructions that can address I/O special function registers directly
  15380. like \f(CW\*(C`IN\*(C'\fR, \f(CW\*(C`OUT\*(C'\fR, \f(CW\*(C`SBI\*(C'\fR, etc. may use a different
  15381. address as if addressed by an instruction to access \s-1RAM\s0 like \f(CW\*(C`LD\*(C'\fR
  15382. or \f(CW\*(C`STS\*(C'\fR. This offset depends on the device architecture and has
  15383. to be subtracted from the \s-1RAM\s0 address in order to get the
  15384. respective I/O@tie{}address.
  15385. .ie n .IP """_\|_WITH_AVRLIBC_\|_""" 4
  15386. .el .IP "\f(CW_\|_WITH_AVRLIBC_\|_\fR" 4
  15387. .IX Item "__WITH_AVRLIBC__"
  15388. The compiler is configured to be used together with AVR-Libc.
  15389. See the \fB\-\-with\-avrlibc\fR configure option.
  15390. .PP
  15391. \fIBlackfin Options\fR
  15392. .IX Subsection "Blackfin Options"
  15393. .IP "\fB\-mcpu=\fR\fIcpu\fR[\fB\-\fR\fIsirevision\fR]" 4
  15394. .IX Item "-mcpu=cpu[-sirevision]"
  15395. Specifies the name of the target Blackfin processor. Currently, \fIcpu\fR
  15396. can be one of \fBbf512\fR, \fBbf514\fR, \fBbf516\fR, \fBbf518\fR,
  15397. \&\fBbf522\fR, \fBbf523\fR, \fBbf524\fR, \fBbf525\fR, \fBbf526\fR,
  15398. \&\fBbf527\fR, \fBbf531\fR, \fBbf532\fR, \fBbf533\fR,
  15399. \&\fBbf534\fR, \fBbf536\fR, \fBbf537\fR, \fBbf538\fR, \fBbf539\fR,
  15400. \&\fBbf542\fR, \fBbf544\fR, \fBbf547\fR, \fBbf548\fR, \fBbf549\fR,
  15401. \&\fBbf542m\fR, \fBbf544m\fR, \fBbf547m\fR, \fBbf548m\fR, \fBbf549m\fR,
  15402. \&\fBbf561\fR, \fBbf592\fR.
  15403. .Sp
  15404. The optional \fIsirevision\fR specifies the silicon revision of the target
  15405. Blackfin processor. Any workarounds available for the targeted silicon revision
  15406. are enabled. If \fIsirevision\fR is \fBnone\fR, no workarounds are enabled.
  15407. If \fIsirevision\fR is \fBany\fR, all workarounds for the targeted processor
  15408. are enabled. The \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR macro is defined to two
  15409. hexadecimal digits representing the major and minor numbers in the silicon
  15410. revision. If \fIsirevision\fR is \fBnone\fR, the \f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR
  15411. is not defined. If \fIsirevision\fR is \fBany\fR, the
  15412. \&\f(CW\*(C`_\|_SILICON_REVISION_\|_\*(C'\fR is defined to be \f(CW0xffff\fR.
  15413. If this optional \fIsirevision\fR is not used, \s-1GCC\s0 assumes the latest known
  15414. silicon revision of the targeted Blackfin processor.
  15415. .Sp
  15416. \&\s-1GCC\s0 defines a preprocessor macro for the specified \fIcpu\fR.
  15417. For the \fBbfin-elf\fR toolchain, this option causes the hardware \s-1BSP\s0
  15418. provided by libgloss to be linked in if \fB\-msim\fR is not given.
  15419. .Sp
  15420. Without this option, \fBbf532\fR is used as the processor by default.
  15421. .Sp
  15422. Note that support for \fBbf561\fR is incomplete. For \fBbf561\fR,
  15423. only the preprocessor macro is defined.
  15424. .IP "\fB\-msim\fR" 4
  15425. .IX Item "-msim"
  15426. Specifies that the program will be run on the simulator. This causes
  15427. the simulator \s-1BSP\s0 provided by libgloss to be linked in. This option
  15428. has effect only for \fBbfin-elf\fR toolchain.
  15429. Certain other options, such as \fB\-mid\-shared\-library\fR and
  15430. \&\fB\-mfdpic\fR, imply \fB\-msim\fR.
  15431. .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
  15432. .IX Item "-momit-leaf-frame-pointer"
  15433. Don't keep the frame pointer in a register for leaf functions. This
  15434. avoids the instructions to save, set up and restore frame pointers and
  15435. makes an extra register available in leaf functions. The option
  15436. \&\fB\-fomit\-frame\-pointer\fR removes the frame pointer for all functions,
  15437. which might make debugging harder.
  15438. .IP "\fB\-mspecld\-anomaly\fR" 4
  15439. .IX Item "-mspecld-anomaly"
  15440. When enabled, the compiler ensures that the generated code does not
  15441. contain speculative loads after jump instructions. If this option is used,
  15442. \&\f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_LOADS\*(C'\fR is defined.
  15443. .IP "\fB\-mno\-specld\-anomaly\fR" 4
  15444. .IX Item "-mno-specld-anomaly"
  15445. Don't generate extra code to prevent speculative loads from occurring.
  15446. .IP "\fB\-mcsync\-anomaly\fR" 4
  15447. .IX Item "-mcsync-anomaly"
  15448. When enabled, the compiler ensures that the generated code does not
  15449. contain \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions too soon after conditional branches.
  15450. If this option is used, \f(CW\*(C`_\|_WORKAROUND_SPECULATIVE_SYNCS\*(C'\fR is defined.
  15451. .IP "\fB\-mno\-csync\-anomaly\fR" 4
  15452. .IX Item "-mno-csync-anomaly"
  15453. Don't generate extra code to prevent \s-1CSYNC\s0 or \s-1SSYNC\s0 instructions from
  15454. occurring too soon after a conditional branch.
  15455. .IP "\fB\-mlow\-64k\fR" 4
  15456. .IX Item "-mlow-64k"
  15457. When enabled, the compiler is free to take advantage of the knowledge that
  15458. the entire program fits into the low 64k of memory.
  15459. .IP "\fB\-mno\-low\-64k\fR" 4
  15460. .IX Item "-mno-low-64k"
  15461. Assume that the program is arbitrarily large. This is the default.
  15462. .IP "\fB\-mstack\-check\-l1\fR" 4
  15463. .IX Item "-mstack-check-l1"
  15464. Do stack checking using information placed into L1 scratchpad memory by the
  15465. uClinux kernel.
  15466. .IP "\fB\-mid\-shared\-library\fR" 4
  15467. .IX Item "-mid-shared-library"
  15468. Generate code that supports shared libraries via the library \s-1ID\s0 method.
  15469. This allows for execute in place and shared libraries in an environment
  15470. without virtual memory management. This option implies \fB\-fPIC\fR.
  15471. With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
  15472. .IP "\fB\-mno\-id\-shared\-library\fR" 4
  15473. .IX Item "-mno-id-shared-library"
  15474. Generate code that doesn't assume ID-based shared libraries are being used.
  15475. This is the default.
  15476. .IP "\fB\-mleaf\-id\-shared\-library\fR" 4
  15477. .IX Item "-mleaf-id-shared-library"
  15478. Generate code that supports shared libraries via the library \s-1ID\s0 method,
  15479. but assumes that this library or executable won't link against any other
  15480. \&\s-1ID\s0 shared libraries. That allows the compiler to use faster code for jumps
  15481. and calls.
  15482. .IP "\fB\-mno\-leaf\-id\-shared\-library\fR" 4
  15483. .IX Item "-mno-leaf-id-shared-library"
  15484. Do not assume that the code being compiled won't link against any \s-1ID\s0 shared
  15485. libraries. Slower code is generated for jump and call insns.
  15486. .IP "\fB\-mshared\-library\-id=n\fR" 4
  15487. .IX Item "-mshared-library-id=n"
  15488. Specifies the identification number of the ID-based shared library being
  15489. compiled. Specifying a value of 0 generates more compact code; specifying
  15490. other values forces the allocation of that number to the current
  15491. library but is no more space\- or time-efficient than omitting this option.
  15492. .IP "\fB\-msep\-data\fR" 4
  15493. .IX Item "-msep-data"
  15494. Generate code that allows the data segment to be located in a different
  15495. area of memory from the text segment. This allows for execute in place in
  15496. an environment without virtual memory management by eliminating relocations
  15497. against the text section.
  15498. .IP "\fB\-mno\-sep\-data\fR" 4
  15499. .IX Item "-mno-sep-data"
  15500. Generate code that assumes that the data segment follows the text segment.
  15501. This is the default.
  15502. .IP "\fB\-mlong\-calls\fR" 4
  15503. .IX Item "-mlong-calls"
  15504. .PD 0
  15505. .IP "\fB\-mno\-long\-calls\fR" 4
  15506. .IX Item "-mno-long-calls"
  15507. .PD
  15508. Tells the compiler to perform function calls by first loading the
  15509. address of the function into a register and then performing a subroutine
  15510. call on this register. This switch is needed if the target function
  15511. lies outside of the 24\-bit addressing range of the offset-based
  15512. version of subroutine call instruction.
  15513. .Sp
  15514. This feature is not enabled by default. Specifying
  15515. \&\fB\-mno\-long\-calls\fR restores the default behavior. Note these
  15516. switches have no effect on how the compiler generates code to handle
  15517. function calls via function pointers.
  15518. .IP "\fB\-mfast\-fp\fR" 4
  15519. .IX Item "-mfast-fp"
  15520. Link with the fast floating-point library. This library relaxes some of
  15521. the \s-1IEEE\s0 floating-point standard's rules for checking inputs against
  15522. Not-a-Number (\s-1NAN\s0), in the interest of performance.
  15523. .IP "\fB\-minline\-plt\fR" 4
  15524. .IX Item "-minline-plt"
  15525. Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
  15526. not known to bind locally. It has no effect without \fB\-mfdpic\fR.
  15527. .IP "\fB\-mmulticore\fR" 4
  15528. .IX Item "-mmulticore"
  15529. Build a standalone application for multicore Blackfin processors.
  15530. This option causes proper start files and link scripts supporting
  15531. multicore to be used, and defines the macro \f(CW\*(C`_\|_BFIN_MULTICORE\*(C'\fR.
  15532. It can only be used with \fB\-mcpu=bf561\fR[\fB\-\fR\fIsirevision\fR].
  15533. .Sp
  15534. This option can be used with \fB\-mcorea\fR or \fB\-mcoreb\fR, which
  15535. selects the one-application-per-core programming model. Without
  15536. \&\fB\-mcorea\fR or \fB\-mcoreb\fR, the single\-application/dual\-core
  15537. programming model is used. In this model, the main function of Core B
  15538. should be named as \f(CW\*(C`coreb_main\*(C'\fR.
  15539. .Sp
  15540. If this option is not used, the single-core application programming
  15541. model is used.
  15542. .IP "\fB\-mcorea\fR" 4
  15543. .IX Item "-mcorea"
  15544. Build a standalone application for Core A of \s-1BF561\s0 when using
  15545. the one-application-per-core programming model. Proper start files
  15546. and link scripts are used to support Core A, and the macro
  15547. \&\f(CW\*(C`_\|_BFIN_COREA\*(C'\fR is defined.
  15548. This option can only be used in conjunction with \fB\-mmulticore\fR.
  15549. .IP "\fB\-mcoreb\fR" 4
  15550. .IX Item "-mcoreb"
  15551. Build a standalone application for Core B of \s-1BF561\s0 when using
  15552. the one-application-per-core programming model. Proper start files
  15553. and link scripts are used to support Core B, and the macro
  15554. \&\f(CW\*(C`_\|_BFIN_COREB\*(C'\fR is defined. When this option is used, \f(CW\*(C`coreb_main\*(C'\fR
  15555. should be used instead of \f(CW\*(C`main\*(C'\fR.
  15556. This option can only be used in conjunction with \fB\-mmulticore\fR.
  15557. .IP "\fB\-msdram\fR" 4
  15558. .IX Item "-msdram"
  15559. Build a standalone application for \s-1SDRAM.\s0 Proper start files and
  15560. link scripts are used to put the application into \s-1SDRAM,\s0 and the macro
  15561. \&\f(CW\*(C`_\|_BFIN_SDRAM\*(C'\fR is defined.
  15562. The loader should initialize \s-1SDRAM\s0 before loading the application.
  15563. .IP "\fB\-micplb\fR" 4
  15564. .IX Item "-micplb"
  15565. Assume that ICPLBs are enabled at run time. This has an effect on certain
  15566. anomaly workarounds. For Linux targets, the default is to assume ICPLBs
  15567. are enabled; for standalone applications the default is off.
  15568. .PP
  15569. \fIC6X Options\fR
  15570. .IX Subsection "C6X Options"
  15571. .IP "\fB\-march=\fR\fIname\fR" 4
  15572. .IX Item "-march=name"
  15573. This specifies the name of the target architecture. \s-1GCC\s0 uses this
  15574. name to determine what kind of instructions it can emit when generating
  15575. assembly code. Permissible names are: \fBc62x\fR,
  15576. \&\fBc64x\fR, \fBc64x+\fR, \fBc67x\fR, \fBc67x+\fR, \fBc674x\fR.
  15577. .IP "\fB\-mbig\-endian\fR" 4
  15578. .IX Item "-mbig-endian"
  15579. Generate code for a big-endian target.
  15580. .IP "\fB\-mlittle\-endian\fR" 4
  15581. .IX Item "-mlittle-endian"
  15582. Generate code for a little-endian target. This is the default.
  15583. .IP "\fB\-msim\fR" 4
  15584. .IX Item "-msim"
  15585. Choose startup files and linker script suitable for the simulator.
  15586. .IP "\fB\-msdata=default\fR" 4
  15587. .IX Item "-msdata=default"
  15588. Put small global and static data in the \f(CW\*(C`.neardata\*(C'\fR section,
  15589. which is pointed to by register \f(CW\*(C`B14\*(C'\fR. Put small uninitialized
  15590. global and static data in the \f(CW\*(C`.bss\*(C'\fR section, which is adjacent
  15591. to the \f(CW\*(C`.neardata\*(C'\fR section. Put small read-only data into the
  15592. \&\f(CW\*(C`.rodata\*(C'\fR section. The corresponding sections used for large
  15593. pieces of data are \f(CW\*(C`.fardata\*(C'\fR, \f(CW\*(C`.far\*(C'\fR and \f(CW\*(C`.const\*(C'\fR.
  15594. .IP "\fB\-msdata=all\fR" 4
  15595. .IX Item "-msdata=all"
  15596. Put all data, not just small objects, into the sections reserved for
  15597. small data, and use addressing relative to the \f(CW\*(C`B14\*(C'\fR register to
  15598. access them.
  15599. .IP "\fB\-msdata=none\fR" 4
  15600. .IX Item "-msdata=none"
  15601. Make no use of the sections reserved for small data, and use absolute
  15602. addresses to access all data. Put all initialized global and static
  15603. data in the \f(CW\*(C`.fardata\*(C'\fR section, and all uninitialized data in the
  15604. \&\f(CW\*(C`.far\*(C'\fR section. Put all constant data into the \f(CW\*(C`.const\*(C'\fR
  15605. section.
  15606. .PP
  15607. \fI\s-1CRIS\s0 Options\fR
  15608. .IX Subsection "CRIS Options"
  15609. .PP
  15610. These options are defined specifically for the \s-1CRIS\s0 ports.
  15611. .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
  15612. .IX Item "-march=architecture-type"
  15613. .PD 0
  15614. .IP "\fB\-mcpu=\fR\fIarchitecture-type\fR" 4
  15615. .IX Item "-mcpu=architecture-type"
  15616. .PD
  15617. Generate code for the specified architecture. The choices for
  15618. \&\fIarchitecture-type\fR are \fBv3\fR, \fBv8\fR and \fBv10\fR for
  15619. respectively \s-1ETRAX\s0\ 4, \s-1ETRAX\s0\ 100, and \s-1ETRAX\s0\ 100\ \s-1LX.\s0
  15620. Default is \fBv0\fR except for cris-axis-linux-gnu, where the default is
  15621. \&\fBv10\fR.
  15622. .IP "\fB\-mtune=\fR\fIarchitecture-type\fR" 4
  15623. .IX Item "-mtune=architecture-type"
  15624. Tune to \fIarchitecture-type\fR everything applicable about the generated
  15625. code, except for the \s-1ABI\s0 and the set of available instructions. The
  15626. choices for \fIarchitecture-type\fR are the same as for
  15627. \&\fB\-march=\fR\fIarchitecture-type\fR.
  15628. .IP "\fB\-mmax\-stack\-frame=\fR\fIn\fR" 4
  15629. .IX Item "-mmax-stack-frame=n"
  15630. Warn when the stack frame of a function exceeds \fIn\fR bytes.
  15631. .IP "\fB\-metrax4\fR" 4
  15632. .IX Item "-metrax4"
  15633. .PD 0
  15634. .IP "\fB\-metrax100\fR" 4
  15635. .IX Item "-metrax100"
  15636. .PD
  15637. The options \fB\-metrax4\fR and \fB\-metrax100\fR are synonyms for
  15638. \&\fB\-march=v3\fR and \fB\-march=v8\fR respectively.
  15639. .IP "\fB\-mmul\-bug\-workaround\fR" 4
  15640. .IX Item "-mmul-bug-workaround"
  15641. .PD 0
  15642. .IP "\fB\-mno\-mul\-bug\-workaround\fR" 4
  15643. .IX Item "-mno-mul-bug-workaround"
  15644. .PD
  15645. Work around a bug in the \f(CW\*(C`muls\*(C'\fR and \f(CW\*(C`mulu\*(C'\fR instructions for \s-1CPU\s0
  15646. models where it applies. This option is active by default.
  15647. .IP "\fB\-mpdebug\fR" 4
  15648. .IX Item "-mpdebug"
  15649. Enable CRIS-specific verbose debug-related information in the assembly
  15650. code. This option also has the effect of turning off the \fB#NO_APP\fR
  15651. formatted-code indicator to the assembler at the beginning of the
  15652. assembly file.
  15653. .IP "\fB\-mcc\-init\fR" 4
  15654. .IX Item "-mcc-init"
  15655. Do not use condition-code results from previous instruction; always emit
  15656. compare and test instructions before use of condition codes.
  15657. .IP "\fB\-mno\-side\-effects\fR" 4
  15658. .IX Item "-mno-side-effects"
  15659. Do not emit instructions with side effects in addressing modes other than
  15660. post-increment.
  15661. .IP "\fB\-mstack\-align\fR" 4
  15662. .IX Item "-mstack-align"
  15663. .PD 0
  15664. .IP "\fB\-mno\-stack\-align\fR" 4
  15665. .IX Item "-mno-stack-align"
  15666. .IP "\fB\-mdata\-align\fR" 4
  15667. .IX Item "-mdata-align"
  15668. .IP "\fB\-mno\-data\-align\fR" 4
  15669. .IX Item "-mno-data-align"
  15670. .IP "\fB\-mconst\-align\fR" 4
  15671. .IX Item "-mconst-align"
  15672. .IP "\fB\-mno\-const\-align\fR" 4
  15673. .IX Item "-mno-const-align"
  15674. .PD
  15675. These options (\fBno\-\fR options) arrange (eliminate arrangements) for the
  15676. stack frame, individual data and constants to be aligned for the maximum
  15677. single data access size for the chosen \s-1CPU\s0 model. The default is to
  15678. arrange for 32\-bit alignment. \s-1ABI\s0 details such as structure layout are
  15679. not affected by these options.
  15680. .IP "\fB\-m32\-bit\fR" 4
  15681. .IX Item "-m32-bit"
  15682. .PD 0
  15683. .IP "\fB\-m16\-bit\fR" 4
  15684. .IX Item "-m16-bit"
  15685. .IP "\fB\-m8\-bit\fR" 4
  15686. .IX Item "-m8-bit"
  15687. .PD
  15688. Similar to the stack\- data\- and const-align options above, these options
  15689. arrange for stack frame, writable data and constants to all be 32\-bit,
  15690. 16\-bit or 8\-bit aligned. The default is 32\-bit alignment.
  15691. .IP "\fB\-mno\-prologue\-epilogue\fR" 4
  15692. .IX Item "-mno-prologue-epilogue"
  15693. .PD 0
  15694. .IP "\fB\-mprologue\-epilogue\fR" 4
  15695. .IX Item "-mprologue-epilogue"
  15696. .PD
  15697. With \fB\-mno\-prologue\-epilogue\fR, the normal function prologue and
  15698. epilogue which set up the stack frame are omitted and no return
  15699. instructions or return sequences are generated in the code. Use this
  15700. option only together with visual inspection of the compiled code: no
  15701. warnings or errors are generated when call-saved registers must be saved,
  15702. or storage for local variables needs to be allocated.
  15703. .IP "\fB\-mno\-gotplt\fR" 4
  15704. .IX Item "-mno-gotplt"
  15705. .PD 0
  15706. .IP "\fB\-mgotplt\fR" 4
  15707. .IX Item "-mgotplt"
  15708. .PD
  15709. With \fB\-fpic\fR and \fB\-fPIC\fR, don't generate (do generate)
  15710. instruction sequences that load addresses for functions from the \s-1PLT\s0 part
  15711. of the \s-1GOT\s0 rather than (traditional on other architectures) calls to the
  15712. \&\s-1PLT. \s0 The default is \fB\-mgotplt\fR.
  15713. .IP "\fB\-melf\fR" 4
  15714. .IX Item "-melf"
  15715. Legacy no-op option only recognized with the cris-axis-elf and
  15716. cris-axis-linux-gnu targets.
  15717. .IP "\fB\-mlinux\fR" 4
  15718. .IX Item "-mlinux"
  15719. Legacy no-op option only recognized with the cris-axis-linux-gnu target.
  15720. .IP "\fB\-sim\fR" 4
  15721. .IX Item "-sim"
  15722. This option, recognized for the cris-axis-elf, arranges
  15723. to link with input-output functions from a simulator library. Code,
  15724. initialized data and zero-initialized data are allocated consecutively.
  15725. .IP "\fB\-sim2\fR" 4
  15726. .IX Item "-sim2"
  15727. Like \fB\-sim\fR, but pass linker options to locate initialized data at
  15728. 0x40000000 and zero-initialized data at 0x80000000.
  15729. .PP
  15730. \fI\s-1CR16\s0 Options\fR
  15731. .IX Subsection "CR16 Options"
  15732. .PP
  15733. These options are defined specifically for the \s-1CR16\s0 ports.
  15734. .IP "\fB\-mmac\fR" 4
  15735. .IX Item "-mmac"
  15736. Enable the use of multiply-accumulate instructions. Disabled by default.
  15737. .IP "\fB\-mcr16cplus\fR" 4
  15738. .IX Item "-mcr16cplus"
  15739. .PD 0
  15740. .IP "\fB\-mcr16c\fR" 4
  15741. .IX Item "-mcr16c"
  15742. .PD
  15743. Generate code for \s-1CR16C\s0 or \s-1CR16C+\s0 architecture. \s-1CR16C+\s0 architecture
  15744. is default.
  15745. .IP "\fB\-msim\fR" 4
  15746. .IX Item "-msim"
  15747. Links the library libsim.a which is in compatible with simulator. Applicable
  15748. to \s-1ELF\s0 compiler only.
  15749. .IP "\fB\-mint32\fR" 4
  15750. .IX Item "-mint32"
  15751. Choose integer type as 32\-bit wide.
  15752. .IP "\fB\-mbit\-ops\fR" 4
  15753. .IX Item "-mbit-ops"
  15754. Generates \f(CW\*(C`sbit\*(C'\fR/\f(CW\*(C`cbit\*(C'\fR instructions for bit manipulations.
  15755. .IP "\fB\-mdata\-model=\fR\fImodel\fR" 4
  15756. .IX Item "-mdata-model=model"
  15757. Choose a data model. The choices for \fImodel\fR are \fBnear\fR,
  15758. \&\fBfar\fR or \fBmedium\fR. \fBmedium\fR is default.
  15759. However, \fBfar\fR is not valid with \fB\-mcr16c\fR, as the
  15760. \&\s-1CR16C\s0 architecture does not support the far data model.
  15761. .PP
  15762. \fIDarwin Options\fR
  15763. .IX Subsection "Darwin Options"
  15764. .PP
  15765. These options are defined for all architectures running the Darwin operating
  15766. system.
  15767. .PP
  15768. \&\s-1FSF GCC\s0 on Darwin does not create \*(L"fat\*(R" object files; it creates
  15769. an object file for the single architecture that \s-1GCC\s0 was built to
  15770. target. Apple's \s-1GCC\s0 on Darwin does create \*(L"fat\*(R" files if multiple
  15771. \&\fB\-arch\fR options are used; it does so by running the compiler or
  15772. linker multiple times and joining the results together with
  15773. \&\fIlipo\fR.
  15774. .PP
  15775. The subtype of the file created (like \fBppc7400\fR or \fBppc970\fR or
  15776. \&\fBi686\fR) is determined by the flags that specify the \s-1ISA\s0
  15777. that \s-1GCC\s0 is targeting, like \fB\-mcpu\fR or \fB\-march\fR. The
  15778. \&\fB\-force_cpusubtype_ALL\fR option can be used to override this.
  15779. .PP
  15780. The Darwin tools vary in their behavior when presented with an \s-1ISA\s0
  15781. mismatch. The assembler, \fIas\fR, only permits instructions to
  15782. be used that are valid for the subtype of the file it is generating,
  15783. so you cannot put 64\-bit instructions in a \fBppc750\fR object file.
  15784. The linker for shared libraries, \fI/usr/bin/libtool\fR, fails
  15785. and prints an error if asked to create a shared library with a less
  15786. restrictive subtype than its input files (for instance, trying to put
  15787. a \fBppc970\fR object file in a \fBppc7400\fR library). The linker
  15788. for executables, \fBld\fR, quietly gives the executable the most
  15789. restrictive subtype of any of its input files.
  15790. .IP "\fB\-F\fR\fIdir\fR" 4
  15791. .IX Item "-Fdir"
  15792. Add the framework directory \fIdir\fR to the head of the list of
  15793. directories to be searched for header files. These directories are
  15794. interleaved with those specified by \fB\-I\fR options and are
  15795. scanned in a left-to-right order.
  15796. .Sp
  15797. A framework directory is a directory with frameworks in it. A
  15798. framework is a directory with a \fIHeaders\fR and/or
  15799. \&\fIPrivateHeaders\fR directory contained directly in it that ends
  15800. in \fI.framework\fR. The name of a framework is the name of this
  15801. directory excluding the \fI.framework\fR. Headers associated with
  15802. the framework are found in one of those two directories, with
  15803. \&\fIHeaders\fR being searched first. A subframework is a framework
  15804. directory that is in a framework's \fIFrameworks\fR directory.
  15805. Includes of subframework headers can only appear in a header of a
  15806. framework that contains the subframework, or in a sibling subframework
  15807. header. Two subframeworks are siblings if they occur in the same
  15808. framework. A subframework should not have the same name as a
  15809. framework; a warning is issued if this is violated. Currently a
  15810. subframework cannot have subframeworks; in the future, the mechanism
  15811. may be extended to support this. The standard frameworks can be found
  15812. in \fI/System/Library/Frameworks\fR and
  15813. \&\fI/Library/Frameworks\fR. An example include looks like
  15814. \&\f(CW\*(C`#include <Framework/header.h>\*(C'\fR, where \fIFramework\fR denotes
  15815. the name of the framework and \fIheader.h\fR is found in the
  15816. \&\fIPrivateHeaders\fR or \fIHeaders\fR directory.
  15817. .IP "\fB\-iframework\fR\fIdir\fR" 4
  15818. .IX Item "-iframeworkdir"
  15819. Like \fB\-F\fR except the directory is a treated as a system
  15820. directory. The main difference between this \fB\-iframework\fR and
  15821. \&\fB\-F\fR is that with \fB\-iframework\fR the compiler does not
  15822. warn about constructs contained within header files found via
  15823. \&\fIdir\fR. This option is valid only for the C family of languages.
  15824. .IP "\fB\-gused\fR" 4
  15825. .IX Item "-gused"
  15826. Emit debugging information for symbols that are used. For stabs
  15827. debugging format, this enables \fB\-feliminate\-unused\-debug\-symbols\fR.
  15828. This is by default \s-1ON.\s0
  15829. .IP "\fB\-gfull\fR" 4
  15830. .IX Item "-gfull"
  15831. Emit debugging information for all symbols and types.
  15832. .IP "\fB\-mmacosx\-version\-min=\fR\fIversion\fR" 4
  15833. .IX Item "-mmacosx-version-min=version"
  15834. The earliest version of MacOS X that this executable will run on
  15835. is \fIversion\fR. Typical values of \fIversion\fR include \f(CW10.1\fR,
  15836. \&\f(CW10.2\fR, and \f(CW10.3.9\fR.
  15837. .Sp
  15838. If the compiler was built to use the system's headers by default,
  15839. then the default for this option is the system version on which the
  15840. compiler is running, otherwise the default is to make choices that
  15841. are compatible with as many systems and code bases as possible.
  15842. .IP "\fB\-mkernel\fR" 4
  15843. .IX Item "-mkernel"
  15844. Enable kernel development mode. The \fB\-mkernel\fR option sets
  15845. \&\fB\-static\fR, \fB\-fno\-common\fR, \fB\-fno\-use\-cxa\-atexit\fR,
  15846. \&\fB\-fno\-exceptions\fR, \fB\-fno\-non\-call\-exceptions\fR,
  15847. \&\fB\-fapple\-kext\fR, \fB\-fno\-weak\fR and \fB\-fno\-rtti\fR where
  15848. applicable. This mode also sets \fB\-mno\-altivec\fR,
  15849. \&\fB\-msoft\-float\fR, \fB\-fno\-builtin\fR and
  15850. \&\fB\-mlong\-branch\fR for PowerPC targets.
  15851. .IP "\fB\-mone\-byte\-bool\fR" 4
  15852. .IX Item "-mone-byte-bool"
  15853. Override the defaults for \f(CW\*(C`bool\*(C'\fR so that \f(CW\*(C`sizeof(bool)==1\*(C'\fR.
  15854. By default \f(CW\*(C`sizeof(bool)\*(C'\fR is \f(CW4\fR when compiling for
  15855. Darwin/PowerPC and \f(CW1\fR when compiling for Darwin/x86, so this
  15856. option has no effect on x86.
  15857. .Sp
  15858. \&\fBWarning:\fR The \fB\-mone\-byte\-bool\fR switch causes \s-1GCC\s0
  15859. to generate code that is not binary compatible with code generated
  15860. without that switch. Using this switch may require recompiling all
  15861. other modules in a program, including system libraries. Use this
  15862. switch to conform to a non-default data model.
  15863. .IP "\fB\-mfix\-and\-continue\fR" 4
  15864. .IX Item "-mfix-and-continue"
  15865. .PD 0
  15866. .IP "\fB\-ffix\-and\-continue\fR" 4
  15867. .IX Item "-ffix-and-continue"
  15868. .IP "\fB\-findirect\-data\fR" 4
  15869. .IX Item "-findirect-data"
  15870. .PD
  15871. Generate code suitable for fast turnaround development, such as to
  15872. allow \s-1GDB\s0 to dynamically load \fI.o\fR files into already-running
  15873. programs. \fB\-findirect\-data\fR and \fB\-ffix\-and\-continue\fR
  15874. are provided for backwards compatibility.
  15875. .IP "\fB\-all_load\fR" 4
  15876. .IX Item "-all_load"
  15877. Loads all members of static archive libraries.
  15878. See man \fIld\fR\|(1) for more information.
  15879. .IP "\fB\-arch_errors_fatal\fR" 4
  15880. .IX Item "-arch_errors_fatal"
  15881. Cause the errors having to do with files that have the wrong architecture
  15882. to be fatal.
  15883. .IP "\fB\-bind_at_load\fR" 4
  15884. .IX Item "-bind_at_load"
  15885. Causes the output file to be marked such that the dynamic linker will
  15886. bind all undefined references when the file is loaded or launched.
  15887. .IP "\fB\-bundle\fR" 4
  15888. .IX Item "-bundle"
  15889. Produce a Mach-o bundle format file.
  15890. See man \fIld\fR\|(1) for more information.
  15891. .IP "\fB\-bundle_loader\fR \fIexecutable\fR" 4
  15892. .IX Item "-bundle_loader executable"
  15893. This option specifies the \fIexecutable\fR that will load the build
  15894. output file being linked. See man \fIld\fR\|(1) for more information.
  15895. .IP "\fB\-dynamiclib\fR" 4
  15896. .IX Item "-dynamiclib"
  15897. When passed this option, \s-1GCC\s0 produces a dynamic library instead of
  15898. an executable when linking, using the Darwin \fIlibtool\fR command.
  15899. .IP "\fB\-force_cpusubtype_ALL\fR" 4
  15900. .IX Item "-force_cpusubtype_ALL"
  15901. This causes \s-1GCC\s0's output file to have the \fB\s-1ALL\s0\fR subtype, instead of
  15902. one controlled by the \fB\-mcpu\fR or \fB\-march\fR option.
  15903. .IP "\fB\-allowable_client\fR \fIclient_name\fR" 4
  15904. .IX Item "-allowable_client client_name"
  15905. .PD 0
  15906. .IP "\fB\-client_name\fR" 4
  15907. .IX Item "-client_name"
  15908. .IP "\fB\-compatibility_version\fR" 4
  15909. .IX Item "-compatibility_version"
  15910. .IP "\fB\-current_version\fR" 4
  15911. .IX Item "-current_version"
  15912. .IP "\fB\-dead_strip\fR" 4
  15913. .IX Item "-dead_strip"
  15914. .IP "\fB\-dependency\-file\fR" 4
  15915. .IX Item "-dependency-file"
  15916. .IP "\fB\-dylib_file\fR" 4
  15917. .IX Item "-dylib_file"
  15918. .IP "\fB\-dylinker_install_name\fR" 4
  15919. .IX Item "-dylinker_install_name"
  15920. .IP "\fB\-dynamic\fR" 4
  15921. .IX Item "-dynamic"
  15922. .IP "\fB\-exported_symbols_list\fR" 4
  15923. .IX Item "-exported_symbols_list"
  15924. .IP "\fB\-filelist\fR" 4
  15925. .IX Item "-filelist"
  15926. .IP "\fB\-flat_namespace\fR" 4
  15927. .IX Item "-flat_namespace"
  15928. .IP "\fB\-force_flat_namespace\fR" 4
  15929. .IX Item "-force_flat_namespace"
  15930. .IP "\fB\-headerpad_max_install_names\fR" 4
  15931. .IX Item "-headerpad_max_install_names"
  15932. .IP "\fB\-image_base\fR" 4
  15933. .IX Item "-image_base"
  15934. .IP "\fB\-init\fR" 4
  15935. .IX Item "-init"
  15936. .IP "\fB\-install_name\fR" 4
  15937. .IX Item "-install_name"
  15938. .IP "\fB\-keep_private_externs\fR" 4
  15939. .IX Item "-keep_private_externs"
  15940. .IP "\fB\-multi_module\fR" 4
  15941. .IX Item "-multi_module"
  15942. .IP "\fB\-multiply_defined\fR" 4
  15943. .IX Item "-multiply_defined"
  15944. .IP "\fB\-multiply_defined_unused\fR" 4
  15945. .IX Item "-multiply_defined_unused"
  15946. .IP "\fB\-noall_load\fR" 4
  15947. .IX Item "-noall_load"
  15948. .IP "\fB\-no_dead_strip_inits_and_terms\fR" 4
  15949. .IX Item "-no_dead_strip_inits_and_terms"
  15950. .IP "\fB\-nofixprebinding\fR" 4
  15951. .IX Item "-nofixprebinding"
  15952. .IP "\fB\-nomultidefs\fR" 4
  15953. .IX Item "-nomultidefs"
  15954. .IP "\fB\-noprebind\fR" 4
  15955. .IX Item "-noprebind"
  15956. .IP "\fB\-noseglinkedit\fR" 4
  15957. .IX Item "-noseglinkedit"
  15958. .IP "\fB\-pagezero_size\fR" 4
  15959. .IX Item "-pagezero_size"
  15960. .IP "\fB\-prebind\fR" 4
  15961. .IX Item "-prebind"
  15962. .IP "\fB\-prebind_all_twolevel_modules\fR" 4
  15963. .IX Item "-prebind_all_twolevel_modules"
  15964. .IP "\fB\-private_bundle\fR" 4
  15965. .IX Item "-private_bundle"
  15966. .IP "\fB\-read_only_relocs\fR" 4
  15967. .IX Item "-read_only_relocs"
  15968. .IP "\fB\-sectalign\fR" 4
  15969. .IX Item "-sectalign"
  15970. .IP "\fB\-sectobjectsymbols\fR" 4
  15971. .IX Item "-sectobjectsymbols"
  15972. .IP "\fB\-whyload\fR" 4
  15973. .IX Item "-whyload"
  15974. .IP "\fB\-seg1addr\fR" 4
  15975. .IX Item "-seg1addr"
  15976. .IP "\fB\-sectcreate\fR" 4
  15977. .IX Item "-sectcreate"
  15978. .IP "\fB\-sectobjectsymbols\fR" 4
  15979. .IX Item "-sectobjectsymbols"
  15980. .IP "\fB\-sectorder\fR" 4
  15981. .IX Item "-sectorder"
  15982. .IP "\fB\-segaddr\fR" 4
  15983. .IX Item "-segaddr"
  15984. .IP "\fB\-segs_read_only_addr\fR" 4
  15985. .IX Item "-segs_read_only_addr"
  15986. .IP "\fB\-segs_read_write_addr\fR" 4
  15987. .IX Item "-segs_read_write_addr"
  15988. .IP "\fB\-seg_addr_table\fR" 4
  15989. .IX Item "-seg_addr_table"
  15990. .IP "\fB\-seg_addr_table_filename\fR" 4
  15991. .IX Item "-seg_addr_table_filename"
  15992. .IP "\fB\-seglinkedit\fR" 4
  15993. .IX Item "-seglinkedit"
  15994. .IP "\fB\-segprot\fR" 4
  15995. .IX Item "-segprot"
  15996. .IP "\fB\-segs_read_only_addr\fR" 4
  15997. .IX Item "-segs_read_only_addr"
  15998. .IP "\fB\-segs_read_write_addr\fR" 4
  15999. .IX Item "-segs_read_write_addr"
  16000. .IP "\fB\-single_module\fR" 4
  16001. .IX Item "-single_module"
  16002. .IP "\fB\-static\fR" 4
  16003. .IX Item "-static"
  16004. .IP "\fB\-sub_library\fR" 4
  16005. .IX Item "-sub_library"
  16006. .IP "\fB\-sub_umbrella\fR" 4
  16007. .IX Item "-sub_umbrella"
  16008. .IP "\fB\-twolevel_namespace\fR" 4
  16009. .IX Item "-twolevel_namespace"
  16010. .IP "\fB\-umbrella\fR" 4
  16011. .IX Item "-umbrella"
  16012. .IP "\fB\-undefined\fR" 4
  16013. .IX Item "-undefined"
  16014. .IP "\fB\-unexported_symbols_list\fR" 4
  16015. .IX Item "-unexported_symbols_list"
  16016. .IP "\fB\-weak_reference_mismatches\fR" 4
  16017. .IX Item "-weak_reference_mismatches"
  16018. .IP "\fB\-whatsloaded\fR" 4
  16019. .IX Item "-whatsloaded"
  16020. .PD
  16021. These options are passed to the Darwin linker. The Darwin linker man page
  16022. describes them in detail.
  16023. .PP
  16024. \fI\s-1DEC\s0 Alpha Options\fR
  16025. .IX Subsection "DEC Alpha Options"
  16026. .PP
  16027. These \fB\-m\fR options are defined for the \s-1DEC\s0 Alpha implementations:
  16028. .IP "\fB\-mno\-soft\-float\fR" 4
  16029. .IX Item "-mno-soft-float"
  16030. .PD 0
  16031. .IP "\fB\-msoft\-float\fR" 4
  16032. .IX Item "-msoft-float"
  16033. .PD
  16034. Use (do not use) the hardware floating-point instructions for
  16035. floating-point operations. When \fB\-msoft\-float\fR is specified,
  16036. functions in \fIlibgcc.a\fR are used to perform floating-point
  16037. operations. Unless they are replaced by routines that emulate the
  16038. floating-point operations, or compiled in such a way as to call such
  16039. emulations routines, these routines issue floating-point
  16040. operations. If you are compiling for an Alpha without floating-point
  16041. operations, you must ensure that the library is built so as not to call
  16042. them.
  16043. .Sp
  16044. Note that Alpha implementations without floating-point operations are
  16045. required to have floating-point registers.
  16046. .IP "\fB\-mfp\-reg\fR" 4
  16047. .IX Item "-mfp-reg"
  16048. .PD 0
  16049. .IP "\fB\-mno\-fp\-regs\fR" 4
  16050. .IX Item "-mno-fp-regs"
  16051. .PD
  16052. Generate code that uses (does not use) the floating-point register set.
  16053. \&\fB\-mno\-fp\-regs\fR implies \fB\-msoft\-float\fR. If the floating-point
  16054. register set is not used, floating-point operands are passed in integer
  16055. registers as if they were integers and floating-point results are passed
  16056. in \f(CW$0\fR instead of \f(CW$f0\fR. This is a non-standard calling sequence,
  16057. so any function with a floating-point argument or return value called by code
  16058. compiled with \fB\-mno\-fp\-regs\fR must also be compiled with that
  16059. option.
  16060. .Sp
  16061. A typical use of this option is building a kernel that does not use,
  16062. and hence need not save and restore, any floating-point registers.
  16063. .IP "\fB\-mieee\fR" 4
  16064. .IX Item "-mieee"
  16065. The Alpha architecture implements floating-point hardware optimized for
  16066. maximum performance. It is mostly compliant with the \s-1IEEE\s0 floating-point
  16067. standard. However, for full compliance, software assistance is
  16068. required. This option generates code fully IEEE-compliant code
  16069. \&\fIexcept\fR that the \fIinexact-flag\fR is not maintained (see below).
  16070. If this option is turned on, the preprocessor macro \f(CW\*(C`_IEEE_FP\*(C'\fR is
  16071. defined during compilation. The resulting code is less efficient but is
  16072. able to correctly support denormalized numbers and exceptional \s-1IEEE\s0
  16073. values such as not-a-number and plus/minus infinity. Other Alpha
  16074. compilers call this option \fB\-ieee_with_no_inexact\fR.
  16075. .IP "\fB\-mieee\-with\-inexact\fR" 4
  16076. .IX Item "-mieee-with-inexact"
  16077. This is like \fB\-mieee\fR except the generated code also maintains
  16078. the \s-1IEEE \s0\fIinexact-flag\fR. Turning on this option causes the
  16079. generated code to implement fully-compliant \s-1IEEE\s0 math. In addition to
  16080. \&\f(CW\*(C`_IEEE_FP\*(C'\fR, \f(CW\*(C`_IEEE_FP_EXACT\*(C'\fR is defined as a preprocessor
  16081. macro. On some Alpha implementations the resulting code may execute
  16082. significantly slower than the code generated by default. Since there is
  16083. very little code that depends on the \fIinexact-flag\fR, you should
  16084. normally not specify this option. Other Alpha compilers call this
  16085. option \fB\-ieee_with_inexact\fR.
  16086. .IP "\fB\-mfp\-trap\-mode=\fR\fItrap-mode\fR" 4
  16087. .IX Item "-mfp-trap-mode=trap-mode"
  16088. This option controls what floating-point related traps are enabled.
  16089. Other Alpha compilers call this option \fB\-fptm\fR \fItrap-mode\fR.
  16090. The trap mode can be set to one of four values:
  16091. .RS 4
  16092. .IP "\fBn\fR" 4
  16093. .IX Item "n"
  16094. This is the default (normal) setting. The only traps that are enabled
  16095. are the ones that cannot be disabled in software (e.g., division by zero
  16096. trap).
  16097. .IP "\fBu\fR" 4
  16098. .IX Item "u"
  16099. In addition to the traps enabled by \fBn\fR, underflow traps are enabled
  16100. as well.
  16101. .IP "\fBsu\fR" 4
  16102. .IX Item "su"
  16103. Like \fBu\fR, but the instructions are marked to be safe for software
  16104. completion (see Alpha architecture manual for details).
  16105. .IP "\fBsui\fR" 4
  16106. .IX Item "sui"
  16107. Like \fBsu\fR, but inexact traps are enabled as well.
  16108. .RE
  16109. .RS 4
  16110. .RE
  16111. .IP "\fB\-mfp\-rounding\-mode=\fR\fIrounding-mode\fR" 4
  16112. .IX Item "-mfp-rounding-mode=rounding-mode"
  16113. Selects the \s-1IEEE\s0 rounding mode. Other Alpha compilers call this option
  16114. \&\fB\-fprm\fR \fIrounding-mode\fR. The \fIrounding-mode\fR can be one
  16115. of:
  16116. .RS 4
  16117. .IP "\fBn\fR" 4
  16118. .IX Item "n"
  16119. Normal \s-1IEEE\s0 rounding mode. Floating-point numbers are rounded towards
  16120. the nearest machine number or towards the even machine number in case
  16121. of a tie.
  16122. .IP "\fBm\fR" 4
  16123. .IX Item "m"
  16124. Round towards minus infinity.
  16125. .IP "\fBc\fR" 4
  16126. .IX Item "c"
  16127. Chopped rounding mode. Floating-point numbers are rounded towards zero.
  16128. .IP "\fBd\fR" 4
  16129. .IX Item "d"
  16130. Dynamic rounding mode. A field in the floating-point control register
  16131. (\fIfpcr\fR, see Alpha architecture reference manual) controls the
  16132. rounding mode in effect. The C library initializes this register for
  16133. rounding towards plus infinity. Thus, unless your program modifies the
  16134. \&\fIfpcr\fR, \fBd\fR corresponds to round towards plus infinity.
  16135. .RE
  16136. .RS 4
  16137. .RE
  16138. .IP "\fB\-mtrap\-precision=\fR\fItrap-precision\fR" 4
  16139. .IX Item "-mtrap-precision=trap-precision"
  16140. In the Alpha architecture, floating-point traps are imprecise. This
  16141. means without software assistance it is impossible to recover from a
  16142. floating trap and program execution normally needs to be terminated.
  16143. \&\s-1GCC\s0 can generate code that can assist operating system trap handlers
  16144. in determining the exact location that caused a floating-point trap.
  16145. Depending on the requirements of an application, different levels of
  16146. precisions can be selected:
  16147. .RS 4
  16148. .IP "\fBp\fR" 4
  16149. .IX Item "p"
  16150. Program precision. This option is the default and means a trap handler
  16151. can only identify which program caused a floating-point exception.
  16152. .IP "\fBf\fR" 4
  16153. .IX Item "f"
  16154. Function precision. The trap handler can determine the function that
  16155. caused a floating-point exception.
  16156. .IP "\fBi\fR" 4
  16157. .IX Item "i"
  16158. Instruction precision. The trap handler can determine the exact
  16159. instruction that caused a floating-point exception.
  16160. .RE
  16161. .RS 4
  16162. .Sp
  16163. Other Alpha compilers provide the equivalent options called
  16164. \&\fB\-scope_safe\fR and \fB\-resumption_safe\fR.
  16165. .RE
  16166. .IP "\fB\-mieee\-conformant\fR" 4
  16167. .IX Item "-mieee-conformant"
  16168. This option marks the generated code as \s-1IEEE\s0 conformant. You must not
  16169. use this option unless you also specify \fB\-mtrap\-precision=i\fR and either
  16170. \&\fB\-mfp\-trap\-mode=su\fR or \fB\-mfp\-trap\-mode=sui\fR. Its only effect
  16171. is to emit the line \fB.eflag 48\fR in the function prologue of the
  16172. generated assembly file.
  16173. .IP "\fB\-mbuild\-constants\fR" 4
  16174. .IX Item "-mbuild-constants"
  16175. Normally \s-1GCC\s0 examines a 32\- or 64\-bit integer constant to
  16176. see if it can construct it from smaller constants in two or three
  16177. instructions. If it cannot, it outputs the constant as a literal and
  16178. generates code to load it from the data segment at run time.
  16179. .Sp
  16180. Use this option to require \s-1GCC\s0 to construct \fIall\fR integer constants
  16181. using code, even if it takes more instructions (the maximum is six).
  16182. .Sp
  16183. You typically use this option to build a shared library dynamic
  16184. loader. Itself a shared library, it must relocate itself in memory
  16185. before it can find the variables and constants in its own data segment.
  16186. .IP "\fB\-mbwx\fR" 4
  16187. .IX Item "-mbwx"
  16188. .PD 0
  16189. .IP "\fB\-mno\-bwx\fR" 4
  16190. .IX Item "-mno-bwx"
  16191. .IP "\fB\-mcix\fR" 4
  16192. .IX Item "-mcix"
  16193. .IP "\fB\-mno\-cix\fR" 4
  16194. .IX Item "-mno-cix"
  16195. .IP "\fB\-mfix\fR" 4
  16196. .IX Item "-mfix"
  16197. .IP "\fB\-mno\-fix\fR" 4
  16198. .IX Item "-mno-fix"
  16199. .IP "\fB\-mmax\fR" 4
  16200. .IX Item "-mmax"
  16201. .IP "\fB\-mno\-max\fR" 4
  16202. .IX Item "-mno-max"
  16203. .PD
  16204. Indicate whether \s-1GCC\s0 should generate code to use the optional \s-1BWX,
  16205. CIX, FIX\s0 and \s-1MAX\s0 instruction sets. The default is to use the instruction
  16206. sets supported by the \s-1CPU\s0 type specified via \fB\-mcpu=\fR option or that
  16207. of the \s-1CPU\s0 on which \s-1GCC\s0 was built if none is specified.
  16208. .IP "\fB\-mfloat\-vax\fR" 4
  16209. .IX Item "-mfloat-vax"
  16210. .PD 0
  16211. .IP "\fB\-mfloat\-ieee\fR" 4
  16212. .IX Item "-mfloat-ieee"
  16213. .PD
  16214. Generate code that uses (does not use) \s-1VAX F\s0 and G floating-point
  16215. arithmetic instead of \s-1IEEE\s0 single and double precision.
  16216. .IP "\fB\-mexplicit\-relocs\fR" 4
  16217. .IX Item "-mexplicit-relocs"
  16218. .PD 0
  16219. .IP "\fB\-mno\-explicit\-relocs\fR" 4
  16220. .IX Item "-mno-explicit-relocs"
  16221. .PD
  16222. Older Alpha assemblers provided no way to generate symbol relocations
  16223. except via assembler macros. Use of these macros does not allow
  16224. optimal instruction scheduling. \s-1GNU\s0 binutils as of version 2.12
  16225. supports a new syntax that allows the compiler to explicitly mark
  16226. which relocations should apply to which instructions. This option
  16227. is mostly useful for debugging, as \s-1GCC\s0 detects the capabilities of
  16228. the assembler when it is built and sets the default accordingly.
  16229. .IP "\fB\-msmall\-data\fR" 4
  16230. .IX Item "-msmall-data"
  16231. .PD 0
  16232. .IP "\fB\-mlarge\-data\fR" 4
  16233. .IX Item "-mlarge-data"
  16234. .PD
  16235. When \fB\-mexplicit\-relocs\fR is in effect, static data is
  16236. accessed via \fIgp-relative\fR relocations. When \fB\-msmall\-data\fR
  16237. is used, objects 8 bytes long or smaller are placed in a \fIsmall data area\fR
  16238. (the \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR sections) and are accessed via
  16239. 16\-bit relocations off of the \f(CW$gp\fR register. This limits the
  16240. size of the small data area to 64KB, but allows the variables to be
  16241. directly accessed via a single instruction.
  16242. .Sp
  16243. The default is \fB\-mlarge\-data\fR. With this option the data area
  16244. is limited to just below 2GB. Programs that require more than 2GB of
  16245. data must use \f(CW\*(C`malloc\*(C'\fR or \f(CW\*(C`mmap\*(C'\fR to allocate the data in the
  16246. heap instead of in the program's data segment.
  16247. .Sp
  16248. When generating code for shared libraries, \fB\-fpic\fR implies
  16249. \&\fB\-msmall\-data\fR and \fB\-fPIC\fR implies \fB\-mlarge\-data\fR.
  16250. .IP "\fB\-msmall\-text\fR" 4
  16251. .IX Item "-msmall-text"
  16252. .PD 0
  16253. .IP "\fB\-mlarge\-text\fR" 4
  16254. .IX Item "-mlarge-text"
  16255. .PD
  16256. When \fB\-msmall\-text\fR is used, the compiler assumes that the
  16257. code of the entire program (or shared library) fits in 4MB, and is
  16258. thus reachable with a branch instruction. When \fB\-msmall\-data\fR
  16259. is used, the compiler can assume that all local symbols share the
  16260. same \f(CW$gp\fR value, and thus reduce the number of instructions
  16261. required for a function call from 4 to 1.
  16262. .Sp
  16263. The default is \fB\-mlarge\-text\fR.
  16264. .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
  16265. .IX Item "-mcpu=cpu_type"
  16266. Set the instruction set and instruction scheduling parameters for
  16267. machine type \fIcpu_type\fR. You can specify either the \fB\s-1EV\s0\fR
  16268. style name or the corresponding chip number. \s-1GCC\s0 supports scheduling
  16269. parameters for the \s-1EV4, EV5\s0 and \s-1EV6\s0 family of processors and
  16270. chooses the default values for the instruction set from the processor
  16271. you specify. If you do not specify a processor type, \s-1GCC\s0 defaults
  16272. to the processor on which the compiler was built.
  16273. .Sp
  16274. Supported values for \fIcpu_type\fR are
  16275. .RS 4
  16276. .IP "\fBev4\fR" 4
  16277. .IX Item "ev4"
  16278. .PD 0
  16279. .IP "\fBev45\fR" 4
  16280. .IX Item "ev45"
  16281. .IP "\fB21064\fR" 4
  16282. .IX Item "21064"
  16283. .PD
  16284. Schedules as an \s-1EV4\s0 and has no instruction set extensions.
  16285. .IP "\fBev5\fR" 4
  16286. .IX Item "ev5"
  16287. .PD 0
  16288. .IP "\fB21164\fR" 4
  16289. .IX Item "21164"
  16290. .PD
  16291. Schedules as an \s-1EV5\s0 and has no instruction set extensions.
  16292. .IP "\fBev56\fR" 4
  16293. .IX Item "ev56"
  16294. .PD 0
  16295. .IP "\fB21164a\fR" 4
  16296. .IX Item "21164a"
  16297. .PD
  16298. Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 extension.
  16299. .IP "\fBpca56\fR" 4
  16300. .IX Item "pca56"
  16301. .PD 0
  16302. .IP "\fB21164pc\fR" 4
  16303. .IX Item "21164pc"
  16304. .IP "\fB21164PC\fR" 4
  16305. .IX Item "21164PC"
  16306. .PD
  16307. Schedules as an \s-1EV5\s0 and supports the \s-1BWX\s0 and \s-1MAX\s0 extensions.
  16308. .IP "\fBev6\fR" 4
  16309. .IX Item "ev6"
  16310. .PD 0
  16311. .IP "\fB21264\fR" 4
  16312. .IX Item "21264"
  16313. .PD
  16314. Schedules as an \s-1EV6\s0 and supports the \s-1BWX, FIX,\s0 and \s-1MAX\s0 extensions.
  16315. .IP "\fBev67\fR" 4
  16316. .IX Item "ev67"
  16317. .PD 0
  16318. .IP "\fB21264a\fR" 4
  16319. .IX Item "21264a"
  16320. .PD
  16321. Schedules as an \s-1EV6\s0 and supports the \s-1BWX, CIX, FIX,\s0 and \s-1MAX\s0 extensions.
  16322. .RE
  16323. .RS 4
  16324. .Sp
  16325. Native toolchains also support the value \fBnative\fR,
  16326. which selects the best architecture option for the host processor.
  16327. \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
  16328. the processor.
  16329. .RE
  16330. .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
  16331. .IX Item "-mtune=cpu_type"
  16332. Set only the instruction scheduling parameters for machine type
  16333. \&\fIcpu_type\fR. The instruction set is not changed.
  16334. .Sp
  16335. Native toolchains also support the value \fBnative\fR,
  16336. which selects the best architecture option for the host processor.
  16337. \&\fB\-mtune=native\fR has no effect if \s-1GCC\s0 does not recognize
  16338. the processor.
  16339. .IP "\fB\-mmemory\-latency=\fR\fItime\fR" 4
  16340. .IX Item "-mmemory-latency=time"
  16341. Sets the latency the scheduler should assume for typical memory
  16342. references as seen by the application. This number is highly
  16343. dependent on the memory access patterns used by the application
  16344. and the size of the external cache on the machine.
  16345. .Sp
  16346. Valid options for \fItime\fR are
  16347. .RS 4
  16348. .IP "\fInumber\fR" 4
  16349. .IX Item "number"
  16350. A decimal number representing clock cycles.
  16351. .IP "\fBL1\fR" 4
  16352. .IX Item "L1"
  16353. .PD 0
  16354. .IP "\fBL2\fR" 4
  16355. .IX Item "L2"
  16356. .IP "\fBL3\fR" 4
  16357. .IX Item "L3"
  16358. .IP "\fBmain\fR" 4
  16359. .IX Item "main"
  16360. .PD
  16361. The compiler contains estimates of the number of clock cycles for
  16362. \&\*(L"typical\*(R" \s-1EV4 & EV5\s0 hardware for the Level 1, 2 & 3 caches
  16363. (also called Dcache, Scache, and Bcache), as well as to main memory.
  16364. Note that L3 is only valid for \s-1EV5.\s0
  16365. .RE
  16366. .RS 4
  16367. .RE
  16368. .PP
  16369. \fI\s-1FR30\s0 Options\fR
  16370. .IX Subsection "FR30 Options"
  16371. .PP
  16372. These options are defined specifically for the \s-1FR30\s0 port.
  16373. .IP "\fB\-msmall\-model\fR" 4
  16374. .IX Item "-msmall-model"
  16375. Use the small address space model. This can produce smaller code, but
  16376. it does assume that all symbolic values and addresses fit into a
  16377. 20\-bit range.
  16378. .IP "\fB\-mno\-lsim\fR" 4
  16379. .IX Item "-mno-lsim"
  16380. Assume that runtime support has been provided and so there is no need
  16381. to include the simulator library (\fIlibsim.a\fR) on the linker
  16382. command line.
  16383. .PP
  16384. \fI\s-1FT32\s0 Options\fR
  16385. .IX Subsection "FT32 Options"
  16386. .PP
  16387. These options are defined specifically for the \s-1FT32\s0 port.
  16388. .IP "\fB\-msim\fR" 4
  16389. .IX Item "-msim"
  16390. Specifies that the program will be run on the simulator. This causes
  16391. an alternate runtime startup and library to be linked.
  16392. You must not use this option when generating programs that will run on
  16393. real hardware; you must provide your own runtime library for whatever
  16394. I/O functions are needed.
  16395. .IP "\fB\-mlra\fR" 4
  16396. .IX Item "-mlra"
  16397. Enable Local Register Allocation. This is still experimental for \s-1FT32,\s0
  16398. so by default the compiler uses standard reload.
  16399. .IP "\fB\-mnodiv\fR" 4
  16400. .IX Item "-mnodiv"
  16401. Do not use div and mod instructions.
  16402. .PP
  16403. \fI\s-1FRV\s0 Options\fR
  16404. .IX Subsection "FRV Options"
  16405. .IP "\fB\-mgpr\-32\fR" 4
  16406. .IX Item "-mgpr-32"
  16407. Only use the first 32 general-purpose registers.
  16408. .IP "\fB\-mgpr\-64\fR" 4
  16409. .IX Item "-mgpr-64"
  16410. Use all 64 general-purpose registers.
  16411. .IP "\fB\-mfpr\-32\fR" 4
  16412. .IX Item "-mfpr-32"
  16413. Use only the first 32 floating-point registers.
  16414. .IP "\fB\-mfpr\-64\fR" 4
  16415. .IX Item "-mfpr-64"
  16416. Use all 64 floating-point registers.
  16417. .IP "\fB\-mhard\-float\fR" 4
  16418. .IX Item "-mhard-float"
  16419. Use hardware instructions for floating-point operations.
  16420. .IP "\fB\-msoft\-float\fR" 4
  16421. .IX Item "-msoft-float"
  16422. Use library routines for floating-point operations.
  16423. .IP "\fB\-malloc\-cc\fR" 4
  16424. .IX Item "-malloc-cc"
  16425. Dynamically allocate condition code registers.
  16426. .IP "\fB\-mfixed\-cc\fR" 4
  16427. .IX Item "-mfixed-cc"
  16428. Do not try to dynamically allocate condition code registers, only
  16429. use \f(CW\*(C`icc0\*(C'\fR and \f(CW\*(C`fcc0\*(C'\fR.
  16430. .IP "\fB\-mdword\fR" 4
  16431. .IX Item "-mdword"
  16432. Change \s-1ABI\s0 to use double word insns.
  16433. .IP "\fB\-mno\-dword\fR" 4
  16434. .IX Item "-mno-dword"
  16435. Do not use double word instructions.
  16436. .IP "\fB\-mdouble\fR" 4
  16437. .IX Item "-mdouble"
  16438. Use floating-point double instructions.
  16439. .IP "\fB\-mno\-double\fR" 4
  16440. .IX Item "-mno-double"
  16441. Do not use floating-point double instructions.
  16442. .IP "\fB\-mmedia\fR" 4
  16443. .IX Item "-mmedia"
  16444. Use media instructions.
  16445. .IP "\fB\-mno\-media\fR" 4
  16446. .IX Item "-mno-media"
  16447. Do not use media instructions.
  16448. .IP "\fB\-mmuladd\fR" 4
  16449. .IX Item "-mmuladd"
  16450. Use multiply and add/subtract instructions.
  16451. .IP "\fB\-mno\-muladd\fR" 4
  16452. .IX Item "-mno-muladd"
  16453. Do not use multiply and add/subtract instructions.
  16454. .IP "\fB\-mfdpic\fR" 4
  16455. .IX Item "-mfdpic"
  16456. Select the \s-1FDPIC ABI,\s0 which uses function descriptors to represent
  16457. pointers to functions. Without any PIC/PIE\-related options, it
  16458. implies \fB\-fPIE\fR. With \fB\-fpic\fR or \fB\-fpie\fR, it
  16459. assumes \s-1GOT\s0 entries and small data are within a 12\-bit range from the
  16460. \&\s-1GOT\s0 base address; with \fB\-fPIC\fR or \fB\-fPIE\fR, \s-1GOT\s0 offsets
  16461. are computed with 32 bits.
  16462. With a \fBbfin-elf\fR target, this option implies \fB\-msim\fR.
  16463. .IP "\fB\-minline\-plt\fR" 4
  16464. .IX Item "-minline-plt"
  16465. Enable inlining of \s-1PLT\s0 entries in function calls to functions that are
  16466. not known to bind locally. It has no effect without \fB\-mfdpic\fR.
  16467. It's enabled by default if optimizing for speed and compiling for
  16468. shared libraries (i.e., \fB\-fPIC\fR or \fB\-fpic\fR), or when an
  16469. optimization option such as \fB\-O3\fR or above is present in the
  16470. command line.
  16471. .IP "\fB\-mTLS\fR" 4
  16472. .IX Item "-mTLS"
  16473. Assume a large \s-1TLS\s0 segment when generating thread-local code.
  16474. .IP "\fB\-mtls\fR" 4
  16475. .IX Item "-mtls"
  16476. Do not assume a large \s-1TLS\s0 segment when generating thread-local code.
  16477. .IP "\fB\-mgprel\-ro\fR" 4
  16478. .IX Item "-mgprel-ro"
  16479. Enable the use of \f(CW\*(C`GPREL\*(C'\fR relocations in the \s-1FDPIC ABI\s0 for data
  16480. that is known to be in read-only sections. It's enabled by default,
  16481. except for \fB\-fpic\fR or \fB\-fpie\fR: even though it may help
  16482. make the global offset table smaller, it trades 1 instruction for 4.
  16483. With \fB\-fPIC\fR or \fB\-fPIE\fR, it trades 3 instructions for 4,
  16484. one of which may be shared by multiple symbols, and it avoids the need
  16485. for a \s-1GOT\s0 entry for the referenced symbol, so it's more likely to be a
  16486. win. If it is not, \fB\-mno\-gprel\-ro\fR can be used to disable it.
  16487. .IP "\fB\-multilib\-library\-pic\fR" 4
  16488. .IX Item "-multilib-library-pic"
  16489. Link with the (library, not \s-1FD\s0) pic libraries. It's implied by
  16490. \&\fB\-mlibrary\-pic\fR, as well as by \fB\-fPIC\fR and
  16491. \&\fB\-fpic\fR without \fB\-mfdpic\fR. You should never have to use
  16492. it explicitly.
  16493. .IP "\fB\-mlinked\-fp\fR" 4
  16494. .IX Item "-mlinked-fp"
  16495. Follow the \s-1EABI\s0 requirement of always creating a frame pointer whenever
  16496. a stack frame is allocated. This option is enabled by default and can
  16497. be disabled with \fB\-mno\-linked\-fp\fR.
  16498. .IP "\fB\-mlong\-calls\fR" 4
  16499. .IX Item "-mlong-calls"
  16500. Use indirect addressing to call functions outside the current
  16501. compilation unit. This allows the functions to be placed anywhere
  16502. within the 32\-bit address space.
  16503. .IP "\fB\-malign\-labels\fR" 4
  16504. .IX Item "-malign-labels"
  16505. Try to align labels to an 8\-byte boundary by inserting NOPs into the
  16506. previous packet. This option only has an effect when \s-1VLIW\s0 packing
  16507. is enabled. It doesn't create new packets; it merely adds NOPs to
  16508. existing ones.
  16509. .IP "\fB\-mlibrary\-pic\fR" 4
  16510. .IX Item "-mlibrary-pic"
  16511. Generate position-independent \s-1EABI\s0 code.
  16512. .IP "\fB\-macc\-4\fR" 4
  16513. .IX Item "-macc-4"
  16514. Use only the first four media accumulator registers.
  16515. .IP "\fB\-macc\-8\fR" 4
  16516. .IX Item "-macc-8"
  16517. Use all eight media accumulator registers.
  16518. .IP "\fB\-mpack\fR" 4
  16519. .IX Item "-mpack"
  16520. Pack \s-1VLIW\s0 instructions.
  16521. .IP "\fB\-mno\-pack\fR" 4
  16522. .IX Item "-mno-pack"
  16523. Do not pack \s-1VLIW\s0 instructions.
  16524. .IP "\fB\-mno\-eflags\fR" 4
  16525. .IX Item "-mno-eflags"
  16526. Do not mark \s-1ABI\s0 switches in e_flags.
  16527. .IP "\fB\-mcond\-move\fR" 4
  16528. .IX Item "-mcond-move"
  16529. Enable the use of conditional-move instructions (default).
  16530. .Sp
  16531. This switch is mainly for debugging the compiler and will likely be removed
  16532. in a future version.
  16533. .IP "\fB\-mno\-cond\-move\fR" 4
  16534. .IX Item "-mno-cond-move"
  16535. Disable the use of conditional-move instructions.
  16536. .Sp
  16537. This switch is mainly for debugging the compiler and will likely be removed
  16538. in a future version.
  16539. .IP "\fB\-mscc\fR" 4
  16540. .IX Item "-mscc"
  16541. Enable the use of conditional set instructions (default).
  16542. .Sp
  16543. This switch is mainly for debugging the compiler and will likely be removed
  16544. in a future version.
  16545. .IP "\fB\-mno\-scc\fR" 4
  16546. .IX Item "-mno-scc"
  16547. Disable the use of conditional set instructions.
  16548. .Sp
  16549. This switch is mainly for debugging the compiler and will likely be removed
  16550. in a future version.
  16551. .IP "\fB\-mcond\-exec\fR" 4
  16552. .IX Item "-mcond-exec"
  16553. Enable the use of conditional execution (default).
  16554. .Sp
  16555. This switch is mainly for debugging the compiler and will likely be removed
  16556. in a future version.
  16557. .IP "\fB\-mno\-cond\-exec\fR" 4
  16558. .IX Item "-mno-cond-exec"
  16559. Disable the use of conditional execution.
  16560. .Sp
  16561. This switch is mainly for debugging the compiler and will likely be removed
  16562. in a future version.
  16563. .IP "\fB\-mvliw\-branch\fR" 4
  16564. .IX Item "-mvliw-branch"
  16565. Run a pass to pack branches into \s-1VLIW\s0 instructions (default).
  16566. .Sp
  16567. This switch is mainly for debugging the compiler and will likely be removed
  16568. in a future version.
  16569. .IP "\fB\-mno\-vliw\-branch\fR" 4
  16570. .IX Item "-mno-vliw-branch"
  16571. Do not run a pass to pack branches into \s-1VLIW\s0 instructions.
  16572. .Sp
  16573. This switch is mainly for debugging the compiler and will likely be removed
  16574. in a future version.
  16575. .IP "\fB\-mmulti\-cond\-exec\fR" 4
  16576. .IX Item "-mmulti-cond-exec"
  16577. Enable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution
  16578. (default).
  16579. .Sp
  16580. This switch is mainly for debugging the compiler and will likely be removed
  16581. in a future version.
  16582. .IP "\fB\-mno\-multi\-cond\-exec\fR" 4
  16583. .IX Item "-mno-multi-cond-exec"
  16584. Disable optimization of \f(CW\*(C`&&\*(C'\fR and \f(CW\*(C`||\*(C'\fR in conditional execution.
  16585. .Sp
  16586. This switch is mainly for debugging the compiler and will likely be removed
  16587. in a future version.
  16588. .IP "\fB\-mnested\-cond\-exec\fR" 4
  16589. .IX Item "-mnested-cond-exec"
  16590. Enable nested conditional execution optimizations (default).
  16591. .Sp
  16592. This switch is mainly for debugging the compiler and will likely be removed
  16593. in a future version.
  16594. .IP "\fB\-mno\-nested\-cond\-exec\fR" 4
  16595. .IX Item "-mno-nested-cond-exec"
  16596. Disable nested conditional execution optimizations.
  16597. .Sp
  16598. This switch is mainly for debugging the compiler and will likely be removed
  16599. in a future version.
  16600. .IP "\fB\-moptimize\-membar\fR" 4
  16601. .IX Item "-moptimize-membar"
  16602. This switch removes redundant \f(CW\*(C`membar\*(C'\fR instructions from the
  16603. compiler-generated code. It is enabled by default.
  16604. .IP "\fB\-mno\-optimize\-membar\fR" 4
  16605. .IX Item "-mno-optimize-membar"
  16606. This switch disables the automatic removal of redundant \f(CW\*(C`membar\*(C'\fR
  16607. instructions from the generated code.
  16608. .IP "\fB\-mtomcat\-stats\fR" 4
  16609. .IX Item "-mtomcat-stats"
  16610. Cause gas to print out tomcat statistics.
  16611. .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
  16612. .IX Item "-mcpu=cpu"
  16613. Select the processor type for which to generate code. Possible values are
  16614. \&\fBfrv\fR, \fBfr550\fR, \fBtomcat\fR, \fBfr500\fR, \fBfr450\fR,
  16615. \&\fBfr405\fR, \fBfr400\fR, \fBfr300\fR and \fBsimple\fR.
  16616. .PP
  16617. \fIGNU/Linux Options\fR
  16618. .IX Subsection "GNU/Linux Options"
  16619. .PP
  16620. These \fB\-m\fR options are defined for GNU/Linux targets:
  16621. .IP "\fB\-mglibc\fR" 4
  16622. .IX Item "-mglibc"
  16623. Use the \s-1GNU C\s0 library. This is the default except
  16624. on \fB*\-*\-linux\-*uclibc*\fR, \fB*\-*\-linux\-*musl*\fR and
  16625. \&\fB*\-*\-linux\-*android*\fR targets.
  16626. .IP "\fB\-muclibc\fR" 4
  16627. .IX Item "-muclibc"
  16628. Use uClibc C library. This is the default on
  16629. \&\fB*\-*\-linux\-*uclibc*\fR targets.
  16630. .IP "\fB\-mmusl\fR" 4
  16631. .IX Item "-mmusl"
  16632. Use the musl C library. This is the default on
  16633. \&\fB*\-*\-linux\-*musl*\fR targets.
  16634. .IP "\fB\-mbionic\fR" 4
  16635. .IX Item "-mbionic"
  16636. Use Bionic C library. This is the default on
  16637. \&\fB*\-*\-linux\-*android*\fR targets.
  16638. .IP "\fB\-mandroid\fR" 4
  16639. .IX Item "-mandroid"
  16640. Compile code compatible with Android platform. This is the default on
  16641. \&\fB*\-*\-linux\-*android*\fR targets.
  16642. .Sp
  16643. When compiling, this option enables \fB\-mbionic\fR, \fB\-fPIC\fR,
  16644. \&\fB\-fno\-exceptions\fR and \fB\-fno\-rtti\fR by default. When linking,
  16645. this option makes the \s-1GCC\s0 driver pass Android-specific options to the linker.
  16646. Finally, this option causes the preprocessor macro \f(CW\*(C`_\|_ANDROID_\|_\*(C'\fR
  16647. to be defined.
  16648. .IP "\fB\-tno\-android\-cc\fR" 4
  16649. .IX Item "-tno-android-cc"
  16650. Disable compilation effects of \fB\-mandroid\fR, i.e., do not enable
  16651. \&\fB\-mbionic\fR, \fB\-fPIC\fR, \fB\-fno\-exceptions\fR and
  16652. \&\fB\-fno\-rtti\fR by default.
  16653. .IP "\fB\-tno\-android\-ld\fR" 4
  16654. .IX Item "-tno-android-ld"
  16655. Disable linking effects of \fB\-mandroid\fR, i.e., pass standard Linux
  16656. linking options to the linker.
  16657. .PP
  16658. \fIH8/300 Options\fR
  16659. .IX Subsection "H8/300 Options"
  16660. .PP
  16661. These \fB\-m\fR options are defined for the H8/300 implementations:
  16662. .IP "\fB\-mrelax\fR" 4
  16663. .IX Item "-mrelax"
  16664. Shorten some address references at link time, when possible; uses the
  16665. linker option \fB\-relax\fR.
  16666. .IP "\fB\-mh\fR" 4
  16667. .IX Item "-mh"
  16668. Generate code for the H8/300H.
  16669. .IP "\fB\-ms\fR" 4
  16670. .IX Item "-ms"
  16671. Generate code for the H8S.
  16672. .IP "\fB\-mn\fR" 4
  16673. .IX Item "-mn"
  16674. Generate code for the H8S and H8/300H in the normal mode. This switch
  16675. must be used either with \fB\-mh\fR or \fB\-ms\fR.
  16676. .IP "\fB\-ms2600\fR" 4
  16677. .IX Item "-ms2600"
  16678. Generate code for the H8S/2600. This switch must be used with \fB\-ms\fR.
  16679. .IP "\fB\-mexr\fR" 4
  16680. .IX Item "-mexr"
  16681. Extended registers are stored on stack before execution of function
  16682. with monitor attribute. Default option is \fB\-mexr\fR.
  16683. This option is valid only for H8S targets.
  16684. .IP "\fB\-mno\-exr\fR" 4
  16685. .IX Item "-mno-exr"
  16686. Extended registers are not stored on stack before execution of function
  16687. with monitor attribute. Default option is \fB\-mno\-exr\fR.
  16688. This option is valid only for H8S targets.
  16689. .IP "\fB\-mint32\fR" 4
  16690. .IX Item "-mint32"
  16691. Make \f(CW\*(C`int\*(C'\fR data 32 bits by default.
  16692. .IP "\fB\-malign\-300\fR" 4
  16693. .IX Item "-malign-300"
  16694. On the H8/300H and H8S, use the same alignment rules as for the H8/300.
  16695. The default for the H8/300H and H8S is to align longs and floats on
  16696. 4\-byte boundaries.
  16697. \&\fB\-malign\-300\fR causes them to be aligned on 2\-byte boundaries.
  16698. This option has no effect on the H8/300.
  16699. .PP
  16700. \fI\s-1HPPA\s0 Options\fR
  16701. .IX Subsection "HPPA Options"
  16702. .PP
  16703. These \fB\-m\fR options are defined for the \s-1HPPA\s0 family of computers:
  16704. .IP "\fB\-march=\fR\fIarchitecture-type\fR" 4
  16705. .IX Item "-march=architecture-type"
  16706. Generate code for the specified architecture. The choices for
  16707. \&\fIarchitecture-type\fR are \fB1.0\fR for \s-1PA 1.0, \s0\fB1.1\fR for \s-1PA
  16708. 1.1,\s0 and \fB2.0\fR for \s-1PA 2.0\s0 processors. Refer to
  16709. \&\fI/usr/lib/sched.models\fR on an HP-UX system to determine the proper
  16710. architecture option for your machine. Code compiled for lower numbered
  16711. architectures runs on higher numbered architectures, but not the
  16712. other way around.
  16713. .IP "\fB\-mpa\-risc\-1\-0\fR" 4
  16714. .IX Item "-mpa-risc-1-0"
  16715. .PD 0
  16716. .IP "\fB\-mpa\-risc\-1\-1\fR" 4
  16717. .IX Item "-mpa-risc-1-1"
  16718. .IP "\fB\-mpa\-risc\-2\-0\fR" 4
  16719. .IX Item "-mpa-risc-2-0"
  16720. .PD
  16721. Synonyms for \fB\-march=1.0\fR, \fB\-march=1.1\fR, and \fB\-march=2.0\fR respectively.
  16722. .IP "\fB\-mcaller\-copies\fR" 4
  16723. .IX Item "-mcaller-copies"
  16724. The caller copies function arguments passed by hidden reference. This
  16725. option should be used with care as it is not compatible with the default
  16726. 32\-bit runtime. However, only aggregates larger than eight bytes are
  16727. passed by hidden reference and the option provides better compatibility
  16728. with OpenMP.
  16729. .IP "\fB\-mjump\-in\-delay\fR" 4
  16730. .IX Item "-mjump-in-delay"
  16731. This option is ignored and provided for compatibility purposes only.
  16732. .IP "\fB\-mdisable\-fpregs\fR" 4
  16733. .IX Item "-mdisable-fpregs"
  16734. Prevent floating-point registers from being used in any manner. This is
  16735. necessary for compiling kernels that perform lazy context switching of
  16736. floating-point registers. If you use this option and attempt to perform
  16737. floating-point operations, the compiler aborts.
  16738. .IP "\fB\-mdisable\-indexing\fR" 4
  16739. .IX Item "-mdisable-indexing"
  16740. Prevent the compiler from using indexing address modes. This avoids some
  16741. rather obscure problems when compiling \s-1MIG\s0 generated code under \s-1MACH.\s0
  16742. .IP "\fB\-mno\-space\-regs\fR" 4
  16743. .IX Item "-mno-space-regs"
  16744. Generate code that assumes the target has no space registers. This allows
  16745. \&\s-1GCC\s0 to generate faster indirect calls and use unscaled index address modes.
  16746. .Sp
  16747. Such code is suitable for level 0 \s-1PA\s0 systems and kernels.
  16748. .IP "\fB\-mfast\-indirect\-calls\fR" 4
  16749. .IX Item "-mfast-indirect-calls"
  16750. Generate code that assumes calls never cross space boundaries. This
  16751. allows \s-1GCC\s0 to emit code that performs faster indirect calls.
  16752. .Sp
  16753. This option does not work in the presence of shared libraries or nested
  16754. functions.
  16755. .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
  16756. .IX Item "-mfixed-range=register-range"
  16757. Generate code treating the given register range as fixed registers.
  16758. A fixed register is one that the register allocator cannot use. This is
  16759. useful when compiling kernel code. A register range is specified as
  16760. two registers separated by a dash. Multiple register ranges can be
  16761. specified separated by a comma.
  16762. .IP "\fB\-mlong\-load\-store\fR" 4
  16763. .IX Item "-mlong-load-store"
  16764. Generate 3\-instruction load and store sequences as sometimes required by
  16765. the HP-UX 10 linker. This is equivalent to the \fB+k\fR option to
  16766. the \s-1HP\s0 compilers.
  16767. .IP "\fB\-mportable\-runtime\fR" 4
  16768. .IX Item "-mportable-runtime"
  16769. Use the portable calling conventions proposed by \s-1HP\s0 for \s-1ELF\s0 systems.
  16770. .IP "\fB\-mgas\fR" 4
  16771. .IX Item "-mgas"
  16772. Enable the use of assembler directives only \s-1GAS\s0 understands.
  16773. .IP "\fB\-mschedule=\fR\fIcpu-type\fR" 4
  16774. .IX Item "-mschedule=cpu-type"
  16775. Schedule code according to the constraints for the machine type
  16776. \&\fIcpu-type\fR. The choices for \fIcpu-type\fR are \fB700\fR
  16777. \&\fB7100\fR, \fB7100LC\fR, \fB7200\fR, \fB7300\fR and \fB8000\fR. Refer
  16778. to \fI/usr/lib/sched.models\fR on an HP-UX system to determine the
  16779. proper scheduling option for your machine. The default scheduling is
  16780. \&\fB8000\fR.
  16781. .IP "\fB\-mlinker\-opt\fR" 4
  16782. .IX Item "-mlinker-opt"
  16783. Enable the optimization pass in the HP-UX linker. Note this makes symbolic
  16784. debugging impossible. It also triggers a bug in the HP-UX 8 and HP-UX 9
  16785. linkers in which they give bogus error messages when linking some programs.
  16786. .IP "\fB\-msoft\-float\fR" 4
  16787. .IX Item "-msoft-float"
  16788. Generate output containing library calls for floating point.
  16789. \&\fBWarning:\fR the requisite libraries are not available for all \s-1HPPA\s0
  16790. targets. Normally the facilities of the machine's usual C compiler are
  16791. used, but this cannot be done directly in cross-compilation. You must make
  16792. your own arrangements to provide suitable library functions for
  16793. cross-compilation.
  16794. .Sp
  16795. \&\fB\-msoft\-float\fR changes the calling convention in the output file;
  16796. therefore, it is only useful if you compile \fIall\fR of a program with
  16797. this option. In particular, you need to compile \fIlibgcc.a\fR, the
  16798. library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
  16799. this to work.
  16800. .IP "\fB\-msio\fR" 4
  16801. .IX Item "-msio"
  16802. Generate the predefine, \f(CW\*(C`_SIO\*(C'\fR, for server \s-1IO. \s0 The default is
  16803. \&\fB\-mwsio\fR. This generates the predefines, \f(CW\*(C`_\|_hp9000s700\*(C'\fR,
  16804. \&\f(CW\*(C`_\|_hp9000s700_\|_\*(C'\fR and \f(CW\*(C`_WSIO\*(C'\fR, for workstation \s-1IO. \s0 These
  16805. options are available under HP-UX and HI-UX.
  16806. .IP "\fB\-mgnu\-ld\fR" 4
  16807. .IX Item "-mgnu-ld"
  16808. Use options specific to \s-1GNU \s0\fBld\fR.
  16809. This passes \fB\-shared\fR to \fBld\fR when
  16810. building a shared library. It is the default when \s-1GCC\s0 is configured,
  16811. explicitly or implicitly, with the \s-1GNU\s0 linker. This option does not
  16812. affect which \fBld\fR is called; it only changes what parameters
  16813. are passed to that \fBld\fR.
  16814. The \fBld\fR that is called is determined by the
  16815. \&\fB\-\-with\-ld\fR configure option, \s-1GCC\s0's program search path, and
  16816. finally by the user's \fB\s-1PATH\s0\fR. The linker used by \s-1GCC\s0 can be printed
  16817. using \fBwhich `gcc \-print\-prog\-name=ld`\fR. This option is only available
  16818. on the 64\-bit HP-UX \s-1GCC,\s0 i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
  16819. .IP "\fB\-mhp\-ld\fR" 4
  16820. .IX Item "-mhp-ld"
  16821. Use options specific to \s-1HP \s0\fBld\fR.
  16822. This passes \fB\-b\fR to \fBld\fR when building
  16823. a shared library and passes \fB+Accept TypeMismatch\fR to \fBld\fR on all
  16824. links. It is the default when \s-1GCC\s0 is configured, explicitly or
  16825. implicitly, with the \s-1HP\s0 linker. This option does not affect
  16826. which \fBld\fR is called; it only changes what parameters are passed to that
  16827. \&\fBld\fR.
  16828. The \fBld\fR that is called is determined by the \fB\-\-with\-ld\fR
  16829. configure option, \s-1GCC\s0's program search path, and finally by the user's
  16830. \&\fB\s-1PATH\s0\fR. The linker used by \s-1GCC\s0 can be printed using \fBwhich
  16831. `gcc \-print\-prog\-name=ld`\fR. This option is only available on the 64\-bit
  16832. HP-UX \s-1GCC,\s0 i.e. configured with \fBhppa*64*\-*\-hpux*\fR.
  16833. .IP "\fB\-mlong\-calls\fR" 4
  16834. .IX Item "-mlong-calls"
  16835. Generate code that uses long call sequences. This ensures that a call
  16836. is always able to reach linker generated stubs. The default is to generate
  16837. long calls only when the distance from the call site to the beginning
  16838. of the function or translation unit, as the case may be, exceeds a
  16839. predefined limit set by the branch type being used. The limits for
  16840. normal calls are 7,600,000 and 240,000 bytes, respectively for the
  16841. \&\s-1PA 2.0\s0 and \s-1PA 1.X\s0 architectures. Sibcalls are always limited at
  16842. 240,000 bytes.
  16843. .Sp
  16844. Distances are measured from the beginning of functions when using the
  16845. \&\fB\-ffunction\-sections\fR option, or when using the \fB\-mgas\fR
  16846. and \fB\-mno\-portable\-runtime\fR options together under HP-UX with
  16847. the \s-1SOM\s0 linker.
  16848. .Sp
  16849. It is normally not desirable to use this option as it degrades
  16850. performance. However, it may be useful in large applications,
  16851. particularly when partial linking is used to build the application.
  16852. .Sp
  16853. The types of long calls used depends on the capabilities of the
  16854. assembler and linker, and the type of code being generated. The
  16855. impact on systems that support long absolute calls, and long pic
  16856. symbol-difference or pc-relative calls should be relatively small.
  16857. However, an indirect call is used on 32\-bit \s-1ELF\s0 systems in pic code
  16858. and it is quite long.
  16859. .IP "\fB\-munix=\fR\fIunix-std\fR" 4
  16860. .IX Item "-munix=unix-std"
  16861. Generate compiler predefines and select a startfile for the specified
  16862. \&\s-1UNIX\s0 standard. The choices for \fIunix-std\fR are \fB93\fR, \fB95\fR
  16863. and \fB98\fR. \fB93\fR is supported on all HP-UX versions. \fB95\fR
  16864. is available on HP-UX 10.10 and later. \fB98\fR is available on HP-UX
  16865. 11.11 and later. The default values are \fB93\fR for HP-UX 10.00,
  16866. \&\fB95\fR for HP-UX 10.10 though to 11.00, and \fB98\fR for HP-UX 11.11
  16867. and later.
  16868. .Sp
  16869. \&\fB\-munix=93\fR provides the same predefines as \s-1GCC 3.3\s0 and 3.4.
  16870. \&\fB\-munix=95\fR provides additional predefines for \f(CW\*(C`XOPEN_UNIX\*(C'\fR
  16871. and \f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, and the startfile \fIunix95.o\fR.
  16872. \&\fB\-munix=98\fR provides additional predefines for \f(CW\*(C`_XOPEN_UNIX\*(C'\fR,
  16873. \&\f(CW\*(C`_XOPEN_SOURCE_EXTENDED\*(C'\fR, \f(CW\*(C`_INCLUDE_\|_STDC_A1_SOURCE\*(C'\fR and
  16874. \&\f(CW\*(C`_INCLUDE_XOPEN_SOURCE_500\*(C'\fR, and the startfile \fIunix98.o\fR.
  16875. .Sp
  16876. It is \fIimportant\fR to note that this option changes the interfaces
  16877. for various library routines. It also affects the operational behavior
  16878. of the C library. Thus, \fIextreme\fR care is needed in using this
  16879. option.
  16880. .Sp
  16881. Library code that is intended to operate with more than one \s-1UNIX\s0
  16882. standard must test, set and restore the variable \f(CW\*(C`_\|_xpg4_extended_mask\*(C'\fR
  16883. as appropriate. Most \s-1GNU\s0 software doesn't provide this capability.
  16884. .IP "\fB\-nolibdld\fR" 4
  16885. .IX Item "-nolibdld"
  16886. Suppress the generation of link options to search libdld.sl when the
  16887. \&\fB\-static\fR option is specified on HP-UX 10 and later.
  16888. .IP "\fB\-static\fR" 4
  16889. .IX Item "-static"
  16890. The HP-UX implementation of setlocale in libc has a dependency on
  16891. libdld.sl. There isn't an archive version of libdld.sl. Thus,
  16892. when the \fB\-static\fR option is specified, special link options
  16893. are needed to resolve this dependency.
  16894. .Sp
  16895. On HP-UX 10 and later, the \s-1GCC\s0 driver adds the necessary options to
  16896. link with libdld.sl when the \fB\-static\fR option is specified.
  16897. This causes the resulting binary to be dynamic. On the 64\-bit port,
  16898. the linkers generate dynamic binaries by default in any case. The
  16899. \&\fB\-nolibdld\fR option can be used to prevent the \s-1GCC\s0 driver from
  16900. adding these link options.
  16901. .IP "\fB\-threads\fR" 4
  16902. .IX Item "-threads"
  16903. Add support for multithreading with the \fIdce thread\fR library
  16904. under HP-UX. This option sets flags for both the preprocessor and
  16905. linker.
  16906. .PP
  16907. \fI\s-1IA\-64\s0 Options\fR
  16908. .IX Subsection "IA-64 Options"
  16909. .PP
  16910. These are the \fB\-m\fR options defined for the Intel \s-1IA\-64\s0 architecture.
  16911. .IP "\fB\-mbig\-endian\fR" 4
  16912. .IX Item "-mbig-endian"
  16913. Generate code for a big-endian target. This is the default for HP-UX.
  16914. .IP "\fB\-mlittle\-endian\fR" 4
  16915. .IX Item "-mlittle-endian"
  16916. Generate code for a little-endian target. This is the default for \s-1AIX5\s0
  16917. and GNU/Linux.
  16918. .IP "\fB\-mgnu\-as\fR" 4
  16919. .IX Item "-mgnu-as"
  16920. .PD 0
  16921. .IP "\fB\-mno\-gnu\-as\fR" 4
  16922. .IX Item "-mno-gnu-as"
  16923. .PD
  16924. Generate (or don't) code for the \s-1GNU\s0 assembler. This is the default.
  16925. .IP "\fB\-mgnu\-ld\fR" 4
  16926. .IX Item "-mgnu-ld"
  16927. .PD 0
  16928. .IP "\fB\-mno\-gnu\-ld\fR" 4
  16929. .IX Item "-mno-gnu-ld"
  16930. .PD
  16931. Generate (or don't) code for the \s-1GNU\s0 linker. This is the default.
  16932. .IP "\fB\-mno\-pic\fR" 4
  16933. .IX Item "-mno-pic"
  16934. Generate code that does not use a global pointer register. The result
  16935. is not position independent code, and violates the \s-1IA\-64 ABI.\s0
  16936. .IP "\fB\-mvolatile\-asm\-stop\fR" 4
  16937. .IX Item "-mvolatile-asm-stop"
  16938. .PD 0
  16939. .IP "\fB\-mno\-volatile\-asm\-stop\fR" 4
  16940. .IX Item "-mno-volatile-asm-stop"
  16941. .PD
  16942. Generate (or don't) a stop bit immediately before and after volatile asm
  16943. statements.
  16944. .IP "\fB\-mregister\-names\fR" 4
  16945. .IX Item "-mregister-names"
  16946. .PD 0
  16947. .IP "\fB\-mno\-register\-names\fR" 4
  16948. .IX Item "-mno-register-names"
  16949. .PD
  16950. Generate (or don't) \fBin\fR, \fBloc\fR, and \fBout\fR register names for
  16951. the stacked registers. This may make assembler output more readable.
  16952. .IP "\fB\-mno\-sdata\fR" 4
  16953. .IX Item "-mno-sdata"
  16954. .PD 0
  16955. .IP "\fB\-msdata\fR" 4
  16956. .IX Item "-msdata"
  16957. .PD
  16958. Disable (or enable) optimizations that use the small data section. This may
  16959. be useful for working around optimizer bugs.
  16960. .IP "\fB\-mconstant\-gp\fR" 4
  16961. .IX Item "-mconstant-gp"
  16962. Generate code that uses a single constant global pointer value. This is
  16963. useful when compiling kernel code.
  16964. .IP "\fB\-mauto\-pic\fR" 4
  16965. .IX Item "-mauto-pic"
  16966. Generate code that is self-relocatable. This implies \fB\-mconstant\-gp\fR.
  16967. This is useful when compiling firmware code.
  16968. .IP "\fB\-minline\-float\-divide\-min\-latency\fR" 4
  16969. .IX Item "-minline-float-divide-min-latency"
  16970. Generate code for inline divides of floating-point values
  16971. using the minimum latency algorithm.
  16972. .IP "\fB\-minline\-float\-divide\-max\-throughput\fR" 4
  16973. .IX Item "-minline-float-divide-max-throughput"
  16974. Generate code for inline divides of floating-point values
  16975. using the maximum throughput algorithm.
  16976. .IP "\fB\-mno\-inline\-float\-divide\fR" 4
  16977. .IX Item "-mno-inline-float-divide"
  16978. Do not generate inline code for divides of floating-point values.
  16979. .IP "\fB\-minline\-int\-divide\-min\-latency\fR" 4
  16980. .IX Item "-minline-int-divide-min-latency"
  16981. Generate code for inline divides of integer values
  16982. using the minimum latency algorithm.
  16983. .IP "\fB\-minline\-int\-divide\-max\-throughput\fR" 4
  16984. .IX Item "-minline-int-divide-max-throughput"
  16985. Generate code for inline divides of integer values
  16986. using the maximum throughput algorithm.
  16987. .IP "\fB\-mno\-inline\-int\-divide\fR" 4
  16988. .IX Item "-mno-inline-int-divide"
  16989. Do not generate inline code for divides of integer values.
  16990. .IP "\fB\-minline\-sqrt\-min\-latency\fR" 4
  16991. .IX Item "-minline-sqrt-min-latency"
  16992. Generate code for inline square roots
  16993. using the minimum latency algorithm.
  16994. .IP "\fB\-minline\-sqrt\-max\-throughput\fR" 4
  16995. .IX Item "-minline-sqrt-max-throughput"
  16996. Generate code for inline square roots
  16997. using the maximum throughput algorithm.
  16998. .IP "\fB\-mno\-inline\-sqrt\fR" 4
  16999. .IX Item "-mno-inline-sqrt"
  17000. Do not generate inline code for \f(CW\*(C`sqrt\*(C'\fR.
  17001. .IP "\fB\-mfused\-madd\fR" 4
  17002. .IX Item "-mfused-madd"
  17003. .PD 0
  17004. .IP "\fB\-mno\-fused\-madd\fR" 4
  17005. .IX Item "-mno-fused-madd"
  17006. .PD
  17007. Do (don't) generate code that uses the fused multiply/add or multiply/subtract
  17008. instructions. The default is to use these instructions.
  17009. .IP "\fB\-mno\-dwarf2\-asm\fR" 4
  17010. .IX Item "-mno-dwarf2-asm"
  17011. .PD 0
  17012. .IP "\fB\-mdwarf2\-asm\fR" 4
  17013. .IX Item "-mdwarf2-asm"
  17014. .PD
  17015. Don't (or do) generate assembler code for the \s-1DWARF\s0 line number debugging
  17016. info. This may be useful when not using the \s-1GNU\s0 assembler.
  17017. .IP "\fB\-mearly\-stop\-bits\fR" 4
  17018. .IX Item "-mearly-stop-bits"
  17019. .PD 0
  17020. .IP "\fB\-mno\-early\-stop\-bits\fR" 4
  17021. .IX Item "-mno-early-stop-bits"
  17022. .PD
  17023. Allow stop bits to be placed earlier than immediately preceding the
  17024. instruction that triggered the stop bit. This can improve instruction
  17025. scheduling, but does not always do so.
  17026. .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
  17027. .IX Item "-mfixed-range=register-range"
  17028. Generate code treating the given register range as fixed registers.
  17029. A fixed register is one that the register allocator cannot use. This is
  17030. useful when compiling kernel code. A register range is specified as
  17031. two registers separated by a dash. Multiple register ranges can be
  17032. specified separated by a comma.
  17033. .IP "\fB\-mtls\-size=\fR\fItls-size\fR" 4
  17034. .IX Item "-mtls-size=tls-size"
  17035. Specify bit size of immediate \s-1TLS\s0 offsets. Valid values are 14, 22, and
  17036. 64.
  17037. .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
  17038. .IX Item "-mtune=cpu-type"
  17039. Tune the instruction scheduling for a particular \s-1CPU,\s0 Valid values are
  17040. \&\fBitanium\fR, \fBitanium1\fR, \fBmerced\fR, \fBitanium2\fR,
  17041. and \fBmckinley\fR.
  17042. .IP "\fB\-milp32\fR" 4
  17043. .IX Item "-milp32"
  17044. .PD 0
  17045. .IP "\fB\-mlp64\fR" 4
  17046. .IX Item "-mlp64"
  17047. .PD
  17048. Generate code for a 32\-bit or 64\-bit environment.
  17049. The 32\-bit environment sets int, long and pointer to 32 bits.
  17050. The 64\-bit environment sets int to 32 bits and long and pointer
  17051. to 64 bits. These are HP-UX specific flags.
  17052. .IP "\fB\-mno\-sched\-br\-data\-spec\fR" 4
  17053. .IX Item "-mno-sched-br-data-spec"
  17054. .PD 0
  17055. .IP "\fB\-msched\-br\-data\-spec\fR" 4
  17056. .IX Item "-msched-br-data-spec"
  17057. .PD
  17058. (Dis/En)able data speculative scheduling before reload.
  17059. This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
  17060. the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
  17061. The default setting is disabled.
  17062. .IP "\fB\-msched\-ar\-data\-spec\fR" 4
  17063. .IX Item "-msched-ar-data-spec"
  17064. .PD 0
  17065. .IP "\fB\-mno\-sched\-ar\-data\-spec\fR" 4
  17066. .IX Item "-mno-sched-ar-data-spec"
  17067. .PD
  17068. (En/Dis)able data speculative scheduling after reload.
  17069. This results in generation of \f(CW\*(C`ld.a\*(C'\fR instructions and
  17070. the corresponding check instructions (\f(CW\*(C`ld.c\*(C'\fR / \f(CW\*(C`chk.a\*(C'\fR).
  17071. The default setting is enabled.
  17072. .IP "\fB\-mno\-sched\-control\-spec\fR" 4
  17073. .IX Item "-mno-sched-control-spec"
  17074. .PD 0
  17075. .IP "\fB\-msched\-control\-spec\fR" 4
  17076. .IX Item "-msched-control-spec"
  17077. .PD
  17078. (Dis/En)able control speculative scheduling. This feature is
  17079. available only during region scheduling (i.e. before reload).
  17080. This results in generation of the \f(CW\*(C`ld.s\*(C'\fR instructions and
  17081. the corresponding check instructions \f(CW\*(C`chk.s\*(C'\fR.
  17082. The default setting is disabled.
  17083. .IP "\fB\-msched\-br\-in\-data\-spec\fR" 4
  17084. .IX Item "-msched-br-in-data-spec"
  17085. .PD 0
  17086. .IP "\fB\-mno\-sched\-br\-in\-data\-spec\fR" 4
  17087. .IX Item "-mno-sched-br-in-data-spec"
  17088. .PD
  17089. (En/Dis)able speculative scheduling of the instructions that
  17090. are dependent on the data speculative loads before reload.
  17091. This is effective only with \fB\-msched\-br\-data\-spec\fR enabled.
  17092. The default setting is enabled.
  17093. .IP "\fB\-msched\-ar\-in\-data\-spec\fR" 4
  17094. .IX Item "-msched-ar-in-data-spec"
  17095. .PD 0
  17096. .IP "\fB\-mno\-sched\-ar\-in\-data\-spec\fR" 4
  17097. .IX Item "-mno-sched-ar-in-data-spec"
  17098. .PD
  17099. (En/Dis)able speculative scheduling of the instructions that
  17100. are dependent on the data speculative loads after reload.
  17101. This is effective only with \fB\-msched\-ar\-data\-spec\fR enabled.
  17102. The default setting is enabled.
  17103. .IP "\fB\-msched\-in\-control\-spec\fR" 4
  17104. .IX Item "-msched-in-control-spec"
  17105. .PD 0
  17106. .IP "\fB\-mno\-sched\-in\-control\-spec\fR" 4
  17107. .IX Item "-mno-sched-in-control-spec"
  17108. .PD
  17109. (En/Dis)able speculative scheduling of the instructions that
  17110. are dependent on the control speculative loads.
  17111. This is effective only with \fB\-msched\-control\-spec\fR enabled.
  17112. The default setting is enabled.
  17113. .IP "\fB\-mno\-sched\-prefer\-non\-data\-spec\-insns\fR" 4
  17114. .IX Item "-mno-sched-prefer-non-data-spec-insns"
  17115. .PD 0
  17116. .IP "\fB\-msched\-prefer\-non\-data\-spec\-insns\fR" 4
  17117. .IX Item "-msched-prefer-non-data-spec-insns"
  17118. .PD
  17119. If enabled, data-speculative instructions are chosen for schedule
  17120. only if there are no other choices at the moment. This makes
  17121. the use of the data speculation much more conservative.
  17122. The default setting is disabled.
  17123. .IP "\fB\-mno\-sched\-prefer\-non\-control\-spec\-insns\fR" 4
  17124. .IX Item "-mno-sched-prefer-non-control-spec-insns"
  17125. .PD 0
  17126. .IP "\fB\-msched\-prefer\-non\-control\-spec\-insns\fR" 4
  17127. .IX Item "-msched-prefer-non-control-spec-insns"
  17128. .PD
  17129. If enabled, control-speculative instructions are chosen for schedule
  17130. only if there are no other choices at the moment. This makes
  17131. the use of the control speculation much more conservative.
  17132. The default setting is disabled.
  17133. .IP "\fB\-mno\-sched\-count\-spec\-in\-critical\-path\fR" 4
  17134. .IX Item "-mno-sched-count-spec-in-critical-path"
  17135. .PD 0
  17136. .IP "\fB\-msched\-count\-spec\-in\-critical\-path\fR" 4
  17137. .IX Item "-msched-count-spec-in-critical-path"
  17138. .PD
  17139. If enabled, speculative dependencies are considered during
  17140. computation of the instructions priorities. This makes the use of the
  17141. speculation a bit more conservative.
  17142. The default setting is disabled.
  17143. .IP "\fB\-msched\-spec\-ldc\fR" 4
  17144. .IX Item "-msched-spec-ldc"
  17145. Use a simple data speculation check. This option is on by default.
  17146. .IP "\fB\-msched\-control\-spec\-ldc\fR" 4
  17147. .IX Item "-msched-control-spec-ldc"
  17148. Use a simple check for control speculation. This option is on by default.
  17149. .IP "\fB\-msched\-stop\-bits\-after\-every\-cycle\fR" 4
  17150. .IX Item "-msched-stop-bits-after-every-cycle"
  17151. Place a stop bit after every cycle when scheduling. This option is on
  17152. by default.
  17153. .IP "\fB\-msched\-fp\-mem\-deps\-zero\-cost\fR" 4
  17154. .IX Item "-msched-fp-mem-deps-zero-cost"
  17155. Assume that floating-point stores and loads are not likely to cause a conflict
  17156. when placed into the same instruction group. This option is disabled by
  17157. default.
  17158. .IP "\fB\-msel\-sched\-dont\-check\-control\-spec\fR" 4
  17159. .IX Item "-msel-sched-dont-check-control-spec"
  17160. Generate checks for control speculation in selective scheduling.
  17161. This flag is disabled by default.
  17162. .IP "\fB\-msched\-max\-memory\-insns=\fR\fImax-insns\fR" 4
  17163. .IX Item "-msched-max-memory-insns=max-insns"
  17164. Limit on the number of memory insns per instruction group, giving lower
  17165. priority to subsequent memory insns attempting to schedule in the same
  17166. instruction group. Frequently useful to prevent cache bank conflicts.
  17167. The default value is 1.
  17168. .IP "\fB\-msched\-max\-memory\-insns\-hard\-limit\fR" 4
  17169. .IX Item "-msched-max-memory-insns-hard-limit"
  17170. Makes the limit specified by \fBmsched-max-memory-insns\fR a hard limit,
  17171. disallowing more than that number in an instruction group.
  17172. Otherwise, the limit is \*(L"soft\*(R", meaning that non-memory operations
  17173. are preferred when the limit is reached, but memory operations may still
  17174. be scheduled.
  17175. .PP
  17176. \fI\s-1LM32\s0 Options\fR
  17177. .IX Subsection "LM32 Options"
  17178. .PP
  17179. These \fB\-m\fR options are defined for the LatticeMico32 architecture:
  17180. .IP "\fB\-mbarrel\-shift\-enabled\fR" 4
  17181. .IX Item "-mbarrel-shift-enabled"
  17182. Enable barrel-shift instructions.
  17183. .IP "\fB\-mdivide\-enabled\fR" 4
  17184. .IX Item "-mdivide-enabled"
  17185. Enable divide and modulus instructions.
  17186. .IP "\fB\-mmultiply\-enabled\fR" 4
  17187. .IX Item "-mmultiply-enabled"
  17188. Enable multiply instructions.
  17189. .IP "\fB\-msign\-extend\-enabled\fR" 4
  17190. .IX Item "-msign-extend-enabled"
  17191. Enable sign extend instructions.
  17192. .IP "\fB\-muser\-enabled\fR" 4
  17193. .IX Item "-muser-enabled"
  17194. Enable user-defined instructions.
  17195. .PP
  17196. \fIM32C Options\fR
  17197. .IX Subsection "M32C Options"
  17198. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  17199. .IX Item "-mcpu=name"
  17200. Select the \s-1CPU\s0 for which code is generated. \fIname\fR may be one of
  17201. \&\fBr8c\fR for the R8C/Tiny series, \fBm16c\fR for the M16C (up to
  17202. /60) series, \fBm32cm\fR for the M16C/80 series, or \fBm32c\fR for
  17203. the M32C/80 series.
  17204. .IP "\fB\-msim\fR" 4
  17205. .IX Item "-msim"
  17206. Specifies that the program will be run on the simulator. This causes
  17207. an alternate runtime library to be linked in which supports, for
  17208. example, file I/O. You must not use this option when generating
  17209. programs that will run on real hardware; you must provide your own
  17210. runtime library for whatever I/O functions are needed.
  17211. .IP "\fB\-memregs=\fR\fInumber\fR" 4
  17212. .IX Item "-memregs=number"
  17213. Specifies the number of memory-based pseudo-registers \s-1GCC\s0 uses
  17214. during code generation. These pseudo-registers are used like real
  17215. registers, so there is a tradeoff between \s-1GCC\s0's ability to fit the
  17216. code into available registers, and the performance penalty of using
  17217. memory instead of registers. Note that all modules in a program must
  17218. be compiled with the same value for this option. Because of that, you
  17219. must not use this option with \s-1GCC\s0's default runtime libraries.
  17220. .PP
  17221. \fIM32R/D Options\fR
  17222. .IX Subsection "M32R/D Options"
  17223. .PP
  17224. These \fB\-m\fR options are defined for Renesas M32R/D architectures:
  17225. .IP "\fB\-m32r2\fR" 4
  17226. .IX Item "-m32r2"
  17227. Generate code for the M32R/2.
  17228. .IP "\fB\-m32rx\fR" 4
  17229. .IX Item "-m32rx"
  17230. Generate code for the M32R/X.
  17231. .IP "\fB\-m32r\fR" 4
  17232. .IX Item "-m32r"
  17233. Generate code for the M32R. This is the default.
  17234. .IP "\fB\-mmodel=small\fR" 4
  17235. .IX Item "-mmodel=small"
  17236. Assume all objects live in the lower 16MB of memory (so that their addresses
  17237. can be loaded with the \f(CW\*(C`ld24\*(C'\fR instruction), and assume all subroutines
  17238. are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
  17239. This is the default.
  17240. .Sp
  17241. The addressability of a particular object can be set with the
  17242. \&\f(CW\*(C`model\*(C'\fR attribute.
  17243. .IP "\fB\-mmodel=medium\fR" 4
  17244. .IX Item "-mmodel=medium"
  17245. Assume objects may be anywhere in the 32\-bit address space (the compiler
  17246. generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
  17247. assume all subroutines are reachable with the \f(CW\*(C`bl\*(C'\fR instruction.
  17248. .IP "\fB\-mmodel=large\fR" 4
  17249. .IX Item "-mmodel=large"
  17250. Assume objects may be anywhere in the 32\-bit address space (the compiler
  17251. generates \f(CW\*(C`seth/add3\*(C'\fR instructions to load their addresses), and
  17252. assume subroutines may not be reachable with the \f(CW\*(C`bl\*(C'\fR instruction
  17253. (the compiler generates the much slower \f(CW\*(C`seth/add3/jl\*(C'\fR
  17254. instruction sequence).
  17255. .IP "\fB\-msdata=none\fR" 4
  17256. .IX Item "-msdata=none"
  17257. Disable use of the small data area. Variables are put into
  17258. one of \f(CW\*(C`.data\*(C'\fR, \f(CW\*(C`.bss\*(C'\fR, or \f(CW\*(C`.rodata\*(C'\fR (unless the
  17259. \&\f(CW\*(C`section\*(C'\fR attribute has been specified).
  17260. This is the default.
  17261. .Sp
  17262. The small data area consists of sections \f(CW\*(C`.sdata\*(C'\fR and \f(CW\*(C`.sbss\*(C'\fR.
  17263. Objects may be explicitly put in the small data area with the
  17264. \&\f(CW\*(C`section\*(C'\fR attribute using one of these sections.
  17265. .IP "\fB\-msdata=sdata\fR" 4
  17266. .IX Item "-msdata=sdata"
  17267. Put small global and static data in the small data area, but do not
  17268. generate special code to reference them.
  17269. .IP "\fB\-msdata=use\fR" 4
  17270. .IX Item "-msdata=use"
  17271. Put small global and static data in the small data area, and generate
  17272. special instructions to reference them.
  17273. .IP "\fB\-G\fR \fInum\fR" 4
  17274. .IX Item "-G num"
  17275. Put global and static objects less than or equal to \fInum\fR bytes
  17276. into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
  17277. sections. The default value of \fInum\fR is 8.
  17278. The \fB\-msdata\fR option must be set to one of \fBsdata\fR or \fBuse\fR
  17279. for this option to have any effect.
  17280. .Sp
  17281. All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
  17282. Compiling with different values of \fInum\fR may or may not work; if it
  17283. doesn't the linker gives an error message\-\-\-incorrect code is not
  17284. generated.
  17285. .IP "\fB\-mdebug\fR" 4
  17286. .IX Item "-mdebug"
  17287. Makes the M32R\-specific code in the compiler display some statistics
  17288. that might help in debugging programs.
  17289. .IP "\fB\-malign\-loops\fR" 4
  17290. .IX Item "-malign-loops"
  17291. Align all loops to a 32\-byte boundary.
  17292. .IP "\fB\-mno\-align\-loops\fR" 4
  17293. .IX Item "-mno-align-loops"
  17294. Do not enforce a 32\-byte alignment for loops. This is the default.
  17295. .IP "\fB\-missue\-rate=\fR\fInumber\fR" 4
  17296. .IX Item "-missue-rate=number"
  17297. Issue \fInumber\fR instructions per cycle. \fInumber\fR can only be 1
  17298. or 2.
  17299. .IP "\fB\-mbranch\-cost=\fR\fInumber\fR" 4
  17300. .IX Item "-mbranch-cost=number"
  17301. \&\fInumber\fR can only be 1 or 2. If it is 1 then branches are
  17302. preferred over conditional code, if it is 2, then the opposite applies.
  17303. .IP "\fB\-mflush\-trap=\fR\fInumber\fR" 4
  17304. .IX Item "-mflush-trap=number"
  17305. Specifies the trap number to use to flush the cache. The default is
  17306. 12. Valid numbers are between 0 and 15 inclusive.
  17307. .IP "\fB\-mno\-flush\-trap\fR" 4
  17308. .IX Item "-mno-flush-trap"
  17309. Specifies that the cache cannot be flushed by using a trap.
  17310. .IP "\fB\-mflush\-func=\fR\fIname\fR" 4
  17311. .IX Item "-mflush-func=name"
  17312. Specifies the name of the operating system function to call to flush
  17313. the cache. The default is \fB_flush_cache\fR, but a function call
  17314. is only used if a trap is not available.
  17315. .IP "\fB\-mno\-flush\-func\fR" 4
  17316. .IX Item "-mno-flush-func"
  17317. Indicates that there is no \s-1OS\s0 function for flushing the cache.
  17318. .PP
  17319. \fIM680x0 Options\fR
  17320. .IX Subsection "M680x0 Options"
  17321. .PP
  17322. These are the \fB\-m\fR options defined for M680x0 and ColdFire processors.
  17323. The default settings depend on which architecture was selected when
  17324. the compiler was configured; the defaults for the most common choices
  17325. are given below.
  17326. .IP "\fB\-march=\fR\fIarch\fR" 4
  17327. .IX Item "-march=arch"
  17328. Generate code for a specific M680x0 or ColdFire instruction set
  17329. architecture. Permissible values of \fIarch\fR for M680x0
  17330. architectures are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
  17331. \&\fB68030\fR, \fB68040\fR, \fB68060\fR and \fBcpu32\fR. ColdFire
  17332. architectures are selected according to Freescale's \s-1ISA\s0 classification
  17333. and the permissible values are: \fBisaa\fR, \fBisaaplus\fR,
  17334. \&\fBisab\fR and \fBisac\fR.
  17335. .Sp
  17336. \&\s-1GCC\s0 defines a macro \f(CW\*(C`_\|_mcf\f(CIarch\f(CW_\|_\*(C'\fR whenever it is generating
  17337. code for a ColdFire target. The \fIarch\fR in this macro is one of the
  17338. \&\fB\-march\fR arguments given above.
  17339. .Sp
  17340. When used together, \fB\-march\fR and \fB\-mtune\fR select code
  17341. that runs on a family of similar processors but that is optimized
  17342. for a particular microarchitecture.
  17343. .IP "\fB\-mcpu=\fR\fIcpu\fR" 4
  17344. .IX Item "-mcpu=cpu"
  17345. Generate code for a specific M680x0 or ColdFire processor.
  17346. The M680x0 \fIcpu\fRs are: \fB68000\fR, \fB68010\fR, \fB68020\fR,
  17347. \&\fB68030\fR, \fB68040\fR, \fB68060\fR, \fB68302\fR, \fB68332\fR
  17348. and \fBcpu32\fR. The ColdFire \fIcpu\fRs are given by the table
  17349. below, which also classifies the CPUs into families:
  17350. .RS 4
  17351. .IP "Family : \fB\-mcpu\fR arguments" 4
  17352. .IX Item "Family : -mcpu arguments"
  17353. .PD 0
  17354. .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
  17355. .IX Item "51 : 51 51ac 51ag 51cn 51em 51je 51jf 51jg 51jm 51mm 51qe 51qm"
  17356. .IP "\fB5206\fR : \fB5202\fR \fB5204\fR \fB5206\fR" 4
  17357. .IX Item "5206 : 5202 5204 5206"
  17358. .IP "\fB5206e\fR : \fB5206e\fR" 4
  17359. .IX Item "5206e : 5206e"
  17360. .IP "\fB5208\fR : \fB5207\fR \fB5208\fR" 4
  17361. .IX Item "5208 : 5207 5208"
  17362. .IP "\fB5211a\fR : \fB5210a\fR \fB5211a\fR" 4
  17363. .IX Item "5211a : 5210a 5211a"
  17364. .IP "\fB5213\fR : \fB5211\fR \fB5212\fR \fB5213\fR" 4
  17365. .IX Item "5213 : 5211 5212 5213"
  17366. .IP "\fB5216\fR : \fB5214\fR \fB5216\fR" 4
  17367. .IX Item "5216 : 5214 5216"
  17368. .IP "\fB52235\fR : \fB52230\fR \fB52231\fR \fB52232\fR \fB52233\fR \fB52234\fR \fB52235\fR" 4
  17369. .IX Item "52235 : 52230 52231 52232 52233 52234 52235"
  17370. .IP "\fB5225\fR : \fB5224\fR \fB5225\fR" 4
  17371. .IX Item "5225 : 5224 5225"
  17372. .IP "\fB52259\fR : \fB52252\fR \fB52254\fR \fB52255\fR \fB52256\fR \fB52258\fR \fB52259\fR" 4
  17373. .IX Item "52259 : 52252 52254 52255 52256 52258 52259"
  17374. .IP "\fB5235\fR : \fB5232\fR \fB5233\fR \fB5234\fR \fB5235\fR \fB523x\fR" 4
  17375. .IX Item "5235 : 5232 5233 5234 5235 523x"
  17376. .IP "\fB5249\fR : \fB5249\fR" 4
  17377. .IX Item "5249 : 5249"
  17378. .IP "\fB5250\fR : \fB5250\fR" 4
  17379. .IX Item "5250 : 5250"
  17380. .IP "\fB5271\fR : \fB5270\fR \fB5271\fR" 4
  17381. .IX Item "5271 : 5270 5271"
  17382. .IP "\fB5272\fR : \fB5272\fR" 4
  17383. .IX Item "5272 : 5272"
  17384. .IP "\fB5275\fR : \fB5274\fR \fB5275\fR" 4
  17385. .IX Item "5275 : 5274 5275"
  17386. .IP "\fB5282\fR : \fB5280\fR \fB5281\fR \fB5282\fR \fB528x\fR" 4
  17387. .IX Item "5282 : 5280 5281 5282 528x"
  17388. .IP "\fB53017\fR : \fB53011\fR \fB53012\fR \fB53013\fR \fB53014\fR \fB53015\fR \fB53016\fR \fB53017\fR" 4
  17389. .IX Item "53017 : 53011 53012 53013 53014 53015 53016 53017"
  17390. .IP "\fB5307\fR : \fB5307\fR" 4
  17391. .IX Item "5307 : 5307"
  17392. .IP "\fB5329\fR : \fB5327\fR \fB5328\fR \fB5329\fR \fB532x\fR" 4
  17393. .IX Item "5329 : 5327 5328 5329 532x"
  17394. .IP "\fB5373\fR : \fB5372\fR \fB5373\fR \fB537x\fR" 4
  17395. .IX Item "5373 : 5372 5373 537x"
  17396. .IP "\fB5407\fR : \fB5407\fR" 4
  17397. .IX Item "5407 : 5407"
  17398. .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
  17399. .IX Item "5475 : 5470 5471 5472 5473 5474 5475 547x 5480 5481 5482 5483 5484 5485"
  17400. .RE
  17401. .RS 4
  17402. .PD
  17403. .Sp
  17404. \&\fB\-mcpu=\fR\fIcpu\fR overrides \fB\-march=\fR\fIarch\fR if
  17405. \&\fIarch\fR is compatible with \fIcpu\fR. Other combinations of
  17406. \&\fB\-mcpu\fR and \fB\-march\fR are rejected.
  17407. .Sp
  17408. \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcf_cpu_\f(CIcpu\f(CW\*(C'\fR when ColdFire target
  17409. \&\fIcpu\fR is selected. It also defines \f(CW\*(C`_\|_mcf_family_\f(CIfamily\f(CW\*(C'\fR,
  17410. where the value of \fIfamily\fR is given by the table above.
  17411. .RE
  17412. .IP "\fB\-mtune=\fR\fItune\fR" 4
  17413. .IX Item "-mtune=tune"
  17414. Tune the code for a particular microarchitecture within the
  17415. constraints set by \fB\-march\fR and \fB\-mcpu\fR.
  17416. The M680x0 microarchitectures are: \fB68000\fR, \fB68010\fR,
  17417. \&\fB68020\fR, \fB68030\fR, \fB68040\fR, \fB68060\fR
  17418. and \fBcpu32\fR. The ColdFire microarchitectures
  17419. are: \fBcfv1\fR, \fBcfv2\fR, \fBcfv3\fR, \fBcfv4\fR and \fBcfv4e\fR.
  17420. .Sp
  17421. You can also use \fB\-mtune=68020\-40\fR for code that needs
  17422. to run relatively well on 68020, 68030 and 68040 targets.
  17423. \&\fB\-mtune=68020\-60\fR is similar but includes 68060 targets
  17424. as well. These two options select the same tuning decisions as
  17425. \&\fB\-m68020\-40\fR and \fB\-m68020\-60\fR respectively.
  17426. .Sp
  17427. \&\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
  17428. when tuning for 680x0 architecture \fIarch\fR. It also defines
  17429. \&\f(CW\*(C`mc\f(CIarch\f(CW\*(C'\fR unless either \fB\-ansi\fR or a non-GNU \fB\-std\fR
  17430. option is used. If \s-1GCC\s0 is tuning for a range of architectures,
  17431. as selected by \fB\-mtune=68020\-40\fR or \fB\-mtune=68020\-60\fR,
  17432. it defines the macros for every architecture in the range.
  17433. .Sp
  17434. \&\s-1GCC\s0 also defines the macro \f(CW\*(C`_\|_m\f(CIuarch\f(CW_\|_\*(C'\fR when tuning for
  17435. ColdFire microarchitecture \fIuarch\fR, where \fIuarch\fR is one
  17436. of the arguments given above.
  17437. .IP "\fB\-m68000\fR" 4
  17438. .IX Item "-m68000"
  17439. .PD 0
  17440. .IP "\fB\-mc68000\fR" 4
  17441. .IX Item "-mc68000"
  17442. .PD
  17443. Generate output for a 68000. This is the default
  17444. when the compiler is configured for 68000\-based systems.
  17445. It is equivalent to \fB\-march=68000\fR.
  17446. .Sp
  17447. Use this option for microcontrollers with a 68000 or \s-1EC000\s0 core,
  17448. including the 68008, 68302, 68306, 68307, 68322, 68328 and 68356.
  17449. .IP "\fB\-m68010\fR" 4
  17450. .IX Item "-m68010"
  17451. Generate output for a 68010. This is the default
  17452. when the compiler is configured for 68010\-based systems.
  17453. It is equivalent to \fB\-march=68010\fR.
  17454. .IP "\fB\-m68020\fR" 4
  17455. .IX Item "-m68020"
  17456. .PD 0
  17457. .IP "\fB\-mc68020\fR" 4
  17458. .IX Item "-mc68020"
  17459. .PD
  17460. Generate output for a 68020. This is the default
  17461. when the compiler is configured for 68020\-based systems.
  17462. It is equivalent to \fB\-march=68020\fR.
  17463. .IP "\fB\-m68030\fR" 4
  17464. .IX Item "-m68030"
  17465. Generate output for a 68030. This is the default when the compiler is
  17466. configured for 68030\-based systems. It is equivalent to
  17467. \&\fB\-march=68030\fR.
  17468. .IP "\fB\-m68040\fR" 4
  17469. .IX Item "-m68040"
  17470. Generate output for a 68040. This is the default when the compiler is
  17471. configured for 68040\-based systems. It is equivalent to
  17472. \&\fB\-march=68040\fR.
  17473. .Sp
  17474. This option inhibits the use of 68881/68882 instructions that have to be
  17475. emulated by software on the 68040. Use this option if your 68040 does not
  17476. have code to emulate those instructions.
  17477. .IP "\fB\-m68060\fR" 4
  17478. .IX Item "-m68060"
  17479. Generate output for a 68060. This is the default when the compiler is
  17480. configured for 68060\-based systems. It is equivalent to
  17481. \&\fB\-march=68060\fR.
  17482. .Sp
  17483. This option inhibits the use of 68020 and 68881/68882 instructions that
  17484. have to be emulated by software on the 68060. Use this option if your 68060
  17485. does not have code to emulate those instructions.
  17486. .IP "\fB\-mcpu32\fR" 4
  17487. .IX Item "-mcpu32"
  17488. Generate output for a \s-1CPU32. \s0 This is the default
  17489. when the compiler is configured for CPU32\-based systems.
  17490. It is equivalent to \fB\-march=cpu32\fR.
  17491. .Sp
  17492. Use this option for microcontrollers with a
  17493. \&\s-1CPU32\s0 or \s-1CPU32+\s0 core, including the 68330, 68331, 68332, 68333, 68334,
  17494. 68336, 68340, 68341, 68349 and 68360.
  17495. .IP "\fB\-m5200\fR" 4
  17496. .IX Item "-m5200"
  17497. Generate output for a 520X ColdFire \s-1CPU. \s0 This is the default
  17498. when the compiler is configured for 520X\-based systems.
  17499. It is equivalent to \fB\-mcpu=5206\fR, and is now deprecated
  17500. in favor of that option.
  17501. .Sp
  17502. Use this option for microcontroller with a 5200 core, including
  17503. the \s-1MCF5202, MCF5203, MCF5204\s0 and \s-1MCF5206.\s0
  17504. .IP "\fB\-m5206e\fR" 4
  17505. .IX Item "-m5206e"
  17506. Generate output for a 5206e ColdFire \s-1CPU. \s0 The option is now
  17507. deprecated in favor of the equivalent \fB\-mcpu=5206e\fR.
  17508. .IP "\fB\-m528x\fR" 4
  17509. .IX Item "-m528x"
  17510. Generate output for a member of the ColdFire 528X family.
  17511. The option is now deprecated in favor of the equivalent
  17512. \&\fB\-mcpu=528x\fR.
  17513. .IP "\fB\-m5307\fR" 4
  17514. .IX Item "-m5307"
  17515. Generate output for a ColdFire 5307 \s-1CPU. \s0 The option is now deprecated
  17516. in favor of the equivalent \fB\-mcpu=5307\fR.
  17517. .IP "\fB\-m5407\fR" 4
  17518. .IX Item "-m5407"
  17519. Generate output for a ColdFire 5407 \s-1CPU. \s0 The option is now deprecated
  17520. in favor of the equivalent \fB\-mcpu=5407\fR.
  17521. .IP "\fB\-mcfv4e\fR" 4
  17522. .IX Item "-mcfv4e"
  17523. Generate output for a ColdFire V4e family \s-1CPU \s0(e.g. 547x/548x).
  17524. This includes use of hardware floating-point instructions.
  17525. The option is equivalent to \fB\-mcpu=547x\fR, and is now
  17526. deprecated in favor of that option.
  17527. .IP "\fB\-m68020\-40\fR" 4
  17528. .IX Item "-m68020-40"
  17529. Generate output for a 68040, without using any of the new instructions.
  17530. This results in code that can run relatively efficiently on either a
  17531. 68020/68881 or a 68030 or a 68040. The generated code does use the
  17532. 68881 instructions that are emulated on the 68040.
  17533. .Sp
  17534. The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-40\fR.
  17535. .IP "\fB\-m68020\-60\fR" 4
  17536. .IX Item "-m68020-60"
  17537. Generate output for a 68060, without using any of the new instructions.
  17538. This results in code that can run relatively efficiently on either a
  17539. 68020/68881 or a 68030 or a 68040. The generated code does use the
  17540. 68881 instructions that are emulated on the 68060.
  17541. .Sp
  17542. The option is equivalent to \fB\-march=68020\fR \fB\-mtune=68020\-60\fR.
  17543. .IP "\fB\-mhard\-float\fR" 4
  17544. .IX Item "-mhard-float"
  17545. .PD 0
  17546. .IP "\fB\-m68881\fR" 4
  17547. .IX Item "-m68881"
  17548. .PD
  17549. Generate floating-point instructions. This is the default for 68020
  17550. and above, and for ColdFire devices that have an \s-1FPU. \s0 It defines the
  17551. macro \f(CW\*(C`_\|_HAVE_68881_\|_\*(C'\fR on M680x0 targets and \f(CW\*(C`_\|_mcffpu_\|_\*(C'\fR
  17552. on ColdFire targets.
  17553. .IP "\fB\-msoft\-float\fR" 4
  17554. .IX Item "-msoft-float"
  17555. Do not generate floating-point instructions; use library calls instead.
  17556. This is the default for 68000, 68010, and 68832 targets. It is also
  17557. the default for ColdFire devices that have no \s-1FPU.\s0
  17558. .IP "\fB\-mdiv\fR" 4
  17559. .IX Item "-mdiv"
  17560. .PD 0
  17561. .IP "\fB\-mno\-div\fR" 4
  17562. .IX Item "-mno-div"
  17563. .PD
  17564. Generate (do not generate) ColdFire hardware divide and remainder
  17565. instructions. If \fB\-march\fR is used without \fB\-mcpu\fR,
  17566. the default is \*(L"on\*(R" for ColdFire architectures and \*(L"off\*(R" for M680x0
  17567. architectures. Otherwise, the default is taken from the target \s-1CPU
  17568. \&\s0(either the default \s-1CPU,\s0 or the one specified by \fB\-mcpu\fR). For
  17569. example, the default is \*(L"off\*(R" for \fB\-mcpu=5206\fR and \*(L"on\*(R" for
  17570. \&\fB\-mcpu=5206e\fR.
  17571. .Sp
  17572. \&\s-1GCC\s0 defines the macro \f(CW\*(C`_\|_mcfhwdiv_\|_\*(C'\fR when this option is enabled.
  17573. .IP "\fB\-mshort\fR" 4
  17574. .IX Item "-mshort"
  17575. Consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide, like \f(CW\*(C`short int\*(C'\fR.
  17576. Additionally, parameters passed on the stack are also aligned to a
  17577. 16\-bit boundary even on targets whose \s-1API\s0 mandates promotion to 32\-bit.
  17578. .IP "\fB\-mno\-short\fR" 4
  17579. .IX Item "-mno-short"
  17580. Do not consider type \f(CW\*(C`int\*(C'\fR to be 16 bits wide. This is the default.
  17581. .IP "\fB\-mnobitfield\fR" 4
  17582. .IX Item "-mnobitfield"
  17583. .PD 0
  17584. .IP "\fB\-mno\-bitfield\fR" 4
  17585. .IX Item "-mno-bitfield"
  17586. .PD
  17587. Do not use the bit-field instructions. The \fB\-m68000\fR, \fB\-mcpu32\fR
  17588. and \fB\-m5200\fR options imply \fB\-mnobitfield\fR.
  17589. .IP "\fB\-mbitfield\fR" 4
  17590. .IX Item "-mbitfield"
  17591. Do use the bit-field instructions. The \fB\-m68020\fR option implies
  17592. \&\fB\-mbitfield\fR. This is the default if you use a configuration
  17593. designed for a 68020.
  17594. .IP "\fB\-mrtd\fR" 4
  17595. .IX Item "-mrtd"
  17596. Use a different function-calling convention, in which functions
  17597. that take a fixed number of arguments return with the \f(CW\*(C`rtd\*(C'\fR
  17598. instruction, which pops their arguments while returning. This
  17599. saves one instruction in the caller since there is no need to pop
  17600. the arguments there.
  17601. .Sp
  17602. This calling convention is incompatible with the one normally
  17603. used on Unix, so you cannot use it if you need to call libraries
  17604. compiled with the Unix compiler.
  17605. .Sp
  17606. Also, you must provide function prototypes for all functions that
  17607. take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
  17608. otherwise incorrect code is generated for calls to those
  17609. functions.
  17610. .Sp
  17611. In addition, seriously incorrect code results if you call a
  17612. function with too many arguments. (Normally, extra arguments are
  17613. harmlessly ignored.)
  17614. .Sp
  17615. The \f(CW\*(C`rtd\*(C'\fR instruction is supported by the 68010, 68020, 68030,
  17616. 68040, 68060 and \s-1CPU32\s0 processors, but not by the 68000 or 5200.
  17617. .IP "\fB\-mno\-rtd\fR" 4
  17618. .IX Item "-mno-rtd"
  17619. Do not use the calling conventions selected by \fB\-mrtd\fR.
  17620. This is the default.
  17621. .IP "\fB\-malign\-int\fR" 4
  17622. .IX Item "-malign-int"
  17623. .PD 0
  17624. .IP "\fB\-mno\-align\-int\fR" 4
  17625. .IX Item "-mno-align-int"
  17626. .PD
  17627. 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,
  17628. \&\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
  17629. boundary (\fB\-malign\-int\fR) or a 16\-bit boundary (\fB\-mno\-align\-int\fR).
  17630. Aligning variables on 32\-bit boundaries produces code that runs somewhat
  17631. faster on processors with 32\-bit busses at the expense of more memory.
  17632. .Sp
  17633. \&\fBWarning:\fR if you use the \fB\-malign\-int\fR switch, \s-1GCC\s0
  17634. aligns structures containing the above types differently than
  17635. most published application binary interface specifications for the m68k.
  17636. .IP "\fB\-mpcrel\fR" 4
  17637. .IX Item "-mpcrel"
  17638. Use the pc-relative addressing mode of the 68000 directly, instead of
  17639. using a global offset table. At present, this option implies \fB\-fpic\fR,
  17640. allowing at most a 16\-bit offset for pc-relative addressing. \fB\-fPIC\fR is
  17641. not presently supported with \fB\-mpcrel\fR, though this could be supported for
  17642. 68020 and higher processors.
  17643. .IP "\fB\-mno\-strict\-align\fR" 4
  17644. .IX Item "-mno-strict-align"
  17645. .PD 0
  17646. .IP "\fB\-mstrict\-align\fR" 4
  17647. .IX Item "-mstrict-align"
  17648. .PD
  17649. Do not (do) assume that unaligned memory references are handled by
  17650. the system.
  17651. .IP "\fB\-msep\-data\fR" 4
  17652. .IX Item "-msep-data"
  17653. Generate code that allows the data segment to be located in a different
  17654. area of memory from the text segment. This allows for execute-in-place in
  17655. an environment without virtual memory management. This option implies
  17656. \&\fB\-fPIC\fR.
  17657. .IP "\fB\-mno\-sep\-data\fR" 4
  17658. .IX Item "-mno-sep-data"
  17659. Generate code that assumes that the data segment follows the text segment.
  17660. This is the default.
  17661. .IP "\fB\-mid\-shared\-library\fR" 4
  17662. .IX Item "-mid-shared-library"
  17663. Generate code that supports shared libraries via the library \s-1ID\s0 method.
  17664. This allows for execute-in-place and shared libraries in an environment
  17665. without virtual memory management. This option implies \fB\-fPIC\fR.
  17666. .IP "\fB\-mno\-id\-shared\-library\fR" 4
  17667. .IX Item "-mno-id-shared-library"
  17668. Generate code that doesn't assume ID-based shared libraries are being used.
  17669. This is the default.
  17670. .IP "\fB\-mshared\-library\-id=n\fR" 4
  17671. .IX Item "-mshared-library-id=n"
  17672. Specifies the identification number of the ID-based shared library being
  17673. compiled. Specifying a value of 0 generates more compact code; specifying
  17674. other values forces the allocation of that number to the current
  17675. library, but is no more space\- or time-efficient than omitting this option.
  17676. .IP "\fB\-mxgot\fR" 4
  17677. .IX Item "-mxgot"
  17678. .PD 0
  17679. .IP "\fB\-mno\-xgot\fR" 4
  17680. .IX Item "-mno-xgot"
  17681. .PD
  17682. When generating position-independent code for ColdFire, generate code
  17683. that works if the \s-1GOT\s0 has more than 8192 entries. This code is
  17684. larger and slower than code generated without this option. On M680x0
  17685. processors, this option is not needed; \fB\-fPIC\fR suffices.
  17686. .Sp
  17687. \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT.\s0
  17688. While this is relatively efficient, it only works if the \s-1GOT\s0
  17689. is smaller than about 64k. Anything larger causes the linker
  17690. to report an error such as:
  17691. .Sp
  17692. .Vb 1
  17693. \& relocation truncated to fit: R_68K_GOT16O foobar
  17694. .Ve
  17695. .Sp
  17696. If this happens, you should recompile your code with \fB\-mxgot\fR.
  17697. It should then work with very large GOTs. However, code generated with
  17698. \&\fB\-mxgot\fR is less efficient, since it takes 4 instructions to fetch
  17699. the value of a global symbol.
  17700. .Sp
  17701. Note that some linkers, including newer versions of the \s-1GNU\s0 linker,
  17702. can create multiple GOTs and sort \s-1GOT\s0 entries. If you have such a linker,
  17703. you should only need to use \fB\-mxgot\fR when compiling a single
  17704. object file that accesses more than 8192 \s-1GOT\s0 entries. Very few do.
  17705. .Sp
  17706. These options have no effect unless \s-1GCC\s0 is generating
  17707. position-independent code.
  17708. .IP "\fB\-mlong\-jump\-table\-offsets\fR" 4
  17709. .IX Item "-mlong-jump-table-offsets"
  17710. Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables. The default is to use
  17711. 16\-bit offsets.
  17712. .PP
  17713. \fIMCore Options\fR
  17714. .IX Subsection "MCore Options"
  17715. .PP
  17716. These are the \fB\-m\fR options defined for the Motorola M*Core
  17717. processors.
  17718. .IP "\fB\-mhardlit\fR" 4
  17719. .IX Item "-mhardlit"
  17720. .PD 0
  17721. .IP "\fB\-mno\-hardlit\fR" 4
  17722. .IX Item "-mno-hardlit"
  17723. .PD
  17724. Inline constants into the code stream if it can be done in two
  17725. instructions or less.
  17726. .IP "\fB\-mdiv\fR" 4
  17727. .IX Item "-mdiv"
  17728. .PD 0
  17729. .IP "\fB\-mno\-div\fR" 4
  17730. .IX Item "-mno-div"
  17731. .PD
  17732. Use the divide instruction. (Enabled by default).
  17733. .IP "\fB\-mrelax\-immediate\fR" 4
  17734. .IX Item "-mrelax-immediate"
  17735. .PD 0
  17736. .IP "\fB\-mno\-relax\-immediate\fR" 4
  17737. .IX Item "-mno-relax-immediate"
  17738. .PD
  17739. Allow arbitrary-sized immediates in bit operations.
  17740. .IP "\fB\-mwide\-bitfields\fR" 4
  17741. .IX Item "-mwide-bitfields"
  17742. .PD 0
  17743. .IP "\fB\-mno\-wide\-bitfields\fR" 4
  17744. .IX Item "-mno-wide-bitfields"
  17745. .PD
  17746. Always treat bit-fields as \f(CW\*(C`int\*(C'\fR\-sized.
  17747. .IP "\fB\-m4byte\-functions\fR" 4
  17748. .IX Item "-m4byte-functions"
  17749. .PD 0
  17750. .IP "\fB\-mno\-4byte\-functions\fR" 4
  17751. .IX Item "-mno-4byte-functions"
  17752. .PD
  17753. Force all functions to be aligned to a 4\-byte boundary.
  17754. .IP "\fB\-mcallgraph\-data\fR" 4
  17755. .IX Item "-mcallgraph-data"
  17756. .PD 0
  17757. .IP "\fB\-mno\-callgraph\-data\fR" 4
  17758. .IX Item "-mno-callgraph-data"
  17759. .PD
  17760. Emit callgraph information.
  17761. .IP "\fB\-mslow\-bytes\fR" 4
  17762. .IX Item "-mslow-bytes"
  17763. .PD 0
  17764. .IP "\fB\-mno\-slow\-bytes\fR" 4
  17765. .IX Item "-mno-slow-bytes"
  17766. .PD
  17767. Prefer word access when reading byte quantities.
  17768. .IP "\fB\-mlittle\-endian\fR" 4
  17769. .IX Item "-mlittle-endian"
  17770. .PD 0
  17771. .IP "\fB\-mbig\-endian\fR" 4
  17772. .IX Item "-mbig-endian"
  17773. .PD
  17774. Generate code for a little-endian target.
  17775. .IP "\fB\-m210\fR" 4
  17776. .IX Item "-m210"
  17777. .PD 0
  17778. .IP "\fB\-m340\fR" 4
  17779. .IX Item "-m340"
  17780. .PD
  17781. Generate code for the 210 processor.
  17782. .IP "\fB\-mno\-lsim\fR" 4
  17783. .IX Item "-mno-lsim"
  17784. Assume that runtime support has been provided and so omit the
  17785. simulator library (\fIlibsim.a)\fR from the linker command line.
  17786. .IP "\fB\-mstack\-increment=\fR\fIsize\fR" 4
  17787. .IX Item "-mstack-increment=size"
  17788. Set the maximum amount for a single stack increment operation. Large
  17789. values can increase the speed of programs that contain functions
  17790. that need a large amount of stack space, but they can also trigger a
  17791. segmentation fault if the stack is extended too much. The default
  17792. value is 0x1000.
  17793. .PP
  17794. \fIMeP Options\fR
  17795. .IX Subsection "MeP Options"
  17796. .IP "\fB\-mabsdiff\fR" 4
  17797. .IX Item "-mabsdiff"
  17798. Enables the \f(CW\*(C`abs\*(C'\fR instruction, which is the absolute difference
  17799. between two registers.
  17800. .IP "\fB\-mall\-opts\fR" 4
  17801. .IX Item "-mall-opts"
  17802. Enables all the optional instructions\-\-\-average, multiply, divide, bit
  17803. operations, leading zero, absolute difference, min/max, clip, and
  17804. saturation.
  17805. .IP "\fB\-maverage\fR" 4
  17806. .IX Item "-maverage"
  17807. Enables the \f(CW\*(C`ave\*(C'\fR instruction, which computes the average of two
  17808. registers.
  17809. .IP "\fB\-mbased=\fR\fIn\fR" 4
  17810. .IX Item "-mbased=n"
  17811. Variables of size \fIn\fR bytes or smaller are placed in the
  17812. \&\f(CW\*(C`.based\*(C'\fR section by default. Based variables use the \f(CW$tp\fR
  17813. register as a base register, and there is a 128\-byte limit to the
  17814. \&\f(CW\*(C`.based\*(C'\fR section.
  17815. .IP "\fB\-mbitops\fR" 4
  17816. .IX Item "-mbitops"
  17817. Enables the bit operation instructions\-\-\-bit test (\f(CW\*(C`btstm\*(C'\fR), set
  17818. (\f(CW\*(C`bsetm\*(C'\fR), clear (\f(CW\*(C`bclrm\*(C'\fR), invert (\f(CW\*(C`bnotm\*(C'\fR), and
  17819. test-and-set (\f(CW\*(C`tas\*(C'\fR).
  17820. .IP "\fB\-mc=\fR\fIname\fR" 4
  17821. .IX Item "-mc=name"
  17822. Selects which section constant data is placed in. \fIname\fR may
  17823. be \fBtiny\fR, \fBnear\fR, or \fBfar\fR.
  17824. .IP "\fB\-mclip\fR" 4
  17825. .IX Item "-mclip"
  17826. Enables the \f(CW\*(C`clip\*(C'\fR instruction. Note that \fB\-mclip\fR is not
  17827. useful unless you also provide \fB\-mminmax\fR.
  17828. .IP "\fB\-mconfig=\fR\fIname\fR" 4
  17829. .IX Item "-mconfig=name"
  17830. Selects one of the built-in core configurations. Each MeP chip has
  17831. one or more modules in it; each module has a core \s-1CPU\s0 and a variety of
  17832. coprocessors, optional instructions, and peripherals. The
  17833. \&\f(CW\*(C`MeP\-Integrator\*(C'\fR tool, not part of \s-1GCC,\s0 provides these
  17834. configurations through this option; using this option is the same as
  17835. using all the corresponding command-line options. The default
  17836. configuration is \fBdefault\fR.
  17837. .IP "\fB\-mcop\fR" 4
  17838. .IX Item "-mcop"
  17839. Enables the coprocessor instructions. By default, this is a 32\-bit
  17840. coprocessor. Note that the coprocessor is normally enabled via the
  17841. \&\fB\-mconfig=\fR option.
  17842. .IP "\fB\-mcop32\fR" 4
  17843. .IX Item "-mcop32"
  17844. Enables the 32\-bit coprocessor's instructions.
  17845. .IP "\fB\-mcop64\fR" 4
  17846. .IX Item "-mcop64"
  17847. Enables the 64\-bit coprocessor's instructions.
  17848. .IP "\fB\-mivc2\fR" 4
  17849. .IX Item "-mivc2"
  17850. Enables \s-1IVC2\s0 scheduling. \s-1IVC2\s0 is a 64\-bit \s-1VLIW\s0 coprocessor.
  17851. .IP "\fB\-mdc\fR" 4
  17852. .IX Item "-mdc"
  17853. Causes constant variables to be placed in the \f(CW\*(C`.near\*(C'\fR section.
  17854. .IP "\fB\-mdiv\fR" 4
  17855. .IX Item "-mdiv"
  17856. Enables the \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions.
  17857. .IP "\fB\-meb\fR" 4
  17858. .IX Item "-meb"
  17859. Generate big-endian code.
  17860. .IP "\fB\-mel\fR" 4
  17861. .IX Item "-mel"
  17862. Generate little-endian code.
  17863. .IP "\fB\-mio\-volatile\fR" 4
  17864. .IX Item "-mio-volatile"
  17865. Tells the compiler that any variable marked with the \f(CW\*(C`io\*(C'\fR
  17866. attribute is to be considered volatile.
  17867. .IP "\fB\-ml\fR" 4
  17868. .IX Item "-ml"
  17869. Causes variables to be assigned to the \f(CW\*(C`.far\*(C'\fR section by default.
  17870. .IP "\fB\-mleadz\fR" 4
  17871. .IX Item "-mleadz"
  17872. Enables the \f(CW\*(C`leadz\*(C'\fR (leading zero) instruction.
  17873. .IP "\fB\-mm\fR" 4
  17874. .IX Item "-mm"
  17875. Causes variables to be assigned to the \f(CW\*(C`.near\*(C'\fR section by default.
  17876. .IP "\fB\-mminmax\fR" 4
  17877. .IX Item "-mminmax"
  17878. Enables the \f(CW\*(C`min\*(C'\fR and \f(CW\*(C`max\*(C'\fR instructions.
  17879. .IP "\fB\-mmult\fR" 4
  17880. .IX Item "-mmult"
  17881. Enables the multiplication and multiply-accumulate instructions.
  17882. .IP "\fB\-mno\-opts\fR" 4
  17883. .IX Item "-mno-opts"
  17884. Disables all the optional instructions enabled by \fB\-mall\-opts\fR.
  17885. .IP "\fB\-mrepeat\fR" 4
  17886. .IX Item "-mrepeat"
  17887. Enables the \f(CW\*(C`repeat\*(C'\fR and \f(CW\*(C`erepeat\*(C'\fR instructions, used for
  17888. low-overhead looping.
  17889. .IP "\fB\-ms\fR" 4
  17890. .IX Item "-ms"
  17891. Causes all variables to default to the \f(CW\*(C`.tiny\*(C'\fR section. Note
  17892. that there is a 65536\-byte limit to this section. Accesses to these
  17893. variables use the \f(CW%gp\fR base register.
  17894. .IP "\fB\-msatur\fR" 4
  17895. .IX Item "-msatur"
  17896. Enables the saturation instructions. Note that the compiler does not
  17897. currently generate these itself, but this option is included for
  17898. compatibility with other tools, like \f(CW\*(C`as\*(C'\fR.
  17899. .IP "\fB\-msdram\fR" 4
  17900. .IX Item "-msdram"
  17901. Link the SDRAM-based runtime instead of the default ROM-based runtime.
  17902. .IP "\fB\-msim\fR" 4
  17903. .IX Item "-msim"
  17904. Link the simulator run-time libraries.
  17905. .IP "\fB\-msimnovec\fR" 4
  17906. .IX Item "-msimnovec"
  17907. Link the simulator runtime libraries, excluding built-in support
  17908. for reset and exception vectors and tables.
  17909. .IP "\fB\-mtf\fR" 4
  17910. .IX Item "-mtf"
  17911. Causes all functions to default to the \f(CW\*(C`.far\*(C'\fR section. Without
  17912. this option, functions default to the \f(CW\*(C`.near\*(C'\fR section.
  17913. .IP "\fB\-mtiny=\fR\fIn\fR" 4
  17914. .IX Item "-mtiny=n"
  17915. Variables that are \fIn\fR bytes or smaller are allocated to the
  17916. \&\f(CW\*(C`.tiny\*(C'\fR section. These variables use the \f(CW$gp\fR base
  17917. register. The default for this option is 4, but note that there's a
  17918. 65536\-byte limit to the \f(CW\*(C`.tiny\*(C'\fR section.
  17919. .PP
  17920. \fIMicroBlaze Options\fR
  17921. .IX Subsection "MicroBlaze Options"
  17922. .IP "\fB\-msoft\-float\fR" 4
  17923. .IX Item "-msoft-float"
  17924. Use software emulation for floating point (default).
  17925. .IP "\fB\-mhard\-float\fR" 4
  17926. .IX Item "-mhard-float"
  17927. Use hardware floating-point instructions.
  17928. .IP "\fB\-mmemcpy\fR" 4
  17929. .IX Item "-mmemcpy"
  17930. Do not optimize block moves, use \f(CW\*(C`memcpy\*(C'\fR.
  17931. .IP "\fB\-mno\-clearbss\fR" 4
  17932. .IX Item "-mno-clearbss"
  17933. This option is deprecated. Use \fB\-fno\-zero\-initialized\-in\-bss\fR instead.
  17934. .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
  17935. .IX Item "-mcpu=cpu-type"
  17936. Use features of, and schedule code for, the given \s-1CPU.\s0
  17937. Supported values are in the format \fBv\fR\fIX\fR\fB.\fR\fI\s-1YY\s0\fR\fB.\fR\fIZ\fR,
  17938. where \fIX\fR is a major version, \fI\s-1YY\s0\fR is the minor version, and
  17939. \&\fIZ\fR is compatibility code. Example values are \fBv3.00.a\fR,
  17940. \&\fBv4.00.b\fR, \fBv5.00.a\fR, \fBv5.00.b\fR, \fBv5.00.b\fR, \fBv6.00.a\fR.
  17941. .IP "\fB\-mxl\-soft\-mul\fR" 4
  17942. .IX Item "-mxl-soft-mul"
  17943. Use software multiply emulation (default).
  17944. .IP "\fB\-mxl\-soft\-div\fR" 4
  17945. .IX Item "-mxl-soft-div"
  17946. Use software emulation for divides (default).
  17947. .IP "\fB\-mxl\-barrel\-shift\fR" 4
  17948. .IX Item "-mxl-barrel-shift"
  17949. Use the hardware barrel shifter.
  17950. .IP "\fB\-mxl\-pattern\-compare\fR" 4
  17951. .IX Item "-mxl-pattern-compare"
  17952. Use pattern compare instructions.
  17953. .IP "\fB\-msmall\-divides\fR" 4
  17954. .IX Item "-msmall-divides"
  17955. Use table lookup optimization for small signed integer divisions.
  17956. .IP "\fB\-mxl\-stack\-check\fR" 4
  17957. .IX Item "-mxl-stack-check"
  17958. This option is deprecated. Use \fB\-fstack\-check\fR instead.
  17959. .IP "\fB\-mxl\-gp\-opt\fR" 4
  17960. .IX Item "-mxl-gp-opt"
  17961. Use GP-relative \f(CW\*(C`.sdata\*(C'\fR/\f(CW\*(C`.sbss\*(C'\fR sections.
  17962. .IP "\fB\-mxl\-multiply\-high\fR" 4
  17963. .IX Item "-mxl-multiply-high"
  17964. Use multiply high instructions for high part of 32x32 multiply.
  17965. .IP "\fB\-mxl\-float\-convert\fR" 4
  17966. .IX Item "-mxl-float-convert"
  17967. Use hardware floating-point conversion instructions.
  17968. .IP "\fB\-mxl\-float\-sqrt\fR" 4
  17969. .IX Item "-mxl-float-sqrt"
  17970. Use hardware floating-point square root instruction.
  17971. .IP "\fB\-mbig\-endian\fR" 4
  17972. .IX Item "-mbig-endian"
  17973. Generate code for a big-endian target.
  17974. .IP "\fB\-mlittle\-endian\fR" 4
  17975. .IX Item "-mlittle-endian"
  17976. Generate code for a little-endian target.
  17977. .IP "\fB\-mxl\-reorder\fR" 4
  17978. .IX Item "-mxl-reorder"
  17979. Use reorder instructions (swap and byte reversed load/store).
  17980. .IP "\fB\-mxl\-mode\-\fR\fIapp-model\fR" 4
  17981. .IX Item "-mxl-mode-app-model"
  17982. Select application model \fIapp-model\fR. Valid models are
  17983. .RS 4
  17984. .IP "\fBexecutable\fR" 4
  17985. .IX Item "executable"
  17986. normal executable (default), uses startup code \fIcrt0.o\fR.
  17987. .IP "\fBxmdstub\fR" 4
  17988. .IX Item "xmdstub"
  17989. for use with Xilinx Microprocessor Debugger (\s-1XMD\s0) based
  17990. software intrusive debug agent called xmdstub. This uses startup file
  17991. \&\fIcrt1.o\fR and sets the start address of the program to 0x800.
  17992. .IP "\fBbootstrap\fR" 4
  17993. .IX Item "bootstrap"
  17994. for applications that are loaded using a bootloader.
  17995. This model uses startup file \fIcrt2.o\fR which does not contain a processor
  17996. reset vector handler. This is suitable for transferring control on a
  17997. processor reset to the bootloader rather than the application.
  17998. .IP "\fBnovectors\fR" 4
  17999. .IX Item "novectors"
  18000. for applications that do not require any of the
  18001. MicroBlaze vectors. This option may be useful for applications running
  18002. within a monitoring application. This model uses \fIcrt3.o\fR as a startup file.
  18003. .RE
  18004. .RS 4
  18005. .Sp
  18006. Option \fB\-xl\-mode\-\fR\fIapp-model\fR is a deprecated alias for
  18007. \&\fB\-mxl\-mode\-\fR\fIapp-model\fR.
  18008. .RE
  18009. .PP
  18010. \fI\s-1MIPS\s0 Options\fR
  18011. .IX Subsection "MIPS Options"
  18012. .IP "\fB\-EB\fR" 4
  18013. .IX Item "-EB"
  18014. Generate big-endian code.
  18015. .IP "\fB\-EL\fR" 4
  18016. .IX Item "-EL"
  18017. Generate little-endian code. This is the default for \fBmips*el\-*\-*\fR
  18018. configurations.
  18019. .IP "\fB\-march=\fR\fIarch\fR" 4
  18020. .IX Item "-march=arch"
  18021. Generate code that runs on \fIarch\fR, which can be the name of a
  18022. generic \s-1MIPS ISA,\s0 or the name of a particular processor.
  18023. The \s-1ISA\s0 names are:
  18024. \&\fBmips1\fR, \fBmips2\fR, \fBmips3\fR, \fBmips4\fR,
  18025. \&\fBmips32\fR, \fBmips32r2\fR, \fBmips32r3\fR, \fBmips32r5\fR,
  18026. \&\fBmips32r6\fR, \fBmips64\fR, \fBmips64r2\fR, \fBmips64r3\fR,
  18027. \&\fBmips64r5\fR and \fBmips64r6\fR.
  18028. The processor names are:
  18029. \&\fB4kc\fR, \fB4km\fR, \fB4kp\fR, \fB4ksc\fR,
  18030. \&\fB4kec\fR, \fB4kem\fR, \fB4kep\fR, \fB4ksd\fR,
  18031. \&\fB5kc\fR, \fB5kf\fR,
  18032. \&\fB20kc\fR,
  18033. \&\fB24kc\fR, \fB24kf2_1\fR, \fB24kf1_1\fR,
  18034. \&\fB24kec\fR, \fB24kef2_1\fR, \fB24kef1_1\fR,
  18035. \&\fB34kc\fR, \fB34kf2_1\fR, \fB34kf1_1\fR, \fB34kn\fR,
  18036. \&\fB74kc\fR, \fB74kf2_1\fR, \fB74kf1_1\fR, \fB74kf3_2\fR,
  18037. \&\fB1004kc\fR, \fB1004kf2_1\fR, \fB1004kf1_1\fR,
  18038. \&\fBi6400\fR,
  18039. \&\fBinteraptiv\fR,
  18040. \&\fBloongson2e\fR, \fBloongson2f\fR, \fBloongson3a\fR,
  18041. \&\fBm4k\fR,
  18042. \&\fBm14k\fR, \fBm14kc\fR, \fBm14ke\fR, \fBm14kec\fR,
  18043. \&\fBm5100\fR, \fBm5101\fR,
  18044. \&\fBocteon\fR, \fBocteon+\fR, \fBocteon2\fR, \fBocteon3\fR,
  18045. \&\fBorion\fR,
  18046. \&\fBp5600\fR,
  18047. \&\fBr2000\fR, \fBr3000\fR, \fBr3900\fR, \fBr4000\fR, \fBr4400\fR,
  18048. \&\fBr4600\fR, \fBr4650\fR, \fBr4700\fR, \fBr6000\fR, \fBr8000\fR,
  18049. \&\fBrm7000\fR, \fBrm9000\fR,
  18050. \&\fBr10000\fR, \fBr12000\fR, \fBr14000\fR, \fBr16000\fR,
  18051. \&\fBsb1\fR,
  18052. \&\fBsr71000\fR,
  18053. \&\fBvr4100\fR, \fBvr4111\fR, \fBvr4120\fR, \fBvr4130\fR, \fBvr4300\fR,
  18054. \&\fBvr5000\fR, \fBvr5400\fR, \fBvr5500\fR,
  18055. \&\fBxlr\fR and \fBxlp\fR.
  18056. The special value \fBfrom-abi\fR selects the
  18057. most compatible architecture for the selected \s-1ABI \s0(that is,
  18058. \&\fBmips1\fR for 32\-bit ABIs and \fBmips3\fR for 64\-bit ABIs).
  18059. .Sp
  18060. The native Linux/GNU toolchain also supports the value \fBnative\fR,
  18061. which selects the best architecture option for the host processor.
  18062. \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize
  18063. the processor.
  18064. .Sp
  18065. In processor names, a final \fB000\fR can be abbreviated as \fBk\fR
  18066. (for example, \fB\-march=r2k\fR). Prefixes are optional, and
  18067. \&\fBvr\fR may be written \fBr\fR.
  18068. .Sp
  18069. Names of the form \fIn\fR\fBf2_1\fR refer to processors with
  18070. FPUs clocked at half the rate of the core, names of the form
  18071. \&\fIn\fR\fBf1_1\fR refer to processors with FPUs clocked at the same
  18072. rate as the core, and names of the form \fIn\fR\fBf3_2\fR refer to
  18073. processors with FPUs clocked a ratio of 3:2 with respect to the core.
  18074. For compatibility reasons, \fIn\fR\fBf\fR is accepted as a synonym
  18075. for \fIn\fR\fBf2_1\fR while \fIn\fR\fBx\fR and \fIb\fR\fBfx\fR are
  18076. accepted as synonyms for \fIn\fR\fBf1_1\fR.
  18077. .Sp
  18078. \&\s-1GCC\s0 defines two macros based on the value of this option. The first
  18079. is \f(CW\*(C`_MIPS_ARCH\*(C'\fR, which gives the name of target architecture, as
  18080. a string. The second has the form \f(CW\*(C`_MIPS_ARCH_\f(CIfoo\f(CW\*(C'\fR,
  18081. where \fIfoo\fR is the capitalized value of \f(CW\*(C`_MIPS_ARCH\*(C'\fR.
  18082. For example, \fB\-march=r2000\fR sets \f(CW\*(C`_MIPS_ARCH\*(C'\fR
  18083. to \f(CW"r2000"\fR and defines the macro \f(CW\*(C`_MIPS_ARCH_R2000\*(C'\fR.
  18084. .Sp
  18085. Note that the \f(CW\*(C`_MIPS_ARCH\*(C'\fR macro uses the processor names given
  18086. above. In other words, it has the full prefix and does not
  18087. abbreviate \fB000\fR as \fBk\fR. In the case of \fBfrom-abi\fR,
  18088. the macro names the resolved architecture (either \f(CW"mips1"\fR or
  18089. \&\f(CW"mips3"\fR). It names the default architecture when no
  18090. \&\fB\-march\fR option is given.
  18091. .IP "\fB\-mtune=\fR\fIarch\fR" 4
  18092. .IX Item "-mtune=arch"
  18093. Optimize for \fIarch\fR. Among other things, this option controls
  18094. the way instructions are scheduled, and the perceived cost of arithmetic
  18095. operations. The list of \fIarch\fR values is the same as for
  18096. \&\fB\-march\fR.
  18097. .Sp
  18098. When this option is not used, \s-1GCC\s0 optimizes for the processor
  18099. specified by \fB\-march\fR. By using \fB\-march\fR and
  18100. \&\fB\-mtune\fR together, it is possible to generate code that
  18101. runs on a family of processors, but optimize the code for one
  18102. particular member of that family.
  18103. .Sp
  18104. \&\fB\-mtune\fR defines the macros \f(CW\*(C`_MIPS_TUNE\*(C'\fR and
  18105. \&\f(CW\*(C`_MIPS_TUNE_\f(CIfoo\f(CW\*(C'\fR, which work in the same way as the
  18106. \&\fB\-march\fR ones described above.
  18107. .IP "\fB\-mips1\fR" 4
  18108. .IX Item "-mips1"
  18109. Equivalent to \fB\-march=mips1\fR.
  18110. .IP "\fB\-mips2\fR" 4
  18111. .IX Item "-mips2"
  18112. Equivalent to \fB\-march=mips2\fR.
  18113. .IP "\fB\-mips3\fR" 4
  18114. .IX Item "-mips3"
  18115. Equivalent to \fB\-march=mips3\fR.
  18116. .IP "\fB\-mips4\fR" 4
  18117. .IX Item "-mips4"
  18118. Equivalent to \fB\-march=mips4\fR.
  18119. .IP "\fB\-mips32\fR" 4
  18120. .IX Item "-mips32"
  18121. Equivalent to \fB\-march=mips32\fR.
  18122. .IP "\fB\-mips32r3\fR" 4
  18123. .IX Item "-mips32r3"
  18124. Equivalent to \fB\-march=mips32r3\fR.
  18125. .IP "\fB\-mips32r5\fR" 4
  18126. .IX Item "-mips32r5"
  18127. Equivalent to \fB\-march=mips32r5\fR.
  18128. .IP "\fB\-mips32r6\fR" 4
  18129. .IX Item "-mips32r6"
  18130. Equivalent to \fB\-march=mips32r6\fR.
  18131. .IP "\fB\-mips64\fR" 4
  18132. .IX Item "-mips64"
  18133. Equivalent to \fB\-march=mips64\fR.
  18134. .IP "\fB\-mips64r2\fR" 4
  18135. .IX Item "-mips64r2"
  18136. Equivalent to \fB\-march=mips64r2\fR.
  18137. .IP "\fB\-mips64r3\fR" 4
  18138. .IX Item "-mips64r3"
  18139. Equivalent to \fB\-march=mips64r3\fR.
  18140. .IP "\fB\-mips64r5\fR" 4
  18141. .IX Item "-mips64r5"
  18142. Equivalent to \fB\-march=mips64r5\fR.
  18143. .IP "\fB\-mips64r6\fR" 4
  18144. .IX Item "-mips64r6"
  18145. Equivalent to \fB\-march=mips64r6\fR.
  18146. .IP "\fB\-mips16\fR" 4
  18147. .IX Item "-mips16"
  18148. .PD 0
  18149. .IP "\fB\-mno\-mips16\fR" 4
  18150. .IX Item "-mno-mips16"
  18151. .PD
  18152. Generate (do not generate) \s-1MIPS16\s0 code. If \s-1GCC\s0 is targeting a
  18153. \&\s-1MIPS32\s0 or \s-1MIPS64\s0 architecture, it makes use of the MIPS16e \s-1ASE.\s0
  18154. .Sp
  18155. \&\s-1MIPS16\s0 code generation can also be controlled on a per-function basis
  18156. by means of \f(CW\*(C`mips16\*(C'\fR and \f(CW\*(C`nomips16\*(C'\fR attributes.
  18157. .IP "\fB\-mflip\-mips16\fR" 4
  18158. .IX Item "-mflip-mips16"
  18159. Generate \s-1MIPS16\s0 code on alternating functions. This option is provided
  18160. for regression testing of mixed MIPS16/non\-MIPS16 code generation, and is
  18161. not intended for ordinary use in compiling user code.
  18162. .IP "\fB\-minterlink\-compressed\fR" 4
  18163. .IX Item "-minterlink-compressed"
  18164. .PD 0
  18165. .IP "\fB\-mno\-interlink\-compressed\fR" 4
  18166. .IX Item "-mno-interlink-compressed"
  18167. .PD
  18168. Require (do not require) that code using the standard (uncompressed) \s-1MIPS ISA\s0
  18169. be link-compatible with \s-1MIPS16\s0 and microMIPS code, and vice versa.
  18170. .Sp
  18171. For example, code using the standard \s-1ISA\s0 encoding cannot jump directly
  18172. to \s-1MIPS16\s0 or microMIPS code; it must either use a call or an indirect jump.
  18173. \&\fB\-minterlink\-compressed\fR therefore disables direct jumps unless \s-1GCC\s0
  18174. knows that the target of the jump is not compressed.
  18175. .IP "\fB\-minterlink\-mips16\fR" 4
  18176. .IX Item "-minterlink-mips16"
  18177. .PD 0
  18178. .IP "\fB\-mno\-interlink\-mips16\fR" 4
  18179. .IX Item "-mno-interlink-mips16"
  18180. .PD
  18181. Aliases of \fB\-minterlink\-compressed\fR and
  18182. \&\fB\-mno\-interlink\-compressed\fR. These options predate the microMIPS \s-1ASE\s0
  18183. and are retained for backwards compatibility.
  18184. .IP "\fB\-mabi=32\fR" 4
  18185. .IX Item "-mabi=32"
  18186. .PD 0
  18187. .IP "\fB\-mabi=o64\fR" 4
  18188. .IX Item "-mabi=o64"
  18189. .IP "\fB\-mabi=n32\fR" 4
  18190. .IX Item "-mabi=n32"
  18191. .IP "\fB\-mabi=64\fR" 4
  18192. .IX Item "-mabi=64"
  18193. .IP "\fB\-mabi=eabi\fR" 4
  18194. .IX Item "-mabi=eabi"
  18195. .PD
  18196. Generate code for the given \s-1ABI.\s0
  18197. .Sp
  18198. Note that the \s-1EABI\s0 has a 32\-bit and a 64\-bit variant. \s-1GCC\s0 normally
  18199. generates 64\-bit code when you select a 64\-bit architecture, but you
  18200. can use \fB\-mgp32\fR to get 32\-bit code instead.
  18201. .Sp
  18202. For information about the O64 \s-1ABI,\s0 see
  18203. <\fBhttp://gcc.gnu.org/projects/mipso64\-abi.html\fR>.
  18204. .Sp
  18205. \&\s-1GCC\s0 supports a variant of the o32 \s-1ABI\s0 in which floating-point registers
  18206. are 64 rather than 32 bits wide. You can select this combination with
  18207. \&\fB\-mabi=32\fR \fB\-mfp64\fR. This \s-1ABI\s0 relies on the \f(CW\*(C`mthc1\*(C'\fR
  18208. and \f(CW\*(C`mfhc1\*(C'\fR instructions and is therefore only supported for
  18209. \&\s-1MIPS32R2, MIPS32R3\s0 and \s-1MIPS32R5\s0 processors.
  18210. .Sp
  18211. The register assignments for arguments and return values remain the
  18212. same, but each scalar value is passed in a single 64\-bit register
  18213. rather than a pair of 32\-bit registers. For example, scalar
  18214. floating-point values are returned in \fB\f(CB$f0\fB\fR only, not a
  18215. \&\fB\f(CB$f0\fB\fR/\fB\f(CB$f1\fB\fR pair. The set of call-saved registers also
  18216. remains the same in that the even-numbered double-precision registers
  18217. are saved.
  18218. .Sp
  18219. Two additional variants of the o32 \s-1ABI\s0 are supported to enable
  18220. a transition from 32\-bit to 64\-bit registers. These are \s-1FPXX
  18221. \&\s0(\fB\-mfpxx\fR) and \s-1FP64A \s0(\fB\-mfp64\fR \fB\-mno\-odd\-spreg\fR).
  18222. The \s-1FPXX\s0 extension mandates that all code must execute correctly
  18223. when run using 32\-bit or 64\-bit registers. The code can be interlinked
  18224. with either \s-1FP32\s0 or \s-1FP64,\s0 but not both.
  18225. The \s-1FP64A\s0 extension is similar to the \s-1FP64\s0 extension but forbids the
  18226. use of odd-numbered single-precision registers. This can be used
  18227. in conjunction with the \f(CW\*(C`FRE\*(C'\fR mode of FPUs in \s-1MIPS32R5\s0
  18228. processors and allows both \s-1FP32\s0 and \s-1FP64A\s0 code to interlink and
  18229. run in the same process without changing \s-1FPU\s0 modes.
  18230. .IP "\fB\-mabicalls\fR" 4
  18231. .IX Item "-mabicalls"
  18232. .PD 0
  18233. .IP "\fB\-mno\-abicalls\fR" 4
  18234. .IX Item "-mno-abicalls"
  18235. .PD
  18236. Generate (do not generate) code that is suitable for SVR4\-style
  18237. dynamic objects. \fB\-mabicalls\fR is the default for SVR4\-based
  18238. systems.
  18239. .IP "\fB\-mshared\fR" 4
  18240. .IX Item "-mshared"
  18241. .PD 0
  18242. .IP "\fB\-mno\-shared\fR" 4
  18243. .IX Item "-mno-shared"
  18244. .PD
  18245. Generate (do not generate) code that is fully position-independent,
  18246. and that can therefore be linked into shared libraries. This option
  18247. only affects \fB\-mabicalls\fR.
  18248. .Sp
  18249. All \fB\-mabicalls\fR code has traditionally been position-independent,
  18250. regardless of options like \fB\-fPIC\fR and \fB\-fpic\fR. However,
  18251. as an extension, the \s-1GNU\s0 toolchain allows executables to use absolute
  18252. accesses for locally-binding symbols. It can also use shorter \s-1GP\s0
  18253. initialization sequences and generate direct calls to locally-defined
  18254. functions. This mode is selected by \fB\-mno\-shared\fR.
  18255. .Sp
  18256. \&\fB\-mno\-shared\fR depends on binutils 2.16 or higher and generates
  18257. objects that can only be linked by the \s-1GNU\s0 linker. However, the option
  18258. does not affect the \s-1ABI\s0 of the final executable; it only affects the \s-1ABI\s0
  18259. of relocatable objects. Using \fB\-mno\-shared\fR generally makes
  18260. executables both smaller and quicker.
  18261. .Sp
  18262. \&\fB\-mshared\fR is the default.
  18263. .IP "\fB\-mplt\fR" 4
  18264. .IX Item "-mplt"
  18265. .PD 0
  18266. .IP "\fB\-mno\-plt\fR" 4
  18267. .IX Item "-mno-plt"
  18268. .PD
  18269. Assume (do not assume) that the static and dynamic linkers
  18270. support PLTs and copy relocations. This option only affects
  18271. \&\fB\-mno\-shared \-mabicalls\fR. For the n64 \s-1ABI,\s0 this option
  18272. has no effect without \fB\-msym32\fR.
  18273. .Sp
  18274. You can make \fB\-mplt\fR the default by configuring
  18275. \&\s-1GCC\s0 with \fB\-\-with\-mips\-plt\fR. The default is
  18276. \&\fB\-mno\-plt\fR otherwise.
  18277. .IP "\fB\-mxgot\fR" 4
  18278. .IX Item "-mxgot"
  18279. .PD 0
  18280. .IP "\fB\-mno\-xgot\fR" 4
  18281. .IX Item "-mno-xgot"
  18282. .PD
  18283. Lift (do not lift) the usual restrictions on the size of the global
  18284. offset table.
  18285. .Sp
  18286. \&\s-1GCC\s0 normally uses a single instruction to load values from the \s-1GOT.\s0
  18287. While this is relatively efficient, it only works if the \s-1GOT\s0
  18288. is smaller than about 64k. Anything larger causes the linker
  18289. to report an error such as:
  18290. .Sp
  18291. .Vb 1
  18292. \& relocation truncated to fit: R_MIPS_GOT16 foobar
  18293. .Ve
  18294. .Sp
  18295. If this happens, you should recompile your code with \fB\-mxgot\fR.
  18296. This works with very large GOTs, although the code is also
  18297. less efficient, since it takes three instructions to fetch the
  18298. value of a global symbol.
  18299. .Sp
  18300. Note that some linkers can create multiple GOTs. If you have such a
  18301. linker, you should only need to use \fB\-mxgot\fR when a single object
  18302. file accesses more than 64k's worth of \s-1GOT\s0 entries. Very few do.
  18303. .Sp
  18304. These options have no effect unless \s-1GCC\s0 is generating position
  18305. independent code.
  18306. .IP "\fB\-mgp32\fR" 4
  18307. .IX Item "-mgp32"
  18308. Assume that general-purpose registers are 32 bits wide.
  18309. .IP "\fB\-mgp64\fR" 4
  18310. .IX Item "-mgp64"
  18311. Assume that general-purpose registers are 64 bits wide.
  18312. .IP "\fB\-mfp32\fR" 4
  18313. .IX Item "-mfp32"
  18314. Assume that floating-point registers are 32 bits wide.
  18315. .IP "\fB\-mfp64\fR" 4
  18316. .IX Item "-mfp64"
  18317. Assume that floating-point registers are 64 bits wide.
  18318. .IP "\fB\-mfpxx\fR" 4
  18319. .IX Item "-mfpxx"
  18320. Do not assume the width of floating-point registers.
  18321. .IP "\fB\-mhard\-float\fR" 4
  18322. .IX Item "-mhard-float"
  18323. Use floating-point coprocessor instructions.
  18324. .IP "\fB\-msoft\-float\fR" 4
  18325. .IX Item "-msoft-float"
  18326. Do not use floating-point coprocessor instructions. Implement
  18327. floating-point calculations using library calls instead.
  18328. .IP "\fB\-mno\-float\fR" 4
  18329. .IX Item "-mno-float"
  18330. Equivalent to \fB\-msoft\-float\fR, but additionally asserts that the
  18331. program being compiled does not perform any floating-point operations.
  18332. This option is presently supported only by some bare-metal \s-1MIPS\s0
  18333. configurations, where it may select a special set of libraries
  18334. that lack all floating-point support (including, for example, the
  18335. floating-point \f(CW\*(C`printf\*(C'\fR formats).
  18336. If code compiled with \fB\-mno\-float\fR accidentally contains
  18337. floating-point operations, it is likely to suffer a link-time
  18338. or run-time failure.
  18339. .IP "\fB\-msingle\-float\fR" 4
  18340. .IX Item "-msingle-float"
  18341. Assume that the floating-point coprocessor only supports single-precision
  18342. operations.
  18343. .IP "\fB\-mdouble\-float\fR" 4
  18344. .IX Item "-mdouble-float"
  18345. Assume that the floating-point coprocessor supports double-precision
  18346. operations. This is the default.
  18347. .IP "\fB\-modd\-spreg\fR" 4
  18348. .IX Item "-modd-spreg"
  18349. .PD 0
  18350. .IP "\fB\-mno\-odd\-spreg\fR" 4
  18351. .IX Item "-mno-odd-spreg"
  18352. .PD
  18353. Enable the use of odd-numbered single-precision floating-point registers
  18354. for the o32 \s-1ABI. \s0 This is the default for processors that are known to
  18355. support these registers. When using the o32 \s-1FPXX ABI, \s0\fB\-mno\-odd\-spreg\fR
  18356. is set by default.
  18357. .IP "\fB\-mabs=2008\fR" 4
  18358. .IX Item "-mabs=2008"
  18359. .PD 0
  18360. .IP "\fB\-mabs=legacy\fR" 4
  18361. .IX Item "-mabs=legacy"
  18362. .PD
  18363. These options control the treatment of the special not-a-number (NaN)
  18364. \&\s-1IEEE 754\s0 floating-point data with the \f(CW\*(C`abs.\f(CIfmt\f(CW\*(C'\fR and
  18365. \&\f(CW\*(C`neg.\f(CIfmt\f(CW\*(C'\fR machine instructions.
  18366. .Sp
  18367. By default or when \fB\-mabs=legacy\fR is used the legacy
  18368. treatment is selected. In this case these instructions are considered
  18369. arithmetic and avoided where correct operation is required and the
  18370. input operand might be a NaN. A longer sequence of instructions that
  18371. manipulate the sign bit of floating-point datum manually is used
  18372. instead unless the \fB\-ffinite\-math\-only\fR option has also been
  18373. specified.
  18374. .Sp
  18375. The \fB\-mabs=2008\fR option selects the \s-1IEEE 754\-2008\s0 treatment. In
  18376. this case these instructions are considered non-arithmetic and therefore
  18377. operating correctly in all cases, including in particular where the
  18378. input operand is a NaN. These instructions are therefore always used
  18379. for the respective operations.
  18380. .IP "\fB\-mnan=2008\fR" 4
  18381. .IX Item "-mnan=2008"
  18382. .PD 0
  18383. .IP "\fB\-mnan=legacy\fR" 4
  18384. .IX Item "-mnan=legacy"
  18385. .PD
  18386. These options control the encoding of the special not-a-number (NaN)
  18387. \&\s-1IEEE 754\s0 floating-point data.
  18388. .Sp
  18389. The \fB\-mnan=legacy\fR option selects the legacy encoding. In this
  18390. case quiet NaNs (qNaNs) are denoted by the first bit of their trailing
  18391. significand field being 0, whereas signaling NaNs (sNaNs) are denoted
  18392. by the first bit of their trailing significand field being 1.
  18393. .Sp
  18394. The \fB\-mnan=2008\fR option selects the \s-1IEEE 754\-2008\s0 encoding. In
  18395. this case qNaNs are denoted by the first bit of their trailing
  18396. significand field being 1, whereas sNaNs are denoted by the first bit of
  18397. their trailing significand field being 0.
  18398. .Sp
  18399. The default is \fB\-mnan=legacy\fR unless \s-1GCC\s0 has been configured with
  18400. \&\fB\-\-with\-nan=2008\fR.
  18401. .IP "\fB\-mllsc\fR" 4
  18402. .IX Item "-mllsc"
  18403. .PD 0
  18404. .IP "\fB\-mno\-llsc\fR" 4
  18405. .IX Item "-mno-llsc"
  18406. .PD
  18407. Use (do not use) \fBll\fR, \fBsc\fR, and \fBsync\fR instructions to
  18408. implement atomic memory built-in functions. When neither option is
  18409. specified, \s-1GCC\s0 uses the instructions if the target architecture
  18410. supports them.
  18411. .Sp
  18412. \&\fB\-mllsc\fR is useful if the runtime environment can emulate the
  18413. instructions and \fB\-mno\-llsc\fR can be useful when compiling for
  18414. nonstandard ISAs. You can make either option the default by
  18415. configuring \s-1GCC\s0 with \fB\-\-with\-llsc\fR and \fB\-\-without\-llsc\fR
  18416. respectively. \fB\-\-with\-llsc\fR is the default for some
  18417. configurations; see the installation documentation for details.
  18418. .IP "\fB\-mdsp\fR" 4
  18419. .IX Item "-mdsp"
  18420. .PD 0
  18421. .IP "\fB\-mno\-dsp\fR" 4
  18422. .IX Item "-mno-dsp"
  18423. .PD
  18424. Use (do not use) revision 1 of the \s-1MIPS DSP ASE.
  18425. \s0 This option defines the
  18426. preprocessor macro \f(CW\*(C`_\|_mips_dsp\*(C'\fR. It also defines
  18427. \&\f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 1.
  18428. .IP "\fB\-mdspr2\fR" 4
  18429. .IX Item "-mdspr2"
  18430. .PD 0
  18431. .IP "\fB\-mno\-dspr2\fR" 4
  18432. .IX Item "-mno-dspr2"
  18433. .PD
  18434. Use (do not use) revision 2 of the \s-1MIPS DSP ASE.
  18435. \s0 This option defines the
  18436. preprocessor macros \f(CW\*(C`_\|_mips_dsp\*(C'\fR and \f(CW\*(C`_\|_mips_dspr2\*(C'\fR.
  18437. It also defines \f(CW\*(C`_\|_mips_dsp_rev\*(C'\fR to 2.
  18438. .IP "\fB\-msmartmips\fR" 4
  18439. .IX Item "-msmartmips"
  18440. .PD 0
  18441. .IP "\fB\-mno\-smartmips\fR" 4
  18442. .IX Item "-mno-smartmips"
  18443. .PD
  18444. Use (do not use) the \s-1MIPS\s0 SmartMIPS \s-1ASE.\s0
  18445. .IP "\fB\-mpaired\-single\fR" 4
  18446. .IX Item "-mpaired-single"
  18447. .PD 0
  18448. .IP "\fB\-mno\-paired\-single\fR" 4
  18449. .IX Item "-mno-paired-single"
  18450. .PD
  18451. Use (do not use) paired-single floating-point instructions.
  18452. This option requires
  18453. hardware floating-point support to be enabled.
  18454. .IP "\fB\-mdmx\fR" 4
  18455. .IX Item "-mdmx"
  18456. .PD 0
  18457. .IP "\fB\-mno\-mdmx\fR" 4
  18458. .IX Item "-mno-mdmx"
  18459. .PD
  18460. Use (do not use) \s-1MIPS\s0 Digital Media Extension instructions.
  18461. This option can only be used when generating 64\-bit code and requires
  18462. hardware floating-point support to be enabled.
  18463. .IP "\fB\-mips3d\fR" 4
  18464. .IX Item "-mips3d"
  18465. .PD 0
  18466. .IP "\fB\-mno\-mips3d\fR" 4
  18467. .IX Item "-mno-mips3d"
  18468. .PD
  18469. Use (do not use) the \s-1MIPS\-3D ASE. \s0
  18470. The option \fB\-mips3d\fR implies \fB\-mpaired\-single\fR.
  18471. .IP "\fB\-mmicromips\fR" 4
  18472. .IX Item "-mmicromips"
  18473. .PD 0
  18474. .IP "\fB\-mno\-micromips\fR" 4
  18475. .IX Item "-mno-micromips"
  18476. .PD
  18477. Generate (do not generate) microMIPS code.
  18478. .Sp
  18479. MicroMIPS code generation can also be controlled on a per-function basis
  18480. by means of \f(CW\*(C`micromips\*(C'\fR and \f(CW\*(C`nomicromips\*(C'\fR attributes.
  18481. .IP "\fB\-mmt\fR" 4
  18482. .IX Item "-mmt"
  18483. .PD 0
  18484. .IP "\fB\-mno\-mt\fR" 4
  18485. .IX Item "-mno-mt"
  18486. .PD
  18487. Use (do not use) \s-1MT\s0 Multithreading instructions.
  18488. .IP "\fB\-mmcu\fR" 4
  18489. .IX Item "-mmcu"
  18490. .PD 0
  18491. .IP "\fB\-mno\-mcu\fR" 4
  18492. .IX Item "-mno-mcu"
  18493. .PD
  18494. Use (do not use) the \s-1MIPS MCU ASE\s0 instructions.
  18495. .IP "\fB\-meva\fR" 4
  18496. .IX Item "-meva"
  18497. .PD 0
  18498. .IP "\fB\-mno\-eva\fR" 4
  18499. .IX Item "-mno-eva"
  18500. .PD
  18501. Use (do not use) the \s-1MIPS\s0 Enhanced Virtual Addressing instructions.
  18502. .IP "\fB\-mvirt\fR" 4
  18503. .IX Item "-mvirt"
  18504. .PD 0
  18505. .IP "\fB\-mno\-virt\fR" 4
  18506. .IX Item "-mno-virt"
  18507. .PD
  18508. Use (do not use) the \s-1MIPS\s0 Virtualization (\s-1VZ\s0) instructions.
  18509. .IP "\fB\-mxpa\fR" 4
  18510. .IX Item "-mxpa"
  18511. .PD 0
  18512. .IP "\fB\-mno\-xpa\fR" 4
  18513. .IX Item "-mno-xpa"
  18514. .PD
  18515. Use (do not use) the \s-1MIPS\s0 eXtended Physical Address (\s-1XPA\s0) instructions.
  18516. .IP "\fB\-mlong64\fR" 4
  18517. .IX Item "-mlong64"
  18518. Force \f(CW\*(C`long\*(C'\fR types to be 64 bits wide. See \fB\-mlong32\fR for
  18519. an explanation of the default and the way that the pointer size is
  18520. determined.
  18521. .IP "\fB\-mlong32\fR" 4
  18522. .IX Item "-mlong32"
  18523. Force \f(CW\*(C`long\*(C'\fR, \f(CW\*(C`int\*(C'\fR, and pointer types to be 32 bits wide.
  18524. .Sp
  18525. The default size of \f(CW\*(C`int\*(C'\fRs, \f(CW\*(C`long\*(C'\fRs and pointers depends on
  18526. the \s-1ABI. \s0 All the supported ABIs use 32\-bit \f(CW\*(C`int\*(C'\fRs. The n64 \s-1ABI\s0
  18527. uses 64\-bit \f(CW\*(C`long\*(C'\fRs, as does the 64\-bit \s-1EABI\s0; the others use
  18528. 32\-bit \f(CW\*(C`long\*(C'\fRs. Pointers are the same size as \f(CW\*(C`long\*(C'\fRs,
  18529. or the same size as integer registers, whichever is smaller.
  18530. .IP "\fB\-msym32\fR" 4
  18531. .IX Item "-msym32"
  18532. .PD 0
  18533. .IP "\fB\-mno\-sym32\fR" 4
  18534. .IX Item "-mno-sym32"
  18535. .PD
  18536. Assume (do not assume) that all symbols have 32\-bit values, regardless
  18537. of the selected \s-1ABI. \s0 This option is useful in combination with
  18538. \&\fB\-mabi=64\fR and \fB\-mno\-abicalls\fR because it allows \s-1GCC\s0
  18539. to generate shorter and faster references to symbolic addresses.
  18540. .IP "\fB\-G\fR \fInum\fR" 4
  18541. .IX Item "-G num"
  18542. Put definitions of externally-visible data in a small data section
  18543. if that data is no bigger than \fInum\fR bytes. \s-1GCC\s0 can then generate
  18544. more efficient accesses to the data; see \fB\-mgpopt\fR for details.
  18545. .Sp
  18546. The default \fB\-G\fR option depends on the configuration.
  18547. .IP "\fB\-mlocal\-sdata\fR" 4
  18548. .IX Item "-mlocal-sdata"
  18549. .PD 0
  18550. .IP "\fB\-mno\-local\-sdata\fR" 4
  18551. .IX Item "-mno-local-sdata"
  18552. .PD
  18553. Extend (do not extend) the \fB\-G\fR behavior to local data too,
  18554. such as to static variables in C. \fB\-mlocal\-sdata\fR is the
  18555. default for all configurations.
  18556. .Sp
  18557. If the linker complains that an application is using too much small data,
  18558. you might want to try rebuilding the less performance-critical parts with
  18559. \&\fB\-mno\-local\-sdata\fR. You might also want to build large
  18560. libraries with \fB\-mno\-local\-sdata\fR, so that the libraries leave
  18561. more room for the main program.
  18562. .IP "\fB\-mextern\-sdata\fR" 4
  18563. .IX Item "-mextern-sdata"
  18564. .PD 0
  18565. .IP "\fB\-mno\-extern\-sdata\fR" 4
  18566. .IX Item "-mno-extern-sdata"
  18567. .PD
  18568. Assume (do not assume) that externally-defined data is in
  18569. a small data section if the size of that data is within the \fB\-G\fR limit.
  18570. \&\fB\-mextern\-sdata\fR is the default for all configurations.
  18571. .Sp
  18572. If you compile a module \fIMod\fR with \fB\-mextern\-sdata\fR \fB\-G\fR
  18573. \&\fInum\fR \fB\-mgpopt\fR, and \fIMod\fR references a variable \fIVar\fR
  18574. that is no bigger than \fInum\fR bytes, you must make sure that \fIVar\fR
  18575. is placed in a small data section. If \fIVar\fR is defined by another
  18576. module, you must either compile that module with a high-enough
  18577. \&\fB\-G\fR setting or attach a \f(CW\*(C`section\*(C'\fR attribute to \fIVar\fR's
  18578. definition. If \fIVar\fR is common, you must link the application
  18579. with a high-enough \fB\-G\fR setting.
  18580. .Sp
  18581. The easiest way of satisfying these restrictions is to compile
  18582. and link every module with the same \fB\-G\fR option. However,
  18583. you may wish to build a library that supports several different
  18584. small data limits. You can do this by compiling the library with
  18585. the highest supported \fB\-G\fR setting and additionally using
  18586. \&\fB\-mno\-extern\-sdata\fR to stop the library from making assumptions
  18587. about externally-defined data.
  18588. .IP "\fB\-mgpopt\fR" 4
  18589. .IX Item "-mgpopt"
  18590. .PD 0
  18591. .IP "\fB\-mno\-gpopt\fR" 4
  18592. .IX Item "-mno-gpopt"
  18593. .PD
  18594. Use (do not use) GP-relative accesses for symbols that are known to be
  18595. in a small data section; see \fB\-G\fR, \fB\-mlocal\-sdata\fR and
  18596. \&\fB\-mextern\-sdata\fR. \fB\-mgpopt\fR is the default for all
  18597. configurations.
  18598. .Sp
  18599. \&\fB\-mno\-gpopt\fR is useful for cases where the \f(CW$gp\fR register
  18600. might not hold the value of \f(CW\*(C`_gp\*(C'\fR. For example, if the code is
  18601. part of a library that might be used in a boot monitor, programs that
  18602. call boot monitor routines pass an unknown value in \f(CW$gp\fR.
  18603. (In such situations, the boot monitor itself is usually compiled
  18604. with \fB\-G0\fR.)
  18605. .Sp
  18606. \&\fB\-mno\-gpopt\fR implies \fB\-mno\-local\-sdata\fR and
  18607. \&\fB\-mno\-extern\-sdata\fR.
  18608. .IP "\fB\-membedded\-data\fR" 4
  18609. .IX Item "-membedded-data"
  18610. .PD 0
  18611. .IP "\fB\-mno\-embedded\-data\fR" 4
  18612. .IX Item "-mno-embedded-data"
  18613. .PD
  18614. Allocate variables to the read-only data section first if possible, then
  18615. next in the small data section if possible, otherwise in data. This gives
  18616. slightly slower code than the default, but reduces the amount of \s-1RAM\s0 required
  18617. when executing, and thus may be preferred for some embedded systems.
  18618. .IP "\fB\-muninit\-const\-in\-rodata\fR" 4
  18619. .IX Item "-muninit-const-in-rodata"
  18620. .PD 0
  18621. .IP "\fB\-mno\-uninit\-const\-in\-rodata\fR" 4
  18622. .IX Item "-mno-uninit-const-in-rodata"
  18623. .PD
  18624. Put uninitialized \f(CW\*(C`const\*(C'\fR variables in the read-only data section.
  18625. This option is only meaningful in conjunction with \fB\-membedded\-data\fR.
  18626. .IP "\fB\-mcode\-readable=\fR\fIsetting\fR" 4
  18627. .IX Item "-mcode-readable=setting"
  18628. Specify whether \s-1GCC\s0 may generate code that reads from executable sections.
  18629. There are three possible settings:
  18630. .RS 4
  18631. .IP "\fB\-mcode\-readable=yes\fR" 4
  18632. .IX Item "-mcode-readable=yes"
  18633. Instructions may freely access executable sections. This is the
  18634. default setting.
  18635. .IP "\fB\-mcode\-readable=pcrel\fR" 4
  18636. .IX Item "-mcode-readable=pcrel"
  18637. \&\s-1MIPS16\s0 PC-relative load instructions can access executable sections,
  18638. but other instructions must not do so. This option is useful on 4KSc
  18639. and 4KSd processors when the code TLBs have the Read Inhibit bit set.
  18640. It is also useful on processors that can be configured to have a dual
  18641. instruction/data \s-1SRAM\s0 interface and that, like the M4K, automatically
  18642. redirect PC-relative loads to the instruction \s-1RAM.\s0
  18643. .IP "\fB\-mcode\-readable=no\fR" 4
  18644. .IX Item "-mcode-readable=no"
  18645. Instructions must not access executable sections. This option can be
  18646. useful on targets that are configured to have a dual instruction/data
  18647. \&\s-1SRAM\s0 interface but that (unlike the M4K) do not automatically redirect
  18648. PC-relative loads to the instruction \s-1RAM.\s0
  18649. .RE
  18650. .RS 4
  18651. .RE
  18652. .IP "\fB\-msplit\-addresses\fR" 4
  18653. .IX Item "-msplit-addresses"
  18654. .PD 0
  18655. .IP "\fB\-mno\-split\-addresses\fR" 4
  18656. .IX Item "-mno-split-addresses"
  18657. .PD
  18658. Enable (disable) use of the \f(CW\*(C`%hi()\*(C'\fR and \f(CW\*(C`%lo()\*(C'\fR assembler
  18659. relocation operators. This option has been superseded by
  18660. \&\fB\-mexplicit\-relocs\fR but is retained for backwards compatibility.
  18661. .IP "\fB\-mexplicit\-relocs\fR" 4
  18662. .IX Item "-mexplicit-relocs"
  18663. .PD 0
  18664. .IP "\fB\-mno\-explicit\-relocs\fR" 4
  18665. .IX Item "-mno-explicit-relocs"
  18666. .PD
  18667. Use (do not use) assembler relocation operators when dealing with symbolic
  18668. addresses. The alternative, selected by \fB\-mno\-explicit\-relocs\fR,
  18669. is to use assembler macros instead.
  18670. .Sp
  18671. \&\fB\-mexplicit\-relocs\fR is the default if \s-1GCC\s0 was configured
  18672. to use an assembler that supports relocation operators.
  18673. .IP "\fB\-mcheck\-zero\-division\fR" 4
  18674. .IX Item "-mcheck-zero-division"
  18675. .PD 0
  18676. .IP "\fB\-mno\-check\-zero\-division\fR" 4
  18677. .IX Item "-mno-check-zero-division"
  18678. .PD
  18679. Trap (do not trap) on integer division by zero.
  18680. .Sp
  18681. The default is \fB\-mcheck\-zero\-division\fR.
  18682. .IP "\fB\-mdivide\-traps\fR" 4
  18683. .IX Item "-mdivide-traps"
  18684. .PD 0
  18685. .IP "\fB\-mdivide\-breaks\fR" 4
  18686. .IX Item "-mdivide-breaks"
  18687. .PD
  18688. \&\s-1MIPS\s0 systems check for division by zero by generating either a
  18689. conditional trap or a break instruction. Using traps results in
  18690. smaller code, but is only supported on \s-1MIPS II\s0 and later. Also, some
  18691. versions of the Linux kernel have a bug that prevents trap from
  18692. generating the proper signal (\f(CW\*(C`SIGFPE\*(C'\fR). Use \fB\-mdivide\-traps\fR to
  18693. allow conditional traps on architectures that support them and
  18694. \&\fB\-mdivide\-breaks\fR to force the use of breaks.
  18695. .Sp
  18696. The default is usually \fB\-mdivide\-traps\fR, but this can be
  18697. overridden at configure time using \fB\-\-with\-divide=breaks\fR.
  18698. Divide-by-zero checks can be completely disabled using
  18699. \&\fB\-mno\-check\-zero\-division\fR.
  18700. .IP "\fB\-mload\-store\-pairs\fR" 4
  18701. .IX Item "-mload-store-pairs"
  18702. .PD 0
  18703. .IP "\fB\-mno\-load\-store\-pairs\fR" 4
  18704. .IX Item "-mno-load-store-pairs"
  18705. .PD
  18706. Enable (disable) an optimization that pairs consecutive load or store
  18707. instructions to enable load/store bonding. This option is enabled by
  18708. default but only takes effect when the selected architecture is known
  18709. to support bonding.
  18710. .IP "\fB\-mmemcpy\fR" 4
  18711. .IX Item "-mmemcpy"
  18712. .PD 0
  18713. .IP "\fB\-mno\-memcpy\fR" 4
  18714. .IX Item "-mno-memcpy"
  18715. .PD
  18716. Force (do not force) the use of \f(CW\*(C`memcpy\*(C'\fR for non-trivial block
  18717. moves. The default is \fB\-mno\-memcpy\fR, which allows \s-1GCC\s0 to inline
  18718. most constant-sized copies.
  18719. .IP "\fB\-mlong\-calls\fR" 4
  18720. .IX Item "-mlong-calls"
  18721. .PD 0
  18722. .IP "\fB\-mno\-long\-calls\fR" 4
  18723. .IX Item "-mno-long-calls"
  18724. .PD
  18725. Disable (do not disable) use of the \f(CW\*(C`jal\*(C'\fR instruction. Calling
  18726. functions using \f(CW\*(C`jal\*(C'\fR is more efficient but requires the caller
  18727. and callee to be in the same 256 megabyte segment.
  18728. .Sp
  18729. This option has no effect on abicalls code. The default is
  18730. \&\fB\-mno\-long\-calls\fR.
  18731. .IP "\fB\-mmad\fR" 4
  18732. .IX Item "-mmad"
  18733. .PD 0
  18734. .IP "\fB\-mno\-mad\fR" 4
  18735. .IX Item "-mno-mad"
  18736. .PD
  18737. Enable (disable) use of the \f(CW\*(C`mad\*(C'\fR, \f(CW\*(C`madu\*(C'\fR and \f(CW\*(C`mul\*(C'\fR
  18738. instructions, as provided by the R4650 \s-1ISA.\s0
  18739. .IP "\fB\-mimadd\fR" 4
  18740. .IX Item "-mimadd"
  18741. .PD 0
  18742. .IP "\fB\-mno\-imadd\fR" 4
  18743. .IX Item "-mno-imadd"
  18744. .PD
  18745. Enable (disable) use of the \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR integer
  18746. instructions. The default is \fB\-mimadd\fR on architectures
  18747. that support \f(CW\*(C`madd\*(C'\fR and \f(CW\*(C`msub\*(C'\fR except for the 74k
  18748. architecture where it was found to generate slower code.
  18749. .IP "\fB\-mfused\-madd\fR" 4
  18750. .IX Item "-mfused-madd"
  18751. .PD 0
  18752. .IP "\fB\-mno\-fused\-madd\fR" 4
  18753. .IX Item "-mno-fused-madd"
  18754. .PD
  18755. Enable (disable) use of the floating-point multiply-accumulate
  18756. instructions, when they are available. The default is
  18757. \&\fB\-mfused\-madd\fR.
  18758. .Sp
  18759. On the R8000 \s-1CPU\s0 when multiply-accumulate instructions are used,
  18760. the intermediate product is calculated to infinite precision
  18761. and is not subject to the \s-1FCSR\s0 Flush to Zero bit. This may be
  18762. undesirable in some circumstances. On other processors the result
  18763. is numerically identical to the equivalent computation using
  18764. separate multiply, add, subtract and negate instructions.
  18765. .IP "\fB\-nocpp\fR" 4
  18766. .IX Item "-nocpp"
  18767. Tell the \s-1MIPS\s0 assembler to not run its preprocessor over user
  18768. assembler files (with a \fB.s\fR suffix) when assembling them.
  18769. .IP "\fB\-mfix\-24k\fR" 4
  18770. .IX Item "-mfix-24k"
  18771. .PD 0
  18772. .IP "\fB\-mno\-fix\-24k\fR" 4
  18773. .IX Item "-mno-fix-24k"
  18774. .PD
  18775. Work around the 24K E48 (lost data on stores during refill) errata.
  18776. The workarounds are implemented by the assembler rather than by \s-1GCC.\s0
  18777. .IP "\fB\-mfix\-r4000\fR" 4
  18778. .IX Item "-mfix-r4000"
  18779. .PD 0
  18780. .IP "\fB\-mno\-fix\-r4000\fR" 4
  18781. .IX Item "-mno-fix-r4000"
  18782. .PD
  18783. Work around certain R4000 \s-1CPU\s0 errata:
  18784. .RS 4
  18785. .IP "\-" 4
  18786. A double-word or a variable shift may give an incorrect result if executed
  18787. immediately after starting an integer division.
  18788. .IP "\-" 4
  18789. A double-word or a variable shift may give an incorrect result if executed
  18790. while an integer multiplication is in progress.
  18791. .IP "\-" 4
  18792. An integer division may give an incorrect result if started in a delay slot
  18793. of a taken branch or a jump.
  18794. .RE
  18795. .RS 4
  18796. .RE
  18797. .IP "\fB\-mfix\-r4400\fR" 4
  18798. .IX Item "-mfix-r4400"
  18799. .PD 0
  18800. .IP "\fB\-mno\-fix\-r4400\fR" 4
  18801. .IX Item "-mno-fix-r4400"
  18802. .PD
  18803. Work around certain R4400 \s-1CPU\s0 errata:
  18804. .RS 4
  18805. .IP "\-" 4
  18806. A double-word or a variable shift may give an incorrect result if executed
  18807. immediately after starting an integer division.
  18808. .RE
  18809. .RS 4
  18810. .RE
  18811. .IP "\fB\-mfix\-r10000\fR" 4
  18812. .IX Item "-mfix-r10000"
  18813. .PD 0
  18814. .IP "\fB\-mno\-fix\-r10000\fR" 4
  18815. .IX Item "-mno-fix-r10000"
  18816. .PD
  18817. Work around certain R10000 errata:
  18818. .RS 4
  18819. .IP "\-" 4
  18820. \&\f(CW\*(C`ll\*(C'\fR/\f(CW\*(C`sc\*(C'\fR sequences may not behave atomically on revisions
  18821. prior to 3.0. They may deadlock on revisions 2.6 and earlier.
  18822. .RE
  18823. .RS 4
  18824. .Sp
  18825. This option can only be used if the target architecture supports
  18826. branch-likely instructions. \fB\-mfix\-r10000\fR is the default when
  18827. \&\fB\-march=r10000\fR is used; \fB\-mno\-fix\-r10000\fR is the default
  18828. otherwise.
  18829. .RE
  18830. .IP "\fB\-mfix\-rm7000\fR" 4
  18831. .IX Item "-mfix-rm7000"
  18832. .PD 0
  18833. .IP "\fB\-mno\-fix\-rm7000\fR" 4
  18834. .IX Item "-mno-fix-rm7000"
  18835. .PD
  18836. Work around the \s-1RM7000 \s0\f(CW\*(C`dmult\*(C'\fR/\f(CW\*(C`dmultu\*(C'\fR errata. The
  18837. workarounds are implemented by the assembler rather than by \s-1GCC.\s0
  18838. .IP "\fB\-mfix\-vr4120\fR" 4
  18839. .IX Item "-mfix-vr4120"
  18840. .PD 0
  18841. .IP "\fB\-mno\-fix\-vr4120\fR" 4
  18842. .IX Item "-mno-fix-vr4120"
  18843. .PD
  18844. Work around certain \s-1VR4120\s0 errata:
  18845. .RS 4
  18846. .IP "\-" 4
  18847. \&\f(CW\*(C`dmultu\*(C'\fR does not always produce the correct result.
  18848. .IP "\-" 4
  18849. \&\f(CW\*(C`div\*(C'\fR and \f(CW\*(C`ddiv\*(C'\fR do not always produce the correct result if one
  18850. of the operands is negative.
  18851. .RE
  18852. .RS 4
  18853. .Sp
  18854. The workarounds for the division errata rely on special functions in
  18855. \&\fIlibgcc.a\fR. At present, these functions are only provided by
  18856. the \f(CW\*(C`mips64vr*\-elf\*(C'\fR configurations.
  18857. .Sp
  18858. Other \s-1VR4120\s0 errata require a \s-1NOP\s0 to be inserted between certain pairs of
  18859. instructions. These errata are handled by the assembler, not by \s-1GCC\s0 itself.
  18860. .RE
  18861. .IP "\fB\-mfix\-vr4130\fR" 4
  18862. .IX Item "-mfix-vr4130"
  18863. Work around the \s-1VR4130 \s0\f(CW\*(C`mflo\*(C'\fR/\f(CW\*(C`mfhi\*(C'\fR errata. The
  18864. workarounds are implemented by the assembler rather than by \s-1GCC,\s0
  18865. although \s-1GCC\s0 avoids using \f(CW\*(C`mflo\*(C'\fR and \f(CW\*(C`mfhi\*(C'\fR if the
  18866. \&\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
  18867. instructions are available instead.
  18868. .IP "\fB\-mfix\-sb1\fR" 4
  18869. .IX Item "-mfix-sb1"
  18870. .PD 0
  18871. .IP "\fB\-mno\-fix\-sb1\fR" 4
  18872. .IX Item "-mno-fix-sb1"
  18873. .PD
  18874. Work around certain \s-1SB\-1 CPU\s0 core errata.
  18875. (This flag currently works around the \s-1SB\-1\s0 revision 2
  18876. \&\*(L"F1\*(R" and \*(L"F2\*(R" floating-point errata.)
  18877. .IP "\fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR" 4
  18878. .IX Item "-mr10k-cache-barrier=setting"
  18879. Specify whether \s-1GCC\s0 should insert cache barriers to avoid the
  18880. side-effects of speculation on R10K processors.
  18881. .Sp
  18882. In common with many processors, the R10K tries to predict the outcome
  18883. of a conditional branch and speculatively executes instructions from
  18884. the \*(L"taken\*(R" branch. It later aborts these instructions if the
  18885. predicted outcome is wrong. However, on the R10K, even aborted
  18886. instructions can have side effects.
  18887. .Sp
  18888. This problem only affects kernel stores and, depending on the system,
  18889. kernel loads. As an example, a speculatively-executed store may load
  18890. the target memory into cache and mark the cache line as dirty, even if
  18891. the store itself is later aborted. If a \s-1DMA\s0 operation writes to the
  18892. same area of memory before the \*(L"dirty\*(R" line is flushed, the cached
  18893. data overwrites the DMA-ed data. See the R10K processor manual
  18894. for a full description, including other potential problems.
  18895. .Sp
  18896. One workaround is to insert cache barrier instructions before every memory
  18897. access that might be speculatively executed and that might have side
  18898. effects even if aborted. \fB\-mr10k\-cache\-barrier=\fR\fIsetting\fR
  18899. controls \s-1GCC\s0's implementation of this workaround. It assumes that
  18900. aborted accesses to any byte in the following regions does not have
  18901. side effects:
  18902. .RS 4
  18903. .IP "1." 4
  18904. .IX Item "1."
  18905. the memory occupied by the current function's stack frame;
  18906. .IP "2." 4
  18907. .IX Item "2."
  18908. the memory occupied by an incoming stack argument;
  18909. .IP "3." 4
  18910. .IX Item "3."
  18911. the memory occupied by an object with a link-time-constant address.
  18912. .RE
  18913. .RS 4
  18914. .Sp
  18915. It is the kernel's responsibility to ensure that speculative
  18916. accesses to these regions are indeed safe.
  18917. .Sp
  18918. If the input program contains a function declaration such as:
  18919. .Sp
  18920. .Vb 1
  18921. \& void foo (void);
  18922. .Ve
  18923. .Sp
  18924. then the implementation of \f(CW\*(C`foo\*(C'\fR must allow \f(CW\*(C`j foo\*(C'\fR and
  18925. \&\f(CW\*(C`jal foo\*(C'\fR to be executed speculatively. \s-1GCC\s0 honors this
  18926. restriction for functions it compiles itself. It expects non-GCC
  18927. functions (such as hand-written assembly code) to do the same.
  18928. .Sp
  18929. The option has three forms:
  18930. .IP "\fB\-mr10k\-cache\-barrier=load\-store\fR" 4
  18931. .IX Item "-mr10k-cache-barrier=load-store"
  18932. Insert a cache barrier before a load or store that might be
  18933. speculatively executed and that might have side effects even
  18934. if aborted.
  18935. .IP "\fB\-mr10k\-cache\-barrier=store\fR" 4
  18936. .IX Item "-mr10k-cache-barrier=store"
  18937. Insert a cache barrier before a store that might be speculatively
  18938. executed and that might have side effects even if aborted.
  18939. .IP "\fB\-mr10k\-cache\-barrier=none\fR" 4
  18940. .IX Item "-mr10k-cache-barrier=none"
  18941. Disable the insertion of cache barriers. This is the default setting.
  18942. .RE
  18943. .RS 4
  18944. .RE
  18945. .IP "\fB\-mflush\-func=\fR\fIfunc\fR" 4
  18946. .IX Item "-mflush-func=func"
  18947. .PD 0
  18948. .IP "\fB\-mno\-flush\-func\fR" 4
  18949. .IX Item "-mno-flush-func"
  18950. .PD
  18951. Specifies the function to call to flush the I and D caches, or to not
  18952. call any such function. If called, the function must take the same
  18953. arguments as the common \f(CW\*(C`_flush_func\*(C'\fR, that is, the address of the
  18954. memory range for which the cache is being flushed, the size of the
  18955. memory range, and the number 3 (to flush both caches). The default
  18956. depends on the target \s-1GCC\s0 was configured for, but commonly is either
  18957. \&\f(CW\*(C`_flush_func\*(C'\fR or \f(CW\*(C`_\|_cpu_flush\*(C'\fR.
  18958. .IP "\fBmbranch\-cost=\fR\fInum\fR" 4
  18959. .IX Item "mbranch-cost=num"
  18960. Set the cost of branches to roughly \fInum\fR \*(L"simple\*(R" instructions.
  18961. This cost is only a heuristic and is not guaranteed to produce
  18962. consistent results across releases. A zero cost redundantly selects
  18963. the default, which is based on the \fB\-mtune\fR setting.
  18964. .IP "\fB\-mbranch\-likely\fR" 4
  18965. .IX Item "-mbranch-likely"
  18966. .PD 0
  18967. .IP "\fB\-mno\-branch\-likely\fR" 4
  18968. .IX Item "-mno-branch-likely"
  18969. .PD
  18970. Enable or disable use of Branch Likely instructions, regardless of the
  18971. default for the selected architecture. By default, Branch Likely
  18972. instructions may be generated if they are supported by the selected
  18973. architecture. An exception is for the \s-1MIPS32\s0 and \s-1MIPS64\s0 architectures
  18974. and processors that implement those architectures; for those, Branch
  18975. Likely instructions are not be generated by default because the \s-1MIPS32\s0
  18976. and \s-1MIPS64\s0 architectures specifically deprecate their use.
  18977. .IP "\fB\-mcompact\-branches=never\fR" 4
  18978. .IX Item "-mcompact-branches=never"
  18979. .PD 0
  18980. .IP "\fB\-mcompact\-branches=optimal\fR" 4
  18981. .IX Item "-mcompact-branches=optimal"
  18982. .IP "\fB\-mcompact\-branches=always\fR" 4
  18983. .IX Item "-mcompact-branches=always"
  18984. .PD
  18985. These options control which form of branches will be generated. The
  18986. default is \fB\-mcompact\-branches=optimal\fR.
  18987. .Sp
  18988. The \fB\-mcompact\-branches=never\fR option ensures that compact branch
  18989. instructions will never be generated.
  18990. .Sp
  18991. The \fB\-mcompact\-branches=always\fR option ensures that a compact
  18992. branch instruction will be generated if available. If a compact branch
  18993. instruction is not available, a delay slot form of the branch will be
  18994. used instead.
  18995. .Sp
  18996. This option is supported from \s-1MIPS\s0 Release 6 onwards.
  18997. .Sp
  18998. The \fB\-mcompact\-branches=optimal\fR option will cause a delay slot
  18999. branch to be used if one is available in the current \s-1ISA\s0 and the delay
  19000. slot is successfully filled. If the delay slot is not filled, a compact
  19001. branch will be chosen if one is available.
  19002. .IP "\fB\-mfp\-exceptions\fR" 4
  19003. .IX Item "-mfp-exceptions"
  19004. .PD 0
  19005. .IP "\fB\-mno\-fp\-exceptions\fR" 4
  19006. .IX Item "-mno-fp-exceptions"
  19007. .PD
  19008. Specifies whether \s-1FP\s0 exceptions are enabled. This affects how
  19009. \&\s-1FP\s0 instructions are scheduled for some processors.
  19010. The default is that \s-1FP\s0 exceptions are
  19011. enabled.
  19012. .Sp
  19013. For instance, on the \s-1SB\-1,\s0 if \s-1FP\s0 exceptions are disabled, and we are emitting
  19014. 64\-bit code, then we can use both \s-1FP\s0 pipes. Otherwise, we can only use one
  19015. \&\s-1FP\s0 pipe.
  19016. .IP "\fB\-mvr4130\-align\fR" 4
  19017. .IX Item "-mvr4130-align"
  19018. .PD 0
  19019. .IP "\fB\-mno\-vr4130\-align\fR" 4
  19020. .IX Item "-mno-vr4130-align"
  19021. .PD
  19022. The \s-1VR4130\s0 pipeline is two-way superscalar, but can only issue two
  19023. instructions together if the first one is 8\-byte aligned. When this
  19024. option is enabled, \s-1GCC\s0 aligns pairs of instructions that it
  19025. thinks should execute in parallel.
  19026. .Sp
  19027. This option only has an effect when optimizing for the \s-1VR4130.\s0
  19028. It normally makes code faster, but at the expense of making it bigger.
  19029. It is enabled by default at optimization level \fB\-O3\fR.
  19030. .IP "\fB\-msynci\fR" 4
  19031. .IX Item "-msynci"
  19032. .PD 0
  19033. .IP "\fB\-mno\-synci\fR" 4
  19034. .IX Item "-mno-synci"
  19035. .PD
  19036. Enable (disable) generation of \f(CW\*(C`synci\*(C'\fR instructions on
  19037. architectures that support it. The \f(CW\*(C`synci\*(C'\fR instructions (if
  19038. enabled) are generated when \f(CW\*(C`_\|_builtin_\|_\|_clear_cache\*(C'\fR is
  19039. compiled.
  19040. .Sp
  19041. This option defaults to \fB\-mno\-synci\fR, but the default can be
  19042. overridden by configuring \s-1GCC\s0 with \fB\-\-with\-synci\fR.
  19043. .Sp
  19044. When compiling code for single processor systems, it is generally safe
  19045. to use \f(CW\*(C`synci\*(C'\fR. However, on many multi-core (\s-1SMP\s0) systems, it
  19046. does not invalidate the instruction caches on all cores and may lead
  19047. to undefined behavior.
  19048. .IP "\fB\-mrelax\-pic\-calls\fR" 4
  19049. .IX Item "-mrelax-pic-calls"
  19050. .PD 0
  19051. .IP "\fB\-mno\-relax\-pic\-calls\fR" 4
  19052. .IX Item "-mno-relax-pic-calls"
  19053. .PD
  19054. Try to turn \s-1PIC\s0 calls that are normally dispatched via register
  19055. \&\f(CW$25\fR into direct calls. This is only possible if the linker can
  19056. resolve the destination at link time and if the destination is within
  19057. range for a direct call.
  19058. .Sp
  19059. \&\fB\-mrelax\-pic\-calls\fR is the default if \s-1GCC\s0 was configured to use
  19060. an assembler and a linker that support the \f(CW\*(C`.reloc\*(C'\fR assembly
  19061. directive and \fB\-mexplicit\-relocs\fR is in effect. With
  19062. \&\fB\-mno\-explicit\-relocs\fR, this optimization can be performed by the
  19063. assembler and the linker alone without help from the compiler.
  19064. .IP "\fB\-mmcount\-ra\-address\fR" 4
  19065. .IX Item "-mmcount-ra-address"
  19066. .PD 0
  19067. .IP "\fB\-mno\-mcount\-ra\-address\fR" 4
  19068. .IX Item "-mno-mcount-ra-address"
  19069. .PD
  19070. Emit (do not emit) code that allows \f(CW\*(C`_mcount\*(C'\fR to modify the
  19071. calling function's return address. When enabled, this option extends
  19072. the usual \f(CW\*(C`_mcount\*(C'\fR interface with a new \fIra-address\fR
  19073. parameter, which has type \f(CW\*(C`intptr_t *\*(C'\fR and is passed in register
  19074. \&\f(CW$12\fR. \f(CW\*(C`_mcount\*(C'\fR can then modify the return address by
  19075. doing both of the following:
  19076. .RS 4
  19077. .IP "*" 4
  19078. Returning the new address in register \f(CW$31\fR.
  19079. .IP "*" 4
  19080. Storing the new address in \f(CW\*(C`*\f(CIra\-address\f(CW\*(C'\fR,
  19081. if \fIra-address\fR is nonnull.
  19082. .RE
  19083. .RS 4
  19084. .Sp
  19085. The default is \fB\-mno\-mcount\-ra\-address\fR.
  19086. .RE
  19087. .IP "\fB\-mframe\-header\-opt\fR" 4
  19088. .IX Item "-mframe-header-opt"
  19089. .PD 0
  19090. .IP "\fB\-mno\-frame\-header\-opt\fR" 4
  19091. .IX Item "-mno-frame-header-opt"
  19092. .PD
  19093. Enable (disable) frame header optimization in the o32 \s-1ABI. \s0 When using the
  19094. o32 \s-1ABI,\s0 calling functions will allocate 16 bytes on the stack for the called
  19095. function to write out register arguments. When enabled, this optimization
  19096. will suppress the allocation of the frame header if it can be determined that
  19097. it is unused.
  19098. .Sp
  19099. This optimization is off by default at all optimization levels.
  19100. .IP "\fB\-mlxc1\-sxc1\fR" 4
  19101. .IX Item "-mlxc1-sxc1"
  19102. .PD 0
  19103. .IP "\fB\-mno\-lxc1\-sxc1\fR" 4
  19104. .IX Item "-mno-lxc1-sxc1"
  19105. .PD
  19106. When applicable, enable (disable) the generation of \f(CW\*(C`lwxc1\*(C'\fR,
  19107. \&\f(CW\*(C`swxc1\*(C'\fR, \f(CW\*(C`ldxc1\*(C'\fR, \f(CW\*(C`sdxc1\*(C'\fR instructions. Enabled by default.
  19108. .IP "\fB\-mmadd4\fR" 4
  19109. .IX Item "-mmadd4"
  19110. .PD 0
  19111. .IP "\fB\-mno\-madd4\fR" 4
  19112. .IX Item "-mno-madd4"
  19113. .PD
  19114. When applicable, enable (disable) the generation of 4\-operand \f(CW\*(C`madd.s\*(C'\fR,
  19115. \&\f(CW\*(C`madd.d\*(C'\fR and related instructions. Enabled by default.
  19116. .PP
  19117. \fI\s-1MMIX\s0 Options\fR
  19118. .IX Subsection "MMIX Options"
  19119. .PP
  19120. These options are defined for the \s-1MMIX:\s0
  19121. .IP "\fB\-mlibfuncs\fR" 4
  19122. .IX Item "-mlibfuncs"
  19123. .PD 0
  19124. .IP "\fB\-mno\-libfuncs\fR" 4
  19125. .IX Item "-mno-libfuncs"
  19126. .PD
  19127. Specify that intrinsic library functions are being compiled, passing all
  19128. values in registers, no matter the size.
  19129. .IP "\fB\-mepsilon\fR" 4
  19130. .IX Item "-mepsilon"
  19131. .PD 0
  19132. .IP "\fB\-mno\-epsilon\fR" 4
  19133. .IX Item "-mno-epsilon"
  19134. .PD
  19135. Generate floating-point comparison instructions that compare with respect
  19136. to the \f(CW\*(C`rE\*(C'\fR epsilon register.
  19137. .IP "\fB\-mabi=mmixware\fR" 4
  19138. .IX Item "-mabi=mmixware"
  19139. .PD 0
  19140. .IP "\fB\-mabi=gnu\fR" 4
  19141. .IX Item "-mabi=gnu"
  19142. .PD
  19143. Generate code that passes function parameters and return values that (in
  19144. the called function) are seen as registers \f(CW$0\fR and up, as opposed to
  19145. the \s-1GNU ABI\s0 which uses global registers \f(CW$231\fR and up.
  19146. .IP "\fB\-mzero\-extend\fR" 4
  19147. .IX Item "-mzero-extend"
  19148. .PD 0
  19149. .IP "\fB\-mno\-zero\-extend\fR" 4
  19150. .IX Item "-mno-zero-extend"
  19151. .PD
  19152. When reading data from memory in sizes shorter than 64 bits, use (do not
  19153. use) zero-extending load instructions by default, rather than
  19154. sign-extending ones.
  19155. .IP "\fB\-mknuthdiv\fR" 4
  19156. .IX Item "-mknuthdiv"
  19157. .PD 0
  19158. .IP "\fB\-mno\-knuthdiv\fR" 4
  19159. .IX Item "-mno-knuthdiv"
  19160. .PD
  19161. Make the result of a division yielding a remainder have the same sign as
  19162. the divisor. With the default, \fB\-mno\-knuthdiv\fR, the sign of the
  19163. remainder follows the sign of the dividend. Both methods are
  19164. arithmetically valid, the latter being almost exclusively used.
  19165. .IP "\fB\-mtoplevel\-symbols\fR" 4
  19166. .IX Item "-mtoplevel-symbols"
  19167. .PD 0
  19168. .IP "\fB\-mno\-toplevel\-symbols\fR" 4
  19169. .IX Item "-mno-toplevel-symbols"
  19170. .PD
  19171. Prepend (do not prepend) a \fB:\fR to all global symbols, so the assembly
  19172. code can be used with the \f(CW\*(C`PREFIX\*(C'\fR assembly directive.
  19173. .IP "\fB\-melf\fR" 4
  19174. .IX Item "-melf"
  19175. Generate an executable in the \s-1ELF\s0 format, rather than the default
  19176. \&\fBmmo\fR format used by the \fBmmix\fR simulator.
  19177. .IP "\fB\-mbranch\-predict\fR" 4
  19178. .IX Item "-mbranch-predict"
  19179. .PD 0
  19180. .IP "\fB\-mno\-branch\-predict\fR" 4
  19181. .IX Item "-mno-branch-predict"
  19182. .PD
  19183. Use (do not use) the probable-branch instructions, when static branch
  19184. prediction indicates a probable branch.
  19185. .IP "\fB\-mbase\-addresses\fR" 4
  19186. .IX Item "-mbase-addresses"
  19187. .PD 0
  19188. .IP "\fB\-mno\-base\-addresses\fR" 4
  19189. .IX Item "-mno-base-addresses"
  19190. .PD
  19191. Generate (do not generate) code that uses \fIbase addresses\fR. Using a
  19192. base address automatically generates a request (handled by the assembler
  19193. and the linker) for a constant to be set up in a global register. The
  19194. register is used for one or more base address requests within the range 0
  19195. to 255 from the value held in the register. The generally leads to short
  19196. and fast code, but the number of different data items that can be
  19197. addressed is limited. This means that a program that uses lots of static
  19198. data may require \fB\-mno\-base\-addresses\fR.
  19199. .IP "\fB\-msingle\-exit\fR" 4
  19200. .IX Item "-msingle-exit"
  19201. .PD 0
  19202. .IP "\fB\-mno\-single\-exit\fR" 4
  19203. .IX Item "-mno-single-exit"
  19204. .PD
  19205. Force (do not force) generated code to have a single exit point in each
  19206. function.
  19207. .PP
  19208. \fI\s-1MN10300\s0 Options\fR
  19209. .IX Subsection "MN10300 Options"
  19210. .PP
  19211. These \fB\-m\fR options are defined for Matsushita \s-1MN10300\s0 architectures:
  19212. .IP "\fB\-mmult\-bug\fR" 4
  19213. .IX Item "-mmult-bug"
  19214. Generate code to avoid bugs in the multiply instructions for the \s-1MN10300\s0
  19215. processors. This is the default.
  19216. .IP "\fB\-mno\-mult\-bug\fR" 4
  19217. .IX Item "-mno-mult-bug"
  19218. Do not generate code to avoid bugs in the multiply instructions for the
  19219. \&\s-1MN10300\s0 processors.
  19220. .IP "\fB\-mam33\fR" 4
  19221. .IX Item "-mam33"
  19222. Generate code using features specific to the \s-1AM33\s0 processor.
  19223. .IP "\fB\-mno\-am33\fR" 4
  19224. .IX Item "-mno-am33"
  19225. Do not generate code using features specific to the \s-1AM33\s0 processor. This
  19226. is the default.
  19227. .IP "\fB\-mam33\-2\fR" 4
  19228. .IX Item "-mam33-2"
  19229. Generate code using features specific to the \s-1AM33/2.0\s0 processor.
  19230. .IP "\fB\-mam34\fR" 4
  19231. .IX Item "-mam34"
  19232. Generate code using features specific to the \s-1AM34\s0 processor.
  19233. .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
  19234. .IX Item "-mtune=cpu-type"
  19235. Use the timing characteristics of the indicated \s-1CPU\s0 type when
  19236. scheduling instructions. This does not change the targeted processor
  19237. type. The \s-1CPU\s0 type must be one of \fBmn10300\fR, \fBam33\fR,
  19238. \&\fBam33\-2\fR or \fBam34\fR.
  19239. .IP "\fB\-mreturn\-pointer\-on\-d0\fR" 4
  19240. .IX Item "-mreturn-pointer-on-d0"
  19241. When generating a function that returns a pointer, return the pointer
  19242. in both \f(CW\*(C`a0\*(C'\fR and \f(CW\*(C`d0\*(C'\fR. Otherwise, the pointer is returned
  19243. only in \f(CW\*(C`a0\*(C'\fR, and attempts to call such functions without a prototype
  19244. result in errors. Note that this option is on by default; use
  19245. \&\fB\-mno\-return\-pointer\-on\-d0\fR to disable it.
  19246. .IP "\fB\-mno\-crt0\fR" 4
  19247. .IX Item "-mno-crt0"
  19248. Do not link in the C run-time initialization object file.
  19249. .IP "\fB\-mrelax\fR" 4
  19250. .IX Item "-mrelax"
  19251. Indicate to the linker that it should perform a relaxation optimization pass
  19252. to shorten branches, calls and absolute memory addresses. This option only
  19253. has an effect when used on the command line for the final link step.
  19254. .Sp
  19255. This option makes symbolic debugging impossible.
  19256. .IP "\fB\-mliw\fR" 4
  19257. .IX Item "-mliw"
  19258. Allow the compiler to generate \fILong Instruction Word\fR
  19259. instructions if the target is the \fB\s-1AM33\s0\fR or later. This is the
  19260. default. This option defines the preprocessor macro \f(CW\*(C`_\|_LIW_\|_\*(C'\fR.
  19261. .IP "\fB\-mnoliw\fR" 4
  19262. .IX Item "-mnoliw"
  19263. Do not allow the compiler to generate \fILong Instruction Word\fR
  19264. instructions. This option defines the preprocessor macro
  19265. \&\f(CW\*(C`_\|_NO_LIW_\|_\*(C'\fR.
  19266. .IP "\fB\-msetlb\fR" 4
  19267. .IX Item "-msetlb"
  19268. Allow the compiler to generate the \fI\s-1SETLB\s0\fR and \fILcc\fR
  19269. instructions if the target is the \fB\s-1AM33\s0\fR or later. This is the
  19270. default. This option defines the preprocessor macro \f(CW\*(C`_\|_SETLB_\|_\*(C'\fR.
  19271. .IP "\fB\-mnosetlb\fR" 4
  19272. .IX Item "-mnosetlb"
  19273. Do not allow the compiler to generate \fI\s-1SETLB\s0\fR or \fILcc\fR
  19274. instructions. This option defines the preprocessor macro
  19275. \&\f(CW\*(C`_\|_NO_SETLB_\|_\*(C'\fR.
  19276. .PP
  19277. \fIMoxie Options\fR
  19278. .IX Subsection "Moxie Options"
  19279. .IP "\fB\-meb\fR" 4
  19280. .IX Item "-meb"
  19281. Generate big-endian code. This is the default for \fBmoxie\-*\-*\fR
  19282. configurations.
  19283. .IP "\fB\-mel\fR" 4
  19284. .IX Item "-mel"
  19285. Generate little-endian code.
  19286. .IP "\fB\-mmul.x\fR" 4
  19287. .IX Item "-mmul.x"
  19288. Generate mul.x and umul.x instructions. This is the default for
  19289. \&\fBmoxiebox\-*\-*\fR configurations.
  19290. .IP "\fB\-mno\-crt0\fR" 4
  19291. .IX Item "-mno-crt0"
  19292. Do not link in the C run-time initialization object file.
  19293. .PP
  19294. \fI\s-1MSP430\s0 Options\fR
  19295. .IX Subsection "MSP430 Options"
  19296. .PP
  19297. These options are defined for the \s-1MSP430:\s0
  19298. .IP "\fB\-masm\-hex\fR" 4
  19299. .IX Item "-masm-hex"
  19300. Force assembly output to always use hex constants. Normally such
  19301. constants are signed decimals, but this option is available for
  19302. testsuite and/or aesthetic purposes.
  19303. .IP "\fB\-mmcu=\fR" 4
  19304. .IX Item "-mmcu="
  19305. Select the \s-1MCU\s0 to target. This is used to create a C preprocessor
  19306. symbol based upon the \s-1MCU\s0 name, converted to upper case and pre\- and
  19307. post-fixed with \fB_\|_\fR. This in turn is used by the
  19308. \&\fImsp430.h\fR header file to select an MCU-specific supplementary
  19309. header file.
  19310. .Sp
  19311. The option also sets the \s-1ISA\s0 to use. If the \s-1MCU\s0 name is one that is
  19312. known to only support the 430 \s-1ISA\s0 then that is selected, otherwise the
  19313. 430X \s-1ISA\s0 is selected. A generic \s-1MCU\s0 name of \fBmsp430\fR can also be
  19314. used to select the 430 \s-1ISA. \s0 Similarly the generic \fBmsp430x\fR \s-1MCU\s0
  19315. name selects the 430X \s-1ISA.\s0
  19316. .Sp
  19317. In addition an MCU-specific linker script is added to the linker
  19318. command line. The script's name is the name of the \s-1MCU\s0 with
  19319. \&\fI.ld\fR appended. Thus specifying \fB\-mmcu=xxx\fR on the \fBgcc\fR
  19320. command line defines the C preprocessor symbol \f(CW\*(C`_\|_XXX_\|_\*(C'\fR and
  19321. cause the linker to search for a script called \fIxxx.ld\fR.
  19322. .Sp
  19323. This option is also passed on to the assembler.
  19324. .IP "\fB\-mwarn\-mcu\fR" 4
  19325. .IX Item "-mwarn-mcu"
  19326. .PD 0
  19327. .IP "\fB\-mno\-warn\-mcu\fR" 4
  19328. .IX Item "-mno-warn-mcu"
  19329. .PD
  19330. This option enables or disables warnings about conflicts between the
  19331. \&\s-1MCU\s0 name specified by the \fB\-mmcu\fR option and the \s-1ISA\s0 set by the
  19332. \&\fB\-mcpu\fR option and/or the hardware multiply support set by the
  19333. \&\fB\-mhwmult\fR option. It also toggles warnings about unrecognized
  19334. \&\s-1MCU\s0 names. This option is on by default.
  19335. .IP "\fB\-mcpu=\fR" 4
  19336. .IX Item "-mcpu="
  19337. Specifies the \s-1ISA\s0 to use. Accepted values are \fBmsp430\fR,
  19338. \&\fBmsp430x\fR and \fBmsp430xv2\fR. This option is deprecated. The
  19339. \&\fB\-mmcu=\fR option should be used to select the \s-1ISA.\s0
  19340. .IP "\fB\-msim\fR" 4
  19341. .IX Item "-msim"
  19342. Link to the simulator runtime libraries and linker script. Overrides
  19343. any scripts that would be selected by the \fB\-mmcu=\fR option.
  19344. .IP "\fB\-mlarge\fR" 4
  19345. .IX Item "-mlarge"
  19346. Use large-model addressing (20\-bit pointers, 32\-bit \f(CW\*(C`size_t\*(C'\fR).
  19347. .IP "\fB\-msmall\fR" 4
  19348. .IX Item "-msmall"
  19349. Use small-model addressing (16\-bit pointers, 16\-bit \f(CW\*(C`size_t\*(C'\fR).
  19350. .IP "\fB\-mrelax\fR" 4
  19351. .IX Item "-mrelax"
  19352. This option is passed to the assembler and linker, and allows the
  19353. linker to perform certain optimizations that cannot be done until
  19354. the final link.
  19355. .IP "\fBmhwmult=\fR" 4
  19356. .IX Item "mhwmult="
  19357. Describes the type of hardware multiply supported by the target.
  19358. Accepted values are \fBnone\fR for no hardware multiply, \fB16bit\fR
  19359. for the original 16\-bit\-only multiply supported by early MCUs.
  19360. \&\fB32bit\fR for the 16/32\-bit multiply supported by later MCUs and
  19361. \&\fBf5series\fR for the 16/32\-bit multiply supported by F5\-series MCUs.
  19362. A value of \fBauto\fR can also be given. This tells \s-1GCC\s0 to deduce
  19363. the hardware multiply support based upon the \s-1MCU\s0 name provided by the
  19364. \&\fB\-mmcu\fR option. If no \fB\-mmcu\fR option is specified or if
  19365. the \s-1MCU\s0 name is not recognized then no hardware multiply support is
  19366. assumed. \f(CW\*(C`auto\*(C'\fR is the default setting.
  19367. .Sp
  19368. Hardware multiplies are normally performed by calling a library
  19369. routine. This saves space in the generated code. When compiling at
  19370. \&\fB\-O3\fR or higher however the hardware multiplier is invoked
  19371. inline. This makes for bigger, but faster code.
  19372. .Sp
  19373. The hardware multiply routines disable interrupts whilst running and
  19374. restore the previous interrupt state when they finish. This makes
  19375. them safe to use inside interrupt handlers as well as in normal code.
  19376. .IP "\fB\-minrt\fR" 4
  19377. .IX Item "-minrt"
  19378. Enable the use of a minimum runtime environment \- no static
  19379. initializers or constructors. This is intended for memory-constrained
  19380. devices. The compiler includes special symbols in some objects
  19381. that tell the linker and runtime which code fragments are required.
  19382. .IP "\fB\-mcode\-region=\fR" 4
  19383. .IX Item "-mcode-region="
  19384. .PD 0
  19385. .IP "\fB\-mdata\-region=\fR" 4
  19386. .IX Item "-mdata-region="
  19387. .PD
  19388. These options tell the compiler where to place functions and data that
  19389. 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
  19390. \&\f(CW\*(C`section\*(C'\fR attributes. Possible values are \f(CW\*(C`lower\*(C'\fR,
  19391. \&\f(CW\*(C`upper\*(C'\fR, \f(CW\*(C`either\*(C'\fR or \f(CW\*(C`any\*(C'\fR. The first three behave
  19392. like the corresponding attribute. The fourth possible value \-
  19393. \&\f(CW\*(C`any\*(C'\fR \- is the default. It leaves placement entirely up to the
  19394. linker script and how it assigns the standard sections
  19395. (\f(CW\*(C`.text\*(C'\fR, \f(CW\*(C`.data\*(C'\fR, etc) to the memory regions.
  19396. .IP "\fB\-msilicon\-errata=\fR" 4
  19397. .IX Item "-msilicon-errata="
  19398. This option passes on a request to assembler to enable the fixes for
  19399. the named silicon errata.
  19400. .IP "\fB\-msilicon\-errata\-warn=\fR" 4
  19401. .IX Item "-msilicon-errata-warn="
  19402. This option passes on a request to the assembler to enable warning
  19403. messages when a silicon errata might need to be applied.
  19404. .PP
  19405. \fI\s-1NDS32\s0 Options\fR
  19406. .IX Subsection "NDS32 Options"
  19407. .PP
  19408. These options are defined for \s-1NDS32\s0 implementations:
  19409. .IP "\fB\-mbig\-endian\fR" 4
  19410. .IX Item "-mbig-endian"
  19411. Generate code in big-endian mode.
  19412. .IP "\fB\-mlittle\-endian\fR" 4
  19413. .IX Item "-mlittle-endian"
  19414. Generate code in little-endian mode.
  19415. .IP "\fB\-mreduced\-regs\fR" 4
  19416. .IX Item "-mreduced-regs"
  19417. Use reduced-set registers for register allocation.
  19418. .IP "\fB\-mfull\-regs\fR" 4
  19419. .IX Item "-mfull-regs"
  19420. Use full-set registers for register allocation.
  19421. .IP "\fB\-mcmov\fR" 4
  19422. .IX Item "-mcmov"
  19423. Generate conditional move instructions.
  19424. .IP "\fB\-mno\-cmov\fR" 4
  19425. .IX Item "-mno-cmov"
  19426. Do not generate conditional move instructions.
  19427. .IP "\fB\-mperf\-ext\fR" 4
  19428. .IX Item "-mperf-ext"
  19429. Generate performance extension instructions.
  19430. .IP "\fB\-mno\-perf\-ext\fR" 4
  19431. .IX Item "-mno-perf-ext"
  19432. Do not generate performance extension instructions.
  19433. .IP "\fB\-mv3push\fR" 4
  19434. .IX Item "-mv3push"
  19435. Generate v3 push25/pop25 instructions.
  19436. .IP "\fB\-mno\-v3push\fR" 4
  19437. .IX Item "-mno-v3push"
  19438. Do not generate v3 push25/pop25 instructions.
  19439. .IP "\fB\-m16\-bit\fR" 4
  19440. .IX Item "-m16-bit"
  19441. Generate 16\-bit instructions.
  19442. .IP "\fB\-mno\-16\-bit\fR" 4
  19443. .IX Item "-mno-16-bit"
  19444. Do not generate 16\-bit instructions.
  19445. .IP "\fB\-misr\-vector\-size=\fR\fInum\fR" 4
  19446. .IX Item "-misr-vector-size=num"
  19447. Specify the size of each interrupt vector, which must be 4 or 16.
  19448. .IP "\fB\-mcache\-block\-size=\fR\fInum\fR" 4
  19449. .IX Item "-mcache-block-size=num"
  19450. Specify the size of each cache block,
  19451. which must be a power of 2 between 4 and 512.
  19452. .IP "\fB\-march=\fR\fIarch\fR" 4
  19453. .IX Item "-march=arch"
  19454. Specify the name of the target architecture.
  19455. .IP "\fB\-mcmodel=\fR\fIcode-model\fR" 4
  19456. .IX Item "-mcmodel=code-model"
  19457. Set the code model to one of
  19458. .RS 4
  19459. .IP "\fBsmall\fR" 4
  19460. .IX Item "small"
  19461. All the data and read-only data segments must be within 512KB addressing space.
  19462. The text segment must be within 16MB addressing space.
  19463. .IP "\fBmedium\fR" 4
  19464. .IX Item "medium"
  19465. The data segment must be within 512KB while the read-only data segment can be
  19466. within 4GB addressing space. The text segment should be still within 16MB
  19467. addressing space.
  19468. .IP "\fBlarge\fR" 4
  19469. .IX Item "large"
  19470. All the text and data segments can be within 4GB addressing space.
  19471. .RE
  19472. .RS 4
  19473. .RE
  19474. .IP "\fB\-mctor\-dtor\fR" 4
  19475. .IX Item "-mctor-dtor"
  19476. Enable constructor/destructor feature.
  19477. .IP "\fB\-mrelax\fR" 4
  19478. .IX Item "-mrelax"
  19479. Guide linker to relax instructions.
  19480. .PP
  19481. \fINios \s-1II\s0 Options\fR
  19482. .IX Subsection "Nios II Options"
  19483. .PP
  19484. These are the options defined for the Altera Nios \s-1II\s0 processor.
  19485. .IP "\fB\-G\fR \fInum\fR" 4
  19486. .IX Item "-G num"
  19487. Put global and static objects less than or equal to \fInum\fR bytes
  19488. into the small data or \s-1BSS\s0 sections instead of the normal data or \s-1BSS\s0
  19489. sections. The default value of \fInum\fR is 8.
  19490. .IP "\fB\-mgpopt=\fR\fIoption\fR" 4
  19491. .IX Item "-mgpopt=option"
  19492. .PD 0
  19493. .IP "\fB\-mgpopt\fR" 4
  19494. .IX Item "-mgpopt"
  19495. .IP "\fB\-mno\-gpopt\fR" 4
  19496. .IX Item "-mno-gpopt"
  19497. .PD
  19498. Generate (do not generate) GP-relative accesses. The following
  19499. \&\fIoption\fR names are recognized:
  19500. .RS 4
  19501. .IP "\fBnone\fR" 4
  19502. .IX Item "none"
  19503. Do not generate GP-relative accesses.
  19504. .IP "\fBlocal\fR" 4
  19505. .IX Item "local"
  19506. Generate GP-relative accesses for small data objects that are not
  19507. external, weak, or uninitialized common symbols.
  19508. Also use GP-relative addressing for objects that
  19509. have been explicitly placed in a small data section via a \f(CW\*(C`section\*(C'\fR
  19510. attribute.
  19511. .IP "\fBglobal\fR" 4
  19512. .IX Item "global"
  19513. As for \fBlocal\fR, but also generate GP-relative accesses for
  19514. small data objects that are external, weak, or common. If you use this option,
  19515. you must ensure that all parts of your program (including libraries) are
  19516. compiled with the same \fB\-G\fR setting.
  19517. .IP "\fBdata\fR" 4
  19518. .IX Item "data"
  19519. Generate GP-relative accesses for all data objects in the program. If you
  19520. use this option, the entire data and \s-1BSS\s0 segments
  19521. of your program must fit in 64K of memory and you must use an appropriate
  19522. linker script to allocate them within the addressable range of the
  19523. global pointer.
  19524. .IP "\fBall\fR" 4
  19525. .IX Item "all"
  19526. Generate GP-relative addresses for function pointers as well as data
  19527. pointers. If you use this option, the entire text, data, and \s-1BSS\s0 segments
  19528. of your program must fit in 64K of memory and you must use an appropriate
  19529. linker script to allocate them within the addressable range of the
  19530. global pointer.
  19531. .RE
  19532. .RS 4
  19533. .Sp
  19534. \&\fB\-mgpopt\fR is equivalent to \fB\-mgpopt=local\fR, and
  19535. \&\fB\-mno\-gpopt\fR is equivalent to \fB\-mgpopt=none\fR.
  19536. .Sp
  19537. The default is \fB\-mgpopt\fR except when \fB\-fpic\fR or
  19538. \&\fB\-fPIC\fR is specified to generate position-independent code.
  19539. Note that the Nios \s-1II ABI\s0 does not permit GP-relative accesses from
  19540. shared libraries.
  19541. .Sp
  19542. You may need to specify \fB\-mno\-gpopt\fR explicitly when building
  19543. programs that include large amounts of small data, including large
  19544. \&\s-1GOT\s0 data sections. In this case, the 16\-bit offset for GP-relative
  19545. addressing may not be large enough to allow access to the entire
  19546. small data section.
  19547. .RE
  19548. .IP "\fB\-mel\fR" 4
  19549. .IX Item "-mel"
  19550. .PD 0
  19551. .IP "\fB\-meb\fR" 4
  19552. .IX Item "-meb"
  19553. .PD
  19554. Generate little-endian (default) or big-endian (experimental) code,
  19555. respectively.
  19556. .IP "\fB\-march=\fR\fIarch\fR" 4
  19557. .IX Item "-march=arch"
  19558. This specifies the name of the target Nios \s-1II\s0 architecture. \s-1GCC\s0 uses this
  19559. name to determine what kind of instructions it can emit when generating
  19560. assembly code. Permissible names are: \fBr1\fR, \fBr2\fR.
  19561. .Sp
  19562. The preprocessor macro \f(CW\*(C`_\|_nios2_arch_\|_\*(C'\fR is available to programs,
  19563. with value 1 or 2, indicating the targeted \s-1ISA\s0 level.
  19564. .IP "\fB\-mbypass\-cache\fR" 4
  19565. .IX Item "-mbypass-cache"
  19566. .PD 0
  19567. .IP "\fB\-mno\-bypass\-cache\fR" 4
  19568. .IX Item "-mno-bypass-cache"
  19569. .PD
  19570. Force all load and store instructions to always bypass cache by
  19571. using I/O variants of the instructions. The default is not to
  19572. bypass the cache.
  19573. .IP "\fB\-mno\-cache\-volatile\fR" 4
  19574. .IX Item "-mno-cache-volatile"
  19575. .PD 0
  19576. .IP "\fB\-mcache\-volatile\fR" 4
  19577. .IX Item "-mcache-volatile"
  19578. .PD
  19579. Volatile memory access bypass the cache using the I/O variants of
  19580. the load and store instructions. The default is not to bypass the cache.
  19581. .IP "\fB\-mno\-fast\-sw\-div\fR" 4
  19582. .IX Item "-mno-fast-sw-div"
  19583. .PD 0
  19584. .IP "\fB\-mfast\-sw\-div\fR" 4
  19585. .IX Item "-mfast-sw-div"
  19586. .PD
  19587. Do not use table-based fast divide for small numbers. The default
  19588. is to use the fast divide at \fB\-O3\fR and above.
  19589. .IP "\fB\-mno\-hw\-mul\fR" 4
  19590. .IX Item "-mno-hw-mul"
  19591. .PD 0
  19592. .IP "\fB\-mhw\-mul\fR" 4
  19593. .IX Item "-mhw-mul"
  19594. .IP "\fB\-mno\-hw\-mulx\fR" 4
  19595. .IX Item "-mno-hw-mulx"
  19596. .IP "\fB\-mhw\-mulx\fR" 4
  19597. .IX Item "-mhw-mulx"
  19598. .IP "\fB\-mno\-hw\-div\fR" 4
  19599. .IX Item "-mno-hw-div"
  19600. .IP "\fB\-mhw\-div\fR" 4
  19601. .IX Item "-mhw-div"
  19602. .PD
  19603. 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
  19604. instructions by the compiler. The default is to emit \f(CW\*(C`mul\*(C'\fR
  19605. and not emit \f(CW\*(C`div\*(C'\fR and \f(CW\*(C`mulx\*(C'\fR.
  19606. .IP "\fB\-mbmx\fR" 4
  19607. .IX Item "-mbmx"
  19608. .PD 0
  19609. .IP "\fB\-mno\-bmx\fR" 4
  19610. .IX Item "-mno-bmx"
  19611. .IP "\fB\-mcdx\fR" 4
  19612. .IX Item "-mcdx"
  19613. .IP "\fB\-mno\-cdx\fR" 4
  19614. .IX Item "-mno-cdx"
  19615. .PD
  19616. Enable or disable generation of Nios \s-1II R2 BMX \s0(bit manipulation) and
  19617. \&\s-1CDX \s0(code density) instructions. Enabling these instructions also
  19618. requires \fB\-march=r2\fR. Since these instructions are optional
  19619. extensions to the R2 architecture, the default is not to emit them.
  19620. .IP "\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR" 4
  19621. .IX Item "-mcustom-insn=N"
  19622. .PD 0
  19623. .IP "\fB\-mno\-custom\-\fR\fIinsn\fR" 4
  19624. .IX Item "-mno-custom-insn"
  19625. .PD
  19626. Each \fB\-mcustom\-\fR\fIinsn\fR\fB=\fR\fIN\fR option enables use of a
  19627. custom instruction with encoding \fIN\fR when generating code that uses
  19628. \&\fIinsn\fR. For example, \fB\-mcustom\-fadds=253\fR generates custom
  19629. instruction 253 for single-precision floating-point add operations instead
  19630. of the default behavior of using a library call.
  19631. .Sp
  19632. The following values of \fIinsn\fR are supported. Except as otherwise
  19633. noted, floating-point operations are expected to be implemented with
  19634. normal \s-1IEEE 754\s0 semantics and correspond directly to the C operators or the
  19635. equivalent \s-1GCC\s0 built-in functions.
  19636. .Sp
  19637. Single-precision floating point:
  19638. .RS 4
  19639. .IP "\fBfadds\fR, \fBfsubs\fR, \fBfdivs\fR, \fBfmuls\fR" 4
  19640. .IX Item "fadds, fsubs, fdivs, fmuls"
  19641. Binary arithmetic operations.
  19642. .IP "\fBfnegs\fR" 4
  19643. .IX Item "fnegs"
  19644. Unary negation.
  19645. .IP "\fBfabss\fR" 4
  19646. .IX Item "fabss"
  19647. Unary absolute value.
  19648. .IP "\fBfcmpeqs\fR, \fBfcmpges\fR, \fBfcmpgts\fR, \fBfcmples\fR, \fBfcmplts\fR, \fBfcmpnes\fR" 4
  19649. .IX Item "fcmpeqs, fcmpges, fcmpgts, fcmples, fcmplts, fcmpnes"
  19650. Comparison operations.
  19651. .IP "\fBfmins\fR, \fBfmaxs\fR" 4
  19652. .IX Item "fmins, fmaxs"
  19653. Floating-point minimum and maximum. These instructions are only
  19654. generated if \fB\-ffinite\-math\-only\fR is specified.
  19655. .IP "\fBfsqrts\fR" 4
  19656. .IX Item "fsqrts"
  19657. Unary square root operation.
  19658. .IP "\fBfcoss\fR, \fBfsins\fR, \fBftans\fR, \fBfatans\fR, \fBfexps\fR, \fBflogs\fR" 4
  19659. .IX Item "fcoss, fsins, ftans, fatans, fexps, flogs"
  19660. Floating-point trigonometric and exponential functions. These instructions
  19661. are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
  19662. .RE
  19663. .RS 4
  19664. .Sp
  19665. Double-precision floating point:
  19666. .IP "\fBfaddd\fR, \fBfsubd\fR, \fBfdivd\fR, \fBfmuld\fR" 4
  19667. .IX Item "faddd, fsubd, fdivd, fmuld"
  19668. Binary arithmetic operations.
  19669. .IP "\fBfnegd\fR" 4
  19670. .IX Item "fnegd"
  19671. Unary negation.
  19672. .IP "\fBfabsd\fR" 4
  19673. .IX Item "fabsd"
  19674. Unary absolute value.
  19675. .IP "\fBfcmpeqd\fR, \fBfcmpged\fR, \fBfcmpgtd\fR, \fBfcmpled\fR, \fBfcmpltd\fR, \fBfcmpned\fR" 4
  19676. .IX Item "fcmpeqd, fcmpged, fcmpgtd, fcmpled, fcmpltd, fcmpned"
  19677. Comparison operations.
  19678. .IP "\fBfmind\fR, \fBfmaxd\fR" 4
  19679. .IX Item "fmind, fmaxd"
  19680. Double-precision minimum and maximum. These instructions are only
  19681. generated if \fB\-ffinite\-math\-only\fR is specified.
  19682. .IP "\fBfsqrtd\fR" 4
  19683. .IX Item "fsqrtd"
  19684. Unary square root operation.
  19685. .IP "\fBfcosd\fR, \fBfsind\fR, \fBftand\fR, \fBfatand\fR, \fBfexpd\fR, \fBflogd\fR" 4
  19686. .IX Item "fcosd, fsind, ftand, fatand, fexpd, flogd"
  19687. Double-precision trigonometric and exponential functions. These instructions
  19688. are only generated if \fB\-funsafe\-math\-optimizations\fR is also specified.
  19689. .RE
  19690. .RS 4
  19691. .Sp
  19692. Conversions:
  19693. .IP "\fBfextsd\fR" 4
  19694. .IX Item "fextsd"
  19695. Conversion from single precision to double precision.
  19696. .IP "\fBftruncds\fR" 4
  19697. .IX Item "ftruncds"
  19698. Conversion from double precision to single precision.
  19699. .IP "\fBfixsi\fR, \fBfixsu\fR, \fBfixdi\fR, \fBfixdu\fR" 4
  19700. .IX Item "fixsi, fixsu, fixdi, fixdu"
  19701. Conversion from floating point to signed or unsigned integer types, with
  19702. truncation towards zero.
  19703. .IP "\fBround\fR" 4
  19704. .IX Item "round"
  19705. Conversion from single-precision floating point to signed integer,
  19706. rounding to the nearest integer and ties away from zero.
  19707. This corresponds to the \f(CW\*(C`_\|_builtin_lroundf\*(C'\fR function when
  19708. \&\fB\-fno\-math\-errno\fR is used.
  19709. .IP "\fBfloatis\fR, \fBfloatus\fR, \fBfloatid\fR, \fBfloatud\fR" 4
  19710. .IX Item "floatis, floatus, floatid, floatud"
  19711. Conversion from signed or unsigned integer types to floating-point types.
  19712. .RE
  19713. .RS 4
  19714. .Sp
  19715. In addition, all of the following transfer instructions for internal
  19716. registers X and Y must be provided to use any of the double-precision
  19717. floating-point instructions. Custom instructions taking two
  19718. double-precision source operands expect the first operand in the
  19719. 64\-bit register X. The other operand (or only operand of a unary
  19720. operation) is given to the custom arithmetic instruction with the
  19721. least significant half in source register \fIsrc1\fR and the most
  19722. significant half in \fIsrc2\fR. A custom instruction that returns a
  19723. double-precision result returns the most significant 32 bits in the
  19724. destination register and the other half in 32\-bit register Y.
  19725. \&\s-1GCC\s0 automatically generates the necessary code sequences to write
  19726. register X and/or read register Y when double-precision floating-point
  19727. instructions are used.
  19728. .IP "\fBfwrx\fR" 4
  19729. .IX Item "fwrx"
  19730. Write \fIsrc1\fR into the least significant half of X and \fIsrc2\fR into
  19731. the most significant half of X.
  19732. .IP "\fBfwry\fR" 4
  19733. .IX Item "fwry"
  19734. Write \fIsrc1\fR into Y.
  19735. .IP "\fBfrdxhi\fR, \fBfrdxlo\fR" 4
  19736. .IX Item "frdxhi, frdxlo"
  19737. Read the most or least (respectively) significant half of X and store it in
  19738. \&\fIdest\fR.
  19739. .IP "\fBfrdy\fR" 4
  19740. .IX Item "frdy"
  19741. Read the value of Y and store it into \fIdest\fR.
  19742. .RE
  19743. .RS 4
  19744. .Sp
  19745. Note that you can gain more local control over generation of Nios \s-1II\s0 custom
  19746. instructions by using the \f(CW\*(C`target("custom\-\f(CIinsn\f(CW=\f(CIN\f(CW")\*(C'\fR
  19747. and \f(CW\*(C`target("no\-custom\-\f(CIinsn\f(CW")\*(C'\fR function attributes
  19748. or pragmas.
  19749. .RE
  19750. .IP "\fB\-mcustom\-fpu\-cfg=\fR\fIname\fR" 4
  19751. .IX Item "-mcustom-fpu-cfg=name"
  19752. This option enables a predefined, named set of custom instruction encodings
  19753. (see \fB\-mcustom\-\fR\fIinsn\fR above).
  19754. Currently, the following sets are defined:
  19755. .Sp
  19756. \&\fB\-mcustom\-fpu\-cfg=60\-1\fR is equivalent to:
  19757. \&\fB\-mcustom\-fmuls=252
  19758. \&\-mcustom\-fadds=253
  19759. \&\-mcustom\-fsubs=254
  19760. \&\-fsingle\-precision\-constant\fR
  19761. .Sp
  19762. \&\fB\-mcustom\-fpu\-cfg=60\-2\fR is equivalent to:
  19763. \&\fB\-mcustom\-fmuls=252
  19764. \&\-mcustom\-fadds=253
  19765. \&\-mcustom\-fsubs=254
  19766. \&\-mcustom\-fdivs=255
  19767. \&\-fsingle\-precision\-constant\fR
  19768. .Sp
  19769. \&\fB\-mcustom\-fpu\-cfg=72\-3\fR is equivalent to:
  19770. \&\fB\-mcustom\-floatus=243
  19771. \&\-mcustom\-fixsi=244
  19772. \&\-mcustom\-floatis=245
  19773. \&\-mcustom\-fcmpgts=246
  19774. \&\-mcustom\-fcmples=249
  19775. \&\-mcustom\-fcmpeqs=250
  19776. \&\-mcustom\-fcmpnes=251
  19777. \&\-mcustom\-fmuls=252
  19778. \&\-mcustom\-fadds=253
  19779. \&\-mcustom\-fsubs=254
  19780. \&\-mcustom\-fdivs=255
  19781. \&\-fsingle\-precision\-constant\fR
  19782. .Sp
  19783. Custom instruction assignments given by individual
  19784. \&\fB\-mcustom\-\fR\fIinsn\fR\fB=\fR options override those given by
  19785. \&\fB\-mcustom\-fpu\-cfg=\fR, regardless of the
  19786. order of the options on the command line.
  19787. .Sp
  19788. Note that you can gain more local control over selection of a \s-1FPU\s0
  19789. configuration by using the \f(CW\*(C`target("custom\-fpu\-cfg=\f(CIname\f(CW")\*(C'\fR
  19790. function attribute
  19791. or pragma.
  19792. .PP
  19793. These additional \fB\-m\fR options are available for the Altera Nios \s-1II
  19794. ELF \s0(bare-metal) target:
  19795. .IP "\fB\-mhal\fR" 4
  19796. .IX Item "-mhal"
  19797. Link with \s-1HAL BSP. \s0 This suppresses linking with the GCC-provided C runtime
  19798. startup and termination code, and is typically used in conjunction with
  19799. \&\fB\-msys\-crt0=\fR to specify the location of the alternate startup code
  19800. provided by the \s-1HAL BSP.\s0
  19801. .IP "\fB\-msmallc\fR" 4
  19802. .IX Item "-msmallc"
  19803. Link with a limited version of the C library, \fB\-lsmallc\fR, rather than
  19804. Newlib.
  19805. .IP "\fB\-msys\-crt0=\fR\fIstartfile\fR" 4
  19806. .IX Item "-msys-crt0=startfile"
  19807. \&\fIstartfile\fR is the file name of the startfile (crt0) to use
  19808. when linking. This option is only useful in conjunction with \fB\-mhal\fR.
  19809. .IP "\fB\-msys\-lib=\fR\fIsystemlib\fR" 4
  19810. .IX Item "-msys-lib=systemlib"
  19811. \&\fIsystemlib\fR is the library name of the library that provides
  19812. low-level system calls required by the C library,
  19813. e.g. \f(CW\*(C`read\*(C'\fR and \f(CW\*(C`write\*(C'\fR.
  19814. This option is typically used to link with a library provided by a \s-1HAL BSP.\s0
  19815. .PP
  19816. \fINvidia \s-1PTX\s0 Options\fR
  19817. .IX Subsection "Nvidia PTX Options"
  19818. .PP
  19819. These options are defined for Nvidia \s-1PTX:\s0
  19820. .IP "\fB\-m32\fR" 4
  19821. .IX Item "-m32"
  19822. .PD 0
  19823. .IP "\fB\-m64\fR" 4
  19824. .IX Item "-m64"
  19825. .PD
  19826. Generate code for 32\-bit or 64\-bit \s-1ABI.\s0
  19827. .IP "\fB\-mmainkernel\fR" 4
  19828. .IX Item "-mmainkernel"
  19829. Link in code for a _\|_main kernel. This is for stand-alone instead of
  19830. offloading execution.
  19831. .IP "\fB\-moptimize\fR" 4
  19832. .IX Item "-moptimize"
  19833. Apply partitioned execution optimizations. This is the default when any
  19834. level of optimization is selected.
  19835. .IP "\fB\-msoft\-stack\fR" 4
  19836. .IX Item "-msoft-stack"
  19837. Generate code that does not use \f(CW\*(C`.local\*(C'\fR memory
  19838. directly for stack storage. Instead, a per-warp stack pointer is
  19839. maintained explicitly. This enables variable-length stack allocation (with
  19840. variable-length arrays or \f(CW\*(C`alloca\*(C'\fR), and when global memory is used for
  19841. underlying storage, makes it possible to access automatic variables from other
  19842. threads, or with atomic instructions. This code generation variant is used
  19843. for OpenMP offloading, but the option is exposed on its own for the purpose
  19844. of testing the compiler; to generate code suitable for linking into programs
  19845. using OpenMP offloading, use option \fB\-mgomp\fR.
  19846. .IP "\fB\-muniform\-simt\fR" 4
  19847. .IX Item "-muniform-simt"
  19848. Switch to code generation variant that allows to execute all threads in each
  19849. warp, while maintaining memory state and side effects as if only one thread
  19850. in each warp was active outside of OpenMP \s-1SIMD\s0 regions. All atomic operations
  19851. and calls to runtime (malloc, free, vprintf) are conditionally executed (iff
  19852. current lane index equals the master lane index), and the register being
  19853. assigned is copied via a shuffle instruction from the master lane. Outside of
  19854. \&\s-1SIMD\s0 regions lane 0 is the master; inside, each thread sees itself as the
  19855. master. Shared memory array \f(CW\*(C`int _\|_nvptx_uni[]\*(C'\fR stores all-zeros or
  19856. all-ones bitmasks for each warp, indicating current mode (0 outside of \s-1SIMD\s0
  19857. regions). Each thread can bitwise-and the bitmask at position \f(CW\*(C`tid.y\*(C'\fR
  19858. with current lane index to compute the master lane index.
  19859. .IP "\fB\-mgomp\fR" 4
  19860. .IX Item "-mgomp"
  19861. Generate code for use in OpenMP offloading: enables \fB\-msoft\-stack\fR and
  19862. \&\fB\-muniform\-simt\fR options, and selects corresponding multilib variant.
  19863. .PP
  19864. \fI\s-1PDP\-11\s0 Options\fR
  19865. .IX Subsection "PDP-11 Options"
  19866. .PP
  19867. These options are defined for the \s-1PDP\-11:\s0
  19868. .IP "\fB\-mfpu\fR" 4
  19869. .IX Item "-mfpu"
  19870. Use hardware \s-1FPP\s0 floating point. This is the default. (\s-1FIS\s0 floating
  19871. point on the \s-1PDP\-11/40\s0 is not supported.)
  19872. .IP "\fB\-msoft\-float\fR" 4
  19873. .IX Item "-msoft-float"
  19874. Do not use hardware floating point.
  19875. .IP "\fB\-mac0\fR" 4
  19876. .IX Item "-mac0"
  19877. Return floating-point results in ac0 (fr0 in Unix assembler syntax).
  19878. .IP "\fB\-mno\-ac0\fR" 4
  19879. .IX Item "-mno-ac0"
  19880. Return floating-point results in memory. This is the default.
  19881. .IP "\fB\-m40\fR" 4
  19882. .IX Item "-m40"
  19883. Generate code for a \s-1PDP\-11/40.\s0
  19884. .IP "\fB\-m45\fR" 4
  19885. .IX Item "-m45"
  19886. Generate code for a \s-1PDP\-11/45. \s0 This is the default.
  19887. .IP "\fB\-m10\fR" 4
  19888. .IX Item "-m10"
  19889. Generate code for a \s-1PDP\-11/10.\s0
  19890. .IP "\fB\-mbcopy\-builtin\fR" 4
  19891. .IX Item "-mbcopy-builtin"
  19892. Use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory. This is the
  19893. default.
  19894. .IP "\fB\-mbcopy\fR" 4
  19895. .IX Item "-mbcopy"
  19896. Do not use inline \f(CW\*(C`movmemhi\*(C'\fR patterns for copying memory.
  19897. .IP "\fB\-mint16\fR" 4
  19898. .IX Item "-mint16"
  19899. .PD 0
  19900. .IP "\fB\-mno\-int32\fR" 4
  19901. .IX Item "-mno-int32"
  19902. .PD
  19903. Use 16\-bit \f(CW\*(C`int\*(C'\fR. This is the default.
  19904. .IP "\fB\-mint32\fR" 4
  19905. .IX Item "-mint32"
  19906. .PD 0
  19907. .IP "\fB\-mno\-int16\fR" 4
  19908. .IX Item "-mno-int16"
  19909. .PD
  19910. Use 32\-bit \f(CW\*(C`int\*(C'\fR.
  19911. .IP "\fB\-mfloat64\fR" 4
  19912. .IX Item "-mfloat64"
  19913. .PD 0
  19914. .IP "\fB\-mno\-float32\fR" 4
  19915. .IX Item "-mno-float32"
  19916. .PD
  19917. Use 64\-bit \f(CW\*(C`float\*(C'\fR. This is the default.
  19918. .IP "\fB\-mfloat32\fR" 4
  19919. .IX Item "-mfloat32"
  19920. .PD 0
  19921. .IP "\fB\-mno\-float64\fR" 4
  19922. .IX Item "-mno-float64"
  19923. .PD
  19924. Use 32\-bit \f(CW\*(C`float\*(C'\fR.
  19925. .IP "\fB\-mabshi\fR" 4
  19926. .IX Item "-mabshi"
  19927. Use \f(CW\*(C`abshi2\*(C'\fR pattern. This is the default.
  19928. .IP "\fB\-mno\-abshi\fR" 4
  19929. .IX Item "-mno-abshi"
  19930. Do not use \f(CW\*(C`abshi2\*(C'\fR pattern.
  19931. .IP "\fB\-mbranch\-expensive\fR" 4
  19932. .IX Item "-mbranch-expensive"
  19933. Pretend that branches are expensive. This is for experimenting with
  19934. code generation only.
  19935. .IP "\fB\-mbranch\-cheap\fR" 4
  19936. .IX Item "-mbranch-cheap"
  19937. Do not pretend that branches are expensive. This is the default.
  19938. .IP "\fB\-munix\-asm\fR" 4
  19939. .IX Item "-munix-asm"
  19940. Use Unix assembler syntax. This is the default when configured for
  19941. \&\fBpdp11\-*\-bsd\fR.
  19942. .IP "\fB\-mdec\-asm\fR" 4
  19943. .IX Item "-mdec-asm"
  19944. Use \s-1DEC\s0 assembler syntax. This is the default when configured for any
  19945. \&\s-1PDP\-11\s0 target other than \fBpdp11\-*\-bsd\fR.
  19946. .PP
  19947. \fIpicoChip Options\fR
  19948. .IX Subsection "picoChip Options"
  19949. .PP
  19950. These \fB\-m\fR options are defined for picoChip implementations:
  19951. .IP "\fB\-mae=\fR\fIae_type\fR" 4
  19952. .IX Item "-mae=ae_type"
  19953. Set the instruction set, register set, and instruction scheduling
  19954. parameters for array element type \fIae_type\fR. Supported values
  19955. for \fIae_type\fR are \fB\s-1ANY\s0\fR, \fB\s-1MUL\s0\fR, and \fB\s-1MAC\s0\fR.
  19956. .Sp
  19957. \&\fB\-mae=ANY\fR selects a completely generic \s-1AE\s0 type. Code
  19958. generated with this option runs on any of the other \s-1AE\s0 types. The
  19959. code is not as efficient as it would be if compiled for a specific
  19960. \&\s-1AE\s0 type, and some types of operation (e.g., multiplication) do not
  19961. work properly on all types of \s-1AE.\s0
  19962. .Sp
  19963. \&\fB\-mae=MUL\fR selects a \s-1MUL AE\s0 type. This is the most useful \s-1AE\s0 type
  19964. for compiled code, and is the default.
  19965. .Sp
  19966. \&\fB\-mae=MAC\fR selects a DSP-style \s-1MAC AE. \s0 Code compiled with this
  19967. option may suffer from poor performance of byte (char) manipulation,
  19968. since the \s-1DSP AE\s0 does not provide hardware support for byte load/stores.
  19969. .IP "\fB\-msymbol\-as\-address\fR" 4
  19970. .IX Item "-msymbol-as-address"
  19971. Enable the compiler to directly use a symbol name as an address in a
  19972. load/store instruction, without first loading it into a
  19973. register. Typically, the use of this option generates larger
  19974. programs, which run faster than when the option isn't used. However, the
  19975. results vary from program to program, so it is left as a user option,
  19976. rather than being permanently enabled.
  19977. .IP "\fB\-mno\-inefficient\-warnings\fR" 4
  19978. .IX Item "-mno-inefficient-warnings"
  19979. Disables warnings about the generation of inefficient code. These
  19980. warnings can be generated, for example, when compiling code that
  19981. performs byte-level memory operations on the \s-1MAC AE\s0 type. The \s-1MAC AE\s0 has
  19982. no hardware support for byte-level memory operations, so all byte
  19983. load/stores must be synthesized from word load/store operations. This is
  19984. inefficient and a warning is generated to indicate
  19985. that you should rewrite the code to avoid byte operations, or to target
  19986. an \s-1AE\s0 type that has the necessary hardware support. This option disables
  19987. these warnings.
  19988. .PP
  19989. \fIPowerPC Options\fR
  19990. .IX Subsection "PowerPC Options"
  19991. .PP
  19992. These are listed under
  19993. .PP
  19994. \fIRISC-V Options\fR
  19995. .IX Subsection "RISC-V Options"
  19996. .PP
  19997. These command-line options are defined for RISC-V targets:
  19998. .IP "\fB\-mbranch\-cost=\fR\fIn\fR" 4
  19999. .IX Item "-mbranch-cost=n"
  20000. Set the cost of branches to roughly \fIn\fR instructions.
  20001. .IP "\fB\-mplt\fR" 4
  20002. .IX Item "-mplt"
  20003. .PD 0
  20004. .IP "\fB\-mno\-plt\fR" 4
  20005. .IX Item "-mno-plt"
  20006. .PD
  20007. When generating \s-1PIC\s0 code, do or don't allow the use of PLTs. Ignored for
  20008. non-PIC. The default is \fB\-mplt\fR.
  20009. .IP "\fB\-mabi=\fR\fIABI-string\fR" 4
  20010. .IX Item "-mabi=ABI-string"
  20011. Specify integer and floating-point calling convention. \fIABI-string\fR
  20012. contains two parts: the size of integer types and the registers used for
  20013. floating-point types. For example \fB\-march=rv64ifd \-mabi=lp64d\fR means that
  20014. \&\fBlong\fR and pointers are 64\-bit (implicitly defining \fBint\fR to be
  20015. 32\-bit), and that floating-point values up to 64 bits wide are passed in F
  20016. registers. Contrast this with \fB\-march=rv64ifd \-mabi=lp64f\fR, which still
  20017. allows the compiler to generate code that uses the F and D extensions but only
  20018. allows floating-point values up to 32 bits long to be passed in registers; or
  20019. \&\fB\-march=rv64ifd \-mabi=lp64\fR, in which no floating-point arguments will be
  20020. passed in registers.
  20021. .Sp
  20022. The default for this argument is system dependent, users who want a specific
  20023. calling convention should specify one explicitly. The valid calling
  20024. conventions are: \fBilp32\fR, \fBilp32f\fR, \fBilp32d\fR, \fBlp64\fR,
  20025. \&\fBlp64f\fR, and \fBlp64d\fR. Some calling conventions are impossible to
  20026. implement on some ISAs: for example, \fB\-march=rv32if \-mabi=ilp32d\fR is
  20027. invalid because the \s-1ABI\s0 requires 64\-bit values be passed in F registers, but F
  20028. registers are only 32 bits wide.
  20029. .IP "\fB\-mfdiv\fR" 4
  20030. .IX Item "-mfdiv"
  20031. .PD 0
  20032. .IP "\fB\-mno\-fdiv\fR" 4
  20033. .IX Item "-mno-fdiv"
  20034. .PD
  20035. Do or don't use hardware floating-point divide and square root instructions.
  20036. This requires the F or D extensions for floating-point registers. The default
  20037. is to use them if the specified architecture has these instructions.
  20038. .IP "\fB\-mdiv\fR" 4
  20039. .IX Item "-mdiv"
  20040. .PD 0
  20041. .IP "\fB\-mno\-div\fR" 4
  20042. .IX Item "-mno-div"
  20043. .PD
  20044. Do or don't use hardware instructions for integer division. This requires the
  20045. M extension. The default is to use them if the specified architecture has
  20046. these instructions.
  20047. .IP "\fB\-march=\fR\fIISA-string\fR" 4
  20048. .IX Item "-march=ISA-string"
  20049. Generate code for given RISC-V \s-1ISA \s0(e.g. \fBrv64im\fR). \s-1ISA\s0 strings must be
  20050. lower-case. Examples include \fBrv64i\fR, \fBrv32g\fR, and \fBrv32imaf\fR.
  20051. .IP "\fB\-mtune=\fR\fIprocessor-string\fR" 4
  20052. .IX Item "-mtune=processor-string"
  20053. Optimize the output for the given processor, specified by microarchitecture
  20054. name.
  20055. .IP "\fB\-msmall\-data\-limit=\fR\fIn\fR" 4
  20056. .IX Item "-msmall-data-limit=n"
  20057. Put global and static data smaller than \fIn\fR bytes into a special section
  20058. (on some targets).
  20059. .IP "\fB\-msave\-restore\fR" 4
  20060. .IX Item "-msave-restore"
  20061. .PD 0
  20062. .IP "\fB\-mno\-save\-restore\fR" 4
  20063. .IX Item "-mno-save-restore"
  20064. .PD
  20065. Do or don't use smaller but slower prologue and epilogue code that uses
  20066. library function calls. The default is to use fast inline prologues and
  20067. epilogues.
  20068. .IP "\fB\-mstrict\-align\fR" 4
  20069. .IX Item "-mstrict-align"
  20070. .PD 0
  20071. .IP "\fB\-mno\-strict\-align\fR" 4
  20072. .IX Item "-mno-strict-align"
  20073. .PD
  20074. Do not or do generate unaligned memory accesses. The default is set depending
  20075. on whether the processor we are optimizing for supports fast unaligned access
  20076. or not.
  20077. .IP "\fB\-mcmodel=medlow\fR" 4
  20078. .IX Item "-mcmodel=medlow"
  20079. Generate code for the medium-low code model. The program and its statically
  20080. defined symbols must lie within a single 2 GiB address range and must lie
  20081. between absolute addresses \-2 GiB and +2 GiB. Programs can be
  20082. statically or dynamically linked. This is the default code model.
  20083. .IP "\fB\-mcmodel=medany\fR" 4
  20084. .IX Item "-mcmodel=medany"
  20085. Generate code for the medium-any code model. The program and its statically
  20086. defined symbols must be within any single 2 GiB address range. Programs can be
  20087. statically or dynamically linked.
  20088. .IP "\fB\-mexplicit\-relocs\fR" 4
  20089. .IX Item "-mexplicit-relocs"
  20090. .PD 0
  20091. .IP "\fB\-mno\-exlicit\-relocs\fR" 4
  20092. .IX Item "-mno-exlicit-relocs"
  20093. .PD
  20094. Use or do not use assembler relocation operators when dealing with symbolic
  20095. addresses. The alternative is to use assembler macros instead, which may
  20096. limit optimization.
  20097. .PP
  20098. \fI\s-1RL78\s0 Options\fR
  20099. .IX Subsection "RL78 Options"
  20100. .IP "\fB\-msim\fR" 4
  20101. .IX Item "-msim"
  20102. Links in additional target libraries to support operation within a
  20103. simulator.
  20104. .IP "\fB\-mmul=none\fR" 4
  20105. .IX Item "-mmul=none"
  20106. .PD 0
  20107. .IP "\fB\-mmul=g10\fR" 4
  20108. .IX Item "-mmul=g10"
  20109. .IP "\fB\-mmul=g13\fR" 4
  20110. .IX Item "-mmul=g13"
  20111. .IP "\fB\-mmul=g14\fR" 4
  20112. .IX Item "-mmul=g14"
  20113. .IP "\fB\-mmul=rl78\fR" 4
  20114. .IX Item "-mmul=rl78"
  20115. .PD
  20116. Specifies the type of hardware multiplication and division support to
  20117. be used. The simplest is \f(CW\*(C`none\*(C'\fR, which uses software for both
  20118. multiplication and division. This is the default. The \f(CW\*(C`g13\*(C'\fR
  20119. value is for the hardware multiply/divide peripheral found on the
  20120. \&\s-1RL78/G13 \s0(S2 core) targets. The \f(CW\*(C`g14\*(C'\fR value selects the use of
  20121. the multiplication and division instructions supported by the \s-1RL78/G14
  20122. \&\s0(S3 core) parts. The value \f(CW\*(C`rl78\*(C'\fR is an alias for \f(CW\*(C`g14\*(C'\fR and
  20123. the value \f(CW\*(C`mg10\*(C'\fR is an alias for \f(CW\*(C`none\*(C'\fR.
  20124. .Sp
  20125. In addition a C preprocessor macro is defined, based upon the setting
  20126. of this option. Possible values are: \f(CW\*(C`_\|_RL78_MUL_NONE_\|_\*(C'\fR,
  20127. \&\f(CW\*(C`_\|_RL78_MUL_G13_\|_\*(C'\fR or \f(CW\*(C`_\|_RL78_MUL_G14_\|_\*(C'\fR.
  20128. .IP "\fB\-mcpu=g10\fR" 4
  20129. .IX Item "-mcpu=g10"
  20130. .PD 0
  20131. .IP "\fB\-mcpu=g13\fR" 4
  20132. .IX Item "-mcpu=g13"
  20133. .IP "\fB\-mcpu=g14\fR" 4
  20134. .IX Item "-mcpu=g14"
  20135. .IP "\fB\-mcpu=rl78\fR" 4
  20136. .IX Item "-mcpu=rl78"
  20137. .PD
  20138. Specifies the \s-1RL78\s0 core to target. The default is the G14 core, also
  20139. known as an S3 core or just \s-1RL78. \s0 The G13 or S2 core does not have
  20140. multiply or divide instructions, instead it uses a hardware peripheral
  20141. for these operations. The G10 or S1 core does not have register
  20142. banks, so it uses a different calling convention.
  20143. .Sp
  20144. If this option is set it also selects the type of hardware multiply
  20145. support to use, unless this is overridden by an explicit
  20146. \&\fB\-mmul=none\fR option on the command line. Thus specifying
  20147. \&\fB\-mcpu=g13\fR enables the use of the G13 hardware multiply
  20148. peripheral and specifying \fB\-mcpu=g10\fR disables the use of
  20149. hardware multiplications altogether.
  20150. .Sp
  20151. Note, although the \s-1RL78/G14\s0 core is the default target, specifying
  20152. \&\fB\-mcpu=g14\fR or \fB\-mcpu=rl78\fR on the command line does
  20153. change the behavior of the toolchain since it also enables G14
  20154. hardware multiply support. If these options are not specified on the
  20155. command line then software multiplication routines will be used even
  20156. though the code targets the \s-1RL78\s0 core. This is for backwards
  20157. compatibility with older toolchains which did not have hardware
  20158. multiply and divide support.
  20159. .Sp
  20160. In addition a C preprocessor macro is defined, based upon the setting
  20161. of this option. Possible values are: \f(CW\*(C`_\|_RL78_G10_\|_\*(C'\fR,
  20162. \&\f(CW\*(C`_\|_RL78_G13_\|_\*(C'\fR or \f(CW\*(C`_\|_RL78_G14_\|_\*(C'\fR.
  20163. .IP "\fB\-mg10\fR" 4
  20164. .IX Item "-mg10"
  20165. .PD 0
  20166. .IP "\fB\-mg13\fR" 4
  20167. .IX Item "-mg13"
  20168. .IP "\fB\-mg14\fR" 4
  20169. .IX Item "-mg14"
  20170. .IP "\fB\-mrl78\fR" 4
  20171. .IX Item "-mrl78"
  20172. .PD
  20173. These are aliases for the corresponding \fB\-mcpu=\fR option. They
  20174. are provided for backwards compatibility.
  20175. .IP "\fB\-mallregs\fR" 4
  20176. .IX Item "-mallregs"
  20177. Allow the compiler to use all of the available registers. By default
  20178. registers \f(CW\*(C`r24..r31\*(C'\fR are reserved for use in interrupt handlers.
  20179. With this option enabled these registers can be used in ordinary
  20180. functions as well.
  20181. .IP "\fB\-m64bit\-doubles\fR" 4
  20182. .IX Item "-m64bit-doubles"
  20183. .PD 0
  20184. .IP "\fB\-m32bit\-doubles\fR" 4
  20185. .IX Item "-m32bit-doubles"
  20186. .PD
  20187. Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
  20188. or 32 bits (\fB\-m32bit\-doubles\fR) in size. The default is
  20189. \&\fB\-m32bit\-doubles\fR.
  20190. .IP "\fB\-msave\-mduc\-in\-interrupts\fR" 4
  20191. .IX Item "-msave-mduc-in-interrupts"
  20192. .PD 0
  20193. .IP "\fB\-mno\-save\-mduc\-in\-interrupts\fR" 4
  20194. .IX Item "-mno-save-mduc-in-interrupts"
  20195. .PD
  20196. Specifies that interrupt handler functions should preserve the
  20197. \&\s-1MDUC\s0 registers. This is only necessary if normal code might use
  20198. the \s-1MDUC\s0 registers, for example because it performs multiplication
  20199. and division operations. The default is to ignore the \s-1MDUC\s0 registers
  20200. as this makes the interrupt handlers faster. The target option \-mg13
  20201. needs to be passed for this to work as this feature is only available
  20202. on the G13 target (S2 core). The \s-1MDUC\s0 registers will only be saved
  20203. if the interrupt handler performs a multiplication or division
  20204. operation or it calls another function.
  20205. .PP
  20206. \fI\s-1IBM RS/6000\s0 and PowerPC Options\fR
  20207. .IX Subsection "IBM RS/6000 and PowerPC Options"
  20208. .PP
  20209. These \fB\-m\fR options are defined for the \s-1IBM RS/6000\s0 and PowerPC:
  20210. .IP "\fB\-mpowerpc\-gpopt\fR" 4
  20211. .IX Item "-mpowerpc-gpopt"
  20212. .PD 0
  20213. .IP "\fB\-mno\-powerpc\-gpopt\fR" 4
  20214. .IX Item "-mno-powerpc-gpopt"
  20215. .IP "\fB\-mpowerpc\-gfxopt\fR" 4
  20216. .IX Item "-mpowerpc-gfxopt"
  20217. .IP "\fB\-mno\-powerpc\-gfxopt\fR" 4
  20218. .IX Item "-mno-powerpc-gfxopt"
  20219. .IP "\fB\-mpowerpc64\fR" 4
  20220. .IX Item "-mpowerpc64"
  20221. .IP "\fB\-mno\-powerpc64\fR" 4
  20222. .IX Item "-mno-powerpc64"
  20223. .IP "\fB\-mmfcrf\fR" 4
  20224. .IX Item "-mmfcrf"
  20225. .IP "\fB\-mno\-mfcrf\fR" 4
  20226. .IX Item "-mno-mfcrf"
  20227. .IP "\fB\-mpopcntb\fR" 4
  20228. .IX Item "-mpopcntb"
  20229. .IP "\fB\-mno\-popcntb\fR" 4
  20230. .IX Item "-mno-popcntb"
  20231. .IP "\fB\-mpopcntd\fR" 4
  20232. .IX Item "-mpopcntd"
  20233. .IP "\fB\-mno\-popcntd\fR" 4
  20234. .IX Item "-mno-popcntd"
  20235. .IP "\fB\-mfprnd\fR" 4
  20236. .IX Item "-mfprnd"
  20237. .IP "\fB\-mno\-fprnd\fR" 4
  20238. .IX Item "-mno-fprnd"
  20239. .IP "\fB\-mcmpb\fR" 4
  20240. .IX Item "-mcmpb"
  20241. .IP "\fB\-mno\-cmpb\fR" 4
  20242. .IX Item "-mno-cmpb"
  20243. .IP "\fB\-mmfpgpr\fR" 4
  20244. .IX Item "-mmfpgpr"
  20245. .IP "\fB\-mno\-mfpgpr\fR" 4
  20246. .IX Item "-mno-mfpgpr"
  20247. .IP "\fB\-mhard\-dfp\fR" 4
  20248. .IX Item "-mhard-dfp"
  20249. .IP "\fB\-mno\-hard\-dfp\fR" 4
  20250. .IX Item "-mno-hard-dfp"
  20251. .PD
  20252. You use these options to specify which instructions are available on the
  20253. processor you are using. The default value of these options is
  20254. determined when configuring \s-1GCC. \s0 Specifying the
  20255. \&\fB\-mcpu=\fR\fIcpu_type\fR overrides the specification of these
  20256. options. We recommend you use the \fB\-mcpu=\fR\fIcpu_type\fR option
  20257. rather than the options listed above.
  20258. .Sp
  20259. Specifying \fB\-mpowerpc\-gpopt\fR allows
  20260. \&\s-1GCC\s0 to use the optional PowerPC architecture instructions in the
  20261. General Purpose group, including floating-point square root. Specifying
  20262. \&\fB\-mpowerpc\-gfxopt\fR allows \s-1GCC\s0 to
  20263. use the optional PowerPC architecture instructions in the Graphics
  20264. group, including floating-point select.
  20265. .Sp
  20266. The \fB\-mmfcrf\fR option allows \s-1GCC\s0 to generate the move from
  20267. condition register field instruction implemented on the \s-1POWER4\s0
  20268. processor and other processors that support the PowerPC V2.01
  20269. architecture.
  20270. The \fB\-mpopcntb\fR option allows \s-1GCC\s0 to generate the popcount and
  20271. double-precision \s-1FP\s0 reciprocal estimate instruction implemented on the
  20272. \&\s-1POWER5\s0 processor and other processors that support the PowerPC V2.02
  20273. architecture.
  20274. The \fB\-mpopcntd\fR option allows \s-1GCC\s0 to generate the popcount
  20275. instruction implemented on the \s-1POWER7\s0 processor and other processors
  20276. that support the PowerPC V2.06 architecture.
  20277. The \fB\-mfprnd\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 round to
  20278. integer instructions implemented on the \s-1POWER5+\s0 processor and other
  20279. processors that support the PowerPC V2.03 architecture.
  20280. The \fB\-mcmpb\fR option allows \s-1GCC\s0 to generate the compare bytes
  20281. instruction implemented on the \s-1POWER6\s0 processor and other processors
  20282. that support the PowerPC V2.05 architecture.
  20283. The \fB\-mmfpgpr\fR option allows \s-1GCC\s0 to generate the \s-1FP\s0 move to/from
  20284. general-purpose register instructions implemented on the \s-1POWER6X\s0
  20285. processor and other processors that support the extended PowerPC V2.05
  20286. architecture.
  20287. The \fB\-mhard\-dfp\fR option allows \s-1GCC\s0 to generate the decimal
  20288. floating-point instructions implemented on some \s-1POWER\s0 processors.
  20289. .Sp
  20290. The \fB\-mpowerpc64\fR option allows \s-1GCC\s0 to generate the additional
  20291. 64\-bit instructions that are found in the full PowerPC64 architecture
  20292. and to treat GPRs as 64\-bit, doubleword quantities. \s-1GCC\s0 defaults to
  20293. \&\fB\-mno\-powerpc64\fR.
  20294. .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
  20295. .IX Item "-mcpu=cpu_type"
  20296. Set architecture type, register usage, and
  20297. instruction scheduling parameters for machine type \fIcpu_type\fR.
  20298. Supported values for \fIcpu_type\fR are \fB401\fR, \fB403\fR,
  20299. \&\fB405\fR, \fB405fp\fR, \fB440\fR, \fB440fp\fR, \fB464\fR, \fB464fp\fR,
  20300. \&\fB476\fR, \fB476fp\fR, \fB505\fR, \fB601\fR, \fB602\fR, \fB603\fR,
  20301. \&\fB603e\fR, \fB604\fR, \fB604e\fR, \fB620\fR, \fB630\fR, \fB740\fR,
  20302. \&\fB7400\fR, \fB7450\fR, \fB750\fR, \fB801\fR, \fB821\fR, \fB823\fR,
  20303. \&\fB860\fR, \fB970\fR, \fB8540\fR, \fBa2\fR, \fBe300c2\fR,
  20304. \&\fBe300c3\fR, \fBe500mc\fR, \fBe500mc64\fR, \fBe5500\fR,
  20305. \&\fBe6500\fR, \fBec603e\fR, \fBG3\fR, \fBG4\fR, \fBG5\fR,
  20306. \&\fBtitan\fR, \fBpower3\fR, \fBpower4\fR, \fBpower5\fR, \fBpower5+\fR,
  20307. \&\fBpower6\fR, \fBpower6x\fR, \fBpower7\fR, \fBpower8\fR,
  20308. \&\fBpower9\fR, \fBpowerpc\fR, \fBpowerpc64\fR, \fBpowerpc64le\fR,
  20309. and \fBrs64\fR.
  20310. .Sp
  20311. \&\fB\-mcpu=powerpc\fR, \fB\-mcpu=powerpc64\fR, and
  20312. \&\fB\-mcpu=powerpc64le\fR specify pure 32\-bit PowerPC (either
  20313. endian), 64\-bit big endian PowerPC and 64\-bit little endian PowerPC
  20314. architecture machine types, with an appropriate, generic processor
  20315. model assumed for scheduling purposes.
  20316. .Sp
  20317. The other options specify a specific processor. Code generated under
  20318. those options runs best on that processor, and may not run at all on
  20319. others.
  20320. .Sp
  20321. The \fB\-mcpu\fR options automatically enable or disable the
  20322. following options:
  20323. .Sp
  20324. \&\fB\-maltivec \-mfprnd \-mhard\-float \-mmfcrf \-mmultiple
  20325. \&\-mpopcntb \-mpopcntd \-mpowerpc64
  20326. \&\-mpowerpc\-gpopt \-mpowerpc\-gfxopt \-msingle\-float \-mdouble\-float
  20327. \&\-msimple\-fpu \-mstring \-mmulhw \-mdlmzb \-mmfpgpr \-mvsx
  20328. \&\-mcrypto \-mdirect\-move \-mhtm \-mpower8\-fusion \-mpower8\-vector
  20329. \&\-mquad\-memory \-mquad\-memory\-atomic \-mfloat128 \-mfloat128\-hardware\fR
  20330. .Sp
  20331. The particular options set for any particular \s-1CPU\s0 varies between
  20332. compiler versions, depending on what setting seems to produce optimal
  20333. code for that \s-1CPU\s0; it doesn't necessarily reflect the actual hardware's
  20334. capabilities. If you wish to set an individual option to a particular
  20335. value, you may specify it after the \fB\-mcpu\fR option, like
  20336. \&\fB\-mcpu=970 \-mno\-altivec\fR.
  20337. .Sp
  20338. On \s-1AIX,\s0 the \fB\-maltivec\fR and \fB\-mpowerpc64\fR options are
  20339. not enabled or disabled by the \fB\-mcpu\fR option at present because
  20340. \&\s-1AIX\s0 does not have full support for these options. You may still
  20341. enable or disable them individually if you're sure it'll work in your
  20342. environment.
  20343. .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
  20344. .IX Item "-mtune=cpu_type"
  20345. Set the instruction scheduling parameters for machine type
  20346. \&\fIcpu_type\fR, but do not set the architecture type or register usage,
  20347. as \fB\-mcpu=\fR\fIcpu_type\fR does. The same
  20348. values for \fIcpu_type\fR are used for \fB\-mtune\fR as for
  20349. \&\fB\-mcpu\fR. If both are specified, the code generated uses the
  20350. architecture and registers set by \fB\-mcpu\fR, but the
  20351. scheduling parameters set by \fB\-mtune\fR.
  20352. .IP "\fB\-mcmodel=small\fR" 4
  20353. .IX Item "-mcmodel=small"
  20354. Generate PowerPC64 code for the small model: The \s-1TOC\s0 is limited to
  20355. 64k.
  20356. .IP "\fB\-mcmodel=medium\fR" 4
  20357. .IX Item "-mcmodel=medium"
  20358. Generate PowerPC64 code for the medium model: The \s-1TOC\s0 and other static
  20359. data may be up to a total of 4G in size. This is the default for 64\-bit
  20360. Linux.
  20361. .IP "\fB\-mcmodel=large\fR" 4
  20362. .IX Item "-mcmodel=large"
  20363. Generate PowerPC64 code for the large model: The \s-1TOC\s0 may be up to 4G
  20364. in size. Other data and code is only limited by the 64\-bit address
  20365. space.
  20366. .IP "\fB\-maltivec\fR" 4
  20367. .IX Item "-maltivec"
  20368. .PD 0
  20369. .IP "\fB\-mno\-altivec\fR" 4
  20370. .IX Item "-mno-altivec"
  20371. .PD
  20372. Generate code that uses (does not use) AltiVec instructions, and also
  20373. enable the use of built-in functions that allow more direct access to
  20374. the AltiVec instruction set. You may also need to set
  20375. \&\fB\-mabi=altivec\fR to adjust the current \s-1ABI\s0 with AltiVec \s-1ABI\s0
  20376. enhancements.
  20377. .Sp
  20378. When \fB\-maltivec\fR is used, rather than \fB\-maltivec=le\fR or
  20379. \&\fB\-maltivec=be\fR, the element order for AltiVec intrinsics such
  20380. as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and \f(CW\*(C`vec_insert\*(C'\fR
  20381. match array element order corresponding to the endianness of the
  20382. target. That is, element zero identifies the leftmost element in a
  20383. vector register when targeting a big-endian platform, and identifies
  20384. the rightmost element in a vector register when targeting a
  20385. little-endian platform.
  20386. .IP "\fB\-maltivec=be\fR" 4
  20387. .IX Item "-maltivec=be"
  20388. Generate AltiVec instructions using big-endian element order,
  20389. regardless of whether the target is big\- or little-endian. This is
  20390. the default when targeting a big-endian platform.
  20391. .Sp
  20392. The element order is used to interpret element numbers in AltiVec
  20393. intrinsics such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and
  20394. \&\f(CW\*(C`vec_insert\*(C'\fR. By default, these match array element order
  20395. corresponding to the endianness for the target.
  20396. .IP "\fB\-maltivec=le\fR" 4
  20397. .IX Item "-maltivec=le"
  20398. Generate AltiVec instructions using little-endian element order,
  20399. regardless of whether the target is big\- or little-endian. This is
  20400. the default when targeting a little-endian platform. This option is
  20401. currently ignored when targeting a big-endian platform.
  20402. .Sp
  20403. The element order is used to interpret element numbers in AltiVec
  20404. intrinsics such as \f(CW\*(C`vec_splat\*(C'\fR, \f(CW\*(C`vec_extract\*(C'\fR, and
  20405. \&\f(CW\*(C`vec_insert\*(C'\fR. By default, these match array element order
  20406. corresponding to the endianness for the target.
  20407. .IP "\fB\-mvrsave\fR" 4
  20408. .IX Item "-mvrsave"
  20409. .PD 0
  20410. .IP "\fB\-mno\-vrsave\fR" 4
  20411. .IX Item "-mno-vrsave"
  20412. .PD
  20413. Generate \s-1VRSAVE\s0 instructions when generating AltiVec code.
  20414. .IP "\fB\-mgen\-cell\-microcode\fR" 4
  20415. .IX Item "-mgen-cell-microcode"
  20416. Generate Cell microcode instructions.
  20417. .IP "\fB\-mwarn\-cell\-microcode\fR" 4
  20418. .IX Item "-mwarn-cell-microcode"
  20419. Warn when a Cell microcode instruction is emitted. An example
  20420. of a Cell microcode instruction is a variable shift.
  20421. .IP "\fB\-msecure\-plt\fR" 4
  20422. .IX Item "-msecure-plt"
  20423. Generate code that allows \fBld\fR and \fBld.so\fR
  20424. to build executables and shared
  20425. libraries with non-executable \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR sections.
  20426. This is a PowerPC
  20427. 32\-bit \s-1SYSV ABI\s0 option.
  20428. .IP "\fB\-mbss\-plt\fR" 4
  20429. .IX Item "-mbss-plt"
  20430. Generate code that uses a \s-1BSS \s0\f(CW\*(C`.plt\*(C'\fR section that \fBld.so\fR
  20431. fills in, and
  20432. requires \f(CW\*(C`.plt\*(C'\fR and \f(CW\*(C`.got\*(C'\fR
  20433. sections that are both writable and executable.
  20434. This is a PowerPC 32\-bit \s-1SYSV ABI\s0 option.
  20435. .IP "\fB\-misel\fR" 4
  20436. .IX Item "-misel"
  20437. .PD 0
  20438. .IP "\fB\-mno\-isel\fR" 4
  20439. .IX Item "-mno-isel"
  20440. .PD
  20441. This switch enables or disables the generation of \s-1ISEL\s0 instructions.
  20442. .IP "\fB\-misel=\fR\fIyes/no\fR" 4
  20443. .IX Item "-misel=yes/no"
  20444. This switch has been deprecated. Use \fB\-misel\fR and
  20445. \&\fB\-mno\-isel\fR instead.
  20446. .IP "\fB\-mlra\fR" 4
  20447. .IX Item "-mlra"
  20448. Enable Local Register Allocation. By default the port uses \s-1LRA.
  20449. \&\s0(i.e. \fB\-mno\-lra\fR).
  20450. .IP "\fB\-mspe\fR" 4
  20451. .IX Item "-mspe"
  20452. .PD 0
  20453. .IP "\fB\-mno\-spe\fR" 4
  20454. .IX Item "-mno-spe"
  20455. .PD
  20456. This switch enables or disables the generation of \s-1SPE\s0 simd
  20457. instructions.
  20458. .IP "\fB\-mpaired\fR" 4
  20459. .IX Item "-mpaired"
  20460. .PD 0
  20461. .IP "\fB\-mno\-paired\fR" 4
  20462. .IX Item "-mno-paired"
  20463. .PD
  20464. This switch enables or disables the generation of \s-1PAIRED\s0 simd
  20465. instructions.
  20466. .IP "\fB\-mspe=\fR\fIyes/no\fR" 4
  20467. .IX Item "-mspe=yes/no"
  20468. This option has been deprecated. Use \fB\-mspe\fR and
  20469. \&\fB\-mno\-spe\fR instead.
  20470. .IP "\fB\-mvsx\fR" 4
  20471. .IX Item "-mvsx"
  20472. .PD 0
  20473. .IP "\fB\-mno\-vsx\fR" 4
  20474. .IX Item "-mno-vsx"
  20475. .PD
  20476. Generate code that uses (does not use) vector/scalar (\s-1VSX\s0)
  20477. instructions, and also enable the use of built-in functions that allow
  20478. more direct access to the \s-1VSX\s0 instruction set.
  20479. .IP "\fB\-mcrypto\fR" 4
  20480. .IX Item "-mcrypto"
  20481. .PD 0
  20482. .IP "\fB\-mno\-crypto\fR" 4
  20483. .IX Item "-mno-crypto"
  20484. .PD
  20485. Enable the use (disable) of the built-in functions that allow direct
  20486. access to the cryptographic instructions that were added in version
  20487. 2.07 of the PowerPC \s-1ISA.\s0
  20488. .IP "\fB\-mdirect\-move\fR" 4
  20489. .IX Item "-mdirect-move"
  20490. .PD 0
  20491. .IP "\fB\-mno\-direct\-move\fR" 4
  20492. .IX Item "-mno-direct-move"
  20493. .PD
  20494. Generate code that uses (does not use) the instructions to move data
  20495. between the general purpose registers and the vector/scalar (\s-1VSX\s0)
  20496. registers that were added in version 2.07 of the PowerPC \s-1ISA.\s0
  20497. .IP "\fB\-mhtm\fR" 4
  20498. .IX Item "-mhtm"
  20499. .PD 0
  20500. .IP "\fB\-mno\-htm\fR" 4
  20501. .IX Item "-mno-htm"
  20502. .PD
  20503. Enable (disable) the use of the built-in functions that allow direct
  20504. access to the Hardware Transactional Memory (\s-1HTM\s0) instructions that
  20505. were added in version 2.07 of the PowerPC \s-1ISA.\s0
  20506. .IP "\fB\-mpower8\-fusion\fR" 4
  20507. .IX Item "-mpower8-fusion"
  20508. .PD 0
  20509. .IP "\fB\-mno\-power8\-fusion\fR" 4
  20510. .IX Item "-mno-power8-fusion"
  20511. .PD
  20512. Generate code that keeps (does not keeps) some integer operations
  20513. adjacent so that the instructions can be fused together on power8 and
  20514. later processors.
  20515. .IP "\fB\-mpower8\-vector\fR" 4
  20516. .IX Item "-mpower8-vector"
  20517. .PD 0
  20518. .IP "\fB\-mno\-power8\-vector\fR" 4
  20519. .IX Item "-mno-power8-vector"
  20520. .PD
  20521. Generate code that uses (does not use) the vector and scalar
  20522. instructions that were added in version 2.07 of the PowerPC \s-1ISA. \s0 Also
  20523. enable the use of built-in functions that allow more direct access to
  20524. the vector instructions.
  20525. .IP "\fB\-mquad\-memory\fR" 4
  20526. .IX Item "-mquad-memory"
  20527. .PD 0
  20528. .IP "\fB\-mno\-quad\-memory\fR" 4
  20529. .IX Item "-mno-quad-memory"
  20530. .PD
  20531. Generate code that uses (does not use) the non-atomic quad word memory
  20532. instructions. The \fB\-mquad\-memory\fR option requires use of
  20533. 64\-bit mode.
  20534. .IP "\fB\-mquad\-memory\-atomic\fR" 4
  20535. .IX Item "-mquad-memory-atomic"
  20536. .PD 0
  20537. .IP "\fB\-mno\-quad\-memory\-atomic\fR" 4
  20538. .IX Item "-mno-quad-memory-atomic"
  20539. .PD
  20540. Generate code that uses (does not use) the atomic quad word memory
  20541. instructions. The \fB\-mquad\-memory\-atomic\fR option requires use of
  20542. 64\-bit mode.
  20543. .IP "\fB\-mupper\-regs\-di\fR" 4
  20544. .IX Item "-mupper-regs-di"
  20545. .PD 0
  20546. .IP "\fB\-mno\-upper\-regs\-di\fR" 4
  20547. .IX Item "-mno-upper-regs-di"
  20548. .PD
  20549. Generate code that uses (does not use) the scalar instructions that
  20550. target all 64 registers in the vector/scalar floating point register
  20551. set that were added in version 2.06 of the PowerPC \s-1ISA\s0 when processing
  20552. integers. \fB\-mupper\-regs\-di\fR is turned on by default if you use
  20553. any of the \fB\-mcpu=power7\fR, \fB\-mcpu=power8\fR,
  20554. \&\fB\-mcpu=power9\fR, or \fB\-mvsx\fR options.
  20555. .IP "\fB\-mupper\-regs\-df\fR" 4
  20556. .IX Item "-mupper-regs-df"
  20557. .PD 0
  20558. .IP "\fB\-mno\-upper\-regs\-df\fR" 4
  20559. .IX Item "-mno-upper-regs-df"
  20560. .PD
  20561. Generate code that uses (does not use) the scalar double precision
  20562. instructions that target all 64 registers in the vector/scalar
  20563. floating point register set that were added in version 2.06 of the
  20564. PowerPC \s-1ISA. \s0\fB\-mupper\-regs\-df\fR is turned on by default if you
  20565. use any of the \fB\-mcpu=power7\fR, \fB\-mcpu=power8\fR,
  20566. \&\fB\-mcpu=power9\fR, or \fB\-mvsx\fR options.
  20567. .IP "\fB\-mupper\-regs\-sf\fR" 4
  20568. .IX Item "-mupper-regs-sf"
  20569. .PD 0
  20570. .IP "\fB\-mno\-upper\-regs\-sf\fR" 4
  20571. .IX Item "-mno-upper-regs-sf"
  20572. .PD
  20573. Generate code that uses (does not use) the scalar single precision
  20574. instructions that target all 64 registers in the vector/scalar
  20575. floating point register set that were added in version 2.07 of the
  20576. PowerPC \s-1ISA. \s0\fB\-mupper\-regs\-sf\fR is turned on by default if you
  20577. use either of the \fB\-mcpu=power8\fR, \fB\-mpower8\-vector\fR, or
  20578. \&\fB\-mcpu=power9\fR options.
  20579. .IP "\fB\-mupper\-regs\fR" 4
  20580. .IX Item "-mupper-regs"
  20581. .PD 0
  20582. .IP "\fB\-mno\-upper\-regs\fR" 4
  20583. .IX Item "-mno-upper-regs"
  20584. .PD
  20585. Generate code that uses (does not use) the scalar
  20586. instructions that target all 64 registers in the vector/scalar
  20587. floating point register set, depending on the model of the machine.
  20588. .Sp
  20589. If the \fB\-mno\-upper\-regs\fR option is used, it turns off both
  20590. \&\fB\-mupper\-regs\-sf\fR and \fB\-mupper\-regs\-df\fR options.
  20591. .IP "\fB\-mfloat128\fR" 4
  20592. .IX Item "-mfloat128"
  20593. .PD 0
  20594. .IP "\fB\-mno\-float128\fR" 4
  20595. .IX Item "-mno-float128"
  20596. .PD
  20597. Enable/disable the \fI_\|_float128\fR keyword for \s-1IEEE\s0 128\-bit floating point
  20598. and use either software emulation for \s-1IEEE\s0 128\-bit floating point or
  20599. hardware instructions.
  20600. .Sp
  20601. The \s-1VSX\s0 instruction set (\fB\-mvsx\fR, \fB\-mcpu=power7\fR, or
  20602. \&\fB\-mcpu=power8\fR) must be enabled to use the \fB\-mfloat128\fR
  20603. option. The \fB\-mfloat128\fR option only works on PowerPC 64\-bit
  20604. Linux systems.
  20605. .Sp
  20606. If you use the \s-1ISA 3.0\s0 instruction set (\fB\-mcpu=power9\fR), the
  20607. \&\fB\-mfloat128\fR option will also enable the generation of \s-1ISA 3.0
  20608. IEEE\s0 128\-bit floating point instructions. Otherwise, \s-1IEEE\s0 128\-bit
  20609. floating point will be done with software emulation.
  20610. .IP "\fB\-mfloat128\-hardware\fR" 4
  20611. .IX Item "-mfloat128-hardware"
  20612. .PD 0
  20613. .IP "\fB\-mno\-float128\-hardware\fR" 4
  20614. .IX Item "-mno-float128-hardware"
  20615. .PD
  20616. Enable/disable using \s-1ISA 3.0\s0 hardware instructions to support the
  20617. \&\fI_\|_float128\fR data type.
  20618. .Sp
  20619. If you use \fB\-mfloat128\-hardware\fR, it will enable the option
  20620. \&\fB\-mfloat128\fR as well.
  20621. .Sp
  20622. If you select \s-1ISA 3.0\s0 instructions with \fB\-mcpu=power9\fR, but do
  20623. not use either \fB\-mfloat128\fR or \fB\-mfloat128\-hardware\fR,
  20624. the \s-1IEEE\s0 128\-bit floating point support will not be enabled.
  20625. .IP "\fB\-mfloat\-gprs=\fR\fIyes/single/double/no\fR" 4
  20626. .IX Item "-mfloat-gprs=yes/single/double/no"
  20627. .PD 0
  20628. .IP "\fB\-mfloat\-gprs\fR" 4
  20629. .IX Item "-mfloat-gprs"
  20630. .PD
  20631. This switch enables or disables the generation of floating-point
  20632. operations on the general-purpose registers for architectures that
  20633. support it.
  20634. .Sp
  20635. The argument \fByes\fR or \fBsingle\fR enables the use of
  20636. single-precision floating-point operations.
  20637. .Sp
  20638. The argument \fBdouble\fR enables the use of single and
  20639. double-precision floating-point operations.
  20640. .Sp
  20641. The argument \fBno\fR disables floating-point operations on the
  20642. general-purpose registers.
  20643. .Sp
  20644. This option is currently only available on the MPC854x.
  20645. .IP "\fB\-m32\fR" 4
  20646. .IX Item "-m32"
  20647. .PD 0
  20648. .IP "\fB\-m64\fR" 4
  20649. .IX Item "-m64"
  20650. .PD
  20651. Generate code for 32\-bit or 64\-bit environments of Darwin and \s-1SVR4\s0
  20652. targets (including GNU/Linux). The 32\-bit environment sets int, long
  20653. and pointer to 32 bits and generates code that runs on any PowerPC
  20654. variant. The 64\-bit environment sets int to 32 bits and long and
  20655. pointer to 64 bits, and generates code for PowerPC64, as for
  20656. \&\fB\-mpowerpc64\fR.
  20657. .IP "\fB\-mfull\-toc\fR" 4
  20658. .IX Item "-mfull-toc"
  20659. .PD 0
  20660. .IP "\fB\-mno\-fp\-in\-toc\fR" 4
  20661. .IX Item "-mno-fp-in-toc"
  20662. .IP "\fB\-mno\-sum\-in\-toc\fR" 4
  20663. .IX Item "-mno-sum-in-toc"
  20664. .IP "\fB\-mminimal\-toc\fR" 4
  20665. .IX Item "-mminimal-toc"
  20666. .PD
  20667. Modify generation of the \s-1TOC \s0(Table Of Contents), which is created for
  20668. every executable file. The \fB\-mfull\-toc\fR option is selected by
  20669. default. In that case, \s-1GCC\s0 allocates at least one \s-1TOC\s0 entry for
  20670. each unique non-automatic variable reference in your program. \s-1GCC\s0
  20671. also places floating-point constants in the \s-1TOC. \s0 However, only
  20672. 16,384 entries are available in the \s-1TOC.\s0
  20673. .Sp
  20674. If you receive a linker error message that saying you have overflowed
  20675. the available \s-1TOC\s0 space, you can reduce the amount of \s-1TOC\s0 space used
  20676. with the \fB\-mno\-fp\-in\-toc\fR and \fB\-mno\-sum\-in\-toc\fR options.
  20677. \&\fB\-mno\-fp\-in\-toc\fR prevents \s-1GCC\s0 from putting floating-point
  20678. constants in the \s-1TOC\s0 and \fB\-mno\-sum\-in\-toc\fR forces \s-1GCC\s0 to
  20679. generate code to calculate the sum of an address and a constant at
  20680. run time instead of putting that sum into the \s-1TOC. \s0 You may specify one
  20681. or both of these options. Each causes \s-1GCC\s0 to produce very slightly
  20682. slower and larger code at the expense of conserving \s-1TOC\s0 space.
  20683. .Sp
  20684. If you still run out of space in the \s-1TOC\s0 even when you specify both of
  20685. these options, specify \fB\-mminimal\-toc\fR instead. This option causes
  20686. \&\s-1GCC\s0 to make only one \s-1TOC\s0 entry for every file. When you specify this
  20687. option, \s-1GCC\s0 produces code that is slower and larger but which
  20688. uses extremely little \s-1TOC\s0 space. You may wish to use this option
  20689. only on files that contain less frequently-executed code.
  20690. .IP "\fB\-maix64\fR" 4
  20691. .IX Item "-maix64"
  20692. .PD 0
  20693. .IP "\fB\-maix32\fR" 4
  20694. .IX Item "-maix32"
  20695. .PD
  20696. Enable 64\-bit \s-1AIX ABI\s0 and calling convention: 64\-bit pointers, 64\-bit
  20697. \&\f(CW\*(C`long\*(C'\fR type, and the infrastructure needed to support them.
  20698. Specifying \fB\-maix64\fR implies \fB\-mpowerpc64\fR,
  20699. while \fB\-maix32\fR disables the 64\-bit \s-1ABI\s0 and
  20700. implies \fB\-mno\-powerpc64\fR. \s-1GCC\s0 defaults to \fB\-maix32\fR.
  20701. .IP "\fB\-mxl\-compat\fR" 4
  20702. .IX Item "-mxl-compat"
  20703. .PD 0
  20704. .IP "\fB\-mno\-xl\-compat\fR" 4
  20705. .IX Item "-mno-xl-compat"
  20706. .PD
  20707. Produce code that conforms more closely to \s-1IBM XL\s0 compiler semantics
  20708. when using AIX-compatible \s-1ABI. \s0 Pass floating-point arguments to
  20709. prototyped functions beyond the register save area (\s-1RSA\s0) on the stack
  20710. in addition to argument FPRs. Do not assume that most significant
  20711. double in 128\-bit long double value is properly rounded when comparing
  20712. values and converting to double. Use \s-1XL\s0 symbol names for long double
  20713. support routines.
  20714. .Sp
  20715. The \s-1AIX\s0 calling convention was extended but not initially documented to
  20716. handle an obscure K&R C case of calling a function that takes the
  20717. address of its arguments with fewer arguments than declared. \s-1IBM XL\s0
  20718. compilers access floating-point arguments that do not fit in the
  20719. \&\s-1RSA\s0 from the stack when a subroutine is compiled without
  20720. optimization. Because always storing floating-point arguments on the
  20721. stack is inefficient and rarely needed, this option is not enabled by
  20722. default and only is necessary when calling subroutines compiled by \s-1IBM
  20723. XL\s0 compilers without optimization.
  20724. .IP "\fB\-mpe\fR" 4
  20725. .IX Item "-mpe"
  20726. Support \fI\s-1IBM RS/6000 SP\s0\fR \fIParallel Environment\fR (\s-1PE\s0). Link an
  20727. application written to use message passing with special startup code to
  20728. enable the application to run. The system must have \s-1PE\s0 installed in the
  20729. standard location (\fI/usr/lpp/ppe.poe/\fR), or the \fIspecs\fR file
  20730. must be overridden with the \fB\-specs=\fR option to specify the
  20731. appropriate directory location. The Parallel Environment does not
  20732. support threads, so the \fB\-mpe\fR option and the \fB\-pthread\fR
  20733. option are incompatible.
  20734. .IP "\fB\-malign\-natural\fR" 4
  20735. .IX Item "-malign-natural"
  20736. .PD 0
  20737. .IP "\fB\-malign\-power\fR" 4
  20738. .IX Item "-malign-power"
  20739. .PD
  20740. On \s-1AIX,\s0 32\-bit Darwin, and 64\-bit PowerPC GNU/Linux, the option
  20741. \&\fB\-malign\-natural\fR overrides the ABI-defined alignment of larger
  20742. types, such as floating-point doubles, on their natural size-based boundary.
  20743. The option \fB\-malign\-power\fR instructs \s-1GCC\s0 to follow the ABI-specified
  20744. alignment rules. \s-1GCC\s0 defaults to the standard alignment defined in the \s-1ABI.\s0
  20745. .Sp
  20746. On 64\-bit Darwin, natural alignment is the default, and \fB\-malign\-power\fR
  20747. is not supported.
  20748. .IP "\fB\-msoft\-float\fR" 4
  20749. .IX Item "-msoft-float"
  20750. .PD 0
  20751. .IP "\fB\-mhard\-float\fR" 4
  20752. .IX Item "-mhard-float"
  20753. .PD
  20754. Generate code that does not use (uses) the floating-point register set.
  20755. Software floating-point emulation is provided if you use the
  20756. \&\fB\-msoft\-float\fR option, and pass the option to \s-1GCC\s0 when linking.
  20757. .IP "\fB\-msingle\-float\fR" 4
  20758. .IX Item "-msingle-float"
  20759. .PD 0
  20760. .IP "\fB\-mdouble\-float\fR" 4
  20761. .IX Item "-mdouble-float"
  20762. .PD
  20763. Generate code for single\- or double-precision floating-point operations.
  20764. \&\fB\-mdouble\-float\fR implies \fB\-msingle\-float\fR.
  20765. .IP "\fB\-msimple\-fpu\fR" 4
  20766. .IX Item "-msimple-fpu"
  20767. Do not generate \f(CW\*(C`sqrt\*(C'\fR and \f(CW\*(C`div\*(C'\fR instructions for hardware
  20768. floating-point unit.
  20769. .IP "\fB\-mfpu=\fR\fIname\fR" 4
  20770. .IX Item "-mfpu=name"
  20771. Specify type of floating-point unit. Valid values for \fIname\fR are
  20772. \&\fBsp_lite\fR (equivalent to \fB\-msingle\-float \-msimple\-fpu\fR),
  20773. \&\fBdp_lite\fR (equivalent to \fB\-mdouble\-float \-msimple\-fpu\fR),
  20774. \&\fBsp_full\fR (equivalent to \fB\-msingle\-float\fR),
  20775. and \fBdp_full\fR (equivalent to \fB\-mdouble\-float\fR).
  20776. .IP "\fB\-mxilinx\-fpu\fR" 4
  20777. .IX Item "-mxilinx-fpu"
  20778. Perform optimizations for the floating-point unit on Xilinx \s-1PPC 405/440.\s0
  20779. .IP "\fB\-mmultiple\fR" 4
  20780. .IX Item "-mmultiple"
  20781. .PD 0
  20782. .IP "\fB\-mno\-multiple\fR" 4
  20783. .IX Item "-mno-multiple"
  20784. .PD
  20785. Generate code that uses (does not use) the load multiple word
  20786. instructions and the store multiple word instructions. These
  20787. instructions are generated by default on \s-1POWER\s0 systems, and not
  20788. generated on PowerPC systems. Do not use \fB\-mmultiple\fR on little-endian
  20789. PowerPC systems, since those instructions do not work when the
  20790. processor is in little-endian mode. The exceptions are \s-1PPC740\s0 and
  20791. \&\s-1PPC750\s0 which permit these instructions in little-endian mode.
  20792. .IP "\fB\-mstring\fR" 4
  20793. .IX Item "-mstring"
  20794. .PD 0
  20795. .IP "\fB\-mno\-string\fR" 4
  20796. .IX Item "-mno-string"
  20797. .PD
  20798. Generate code that uses (does not use) the load string instructions
  20799. and the store string word instructions to save multiple registers and
  20800. do small block moves. These instructions are generated by default on
  20801. \&\s-1POWER\s0 systems, and not generated on PowerPC systems. Do not use
  20802. \&\fB\-mstring\fR on little-endian PowerPC systems, since those
  20803. instructions do not work when the processor is in little-endian mode.
  20804. The exceptions are \s-1PPC740\s0 and \s-1PPC750\s0 which permit these instructions
  20805. in little-endian mode.
  20806. .IP "\fB\-mupdate\fR" 4
  20807. .IX Item "-mupdate"
  20808. .PD 0
  20809. .IP "\fB\-mno\-update\fR" 4
  20810. .IX Item "-mno-update"
  20811. .PD
  20812. Generate code that uses (does not use) the load or store instructions
  20813. that update the base register to the address of the calculated memory
  20814. location. These instructions are generated by default. If you use
  20815. \&\fB\-mno\-update\fR, there is a small window between the time that the
  20816. stack pointer is updated and the address of the previous frame is
  20817. stored, which means code that walks the stack frame across interrupts or
  20818. signals may get corrupted data.
  20819. .IP "\fB\-mavoid\-indexed\-addresses\fR" 4
  20820. .IX Item "-mavoid-indexed-addresses"
  20821. .PD 0
  20822. .IP "\fB\-mno\-avoid\-indexed\-addresses\fR" 4
  20823. .IX Item "-mno-avoid-indexed-addresses"
  20824. .PD
  20825. Generate code that tries to avoid (not avoid) the use of indexed load
  20826. or store instructions. These instructions can incur a performance
  20827. penalty on Power6 processors in certain situations, such as when
  20828. stepping through large arrays that cross a 16M boundary. This option
  20829. is enabled by default when targeting Power6 and disabled otherwise.
  20830. .IP "\fB\-mfused\-madd\fR" 4
  20831. .IX Item "-mfused-madd"
  20832. .PD 0
  20833. .IP "\fB\-mno\-fused\-madd\fR" 4
  20834. .IX Item "-mno-fused-madd"
  20835. .PD
  20836. Generate code that uses (does not use) the floating-point multiply and
  20837. accumulate instructions. These instructions are generated by default
  20838. if hardware floating point is used. The machine-dependent
  20839. \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
  20840. \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
  20841. mapped to \fB\-ffp\-contract=off\fR.
  20842. .IP "\fB\-mmulhw\fR" 4
  20843. .IX Item "-mmulhw"
  20844. .PD 0
  20845. .IP "\fB\-mno\-mulhw\fR" 4
  20846. .IX Item "-mno-mulhw"
  20847. .PD
  20848. Generate code that uses (does not use) the half-word multiply and
  20849. multiply-accumulate instructions on the \s-1IBM 405, 440, 464\s0 and 476 processors.
  20850. These instructions are generated by default when targeting those
  20851. processors.
  20852. .IP "\fB\-mdlmzb\fR" 4
  20853. .IX Item "-mdlmzb"
  20854. .PD 0
  20855. .IP "\fB\-mno\-dlmzb\fR" 4
  20856. .IX Item "-mno-dlmzb"
  20857. .PD
  20858. Generate code that uses (does not use) the string-search \fBdlmzb\fR
  20859. instruction on the \s-1IBM 405, 440, 464\s0 and 476 processors. This instruction is
  20860. generated by default when targeting those processors.
  20861. .IP "\fB\-mno\-bit\-align\fR" 4
  20862. .IX Item "-mno-bit-align"
  20863. .PD 0
  20864. .IP "\fB\-mbit\-align\fR" 4
  20865. .IX Item "-mbit-align"
  20866. .PD
  20867. On System V.4 and embedded PowerPC systems do not (do) force structures
  20868. and unions that contain bit-fields to be aligned to the base type of the
  20869. bit-field.
  20870. .Sp
  20871. For example, by default a structure containing nothing but 8
  20872. \&\f(CW\*(C`unsigned\*(C'\fR bit-fields of length 1 is aligned to a 4\-byte
  20873. boundary and has a size of 4 bytes. By using \fB\-mno\-bit\-align\fR,
  20874. the structure is aligned to a 1\-byte boundary and is 1 byte in
  20875. size.
  20876. .IP "\fB\-mno\-strict\-align\fR" 4
  20877. .IX Item "-mno-strict-align"
  20878. .PD 0
  20879. .IP "\fB\-mstrict\-align\fR" 4
  20880. .IX Item "-mstrict-align"
  20881. .PD
  20882. On System V.4 and embedded PowerPC systems do not (do) assume that
  20883. unaligned memory references are handled by the system.
  20884. .IP "\fB\-mrelocatable\fR" 4
  20885. .IX Item "-mrelocatable"
  20886. .PD 0
  20887. .IP "\fB\-mno\-relocatable\fR" 4
  20888. .IX Item "-mno-relocatable"
  20889. .PD
  20890. Generate code that allows (does not allow) a static executable to be
  20891. relocated to a different address at run time. A simple embedded
  20892. PowerPC system loader should relocate the entire contents of
  20893. \&\f(CW\*(C`.got2\*(C'\fR and 4\-byte locations listed in the \f(CW\*(C`.fixup\*(C'\fR section,
  20894. a table of 32\-bit addresses generated by this option. For this to
  20895. work, all objects linked together must be compiled with
  20896. \&\fB\-mrelocatable\fR or \fB\-mrelocatable\-lib\fR.
  20897. \&\fB\-mrelocatable\fR code aligns the stack to an 8\-byte boundary.
  20898. .IP "\fB\-mrelocatable\-lib\fR" 4
  20899. .IX Item "-mrelocatable-lib"
  20900. .PD 0
  20901. .IP "\fB\-mno\-relocatable\-lib\fR" 4
  20902. .IX Item "-mno-relocatable-lib"
  20903. .PD
  20904. Like \fB\-mrelocatable\fR, \fB\-mrelocatable\-lib\fR generates a
  20905. \&\f(CW\*(C`.fixup\*(C'\fR section to allow static executables to be relocated at
  20906. run time, but \fB\-mrelocatable\-lib\fR does not use the smaller stack
  20907. alignment of \fB\-mrelocatable\fR. Objects compiled with
  20908. \&\fB\-mrelocatable\-lib\fR may be linked with objects compiled with
  20909. any combination of the \fB\-mrelocatable\fR options.
  20910. .IP "\fB\-mno\-toc\fR" 4
  20911. .IX Item "-mno-toc"
  20912. .PD 0
  20913. .IP "\fB\-mtoc\fR" 4
  20914. .IX Item "-mtoc"
  20915. .PD
  20916. On System V.4 and embedded PowerPC systems do not (do) assume that
  20917. register 2 contains a pointer to a global area pointing to the addresses
  20918. used in the program.
  20919. .IP "\fB\-mlittle\fR" 4
  20920. .IX Item "-mlittle"
  20921. .PD 0
  20922. .IP "\fB\-mlittle\-endian\fR" 4
  20923. .IX Item "-mlittle-endian"
  20924. .PD
  20925. On System V.4 and embedded PowerPC systems compile code for the
  20926. processor in little-endian mode. The \fB\-mlittle\-endian\fR option is
  20927. the same as \fB\-mlittle\fR.
  20928. .IP "\fB\-mbig\fR" 4
  20929. .IX Item "-mbig"
  20930. .PD 0
  20931. .IP "\fB\-mbig\-endian\fR" 4
  20932. .IX Item "-mbig-endian"
  20933. .PD
  20934. On System V.4 and embedded PowerPC systems compile code for the
  20935. processor in big-endian mode. The \fB\-mbig\-endian\fR option is
  20936. the same as \fB\-mbig\fR.
  20937. .IP "\fB\-mdynamic\-no\-pic\fR" 4
  20938. .IX Item "-mdynamic-no-pic"
  20939. On Darwin and Mac \s-1OS X\s0 systems, compile code so that it is not
  20940. relocatable, but that its external references are relocatable. The
  20941. resulting code is suitable for applications, but not shared
  20942. libraries.
  20943. .IP "\fB\-msingle\-pic\-base\fR" 4
  20944. .IX Item "-msingle-pic-base"
  20945. Treat the register used for \s-1PIC\s0 addressing as read-only, rather than
  20946. loading it in the prologue for each function. The runtime system is
  20947. responsible for initializing this register with an appropriate value
  20948. before execution begins.
  20949. .IP "\fB\-mprioritize\-restricted\-insns=\fR\fIpriority\fR" 4
  20950. .IX Item "-mprioritize-restricted-insns=priority"
  20951. This option controls the priority that is assigned to
  20952. dispatch-slot restricted instructions during the second scheduling
  20953. pass. The argument \fIpriority\fR takes the value \fB0\fR, \fB1\fR,
  20954. or \fB2\fR to assign no, highest, or second-highest (respectively)
  20955. priority to dispatch-slot restricted
  20956. instructions.
  20957. .IP "\fB\-msched\-costly\-dep=\fR\fIdependence_type\fR" 4
  20958. .IX Item "-msched-costly-dep=dependence_type"
  20959. This option controls which dependences are considered costly
  20960. by the target during instruction scheduling. The argument
  20961. \&\fIdependence_type\fR takes one of the following values:
  20962. .RS 4
  20963. .IP "\fBno\fR" 4
  20964. .IX Item "no"
  20965. No dependence is costly.
  20966. .IP "\fBall\fR" 4
  20967. .IX Item "all"
  20968. All dependences are costly.
  20969. .IP "\fBtrue_store_to_load\fR" 4
  20970. .IX Item "true_store_to_load"
  20971. A true dependence from store to load is costly.
  20972. .IP "\fBstore_to_load\fR" 4
  20973. .IX Item "store_to_load"
  20974. Any dependence from store to load is costly.
  20975. .IP "\fInumber\fR" 4
  20976. .IX Item "number"
  20977. Any dependence for which the latency is greater than or equal to
  20978. \&\fInumber\fR is costly.
  20979. .RE
  20980. .RS 4
  20981. .RE
  20982. .IP "\fB\-minsert\-sched\-nops=\fR\fIscheme\fR" 4
  20983. .IX Item "-minsert-sched-nops=scheme"
  20984. This option controls which \s-1NOP\s0 insertion scheme is used during
  20985. the second scheduling pass. The argument \fIscheme\fR takes one of the
  20986. following values:
  20987. .RS 4
  20988. .IP "\fBno\fR" 4
  20989. .IX Item "no"
  20990. Don't insert NOPs.
  20991. .IP "\fBpad\fR" 4
  20992. .IX Item "pad"
  20993. Pad with NOPs any dispatch group that has vacant issue slots,
  20994. according to the scheduler's grouping.
  20995. .IP "\fBregroup_exact\fR" 4
  20996. .IX Item "regroup_exact"
  20997. Insert NOPs to force costly dependent insns into
  20998. separate groups. Insert exactly as many NOPs as needed to force an insn
  20999. to a new group, according to the estimated processor grouping.
  21000. .IP "\fInumber\fR" 4
  21001. .IX Item "number"
  21002. Insert NOPs to force costly dependent insns into
  21003. separate groups. Insert \fInumber\fR NOPs to force an insn to a new group.
  21004. .RE
  21005. .RS 4
  21006. .RE
  21007. .IP "\fB\-mcall\-sysv\fR" 4
  21008. .IX Item "-mcall-sysv"
  21009. On System V.4 and embedded PowerPC systems compile code using calling
  21010. conventions that adhere to the March 1995 draft of the System V
  21011. Application Binary Interface, PowerPC processor supplement. This is the
  21012. default unless you configured \s-1GCC\s0 using \fBpowerpc\-*\-eabiaix\fR.
  21013. .IP "\fB\-mcall\-sysv\-eabi\fR" 4
  21014. .IX Item "-mcall-sysv-eabi"
  21015. .PD 0
  21016. .IP "\fB\-mcall\-eabi\fR" 4
  21017. .IX Item "-mcall-eabi"
  21018. .PD
  21019. Specify both \fB\-mcall\-sysv\fR and \fB\-meabi\fR options.
  21020. .IP "\fB\-mcall\-sysv\-noeabi\fR" 4
  21021. .IX Item "-mcall-sysv-noeabi"
  21022. Specify both \fB\-mcall\-sysv\fR and \fB\-mno\-eabi\fR options.
  21023. .IP "\fB\-mcall\-aixdesc\fR" 4
  21024. .IX Item "-mcall-aixdesc"
  21025. On System V.4 and embedded PowerPC systems compile code for the \s-1AIX\s0
  21026. operating system.
  21027. .IP "\fB\-mcall\-linux\fR" 4
  21028. .IX Item "-mcall-linux"
  21029. On System V.4 and embedded PowerPC systems compile code for the
  21030. Linux-based \s-1GNU\s0 system.
  21031. .IP "\fB\-mcall\-freebsd\fR" 4
  21032. .IX Item "-mcall-freebsd"
  21033. On System V.4 and embedded PowerPC systems compile code for the
  21034. FreeBSD operating system.
  21035. .IP "\fB\-mcall\-netbsd\fR" 4
  21036. .IX Item "-mcall-netbsd"
  21037. On System V.4 and embedded PowerPC systems compile code for the
  21038. NetBSD operating system.
  21039. .IP "\fB\-mcall\-openbsd\fR" 4
  21040. .IX Item "-mcall-openbsd"
  21041. On System V.4 and embedded PowerPC systems compile code for the
  21042. OpenBSD operating system.
  21043. .IP "\fB\-maix\-struct\-return\fR" 4
  21044. .IX Item "-maix-struct-return"
  21045. Return all structures in memory (as specified by the \s-1AIX ABI\s0).
  21046. .IP "\fB\-msvr4\-struct\-return\fR" 4
  21047. .IX Item "-msvr4-struct-return"
  21048. Return structures smaller than 8 bytes in registers (as specified by the
  21049. \&\s-1SVR4 ABI\s0).
  21050. .IP "\fB\-mabi=\fR\fIabi-type\fR" 4
  21051. .IX Item "-mabi=abi-type"
  21052. Extend the current \s-1ABI\s0 with a particular extension, or remove such extension.
  21053. Valid values are \fBaltivec\fR, \fBno-altivec\fR, \fBspe\fR,
  21054. \&\fBno-spe\fR, \fBibmlongdouble\fR, \fBieeelongdouble\fR,
  21055. \&\fBelfv1\fR, \fBelfv2\fR.
  21056. .IP "\fB\-mabi=spe\fR" 4
  21057. .IX Item "-mabi=spe"
  21058. Extend the current \s-1ABI\s0 with \s-1SPE ABI\s0 extensions. This does not change
  21059. the default \s-1ABI,\s0 instead it adds the \s-1SPE ABI\s0 extensions to the current
  21060. \&\s-1ABI.\s0
  21061. .IP "\fB\-mabi=no\-spe\fR" 4
  21062. .IX Item "-mabi=no-spe"
  21063. Disable Book-E \s-1SPE ABI\s0 extensions for the current \s-1ABI.\s0
  21064. .IP "\fB\-mabi=ibmlongdouble\fR" 4
  21065. .IX Item "-mabi=ibmlongdouble"
  21066. Change the current \s-1ABI\s0 to use \s-1IBM\s0 extended-precision long double.
  21067. This is a PowerPC 32\-bit \s-1SYSV ABI\s0 option. Requires \fB\-mlong\-double\-128\fR
  21068. to be enabled.
  21069. .IP "\fB\-mabi=ieeelongdouble\fR" 4
  21070. .IX Item "-mabi=ieeelongdouble"
  21071. Change the current \s-1ABI\s0 to use \s-1IEEE\s0 extended-precision long double.
  21072. This is a PowerPC 32\-bit Linux \s-1ABI\s0 option. Requires \fB\-mlong\-double\-128\fR
  21073. to be enabled.
  21074. .IP "\fB\-mabi=elfv1\fR" 4
  21075. .IX Item "-mabi=elfv1"
  21076. Change the current \s-1ABI\s0 to use the ELFv1 \s-1ABI.\s0
  21077. This is the default \s-1ABI\s0 for big-endian PowerPC 64\-bit Linux.
  21078. Overriding the default \s-1ABI\s0 requires special system support and is
  21079. likely to fail in spectacular ways.
  21080. .IP "\fB\-mabi=elfv2\fR" 4
  21081. .IX Item "-mabi=elfv2"
  21082. Change the current \s-1ABI\s0 to use the ELFv2 \s-1ABI.\s0
  21083. This is the default \s-1ABI\s0 for little-endian PowerPC 64\-bit Linux.
  21084. Overriding the default \s-1ABI\s0 requires special system support and is
  21085. likely to fail in spectacular ways.
  21086. .IP "\fB\-mgnu\-attribute\fR" 4
  21087. .IX Item "-mgnu-attribute"
  21088. .PD 0
  21089. .IP "\fB\-mno\-gnu\-attribute\fR" 4
  21090. .IX Item "-mno-gnu-attribute"
  21091. .PD
  21092. Emit .gnu_attribute assembly directives to set tag/value pairs in a
  21093. \&.gnu.attributes section that specify \s-1ABI\s0 variations in function
  21094. parameters or return values.
  21095. .IP "\fB\-mprototype\fR" 4
  21096. .IX Item "-mprototype"
  21097. .PD 0
  21098. .IP "\fB\-mno\-prototype\fR" 4
  21099. .IX Item "-mno-prototype"
  21100. .PD
  21101. On System V.4 and embedded PowerPC systems assume that all calls to
  21102. variable argument functions are properly prototyped. Otherwise, the
  21103. compiler must insert an instruction before every non-prototyped call to
  21104. set or clear bit 6 of the condition code register (\f(CW\*(C`CR\*(C'\fR) to
  21105. indicate whether floating-point values are passed in the floating-point
  21106. registers in case the function takes variable arguments. With
  21107. \&\fB\-mprototype\fR, only calls to prototyped variable argument functions
  21108. set or clear the bit.
  21109. .IP "\fB\-msim\fR" 4
  21110. .IX Item "-msim"
  21111. On embedded PowerPC systems, assume that the startup module is called
  21112. \&\fIsim\-crt0.o\fR and that the standard C libraries are \fIlibsim.a\fR and
  21113. \&\fIlibc.a\fR. This is the default for \fBpowerpc\-*\-eabisim\fR
  21114. configurations.
  21115. .IP "\fB\-mmvme\fR" 4
  21116. .IX Item "-mmvme"
  21117. On embedded PowerPC systems, assume that the startup module is called
  21118. \&\fIcrt0.o\fR and the standard C libraries are \fIlibmvme.a\fR and
  21119. \&\fIlibc.a\fR.
  21120. .IP "\fB\-mads\fR" 4
  21121. .IX Item "-mads"
  21122. On embedded PowerPC systems, assume that the startup module is called
  21123. \&\fIcrt0.o\fR and the standard C libraries are \fIlibads.a\fR and
  21124. \&\fIlibc.a\fR.
  21125. .IP "\fB\-myellowknife\fR" 4
  21126. .IX Item "-myellowknife"
  21127. On embedded PowerPC systems, assume that the startup module is called
  21128. \&\fIcrt0.o\fR and the standard C libraries are \fIlibyk.a\fR and
  21129. \&\fIlibc.a\fR.
  21130. .IP "\fB\-mvxworks\fR" 4
  21131. .IX Item "-mvxworks"
  21132. On System V.4 and embedded PowerPC systems, specify that you are
  21133. compiling for a VxWorks system.
  21134. .IP "\fB\-memb\fR" 4
  21135. .IX Item "-memb"
  21136. On embedded PowerPC systems, set the \f(CW\*(C`PPC_EMB\*(C'\fR bit in the \s-1ELF\s0 flags
  21137. header to indicate that \fBeabi\fR extended relocations are used.
  21138. .IP "\fB\-meabi\fR" 4
  21139. .IX Item "-meabi"
  21140. .PD 0
  21141. .IP "\fB\-mno\-eabi\fR" 4
  21142. .IX Item "-mno-eabi"
  21143. .PD
  21144. On System V.4 and embedded PowerPC systems do (do not) adhere to the
  21145. Embedded Applications Binary Interface (\s-1EABI\s0), which is a set of
  21146. modifications to the System V.4 specifications. Selecting \fB\-meabi\fR
  21147. means that the stack is aligned to an 8\-byte boundary, a function
  21148. \&\f(CW\*(C`_\|_eabi\*(C'\fR is called from \f(CW\*(C`main\*(C'\fR to set up the \s-1EABI\s0
  21149. environment, and the \fB\-msdata\fR option can use both \f(CW\*(C`r2\*(C'\fR and
  21150. \&\f(CW\*(C`r13\*(C'\fR to point to two separate small data areas. Selecting
  21151. \&\fB\-mno\-eabi\fR means that the stack is aligned to a 16\-byte boundary,
  21152. no \s-1EABI\s0 initialization function is called from \f(CW\*(C`main\*(C'\fR, and the
  21153. \&\fB\-msdata\fR option only uses \f(CW\*(C`r13\*(C'\fR to point to a single
  21154. small data area. The \fB\-meabi\fR option is on by default if you
  21155. configured \s-1GCC\s0 using one of the \fBpowerpc*\-*\-eabi*\fR options.
  21156. .IP "\fB\-msdata=eabi\fR" 4
  21157. .IX Item "-msdata=eabi"
  21158. On System V.4 and embedded PowerPC systems, put small initialized
  21159. \&\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata2\*(C'\fR section, which
  21160. is pointed to by register \f(CW\*(C`r2\*(C'\fR. Put small initialized
  21161. non\-\f(CW\*(C`const\*(C'\fR global and static data in the \f(CW\*(C`.sdata\*(C'\fR section,
  21162. which is pointed to by register \f(CW\*(C`r13\*(C'\fR. Put small uninitialized
  21163. global and static data in the \f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to
  21164. the \f(CW\*(C`.sdata\*(C'\fR section. The \fB\-msdata=eabi\fR option is
  21165. incompatible with the \fB\-mrelocatable\fR option. The
  21166. \&\fB\-msdata=eabi\fR option also sets the \fB\-memb\fR option.
  21167. .IP "\fB\-msdata=sysv\fR" 4
  21168. .IX Item "-msdata=sysv"
  21169. On System V.4 and embedded PowerPC systems, put small global and static
  21170. data in the \f(CW\*(C`.sdata\*(C'\fR section, which is pointed to by register
  21171. \&\f(CW\*(C`r13\*(C'\fR. Put small uninitialized global and static data in the
  21172. \&\f(CW\*(C`.sbss\*(C'\fR section, which is adjacent to the \f(CW\*(C`.sdata\*(C'\fR section.
  21173. The \fB\-msdata=sysv\fR option is incompatible with the
  21174. \&\fB\-mrelocatable\fR option.
  21175. .IP "\fB\-msdata=default\fR" 4
  21176. .IX Item "-msdata=default"
  21177. .PD 0
  21178. .IP "\fB\-msdata\fR" 4
  21179. .IX Item "-msdata"
  21180. .PD
  21181. On System V.4 and embedded PowerPC systems, if \fB\-meabi\fR is used,
  21182. compile code the same as \fB\-msdata=eabi\fR, otherwise compile code the
  21183. same as \fB\-msdata=sysv\fR.
  21184. .IP "\fB\-msdata=data\fR" 4
  21185. .IX Item "-msdata=data"
  21186. On System V.4 and embedded PowerPC systems, put small global
  21187. data in the \f(CW\*(C`.sdata\*(C'\fR section. Put small uninitialized global
  21188. data in the \f(CW\*(C`.sbss\*(C'\fR section. Do not use register \f(CW\*(C`r13\*(C'\fR
  21189. to address small data however. This is the default behavior unless
  21190. other \fB\-msdata\fR options are used.
  21191. .IP "\fB\-msdata=none\fR" 4
  21192. .IX Item "-msdata=none"
  21193. .PD 0
  21194. .IP "\fB\-mno\-sdata\fR" 4
  21195. .IX Item "-mno-sdata"
  21196. .PD
  21197. On embedded PowerPC systems, put all initialized global and static data
  21198. in the \f(CW\*(C`.data\*(C'\fR section, and all uninitialized data in the
  21199. \&\f(CW\*(C`.bss\*(C'\fR section.
  21200. .IP "\fB\-mreadonly\-in\-sdata\fR" 4
  21201. .IX Item "-mreadonly-in-sdata"
  21202. .PD 0
  21203. .IP "\fB\-mreadonly\-in\-sdata\fR" 4
  21204. .IX Item "-mreadonly-in-sdata"
  21205. .PD
  21206. Put read-only objects in the \f(CW\*(C`.sdata\*(C'\fR section as well. This is the
  21207. default.
  21208. .IP "\fB\-mblock\-move\-inline\-limit=\fR\fInum\fR" 4
  21209. .IX Item "-mblock-move-inline-limit=num"
  21210. Inline all block moves (such as calls to \f(CW\*(C`memcpy\*(C'\fR or structure
  21211. copies) less than or equal to \fInum\fR bytes. The minimum value for
  21212. \&\fInum\fR is 32 bytes on 32\-bit targets and 64 bytes on 64\-bit
  21213. targets. The default value is target-specific.
  21214. .IP "\fB\-G\fR \fInum\fR" 4
  21215. .IX Item "-G num"
  21216. On embedded PowerPC systems, put global and static items less than or
  21217. equal to \fInum\fR bytes into the small data or \s-1BSS\s0 sections instead of
  21218. the normal data or \s-1BSS\s0 section. By default, \fInum\fR is 8. The
  21219. \&\fB\-G\fR \fInum\fR switch is also passed to the linker.
  21220. All modules should be compiled with the same \fB\-G\fR \fInum\fR value.
  21221. .IP "\fB\-mregnames\fR" 4
  21222. .IX Item "-mregnames"
  21223. .PD 0
  21224. .IP "\fB\-mno\-regnames\fR" 4
  21225. .IX Item "-mno-regnames"
  21226. .PD
  21227. On System V.4 and embedded PowerPC systems do (do not) emit register
  21228. names in the assembly language output using symbolic forms.
  21229. .IP "\fB\-mlongcall\fR" 4
  21230. .IX Item "-mlongcall"
  21231. .PD 0
  21232. .IP "\fB\-mno\-longcall\fR" 4
  21233. .IX Item "-mno-longcall"
  21234. .PD
  21235. By default assume that all calls are far away so that a longer and more
  21236. expensive calling sequence is required. This is required for calls
  21237. farther than 32 megabytes (33,554,432 bytes) from the current location.
  21238. A short call is generated if the compiler knows
  21239. the call cannot be that far away. This setting can be overridden by
  21240. the \f(CW\*(C`shortcall\*(C'\fR function attribute, or by \f(CW\*(C`#pragma
  21241. longcall(0)\*(C'\fR.
  21242. .Sp
  21243. Some linkers are capable of detecting out-of-range calls and generating
  21244. glue code on the fly. On these systems, long calls are unnecessary and
  21245. generate slower code. As of this writing, the \s-1AIX\s0 linker can do this,
  21246. as can the \s-1GNU\s0 linker for PowerPC/64. It is planned to add this feature
  21247. to the \s-1GNU\s0 linker for 32\-bit PowerPC systems as well.
  21248. .Sp
  21249. On Darwin/PPC systems, \f(CW\*(C`#pragma longcall\*(C'\fR generates \f(CW\*(C`jbsr
  21250. callee, L42\*(C'\fR, plus a \fIbranch island\fR (glue code). The two target
  21251. addresses represent the callee and the branch island. The
  21252. Darwin/PPC linker prefers the first address and generates a \f(CW\*(C`bl
  21253. callee\*(C'\fR if the \s-1PPC \s0\f(CW\*(C`bl\*(C'\fR instruction reaches the callee directly;
  21254. otherwise, the linker generates \f(CW\*(C`bl L42\*(C'\fR to call the branch
  21255. island. The branch island is appended to the body of the
  21256. calling function; it computes the full 32\-bit address of the callee
  21257. and jumps to it.
  21258. .Sp
  21259. On Mach-O (Darwin) systems, this option directs the compiler emit to
  21260. the glue for every direct call, and the Darwin linker decides whether
  21261. to use or discard it.
  21262. .Sp
  21263. In the future, \s-1GCC\s0 may ignore all longcall specifications
  21264. when the linker is known to generate glue.
  21265. .IP "\fB\-mtls\-markers\fR" 4
  21266. .IX Item "-mtls-markers"
  21267. .PD 0
  21268. .IP "\fB\-mno\-tls\-markers\fR" 4
  21269. .IX Item "-mno-tls-markers"
  21270. .PD
  21271. Mark (do not mark) calls to \f(CW\*(C`_\|_tls_get_addr\*(C'\fR with a relocation
  21272. specifying the function argument. The relocation allows the linker to
  21273. reliably associate function call with argument setup instructions for
  21274. \&\s-1TLS\s0 optimization, which in turn allows \s-1GCC\s0 to better schedule the
  21275. sequence.
  21276. .IP "\fB\-mrecip\fR" 4
  21277. .IX Item "-mrecip"
  21278. .PD 0
  21279. .IP "\fB\-mno\-recip\fR" 4
  21280. .IX Item "-mno-recip"
  21281. .PD
  21282. This option enables use of the reciprocal estimate and
  21283. reciprocal square root estimate instructions with additional
  21284. Newton-Raphson steps to increase precision instead of doing a divide or
  21285. square root and divide for floating-point arguments. You should use
  21286. the \fB\-ffast\-math\fR option when using \fB\-mrecip\fR (or at
  21287. least \fB\-funsafe\-math\-optimizations\fR,
  21288. \&\fB\-ffinite\-math\-only\fR, \fB\-freciprocal\-math\fR and
  21289. \&\fB\-fno\-trapping\-math\fR). Note that while the throughput of the
  21290. sequence is generally higher than the throughput of the non-reciprocal
  21291. instruction, the precision of the sequence can be decreased by up to 2
  21292. ulp (i.e. the inverse of 1.0 equals 0.99999994) for reciprocal square
  21293. roots.
  21294. .IP "\fB\-mrecip=\fR\fIopt\fR" 4
  21295. .IX Item "-mrecip=opt"
  21296. This option controls which reciprocal estimate instructions
  21297. may be used. \fIopt\fR is a comma-separated list of options, which may
  21298. be preceded by a \f(CW\*(C`!\*(C'\fR to invert the option:
  21299. .RS 4
  21300. .IP "\fBall\fR" 4
  21301. .IX Item "all"
  21302. Enable all estimate instructions.
  21303. .IP "\fBdefault\fR" 4
  21304. .IX Item "default"
  21305. Enable the default instructions, equivalent to \fB\-mrecip\fR.
  21306. .IP "\fBnone\fR" 4
  21307. .IX Item "none"
  21308. Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
  21309. .IP "\fBdiv\fR" 4
  21310. .IX Item "div"
  21311. Enable the reciprocal approximation instructions for both
  21312. single and double precision.
  21313. .IP "\fBdivf\fR" 4
  21314. .IX Item "divf"
  21315. Enable the single-precision reciprocal approximation instructions.
  21316. .IP "\fBdivd\fR" 4
  21317. .IX Item "divd"
  21318. Enable the double-precision reciprocal approximation instructions.
  21319. .IP "\fBrsqrt\fR" 4
  21320. .IX Item "rsqrt"
  21321. Enable the reciprocal square root approximation instructions for both
  21322. single and double precision.
  21323. .IP "\fBrsqrtf\fR" 4
  21324. .IX Item "rsqrtf"
  21325. Enable the single-precision reciprocal square root approximation instructions.
  21326. .IP "\fBrsqrtd\fR" 4
  21327. .IX Item "rsqrtd"
  21328. Enable the double-precision reciprocal square root approximation instructions.
  21329. .RE
  21330. .RS 4
  21331. .Sp
  21332. So, for example, \fB\-mrecip=all,!rsqrtd\fR enables
  21333. all of the reciprocal estimate instructions, except for the
  21334. \&\f(CW\*(C`FRSQRTE\*(C'\fR, \f(CW\*(C`XSRSQRTEDP\*(C'\fR, and \f(CW\*(C`XVRSQRTEDP\*(C'\fR instructions
  21335. which handle the double-precision reciprocal square root calculations.
  21336. .RE
  21337. .IP "\fB\-mrecip\-precision\fR" 4
  21338. .IX Item "-mrecip-precision"
  21339. .PD 0
  21340. .IP "\fB\-mno\-recip\-precision\fR" 4
  21341. .IX Item "-mno-recip-precision"
  21342. .PD
  21343. Assume (do not assume) that the reciprocal estimate instructions
  21344. provide higher-precision estimates than is mandated by the PowerPC
  21345. \&\s-1ABI. \s0 Selecting \fB\-mcpu=power6\fR, \fB\-mcpu=power7\fR or
  21346. \&\fB\-mcpu=power8\fR automatically selects \fB\-mrecip\-precision\fR.
  21347. The double-precision square root estimate instructions are not generated by
  21348. default on low-precision machines, since they do not provide an
  21349. estimate that converges after three steps.
  21350. .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
  21351. .IX Item "-mveclibabi=type"
  21352. Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
  21353. external library. The only type supported at present is \fBmass\fR,
  21354. which specifies to use \s-1IBM\s0's Mathematical Acceleration Subsystem
  21355. (\s-1MASS\s0) libraries for vectorizing intrinsics using external libraries.
  21356. \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`acosd2\*(C'\fR, \f(CW\*(C`acosf4\*(C'\fR,
  21357. \&\f(CW\*(C`acoshd2\*(C'\fR, \f(CW\*(C`acoshf4\*(C'\fR, \f(CW\*(C`asind2\*(C'\fR, \f(CW\*(C`asinf4\*(C'\fR,
  21358. \&\f(CW\*(C`asinhd2\*(C'\fR, \f(CW\*(C`asinhf4\*(C'\fR, \f(CW\*(C`atan2d2\*(C'\fR, \f(CW\*(C`atan2f4\*(C'\fR,
  21359. \&\f(CW\*(C`atand2\*(C'\fR, \f(CW\*(C`atanf4\*(C'\fR, \f(CW\*(C`atanhd2\*(C'\fR, \f(CW\*(C`atanhf4\*(C'\fR,
  21360. \&\f(CW\*(C`cbrtd2\*(C'\fR, \f(CW\*(C`cbrtf4\*(C'\fR, \f(CW\*(C`cosd2\*(C'\fR, \f(CW\*(C`cosf4\*(C'\fR,
  21361. \&\f(CW\*(C`coshd2\*(C'\fR, \f(CW\*(C`coshf4\*(C'\fR, \f(CW\*(C`erfcd2\*(C'\fR, \f(CW\*(C`erfcf4\*(C'\fR,
  21362. \&\f(CW\*(C`erfd2\*(C'\fR, \f(CW\*(C`erff4\*(C'\fR, \f(CW\*(C`exp2d2\*(C'\fR, \f(CW\*(C`exp2f4\*(C'\fR,
  21363. \&\f(CW\*(C`expd2\*(C'\fR, \f(CW\*(C`expf4\*(C'\fR, \f(CW\*(C`expm1d2\*(C'\fR, \f(CW\*(C`expm1f4\*(C'\fR,
  21364. \&\f(CW\*(C`hypotd2\*(C'\fR, \f(CW\*(C`hypotf4\*(C'\fR, \f(CW\*(C`lgammad2\*(C'\fR, \f(CW\*(C`lgammaf4\*(C'\fR,
  21365. \&\f(CW\*(C`log10d2\*(C'\fR, \f(CW\*(C`log10f4\*(C'\fR, \f(CW\*(C`log1pd2\*(C'\fR, \f(CW\*(C`log1pf4\*(C'\fR,
  21366. \&\f(CW\*(C`log2d2\*(C'\fR, \f(CW\*(C`log2f4\*(C'\fR, \f(CW\*(C`logd2\*(C'\fR, \f(CW\*(C`logf4\*(C'\fR,
  21367. \&\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,
  21368. \&\f(CW\*(C`sinhf4\*(C'\fR, \f(CW\*(C`sqrtd2\*(C'\fR, \f(CW\*(C`sqrtf4\*(C'\fR, \f(CW\*(C`tand2\*(C'\fR,
  21369. \&\f(CW\*(C`tanf4\*(C'\fR, \f(CW\*(C`tanhd2\*(C'\fR, and \f(CW\*(C`tanhf4\*(C'\fR when generating code
  21370. for power7. Both \fB\-ftree\-vectorize\fR and
  21371. \&\fB\-funsafe\-math\-optimizations\fR must also be enabled. The \s-1MASS\s0
  21372. libraries must be specified at link time.
  21373. .IP "\fB\-mfriz\fR" 4
  21374. .IX Item "-mfriz"
  21375. .PD 0
  21376. .IP "\fB\-mno\-friz\fR" 4
  21377. .IX Item "-mno-friz"
  21378. .PD
  21379. Generate (do not generate) the \f(CW\*(C`friz\*(C'\fR instruction when the
  21380. \&\fB\-funsafe\-math\-optimizations\fR option is used to optimize
  21381. rounding of floating-point values to 64\-bit integer and back to floating
  21382. point. The \f(CW\*(C`friz\*(C'\fR instruction does not return the same value if
  21383. the floating-point number is too large to fit in an integer.
  21384. .IP "\fB\-mpointers\-to\-nested\-functions\fR" 4
  21385. .IX Item "-mpointers-to-nested-functions"
  21386. .PD 0
  21387. .IP "\fB\-mno\-pointers\-to\-nested\-functions\fR" 4
  21388. .IX Item "-mno-pointers-to-nested-functions"
  21389. .PD
  21390. Generate (do not generate) code to load up the static chain register
  21391. (\f(CW\*(C`r11\*(C'\fR) when calling through a pointer on \s-1AIX\s0 and 64\-bit Linux
  21392. systems where a function pointer points to a 3\-word descriptor giving
  21393. the function address, \s-1TOC\s0 value to be loaded in register \f(CW\*(C`r2\*(C'\fR, and
  21394. static chain value to be loaded in register \f(CW\*(C`r11\*(C'\fR. The
  21395. \&\fB\-mpointers\-to\-nested\-functions\fR is on by default. You cannot
  21396. call through pointers to nested functions or pointers
  21397. to functions compiled in other languages that use the static chain if
  21398. you use \fB\-mno\-pointers\-to\-nested\-functions\fR.
  21399. .IP "\fB\-msave\-toc\-indirect\fR" 4
  21400. .IX Item "-msave-toc-indirect"
  21401. .PD 0
  21402. .IP "\fB\-mno\-save\-toc\-indirect\fR" 4
  21403. .IX Item "-mno-save-toc-indirect"
  21404. .PD
  21405. Generate (do not generate) code to save the \s-1TOC\s0 value in the reserved
  21406. stack location in the function prologue if the function calls through
  21407. a pointer on \s-1AIX\s0 and 64\-bit Linux systems. If the \s-1TOC\s0 value is not
  21408. saved in the prologue, it is saved just before the call through the
  21409. pointer. The \fB\-mno\-save\-toc\-indirect\fR option is the default.
  21410. .IP "\fB\-mcompat\-align\-parm\fR" 4
  21411. .IX Item "-mcompat-align-parm"
  21412. .PD 0
  21413. .IP "\fB\-mno\-compat\-align\-parm\fR" 4
  21414. .IX Item "-mno-compat-align-parm"
  21415. .PD
  21416. Generate (do not generate) code to pass structure parameters with a
  21417. maximum alignment of 64 bits, for compatibility with older versions
  21418. of \s-1GCC.\s0
  21419. .Sp
  21420. Older versions of \s-1GCC \s0(prior to 4.9.0) incorrectly did not align a
  21421. structure parameter on a 128\-bit boundary when that structure contained
  21422. a member requiring 128\-bit alignment. This is corrected in more
  21423. recent versions of \s-1GCC. \s0 This option may be used to generate code
  21424. that is compatible with functions compiled with older versions of
  21425. \&\s-1GCC.\s0
  21426. .Sp
  21427. The \fB\-mno\-compat\-align\-parm\fR option is the default.
  21428. .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
  21429. .IX Item "-mstack-protector-guard=guard"
  21430. .PD 0
  21431. .IP "\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR" 4
  21432. .IX Item "-mstack-protector-guard-reg=reg"
  21433. .IP "\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR" 4
  21434. .IX Item "-mstack-protector-guard-offset=offset"
  21435. .PD
  21436. Generate stack protection code using canary at \fIguard\fR. Supported
  21437. locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
  21438. canary in the \s-1TLS\s0 block (the default with \s-1GNU\s0 libc version 2.4 or later).
  21439. .Sp
  21440. With the latter choice the options
  21441. \&\fB\-mstack\-protector\-guard\-reg=\fR\fIreg\fR and
  21442. \&\fB\-mstack\-protector\-guard\-offset=\fR\fIoffset\fR furthermore specify
  21443. which register to use as base register for reading the canary, and from what
  21444. offset from that base register. The default for those is as specified in the
  21445. relevant \s-1ABI.\s0
  21446. .PP
  21447. \fI\s-1RX\s0 Options\fR
  21448. .IX Subsection "RX Options"
  21449. .PP
  21450. These command-line options are defined for \s-1RX\s0 targets:
  21451. .IP "\fB\-m64bit\-doubles\fR" 4
  21452. .IX Item "-m64bit-doubles"
  21453. .PD 0
  21454. .IP "\fB\-m32bit\-doubles\fR" 4
  21455. .IX Item "-m32bit-doubles"
  21456. .PD
  21457. Make the \f(CW\*(C`double\*(C'\fR data type be 64 bits (\fB\-m64bit\-doubles\fR)
  21458. or 32 bits (\fB\-m32bit\-doubles\fR) in size. The default is
  21459. \&\fB\-m32bit\-doubles\fR. \fINote\fR \s-1RX\s0 floating-point hardware only
  21460. works on 32\-bit values, which is why the default is
  21461. \&\fB\-m32bit\-doubles\fR.
  21462. .IP "\fB\-fpu\fR" 4
  21463. .IX Item "-fpu"
  21464. .PD 0
  21465. .IP "\fB\-nofpu\fR" 4
  21466. .IX Item "-nofpu"
  21467. .PD
  21468. Enables (\fB\-fpu\fR) or disables (\fB\-nofpu\fR) the use of \s-1RX\s0
  21469. floating-point hardware. The default is enabled for the \s-1RX600\s0
  21470. series and disabled for the \s-1RX200\s0 series.
  21471. .Sp
  21472. Floating-point instructions are only generated for 32\-bit floating-point
  21473. values, however, so the \s-1FPU\s0 hardware is not used for doubles if the
  21474. \&\fB\-m64bit\-doubles\fR option is used.
  21475. .Sp
  21476. \&\fINote\fR If the \fB\-fpu\fR option is enabled then
  21477. \&\fB\-funsafe\-math\-optimizations\fR is also enabled automatically.
  21478. This is because the \s-1RX FPU\s0 instructions are themselves unsafe.
  21479. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  21480. .IX Item "-mcpu=name"
  21481. Selects the type of \s-1RX CPU\s0 to be targeted. Currently three types are
  21482. supported, the generic \fB\s-1RX600\s0\fR and \fB\s-1RX200\s0\fR series hardware and
  21483. the specific \fB\s-1RX610\s0\fR \s-1CPU. \s0 The default is \fB\s-1RX600\s0\fR.
  21484. .Sp
  21485. The only difference between \fB\s-1RX600\s0\fR and \fB\s-1RX610\s0\fR is that the
  21486. \&\fB\s-1RX610\s0\fR does not support the \f(CW\*(C`MVTIPL\*(C'\fR instruction.
  21487. .Sp
  21488. The \fB\s-1RX200\s0\fR series does not have a hardware floating-point unit
  21489. and so \fB\-nofpu\fR is enabled by default when this type is
  21490. selected.
  21491. .IP "\fB\-mbig\-endian\-data\fR" 4
  21492. .IX Item "-mbig-endian-data"
  21493. .PD 0
  21494. .IP "\fB\-mlittle\-endian\-data\fR" 4
  21495. .IX Item "-mlittle-endian-data"
  21496. .PD
  21497. Store data (but not code) in the big-endian format. The default is
  21498. \&\fB\-mlittle\-endian\-data\fR, i.e. to store data in the little-endian
  21499. format.
  21500. .IP "\fB\-msmall\-data\-limit=\fR\fIN\fR" 4
  21501. .IX Item "-msmall-data-limit=N"
  21502. Specifies the maximum size in bytes of global and static variables
  21503. which can be placed into the small data area. Using the small data
  21504. area can lead to smaller and faster code, but the size of area is
  21505. limited and it is up to the programmer to ensure that the area does
  21506. not overflow. Also when the small data area is used one of the \s-1RX\s0's
  21507. registers (usually \f(CW\*(C`r13\*(C'\fR) is reserved for use pointing to this
  21508. area, so it is no longer available for use by the compiler. This
  21509. could result in slower and/or larger code if variables are pushed onto
  21510. the stack instead of being held in this register.
  21511. .Sp
  21512. Note, common variables (variables that have not been initialized) and
  21513. constants are not placed into the small data area as they are assigned
  21514. to other sections in the output executable.
  21515. .Sp
  21516. The default value is zero, which disables this feature. Note, this
  21517. feature is not enabled by default with higher optimization levels
  21518. (\fB\-O2\fR etc) because of the potentially detrimental effects of
  21519. reserving a register. It is up to the programmer to experiment and
  21520. discover whether this feature is of benefit to their program. See the
  21521. description of the \fB\-mpid\fR option for a description of how the
  21522. actual register to hold the small data area pointer is chosen.
  21523. .IP "\fB\-msim\fR" 4
  21524. .IX Item "-msim"
  21525. .PD 0
  21526. .IP "\fB\-mno\-sim\fR" 4
  21527. .IX Item "-mno-sim"
  21528. .PD
  21529. Use the simulator runtime. The default is to use the libgloss
  21530. board-specific runtime.
  21531. .IP "\fB\-mas100\-syntax\fR" 4
  21532. .IX Item "-mas100-syntax"
  21533. .PD 0
  21534. .IP "\fB\-mno\-as100\-syntax\fR" 4
  21535. .IX Item "-mno-as100-syntax"
  21536. .PD
  21537. When generating assembler output use a syntax that is compatible with
  21538. Renesas's \s-1AS100\s0 assembler. This syntax can also be handled by the \s-1GAS\s0
  21539. assembler, but it has some restrictions so it is not generated by default.
  21540. .IP "\fB\-mmax\-constant\-size=\fR\fIN\fR" 4
  21541. .IX Item "-mmax-constant-size=N"
  21542. Specifies the maximum size, in bytes, of a constant that can be used as
  21543. an operand in a \s-1RX\s0 instruction. Although the \s-1RX\s0 instruction set does
  21544. allow constants of up to 4 bytes in length to be used in instructions,
  21545. a longer value equates to a longer instruction. Thus in some
  21546. circumstances it can be beneficial to restrict the size of constants
  21547. that are used in instructions. Constants that are too big are instead
  21548. placed into a constant pool and referenced via register indirection.
  21549. .Sp
  21550. The value \fIN\fR can be between 0 and 4. A value of 0 (the default)
  21551. or 4 means that constants of any size are allowed.
  21552. .IP "\fB\-mrelax\fR" 4
  21553. .IX Item "-mrelax"
  21554. Enable linker relaxation. Linker relaxation is a process whereby the
  21555. linker attempts to reduce the size of a program by finding shorter
  21556. versions of various instructions. Disabled by default.
  21557. .IP "\fB\-mint\-register=\fR\fIN\fR" 4
  21558. .IX Item "-mint-register=N"
  21559. Specify the number of registers to reserve for fast interrupt handler
  21560. functions. The value \fIN\fR can be between 0 and 4. A value of 1
  21561. means that register \f(CW\*(C`r13\*(C'\fR is reserved for the exclusive use
  21562. of fast interrupt handlers. A value of 2 reserves \f(CW\*(C`r13\*(C'\fR and
  21563. \&\f(CW\*(C`r12\*(C'\fR. A value of 3 reserves \f(CW\*(C`r13\*(C'\fR, \f(CW\*(C`r12\*(C'\fR and
  21564. \&\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.
  21565. A value of 0, the default, does not reserve any registers.
  21566. .IP "\fB\-msave\-acc\-in\-interrupts\fR" 4
  21567. .IX Item "-msave-acc-in-interrupts"
  21568. Specifies that interrupt handler functions should preserve the
  21569. accumulator register. This is only necessary if normal code might use
  21570. the accumulator register, for example because it performs 64\-bit
  21571. multiplications. The default is to ignore the accumulator as this
  21572. makes the interrupt handlers faster.
  21573. .IP "\fB\-mpid\fR" 4
  21574. .IX Item "-mpid"
  21575. .PD 0
  21576. .IP "\fB\-mno\-pid\fR" 4
  21577. .IX Item "-mno-pid"
  21578. .PD
  21579. Enables the generation of position independent data. When enabled any
  21580. access to constant data is done via an offset from a base address
  21581. held in a register. This allows the location of constant data to be
  21582. determined at run time without requiring the executable to be
  21583. relocated, which is a benefit to embedded applications with tight
  21584. memory constraints. Data that can be modified is not affected by this
  21585. option.
  21586. .Sp
  21587. Note, using this feature reserves a register, usually \f(CW\*(C`r13\*(C'\fR, for
  21588. the constant data base address. This can result in slower and/or
  21589. larger code, especially in complicated functions.
  21590. .Sp
  21591. The actual register chosen to hold the constant data base address
  21592. depends upon whether the \fB\-msmall\-data\-limit\fR and/or the
  21593. \&\fB\-mint\-register\fR command-line options are enabled. Starting
  21594. with register \f(CW\*(C`r13\*(C'\fR and proceeding downwards, registers are
  21595. allocated first to satisfy the requirements of \fB\-mint\-register\fR,
  21596. then \fB\-mpid\fR and finally \fB\-msmall\-data\-limit\fR. Thus it
  21597. is possible for the small data area register to be \f(CW\*(C`r8\*(C'\fR if both
  21598. \&\fB\-mint\-register=4\fR and \fB\-mpid\fR are specified on the
  21599. command line.
  21600. .Sp
  21601. By default this feature is not enabled. The default can be restored
  21602. via the \fB\-mno\-pid\fR command-line option.
  21603. .IP "\fB\-mno\-warn\-multiple\-fast\-interrupts\fR" 4
  21604. .IX Item "-mno-warn-multiple-fast-interrupts"
  21605. .PD 0
  21606. .IP "\fB\-mwarn\-multiple\-fast\-interrupts\fR" 4
  21607. .IX Item "-mwarn-multiple-fast-interrupts"
  21608. .PD
  21609. Prevents \s-1GCC\s0 from issuing a warning message if it finds more than one
  21610. fast interrupt handler when it is compiling a file. The default is to
  21611. issue a warning for each extra fast interrupt handler found, as the \s-1RX\s0
  21612. only supports one such interrupt.
  21613. .IP "\fB\-mallow\-string\-insns\fR" 4
  21614. .IX Item "-mallow-string-insns"
  21615. .PD 0
  21616. .IP "\fB\-mno\-allow\-string\-insns\fR" 4
  21617. .IX Item "-mno-allow-string-insns"
  21618. .PD
  21619. Enables or disables the use of the string manipulation instructions
  21620. \&\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
  21621. \&\f(CW\*(C`SWHILE\*(C'\fR and also the \f(CW\*(C`RMPA\*(C'\fR instruction. These
  21622. instructions may prefetch data, which is not safe to do if accessing
  21623. an I/O register. (See section 12.2.7 of the \s-1RX62N\s0 Group User's Manual
  21624. for more information).
  21625. .Sp
  21626. The default is to allow these instructions, but it is not possible for
  21627. \&\s-1GCC\s0 to reliably detect all circumstances where a string instruction
  21628. might be used to access an I/O register, so their use cannot be
  21629. disabled automatically. Instead it is reliant upon the programmer to
  21630. use the \fB\-mno\-allow\-string\-insns\fR option if their program
  21631. accesses I/O space.
  21632. .Sp
  21633. When the instructions are enabled \s-1GCC\s0 defines the C preprocessor
  21634. symbol \f(CW\*(C`_\|_RX_ALLOW_STRING_INSNS_\|_\*(C'\fR, otherwise it defines the
  21635. symbol \f(CW\*(C`_\|_RX_DISALLOW_STRING_INSNS_\|_\*(C'\fR.
  21636. .IP "\fB\-mjsr\fR" 4
  21637. .IX Item "-mjsr"
  21638. .PD 0
  21639. .IP "\fB\-mno\-jsr\fR" 4
  21640. .IX Item "-mno-jsr"
  21641. .PD
  21642. Use only (or not only) \f(CW\*(C`JSR\*(C'\fR instructions to access functions.
  21643. This option can be used when code size exceeds the range of \f(CW\*(C`BSR\*(C'\fR
  21644. instructions. Note that \fB\-mno\-jsr\fR does not mean to not use
  21645. \&\f(CW\*(C`JSR\*(C'\fR but instead means that any type of branch may be used.
  21646. .PP
  21647. \&\fINote:\fR The generic \s-1GCC\s0 command-line option \fB\-ffixed\-\fR\fIreg\fR
  21648. has special significance to the \s-1RX\s0 port when used with the
  21649. \&\f(CW\*(C`interrupt\*(C'\fR function attribute. This attribute indicates a
  21650. function intended to process fast interrupts. \s-1GCC\s0 ensures
  21651. that it only uses the registers \f(CW\*(C`r10\*(C'\fR, \f(CW\*(C`r11\*(C'\fR, \f(CW\*(C`r12\*(C'\fR
  21652. and/or \f(CW\*(C`r13\*(C'\fR and only provided that the normal use of the
  21653. corresponding registers have been restricted via the
  21654. \&\fB\-ffixed\-\fR\fIreg\fR or \fB\-mint\-register\fR command-line
  21655. options.
  21656. .PP
  21657. \fIS/390 and zSeries Options\fR
  21658. .IX Subsection "S/390 and zSeries Options"
  21659. .PP
  21660. These are the \fB\-m\fR options defined for the S/390 and zSeries architecture.
  21661. .IP "\fB\-mhard\-float\fR" 4
  21662. .IX Item "-mhard-float"
  21663. .PD 0
  21664. .IP "\fB\-msoft\-float\fR" 4
  21665. .IX Item "-msoft-float"
  21666. .PD
  21667. Use (do not use) the hardware floating-point instructions and registers
  21668. for floating-point operations. When \fB\-msoft\-float\fR is specified,
  21669. functions in \fIlibgcc.a\fR are used to perform floating-point
  21670. operations. When \fB\-mhard\-float\fR is specified, the compiler
  21671. generates \s-1IEEE\s0 floating-point instructions. This is the default.
  21672. .IP "\fB\-mhard\-dfp\fR" 4
  21673. .IX Item "-mhard-dfp"
  21674. .PD 0
  21675. .IP "\fB\-mno\-hard\-dfp\fR" 4
  21676. .IX Item "-mno-hard-dfp"
  21677. .PD
  21678. Use (do not use) the hardware decimal-floating-point instructions for
  21679. decimal-floating-point operations. When \fB\-mno\-hard\-dfp\fR is
  21680. specified, functions in \fIlibgcc.a\fR are used to perform
  21681. decimal-floating-point operations. When \fB\-mhard\-dfp\fR is
  21682. specified, the compiler generates decimal-floating-point hardware
  21683. instructions. This is the default for \fB\-march=z9\-ec\fR or higher.
  21684. .IP "\fB\-mlong\-double\-64\fR" 4
  21685. .IX Item "-mlong-double-64"
  21686. .PD 0
  21687. .IP "\fB\-mlong\-double\-128\fR" 4
  21688. .IX Item "-mlong-double-128"
  21689. .PD
  21690. These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
  21691. of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
  21692. type. This is the default.
  21693. .IP "\fB\-mbackchain\fR" 4
  21694. .IX Item "-mbackchain"
  21695. .PD 0
  21696. .IP "\fB\-mno\-backchain\fR" 4
  21697. .IX Item "-mno-backchain"
  21698. .PD
  21699. Store (do not store) the address of the caller's frame as backchain pointer
  21700. into the callee's stack frame.
  21701. A backchain may be needed to allow debugging using tools that do not understand
  21702. \&\s-1DWARF\s0 call frame information.
  21703. When \fB\-mno\-packed\-stack\fR is in effect, the backchain pointer is stored
  21704. at the bottom of the stack frame; when \fB\-mpacked\-stack\fR is in effect,
  21705. the backchain is placed into the topmost word of the 96/160 byte register
  21706. save area.
  21707. .Sp
  21708. In general, code compiled with \fB\-mbackchain\fR is call-compatible with
  21709. code compiled with \fB\-mmo\-backchain\fR; however, use of the backchain
  21710. for debugging purposes usually requires that the whole binary is built with
  21711. \&\fB\-mbackchain\fR. Note that the combination of \fB\-mbackchain\fR,
  21712. \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported. In order
  21713. to build a linux kernel use \fB\-msoft\-float\fR.
  21714. .Sp
  21715. The default is to not maintain the backchain.
  21716. .IP "\fB\-mpacked\-stack\fR" 4
  21717. .IX Item "-mpacked-stack"
  21718. .PD 0
  21719. .IP "\fB\-mno\-packed\-stack\fR" 4
  21720. .IX Item "-mno-packed-stack"
  21721. .PD
  21722. Use (do not use) the packed stack layout. When \fB\-mno\-packed\-stack\fR is
  21723. specified, the compiler uses the all fields of the 96/160 byte register save
  21724. area only for their default purpose; unused fields still take up stack space.
  21725. When \fB\-mpacked\-stack\fR is specified, register save slots are densely
  21726. packed at the top of the register save area; unused space is reused for other
  21727. purposes, allowing for more efficient use of the available stack space.
  21728. However, when \fB\-mbackchain\fR is also in effect, the topmost word of
  21729. the save area is always used to store the backchain, and the return address
  21730. register is always saved two words below the backchain.
  21731. .Sp
  21732. As long as the stack frame backchain is not used, code generated with
  21733. \&\fB\-mpacked\-stack\fR is call-compatible with code generated with
  21734. \&\fB\-mno\-packed\-stack\fR. Note that some non-FSF releases of \s-1GCC 2.95\s0 for
  21735. S/390 or zSeries generated code that uses the stack frame backchain at run
  21736. time, not just for debugging purposes. Such code is not call-compatible
  21737. with code compiled with \fB\-mpacked\-stack\fR. Also, note that the
  21738. combination of \fB\-mbackchain\fR,
  21739. \&\fB\-mpacked\-stack\fR and \fB\-mhard\-float\fR is not supported. In order
  21740. to build a linux kernel use \fB\-msoft\-float\fR.
  21741. .Sp
  21742. The default is to not use the packed stack layout.
  21743. .IP "\fB\-msmall\-exec\fR" 4
  21744. .IX Item "-msmall-exec"
  21745. .PD 0
  21746. .IP "\fB\-mno\-small\-exec\fR" 4
  21747. .IX Item "-mno-small-exec"
  21748. .PD
  21749. Generate (or do not generate) code using the \f(CW\*(C`bras\*(C'\fR instruction
  21750. to do subroutine calls.
  21751. This only works reliably if the total executable size does not
  21752. exceed 64k. The default is to use the \f(CW\*(C`basr\*(C'\fR instruction instead,
  21753. which does not have this limitation.
  21754. .IP "\fB\-m64\fR" 4
  21755. .IX Item "-m64"
  21756. .PD 0
  21757. .IP "\fB\-m31\fR" 4
  21758. .IX Item "-m31"
  21759. .PD
  21760. When \fB\-m31\fR is specified, generate code compliant to the
  21761. GNU/Linux for S/390 \s-1ABI. \s0 When \fB\-m64\fR is specified, generate
  21762. code compliant to the GNU/Linux for zSeries \s-1ABI. \s0 This allows \s-1GCC\s0 in
  21763. particular to generate 64\-bit instructions. For the \fBs390\fR
  21764. targets, the default is \fB\-m31\fR, while the \fBs390x\fR
  21765. targets default to \fB\-m64\fR.
  21766. .IP "\fB\-mzarch\fR" 4
  21767. .IX Item "-mzarch"
  21768. .PD 0
  21769. .IP "\fB\-mesa\fR" 4
  21770. .IX Item "-mesa"
  21771. .PD
  21772. When \fB\-mzarch\fR is specified, generate code using the
  21773. instructions available on z/Architecture.
  21774. When \fB\-mesa\fR is specified, generate code using the
  21775. instructions available on \s-1ESA/390. \s0 Note that \fB\-mesa\fR is
  21776. not possible with \fB\-m64\fR.
  21777. When generating code compliant to the GNU/Linux for S/390 \s-1ABI,\s0
  21778. the default is \fB\-mesa\fR. When generating code compliant
  21779. to the GNU/Linux for zSeries \s-1ABI,\s0 the default is \fB\-mzarch\fR.
  21780. .IP "\fB\-mhtm\fR" 4
  21781. .IX Item "-mhtm"
  21782. .PD 0
  21783. .IP "\fB\-mno\-htm\fR" 4
  21784. .IX Item "-mno-htm"
  21785. .PD
  21786. The \fB\-mhtm\fR option enables a set of builtins making use of
  21787. instructions available with the transactional execution facility
  21788. introduced with the \s-1IBM\s0 zEnterprise \s-1EC12\s0 machine generation
  21789. \&\fBS/390 System z Built-in Functions\fR.
  21790. \&\fB\-mhtm\fR is enabled by default when using \fB\-march=zEC12\fR.
  21791. .IP "\fB\-mvx\fR" 4
  21792. .IX Item "-mvx"
  21793. .PD 0
  21794. .IP "\fB\-mno\-vx\fR" 4
  21795. .IX Item "-mno-vx"
  21796. .PD
  21797. When \fB\-mvx\fR is specified, generate code using the instructions
  21798. available with the vector extension facility introduced with the \s-1IBM\s0
  21799. z13 machine generation.
  21800. This option changes the \s-1ABI\s0 for some vector type values with regard to
  21801. alignment and calling conventions. In case vector type values are
  21802. being used in an ABI-relevant context a \s-1GAS \s0\fB.gnu_attribute\fR
  21803. command will be added to mark the resulting binary with the \s-1ABI\s0 used.
  21804. \&\fB\-mvx\fR is enabled by default when using \fB\-march=z13\fR.
  21805. .IP "\fB\-mzvector\fR" 4
  21806. .IX Item "-mzvector"
  21807. .PD 0
  21808. .IP "\fB\-mno\-zvector\fR" 4
  21809. .IX Item "-mno-zvector"
  21810. .PD
  21811. The \fB\-mzvector\fR option enables vector language extensions and
  21812. builtins using instructions available with the vector extension
  21813. facility introduced with the \s-1IBM\s0 z13 machine generation.
  21814. This option adds support for \fBvector\fR to be used as a keyword to
  21815. define vector type variables and arguments. \fBvector\fR is only
  21816. available when \s-1GNU\s0 extensions are enabled. It will not be expanded
  21817. when requesting strict standard compliance e.g. with \fB\-std=c99\fR.
  21818. In addition to the \s-1GCC\s0 low-level builtins \fB\-mzvector\fR enables
  21819. a set of builtins added for compatibility with AltiVec-style
  21820. implementations like Power and Cell. In order to make use of these
  21821. builtins the header file \fIvecintrin.h\fR needs to be included.
  21822. \&\fB\-mzvector\fR is disabled by default.
  21823. .IP "\fB\-mmvcle\fR" 4
  21824. .IX Item "-mmvcle"
  21825. .PD 0
  21826. .IP "\fB\-mno\-mvcle\fR" 4
  21827. .IX Item "-mno-mvcle"
  21828. .PD
  21829. Generate (or do not generate) code using the \f(CW\*(C`mvcle\*(C'\fR instruction
  21830. to perform block moves. When \fB\-mno\-mvcle\fR is specified,
  21831. use a \f(CW\*(C`mvc\*(C'\fR loop instead. This is the default unless optimizing for
  21832. size.
  21833. .IP "\fB\-mdebug\fR" 4
  21834. .IX Item "-mdebug"
  21835. .PD 0
  21836. .IP "\fB\-mno\-debug\fR" 4
  21837. .IX Item "-mno-debug"
  21838. .PD
  21839. Print (or do not print) additional debug information when compiling.
  21840. The default is to not print debug information.
  21841. .IP "\fB\-march=\fR\fIcpu-type\fR" 4
  21842. .IX Item "-march=cpu-type"
  21843. Generate code that runs on \fIcpu-type\fR, which is the name of a
  21844. system representing a certain processor type. Possible values for
  21845. \&\fIcpu-type\fR are \fBz900\fR/\fBarch5\fR, \fBz990\fR/\fBarch6\fR,
  21846. \&\fBz9\-109\fR, \fBz9\-ec\fR/\fBarch7\fR, \fBz10\fR/\fBarch8\fR,
  21847. \&\fBz196\fR/\fBarch9\fR, \fBzEC12\fR, \fBz13\fR/\fBarch11\fR,
  21848. \&\fBz14\fR/\fBarch12\fR, and \fBnative\fR.
  21849. .Sp
  21850. The default is \fB\-march=z900\fR. \fBg5\fR/\fBarch3\fR and
  21851. \&\fBg6\fR are deprecated and will be removed with future releases.
  21852. .Sp
  21853. Specifying \fBnative\fR as cpu type can be used to select the best
  21854. architecture option for the host processor.
  21855. \&\fB\-march=native\fR has no effect if \s-1GCC\s0 does not recognize the
  21856. processor.
  21857. .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
  21858. .IX Item "-mtune=cpu-type"
  21859. Tune to \fIcpu-type\fR everything applicable about the generated code,
  21860. except for the \s-1ABI\s0 and the set of available instructions.
  21861. The list of \fIcpu-type\fR values is the same as for \fB\-march\fR.
  21862. The default is the value used for \fB\-march\fR.
  21863. .IP "\fB\-mtpf\-trace\fR" 4
  21864. .IX Item "-mtpf-trace"
  21865. .PD 0
  21866. .IP "\fB\-mno\-tpf\-trace\fR" 4
  21867. .IX Item "-mno-tpf-trace"
  21868. .PD
  21869. Generate code that adds (does not add) in \s-1TPF OS\s0 specific branches to trace
  21870. routines in the operating system. This option is off by default, even
  21871. when compiling for the \s-1TPF OS.\s0
  21872. .IP "\fB\-mfused\-madd\fR" 4
  21873. .IX Item "-mfused-madd"
  21874. .PD 0
  21875. .IP "\fB\-mno\-fused\-madd\fR" 4
  21876. .IX Item "-mno-fused-madd"
  21877. .PD
  21878. Generate code that uses (does not use) the floating-point multiply and
  21879. accumulate instructions. These instructions are generated by default if
  21880. hardware floating point is used.
  21881. .IP "\fB\-mwarn\-framesize=\fR\fIframesize\fR" 4
  21882. .IX Item "-mwarn-framesize=framesize"
  21883. Emit a warning if the current function exceeds the given frame size. Because
  21884. this is a compile-time check it doesn't need to be a real problem when the program
  21885. runs. It is intended to identify functions that most probably cause
  21886. a stack overflow. It is useful to be used in an environment with limited stack
  21887. size e.g. the linux kernel.
  21888. .IP "\fB\-mwarn\-dynamicstack\fR" 4
  21889. .IX Item "-mwarn-dynamicstack"
  21890. Emit a warning if the function calls \f(CW\*(C`alloca\*(C'\fR or uses dynamically-sized
  21891. arrays. This is generally a bad idea with a limited stack size.
  21892. .IP "\fB\-mstack\-guard=\fR\fIstack-guard\fR" 4
  21893. .IX Item "-mstack-guard=stack-guard"
  21894. .PD 0
  21895. .IP "\fB\-mstack\-size=\fR\fIstack-size\fR" 4
  21896. .IX Item "-mstack-size=stack-size"
  21897. .PD
  21898. If these options are provided the S/390 back end emits additional instructions in
  21899. the function prologue that trigger a trap if the stack size is \fIstack-guard\fR
  21900. bytes above the \fIstack-size\fR (remember that the stack on S/390 grows downward).
  21901. If the \fIstack-guard\fR option is omitted the smallest power of 2 larger than
  21902. the frame size of the compiled function is chosen.
  21903. These options are intended to be used to help debugging stack overflow problems.
  21904. The additionally emitted code causes only little overhead and hence can also be
  21905. used in production-like systems without greater performance degradation. The given
  21906. values have to be exact powers of 2 and \fIstack-size\fR has to be greater than
  21907. \&\fIstack-guard\fR without exceeding 64k.
  21908. In order to be efficient the extra code makes the assumption that the stack starts
  21909. at an address aligned to the value given by \fIstack-size\fR.
  21910. The \fIstack-guard\fR option can only be used in conjunction with \fIstack-size\fR.
  21911. .IP "\fB\-mhotpatch=\fR\fIpre-halfwords\fR\fB,\fR\fIpost-halfwords\fR" 4
  21912. .IX Item "-mhotpatch=pre-halfwords,post-halfwords"
  21913. If the hotpatch option is enabled, a \*(L"hot-patching\*(R" function
  21914. prologue is generated for all functions in the compilation unit.
  21915. The funtion label is prepended with the given number of two-byte
  21916. \&\s-1NOP\s0 instructions (\fIpre-halfwords\fR, maximum 1000000). After
  21917. the label, 2 * \fIpost-halfwords\fR bytes are appended, using the
  21918. largest \s-1NOP\s0 like instructions the architecture allows (maximum
  21919. 1000000).
  21920. .Sp
  21921. If both arguments are zero, hotpatching is disabled.
  21922. .Sp
  21923. This option can be overridden for individual functions with the
  21924. \&\f(CW\*(C`hotpatch\*(C'\fR attribute.
  21925. .PP
  21926. \fIScore Options\fR
  21927. .IX Subsection "Score Options"
  21928. .PP
  21929. These options are defined for Score implementations:
  21930. .IP "\fB\-meb\fR" 4
  21931. .IX Item "-meb"
  21932. Compile code for big-endian mode. This is the default.
  21933. .IP "\fB\-mel\fR" 4
  21934. .IX Item "-mel"
  21935. Compile code for little-endian mode.
  21936. .IP "\fB\-mnhwloop\fR" 4
  21937. .IX Item "-mnhwloop"
  21938. Disable generation of \f(CW\*(C`bcnz\*(C'\fR instructions.
  21939. .IP "\fB\-muls\fR" 4
  21940. .IX Item "-muls"
  21941. Enable generation of unaligned load and store instructions.
  21942. .IP "\fB\-mmac\fR" 4
  21943. .IX Item "-mmac"
  21944. Enable the use of multiply-accumulate instructions. Disabled by default.
  21945. .IP "\fB\-mscore5\fR" 4
  21946. .IX Item "-mscore5"
  21947. Specify the \s-1SCORE5\s0 as the target architecture.
  21948. .IP "\fB\-mscore5u\fR" 4
  21949. .IX Item "-mscore5u"
  21950. Specify the \s-1SCORE5U\s0 of the target architecture.
  21951. .IP "\fB\-mscore7\fR" 4
  21952. .IX Item "-mscore7"
  21953. Specify the \s-1SCORE7\s0 as the target architecture. This is the default.
  21954. .IP "\fB\-mscore7d\fR" 4
  21955. .IX Item "-mscore7d"
  21956. Specify the \s-1SCORE7D\s0 as the target architecture.
  21957. .PP
  21958. \fI\s-1SH\s0 Options\fR
  21959. .IX Subsection "SH Options"
  21960. .PP
  21961. These \fB\-m\fR options are defined for the \s-1SH\s0 implementations:
  21962. .IP "\fB\-m1\fR" 4
  21963. .IX Item "-m1"
  21964. Generate code for the \s-1SH1.\s0
  21965. .IP "\fB\-m2\fR" 4
  21966. .IX Item "-m2"
  21967. Generate code for the \s-1SH2.\s0
  21968. .IP "\fB\-m2e\fR" 4
  21969. .IX Item "-m2e"
  21970. Generate code for the SH2e.
  21971. .IP "\fB\-m2a\-nofpu\fR" 4
  21972. .IX Item "-m2a-nofpu"
  21973. Generate code for the SH2a without \s-1FPU,\s0 or for a SH2a\-FPU in such a way
  21974. that the floating-point unit is not used.
  21975. .IP "\fB\-m2a\-single\-only\fR" 4
  21976. .IX Item "-m2a-single-only"
  21977. Generate code for the SH2a\-FPU, in such a way that no double-precision
  21978. floating-point operations are used.
  21979. .IP "\fB\-m2a\-single\fR" 4
  21980. .IX Item "-m2a-single"
  21981. Generate code for the SH2a\-FPU assuming the floating-point unit is in
  21982. single-precision mode by default.
  21983. .IP "\fB\-m2a\fR" 4
  21984. .IX Item "-m2a"
  21985. Generate code for the SH2a\-FPU assuming the floating-point unit is in
  21986. double-precision mode by default.
  21987. .IP "\fB\-m3\fR" 4
  21988. .IX Item "-m3"
  21989. Generate code for the \s-1SH3.\s0
  21990. .IP "\fB\-m3e\fR" 4
  21991. .IX Item "-m3e"
  21992. Generate code for the SH3e.
  21993. .IP "\fB\-m4\-nofpu\fR" 4
  21994. .IX Item "-m4-nofpu"
  21995. Generate code for the \s-1SH4\s0 without a floating-point unit.
  21996. .IP "\fB\-m4\-single\-only\fR" 4
  21997. .IX Item "-m4-single-only"
  21998. Generate code for the \s-1SH4\s0 with a floating-point unit that only
  21999. supports single-precision arithmetic.
  22000. .IP "\fB\-m4\-single\fR" 4
  22001. .IX Item "-m4-single"
  22002. Generate code for the \s-1SH4\s0 assuming the floating-point unit is in
  22003. single-precision mode by default.
  22004. .IP "\fB\-m4\fR" 4
  22005. .IX Item "-m4"
  22006. Generate code for the \s-1SH4.\s0
  22007. .IP "\fB\-m4\-100\fR" 4
  22008. .IX Item "-m4-100"
  22009. Generate code for \s-1SH4\-100.\s0
  22010. .IP "\fB\-m4\-100\-nofpu\fR" 4
  22011. .IX Item "-m4-100-nofpu"
  22012. Generate code for \s-1SH4\-100\s0 in such a way that the
  22013. floating-point unit is not used.
  22014. .IP "\fB\-m4\-100\-single\fR" 4
  22015. .IX Item "-m4-100-single"
  22016. Generate code for \s-1SH4\-100\s0 assuming the floating-point unit is in
  22017. single-precision mode by default.
  22018. .IP "\fB\-m4\-100\-single\-only\fR" 4
  22019. .IX Item "-m4-100-single-only"
  22020. Generate code for \s-1SH4\-100\s0 in such a way that no double-precision
  22021. floating-point operations are used.
  22022. .IP "\fB\-m4\-200\fR" 4
  22023. .IX Item "-m4-200"
  22024. Generate code for \s-1SH4\-200.\s0
  22025. .IP "\fB\-m4\-200\-nofpu\fR" 4
  22026. .IX Item "-m4-200-nofpu"
  22027. Generate code for \s-1SH4\-200\s0 without in such a way that the
  22028. floating-point unit is not used.
  22029. .IP "\fB\-m4\-200\-single\fR" 4
  22030. .IX Item "-m4-200-single"
  22031. Generate code for \s-1SH4\-200\s0 assuming the floating-point unit is in
  22032. single-precision mode by default.
  22033. .IP "\fB\-m4\-200\-single\-only\fR" 4
  22034. .IX Item "-m4-200-single-only"
  22035. Generate code for \s-1SH4\-200\s0 in such a way that no double-precision
  22036. floating-point operations are used.
  22037. .IP "\fB\-m4\-300\fR" 4
  22038. .IX Item "-m4-300"
  22039. Generate code for \s-1SH4\-300.\s0
  22040. .IP "\fB\-m4\-300\-nofpu\fR" 4
  22041. .IX Item "-m4-300-nofpu"
  22042. Generate code for \s-1SH4\-300\s0 without in such a way that the
  22043. floating-point unit is not used.
  22044. .IP "\fB\-m4\-300\-single\fR" 4
  22045. .IX Item "-m4-300-single"
  22046. Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
  22047. floating-point operations are used.
  22048. .IP "\fB\-m4\-300\-single\-only\fR" 4
  22049. .IX Item "-m4-300-single-only"
  22050. Generate code for \s-1SH4\-300\s0 in such a way that no double-precision
  22051. floating-point operations are used.
  22052. .IP "\fB\-m4\-340\fR" 4
  22053. .IX Item "-m4-340"
  22054. Generate code for \s-1SH4\-340 \s0(no \s-1MMU,\s0 no \s-1FPU\s0).
  22055. .IP "\fB\-m4\-500\fR" 4
  22056. .IX Item "-m4-500"
  22057. Generate code for \s-1SH4\-500 \s0(no \s-1FPU\s0). Passes \fB\-isa=sh4\-nofpu\fR to the
  22058. assembler.
  22059. .IP "\fB\-m4a\-nofpu\fR" 4
  22060. .IX Item "-m4a-nofpu"
  22061. Generate code for the SH4al\-dsp, or for a SH4a in such a way that the
  22062. floating-point unit is not used.
  22063. .IP "\fB\-m4a\-single\-only\fR" 4
  22064. .IX Item "-m4a-single-only"
  22065. Generate code for the SH4a, in such a way that no double-precision
  22066. floating-point operations are used.
  22067. .IP "\fB\-m4a\-single\fR" 4
  22068. .IX Item "-m4a-single"
  22069. Generate code for the SH4a assuming the floating-point unit is in
  22070. single-precision mode by default.
  22071. .IP "\fB\-m4a\fR" 4
  22072. .IX Item "-m4a"
  22073. Generate code for the SH4a.
  22074. .IP "\fB\-m4al\fR" 4
  22075. .IX Item "-m4al"
  22076. Same as \fB\-m4a\-nofpu\fR, except that it implicitly passes
  22077. \&\fB\-dsp\fR to the assembler. \s-1GCC\s0 doesn't generate any \s-1DSP\s0
  22078. instructions at the moment.
  22079. .IP "\fB\-mb\fR" 4
  22080. .IX Item "-mb"
  22081. Compile code for the processor in big-endian mode.
  22082. .IP "\fB\-ml\fR" 4
  22083. .IX Item "-ml"
  22084. Compile code for the processor in little-endian mode.
  22085. .IP "\fB\-mdalign\fR" 4
  22086. .IX Item "-mdalign"
  22087. Align doubles at 64\-bit boundaries. Note that this changes the calling
  22088. conventions, and thus some functions from the standard C library do
  22089. not work unless you recompile it first with \fB\-mdalign\fR.
  22090. .IP "\fB\-mrelax\fR" 4
  22091. .IX Item "-mrelax"
  22092. Shorten some address references at link time, when possible; uses the
  22093. linker option \fB\-relax\fR.
  22094. .IP "\fB\-mbigtable\fR" 4
  22095. .IX Item "-mbigtable"
  22096. Use 32\-bit offsets in \f(CW\*(C`switch\*(C'\fR tables. The default is to use
  22097. 16\-bit offsets.
  22098. .IP "\fB\-mbitops\fR" 4
  22099. .IX Item "-mbitops"
  22100. Enable the use of bit manipulation instructions on \s-1SH2A.\s0
  22101. .IP "\fB\-mfmovd\fR" 4
  22102. .IX Item "-mfmovd"
  22103. Enable the use of the instruction \f(CW\*(C`fmovd\*(C'\fR. Check \fB\-mdalign\fR for
  22104. alignment constraints.
  22105. .IP "\fB\-mrenesas\fR" 4
  22106. .IX Item "-mrenesas"
  22107. Comply with the calling conventions defined by Renesas.
  22108. .IP "\fB\-mno\-renesas\fR" 4
  22109. .IX Item "-mno-renesas"
  22110. Comply with the calling conventions defined for \s-1GCC\s0 before the Renesas
  22111. conventions were available. This option is the default for all
  22112. targets of the \s-1SH\s0 toolchain.
  22113. .IP "\fB\-mnomacsave\fR" 4
  22114. .IX Item "-mnomacsave"
  22115. Mark the \f(CW\*(C`MAC\*(C'\fR register as call-clobbered, even if
  22116. \&\fB\-mrenesas\fR is given.
  22117. .IP "\fB\-mieee\fR" 4
  22118. .IX Item "-mieee"
  22119. .PD 0
  22120. .IP "\fB\-mno\-ieee\fR" 4
  22121. .IX Item "-mno-ieee"
  22122. .PD
  22123. Control the \s-1IEEE\s0 compliance of floating-point comparisons, which affects the
  22124. handling of cases where the result of a comparison is unordered. By default
  22125. \&\fB\-mieee\fR is implicitly enabled. If \fB\-ffinite\-math\-only\fR is
  22126. enabled \fB\-mno\-ieee\fR is implicitly set, which results in faster
  22127. floating-point greater-equal and less-equal comparisons. The implicit settings
  22128. can be overridden by specifying either \fB\-mieee\fR or \fB\-mno\-ieee\fR.
  22129. .IP "\fB\-minline\-ic_invalidate\fR" 4
  22130. .IX Item "-minline-ic_invalidate"
  22131. Inline code to invalidate instruction cache entries after setting up
  22132. nested function trampolines.
  22133. This option has no effect if \fB\-musermode\fR is in effect and the selected
  22134. code generation option (e.g. \fB\-m4\fR) does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
  22135. instruction.
  22136. If the selected code generation option does not allow the use of the \f(CW\*(C`icbi\*(C'\fR
  22137. instruction, and \fB\-musermode\fR is not in effect, the inlined code
  22138. manipulates the instruction cache address array directly with an associative
  22139. write. This not only requires privileged mode at run time, but it also
  22140. fails if the cache line had been mapped via the \s-1TLB\s0 and has become unmapped.
  22141. .IP "\fB\-misize\fR" 4
  22142. .IX Item "-misize"
  22143. Dump instruction size and location in the assembly code.
  22144. .IP "\fB\-mpadstruct\fR" 4
  22145. .IX Item "-mpadstruct"
  22146. This option is deprecated. It pads structures to multiple of 4 bytes,
  22147. which is incompatible with the \s-1SH ABI.\s0
  22148. .IP "\fB\-matomic\-model=\fR\fImodel\fR" 4
  22149. .IX Item "-matomic-model=model"
  22150. Sets the model of atomic operations and additional parameters as a comma
  22151. separated list. For details on the atomic built-in functions see
  22152. \&\fB_\|_atomic Builtins\fR. The following models and parameters are supported:
  22153. .RS 4
  22154. .IP "\fBnone\fR" 4
  22155. .IX Item "none"
  22156. Disable compiler generated atomic sequences and emit library calls for atomic
  22157. operations. This is the default if the target is not \f(CW\*(C`sh*\-*\-linux*\*(C'\fR.
  22158. .IP "\fBsoft-gusa\fR" 4
  22159. .IX Item "soft-gusa"
  22160. Generate GNU/Linux compatible gUSA software atomic sequences for the atomic
  22161. built-in functions. The generated atomic sequences require additional support
  22162. from the interrupt/exception handling code of the system and are only suitable
  22163. for SH3* and SH4* single-core systems. This option is enabled by default when
  22164. the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH3* or SH4*. When the target is \s-1SH4A,\s0
  22165. this option also partially utilizes the hardware atomic instructions
  22166. \&\f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR to create more efficient code, unless
  22167. \&\fBstrict\fR is specified.
  22168. .IP "\fBsoft-tcb\fR" 4
  22169. .IX Item "soft-tcb"
  22170. Generate software atomic sequences that use a variable in the thread control
  22171. block. This is a variation of the gUSA sequences which can also be used on
  22172. SH1* and SH2* targets. The generated atomic sequences require additional
  22173. support from the interrupt/exception handling code of the system and are only
  22174. suitable for single-core systems. When using this model, the \fBgbr\-offset=\fR
  22175. parameter has to be specified as well.
  22176. .IP "\fBsoft-imask\fR" 4
  22177. .IX Item "soft-imask"
  22178. Generate software atomic sequences that temporarily disable interrupts by
  22179. setting \f(CW\*(C`SR.IMASK = 1111\*(C'\fR. This model works only when the program runs
  22180. in privileged mode and is only suitable for single-core systems. Additional
  22181. support from the interrupt/exception handling code of the system is not
  22182. required. This model is enabled by default when the target is
  22183. \&\f(CW\*(C`sh*\-*\-linux*\*(C'\fR and SH1* or SH2*.
  22184. .IP "\fBhard-llcs\fR" 4
  22185. .IX Item "hard-llcs"
  22186. Generate hardware atomic sequences using the \f(CW\*(C`movli.l\*(C'\fR and \f(CW\*(C`movco.l\*(C'\fR
  22187. instructions only. This is only available on \s-1SH4A\s0 and is suitable for
  22188. multi-core systems. Since the hardware instructions support only 32 bit atomic
  22189. variables access to 8 or 16 bit variables is emulated with 32 bit accesses.
  22190. Code compiled with this option is also compatible with other software
  22191. atomic model interrupt/exception handling systems if executed on an \s-1SH4A\s0
  22192. system. Additional support from the interrupt/exception handling code of the
  22193. system is not required for this model.
  22194. .IP "\fBgbr\-offset=\fR" 4
  22195. .IX Item "gbr-offset="
  22196. This parameter specifies the offset in bytes of the variable in the thread
  22197. control block structure that should be used by the generated atomic sequences
  22198. when the \fBsoft-tcb\fR model has been selected. For other models this
  22199. parameter is ignored. The specified value must be an integer multiple of four
  22200. and in the range 0\-1020.
  22201. .IP "\fBstrict\fR" 4
  22202. .IX Item "strict"
  22203. This parameter prevents mixed usage of multiple atomic models, even if they
  22204. are compatible, and makes the compiler generate atomic sequences of the
  22205. specified model only.
  22206. .RE
  22207. .RS 4
  22208. .RE
  22209. .IP "\fB\-mtas\fR" 4
  22210. .IX Item "-mtas"
  22211. Generate the \f(CW\*(C`tas.b\*(C'\fR opcode for \f(CW\*(C`_\|_atomic_test_and_set\*(C'\fR.
  22212. Notice that depending on the particular hardware and software configuration
  22213. this can degrade overall performance due to the operand cache line flushes
  22214. that are implied by the \f(CW\*(C`tas.b\*(C'\fR instruction. On multi-core \s-1SH4A\s0
  22215. processors the \f(CW\*(C`tas.b\*(C'\fR instruction must be used with caution since it
  22216. can result in data corruption for certain cache configurations.
  22217. .IP "\fB\-mprefergot\fR" 4
  22218. .IX Item "-mprefergot"
  22219. When generating position-independent code, emit function calls using
  22220. the Global Offset Table instead of the Procedure Linkage Table.
  22221. .IP "\fB\-musermode\fR" 4
  22222. .IX Item "-musermode"
  22223. .PD 0
  22224. .IP "\fB\-mno\-usermode\fR" 4
  22225. .IX Item "-mno-usermode"
  22226. .PD
  22227. Don't allow (allow) the compiler generating privileged mode code. Specifying
  22228. \&\fB\-musermode\fR also implies \fB\-mno\-inline\-ic_invalidate\fR if the
  22229. inlined code would not work in user mode. \fB\-musermode\fR is the default
  22230. when the target is \f(CW\*(C`sh*\-*\-linux*\*(C'\fR. If the target is SH1* or SH2*
  22231. \&\fB\-musermode\fR has no effect, since there is no user mode.
  22232. .IP "\fB\-multcost=\fR\fInumber\fR" 4
  22233. .IX Item "-multcost=number"
  22234. Set the cost to assume for a multiply insn.
  22235. .IP "\fB\-mdiv=\fR\fIstrategy\fR" 4
  22236. .IX Item "-mdiv=strategy"
  22237. Set the division strategy to be used for integer division operations.
  22238. \&\fIstrategy\fR can be one of:
  22239. .RS 4
  22240. .IP "\fBcall\-div1\fR" 4
  22241. .IX Item "call-div1"
  22242. Calls a library function that uses the single-step division instruction
  22243. \&\f(CW\*(C`div1\*(C'\fR to perform the operation. Division by zero calculates an
  22244. unspecified result and does not trap. This is the default except for \s-1SH4,
  22245. SH2A\s0 and SHcompact.
  22246. .IP "\fBcall-fp\fR" 4
  22247. .IX Item "call-fp"
  22248. Calls a library function that performs the operation in double precision
  22249. floating point. Division by zero causes a floating-point exception. This is
  22250. the default for SHcompact with \s-1FPU. \s0 Specifying this for targets that do not
  22251. have a double precision \s-1FPU\s0 defaults to \f(CW\*(C`call\-div1\*(C'\fR.
  22252. .IP "\fBcall-table\fR" 4
  22253. .IX Item "call-table"
  22254. Calls a library function that uses a lookup table for small divisors and
  22255. the \f(CW\*(C`div1\*(C'\fR instruction with case distinction for larger divisors. Division
  22256. by zero calculates an unspecified result and does not trap. This is the default
  22257. for \s-1SH4. \s0 Specifying this for targets that do not have dynamic shift
  22258. instructions defaults to \f(CW\*(C`call\-div1\*(C'\fR.
  22259. .RE
  22260. .RS 4
  22261. .Sp
  22262. When a division strategy has not been specified the default strategy is
  22263. selected based on the current target. For \s-1SH2A\s0 the default strategy is to
  22264. use the \f(CW\*(C`divs\*(C'\fR and \f(CW\*(C`divu\*(C'\fR instructions instead of library function
  22265. calls.
  22266. .RE
  22267. .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
  22268. .IX Item "-maccumulate-outgoing-args"
  22269. Reserve space once for outgoing arguments in the function prologue rather
  22270. than around each call. Generally beneficial for performance and size. Also
  22271. needed for unwinding to avoid changing the stack frame around conditional code.
  22272. .IP "\fB\-mdivsi3_libfunc=\fR\fIname\fR" 4
  22273. .IX Item "-mdivsi3_libfunc=name"
  22274. Set the name of the library function used for 32\-bit signed division to
  22275. \&\fIname\fR.
  22276. This only affects the name used in the \fBcall\fR division strategies, and
  22277. the compiler still expects the same sets of input/output/clobbered registers as
  22278. if this option were not present.
  22279. .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
  22280. .IX Item "-mfixed-range=register-range"
  22281. Generate code treating the given register range as fixed registers.
  22282. A fixed register is one that the register allocator can not use. This is
  22283. useful when compiling kernel code. A register range is specified as
  22284. two registers separated by a dash. Multiple register ranges can be
  22285. specified separated by a comma.
  22286. .IP "\fB\-mbranch\-cost=\fR\fInum\fR" 4
  22287. .IX Item "-mbranch-cost=num"
  22288. Assume \fInum\fR to be the cost for a branch instruction. Higher numbers
  22289. make the compiler try to generate more branch-free code if possible.
  22290. If not specified the value is selected depending on the processor type that
  22291. is being compiled for.
  22292. .IP "\fB\-mzdcbranch\fR" 4
  22293. .IX Item "-mzdcbranch"
  22294. .PD 0
  22295. .IP "\fB\-mno\-zdcbranch\fR" 4
  22296. .IX Item "-mno-zdcbranch"
  22297. .PD
  22298. Assume (do not assume) that zero displacement conditional branch instructions
  22299. \&\f(CW\*(C`bt\*(C'\fR and \f(CW\*(C`bf\*(C'\fR are fast. If \fB\-mzdcbranch\fR is specified, the
  22300. compiler prefers zero displacement branch code sequences. This is
  22301. enabled by default when generating code for \s-1SH4\s0 and \s-1SH4A. \s0 It can be explicitly
  22302. disabled by specifying \fB\-mno\-zdcbranch\fR.
  22303. .IP "\fB\-mcbranch\-force\-delay\-slot\fR" 4
  22304. .IX Item "-mcbranch-force-delay-slot"
  22305. Force the usage of delay slots for conditional branches, which stuffs the delay
  22306. slot with a \f(CW\*(C`nop\*(C'\fR if a suitable instruction cannot be found. By default
  22307. this option is disabled. It can be enabled to work around hardware bugs as
  22308. found in the original \s-1SH7055.\s0
  22309. .IP "\fB\-mfused\-madd\fR" 4
  22310. .IX Item "-mfused-madd"
  22311. .PD 0
  22312. .IP "\fB\-mno\-fused\-madd\fR" 4
  22313. .IX Item "-mno-fused-madd"
  22314. .PD
  22315. Generate code that uses (does not use) the floating-point multiply and
  22316. accumulate instructions. These instructions are generated by default
  22317. if hardware floating point is used. The machine-dependent
  22318. \&\fB\-mfused\-madd\fR option is now mapped to the machine-independent
  22319. \&\fB\-ffp\-contract=fast\fR option, and \fB\-mno\-fused\-madd\fR is
  22320. mapped to \fB\-ffp\-contract=off\fR.
  22321. .IP "\fB\-mfsca\fR" 4
  22322. .IX Item "-mfsca"
  22323. .PD 0
  22324. .IP "\fB\-mno\-fsca\fR" 4
  22325. .IX Item "-mno-fsca"
  22326. .PD
  22327. Allow or disallow the compiler to emit the \f(CW\*(C`fsca\*(C'\fR instruction for sine
  22328. and cosine approximations. The option \fB\-mfsca\fR must be used in
  22329. combination with \fB\-funsafe\-math\-optimizations\fR. It is enabled by default
  22330. when generating code for \s-1SH4A. \s0 Using \fB\-mno\-fsca\fR disables sine and cosine
  22331. approximations even if \fB\-funsafe\-math\-optimizations\fR is in effect.
  22332. .IP "\fB\-mfsrra\fR" 4
  22333. .IX Item "-mfsrra"
  22334. .PD 0
  22335. .IP "\fB\-mno\-fsrra\fR" 4
  22336. .IX Item "-mno-fsrra"
  22337. .PD
  22338. Allow or disallow the compiler to emit the \f(CW\*(C`fsrra\*(C'\fR instruction for
  22339. reciprocal square root approximations. The option \fB\-mfsrra\fR must be used
  22340. in combination with \fB\-funsafe\-math\-optimizations\fR and
  22341. \&\fB\-ffinite\-math\-only\fR. It is enabled by default when generating code for
  22342. \&\s-1SH4A. \s0 Using \fB\-mno\-fsrra\fR disables reciprocal square root approximations
  22343. even if \fB\-funsafe\-math\-optimizations\fR and \fB\-ffinite\-math\-only\fR are
  22344. in effect.
  22345. .IP "\fB\-mpretend\-cmove\fR" 4
  22346. .IX Item "-mpretend-cmove"
  22347. Prefer zero-displacement conditional branches for conditional move instruction
  22348. patterns. This can result in faster code on the \s-1SH4\s0 processor.
  22349. .IP "\fB\-mfdpic\fR" 4
  22350. .IX Item "-mfdpic"
  22351. Generate code using the \s-1FDPIC ABI.\s0
  22352. .PP
  22353. \fISolaris 2 Options\fR
  22354. .IX Subsection "Solaris 2 Options"
  22355. .PP
  22356. These \fB\-m\fR options are supported on Solaris 2:
  22357. .IP "\fB\-mclear\-hwcap\fR" 4
  22358. .IX Item "-mclear-hwcap"
  22359. \&\fB\-mclear\-hwcap\fR tells the compiler to remove the hardware
  22360. capabilities generated by the Solaris assembler. This is only necessary
  22361. when object files use \s-1ISA\s0 extensions not supported by the current
  22362. machine, but check at runtime whether or not to use them.
  22363. .IP "\fB\-mimpure\-text\fR" 4
  22364. .IX Item "-mimpure-text"
  22365. \&\fB\-mimpure\-text\fR, used in addition to \fB\-shared\fR, tells
  22366. the compiler to not pass \fB\-z text\fR to the linker when linking a
  22367. shared object. Using this option, you can link position-dependent
  22368. code into a shared object.
  22369. .Sp
  22370. \&\fB\-mimpure\-text\fR suppresses the \*(L"relocations remain against
  22371. allocatable but non-writable sections\*(R" linker error message.
  22372. However, the necessary relocations trigger copy-on-write, and the
  22373. shared object is not actually shared across processes. Instead of
  22374. using \fB\-mimpure\-text\fR, you should compile all source code with
  22375. \&\fB\-fpic\fR or \fB\-fPIC\fR.
  22376. .PP
  22377. These switches are supported in addition to the above on Solaris 2:
  22378. .IP "\fB\-pthreads\fR" 4
  22379. .IX Item "-pthreads"
  22380. This is a synonym for \fB\-pthread\fR.
  22381. .PP
  22382. \fI\s-1SPARC\s0 Options\fR
  22383. .IX Subsection "SPARC Options"
  22384. .PP
  22385. These \fB\-m\fR options are supported on the \s-1SPARC:\s0
  22386. .IP "\fB\-mno\-app\-regs\fR" 4
  22387. .IX Item "-mno-app-regs"
  22388. .PD 0
  22389. .IP "\fB\-mapp\-regs\fR" 4
  22390. .IX Item "-mapp-regs"
  22391. .PD
  22392. Specify \fB\-mapp\-regs\fR to generate output using the global registers
  22393. 2 through 4, which the \s-1SPARC SVR4 ABI\s0 reserves for applications. Like the
  22394. global register 1, each global register 2 through 4 is then treated as an
  22395. allocable register that is clobbered by function calls. This is the default.
  22396. .Sp
  22397. To be fully \s-1SVR4\s0 ABI-compliant at the cost of some performance loss,
  22398. specify \fB\-mno\-app\-regs\fR. You should compile libraries and system
  22399. software with this option.
  22400. .IP "\fB\-mflat\fR" 4
  22401. .IX Item "-mflat"
  22402. .PD 0
  22403. .IP "\fB\-mno\-flat\fR" 4
  22404. .IX Item "-mno-flat"
  22405. .PD
  22406. With \fB\-mflat\fR, the compiler does not generate save/restore instructions
  22407. and uses a \*(L"flat\*(R" or single register window model. This model is compatible
  22408. with the regular register window model. The local registers and the input
  22409. registers (0\-\-5) are still treated as \*(L"call-saved\*(R" registers and are
  22410. saved on the stack as needed.
  22411. .Sp
  22412. With \fB\-mno\-flat\fR (the default), the compiler generates save/restore
  22413. instructions (except for leaf functions). This is the normal operating mode.
  22414. .IP "\fB\-mfpu\fR" 4
  22415. .IX Item "-mfpu"
  22416. .PD 0
  22417. .IP "\fB\-mhard\-float\fR" 4
  22418. .IX Item "-mhard-float"
  22419. .PD
  22420. Generate output containing floating-point instructions. This is the
  22421. default.
  22422. .IP "\fB\-mno\-fpu\fR" 4
  22423. .IX Item "-mno-fpu"
  22424. .PD 0
  22425. .IP "\fB\-msoft\-float\fR" 4
  22426. .IX Item "-msoft-float"
  22427. .PD
  22428. Generate output containing library calls for floating point.
  22429. \&\fBWarning:\fR the requisite libraries are not available for all \s-1SPARC\s0
  22430. targets. Normally the facilities of the machine's usual C compiler are
  22431. used, but this cannot be done directly in cross-compilation. You must make
  22432. your own arrangements to provide suitable library functions for
  22433. cross-compilation. The embedded targets \fBsparc\-*\-aout\fR and
  22434. \&\fBsparclite\-*\-*\fR do provide software floating-point support.
  22435. .Sp
  22436. \&\fB\-msoft\-float\fR changes the calling convention in the output file;
  22437. therefore, it is only useful if you compile \fIall\fR of a program with
  22438. this option. In particular, you need to compile \fIlibgcc.a\fR, the
  22439. library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
  22440. this to work.
  22441. .IP "\fB\-mhard\-quad\-float\fR" 4
  22442. .IX Item "-mhard-quad-float"
  22443. Generate output containing quad-word (long double) floating-point
  22444. instructions.
  22445. .IP "\fB\-msoft\-quad\-float\fR" 4
  22446. .IX Item "-msoft-quad-float"
  22447. Generate output containing library calls for quad-word (long double)
  22448. floating-point instructions. The functions called are those specified
  22449. in the \s-1SPARC ABI. \s0 This is the default.
  22450. .Sp
  22451. As of this writing, there are no \s-1SPARC\s0 implementations that have hardware
  22452. support for the quad-word floating-point instructions. They all invoke
  22453. a trap handler for one of these instructions, and then the trap handler
  22454. emulates the effect of the instruction. Because of the trap handler overhead,
  22455. this is much slower than calling the \s-1ABI\s0 library routines. Thus the
  22456. \&\fB\-msoft\-quad\-float\fR option is the default.
  22457. .IP "\fB\-mno\-unaligned\-doubles\fR" 4
  22458. .IX Item "-mno-unaligned-doubles"
  22459. .PD 0
  22460. .IP "\fB\-munaligned\-doubles\fR" 4
  22461. .IX Item "-munaligned-doubles"
  22462. .PD
  22463. Assume that doubles have 8\-byte alignment. This is the default.
  22464. .Sp
  22465. With \fB\-munaligned\-doubles\fR, \s-1GCC\s0 assumes that doubles have 8\-byte
  22466. alignment only if they are contained in another type, or if they have an
  22467. absolute address. Otherwise, it assumes they have 4\-byte alignment.
  22468. Specifying this option avoids some rare compatibility problems with code
  22469. generated by other compilers. It is not the default because it results
  22470. in a performance loss, especially for floating-point code.
  22471. .IP "\fB\-muser\-mode\fR" 4
  22472. .IX Item "-muser-mode"
  22473. .PD 0
  22474. .IP "\fB\-mno\-user\-mode\fR" 4
  22475. .IX Item "-mno-user-mode"
  22476. .PD
  22477. Do not generate code that can only run in supervisor mode. This is relevant
  22478. only for the \f(CW\*(C`casa\*(C'\fR instruction emitted for the \s-1LEON3\s0 processor. This
  22479. is the default.
  22480. .IP "\fB\-mfaster\-structs\fR" 4
  22481. .IX Item "-mfaster-structs"
  22482. .PD 0
  22483. .IP "\fB\-mno\-faster\-structs\fR" 4
  22484. .IX Item "-mno-faster-structs"
  22485. .PD
  22486. With \fB\-mfaster\-structs\fR, the compiler assumes that structures
  22487. should have 8\-byte alignment. This enables the use of pairs of
  22488. \&\f(CW\*(C`ldd\*(C'\fR and \f(CW\*(C`std\*(C'\fR instructions for copies in structure
  22489. assignment, in place of twice as many \f(CW\*(C`ld\*(C'\fR and \f(CW\*(C`st\*(C'\fR pairs.
  22490. However, the use of this changed alignment directly violates the \s-1SPARC
  22491. ABI. \s0 Thus, it's intended only for use on targets where the developer
  22492. acknowledges that their resulting code is not directly in line with
  22493. the rules of the \s-1ABI.\s0
  22494. .IP "\fB\-mstd\-struct\-return\fR" 4
  22495. .IX Item "-mstd-struct-return"
  22496. .PD 0
  22497. .IP "\fB\-mno\-std\-struct\-return\fR" 4
  22498. .IX Item "-mno-std-struct-return"
  22499. .PD
  22500. With \fB\-mstd\-struct\-return\fR, the compiler generates checking code
  22501. in functions returning structures or unions to detect size mismatches
  22502. between the two sides of function calls, as per the 32\-bit \s-1ABI.\s0
  22503. .Sp
  22504. The default is \fB\-mno\-std\-struct\-return\fR. This option has no effect
  22505. in 64\-bit mode.
  22506. .IP "\fB\-mlra\fR" 4
  22507. .IX Item "-mlra"
  22508. .PD 0
  22509. .IP "\fB\-mno\-lra\fR" 4
  22510. .IX Item "-mno-lra"
  22511. .PD
  22512. Enable Local Register Allocation. This is the default for \s-1SPARC\s0 since \s-1GCC 7\s0
  22513. so \fB\-mno\-lra\fR needs to be passed to get old Reload.
  22514. .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
  22515. .IX Item "-mcpu=cpu_type"
  22516. Set the instruction set, register set, and instruction scheduling parameters
  22517. for machine type \fIcpu_type\fR. Supported values for \fIcpu_type\fR are
  22518. \&\fBv7\fR, \fBcypress\fR, \fBv8\fR, \fBsupersparc\fR, \fBhypersparc\fR,
  22519. \&\fBleon\fR, \fBleon3\fR, \fBleon3v7\fR, \fBsparclite\fR, \fBf930\fR,
  22520. \&\fBf934\fR, \fBsparclite86x\fR, \fBsparclet\fR, \fBtsc701\fR, \fBv9\fR,
  22521. \&\fBultrasparc\fR, \fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR,
  22522. \&\fBniagara3\fR, \fBniagara4\fR, \fBniagara7\fR and \fBm8\fR.
  22523. .Sp
  22524. Native Solaris and GNU/Linux toolchains also support the value \fBnative\fR,
  22525. which selects the best architecture option for the host processor.
  22526. \&\fB\-mcpu=native\fR has no effect if \s-1GCC\s0 does not recognize
  22527. the processor.
  22528. .Sp
  22529. Default instruction scheduling parameters are used for values that select
  22530. an architecture and not an implementation. These are \fBv7\fR, \fBv8\fR,
  22531. \&\fBsparclite\fR, \fBsparclet\fR, \fBv9\fR.
  22532. .Sp
  22533. Here is a list of each supported architecture and their supported
  22534. implementations.
  22535. .RS 4
  22536. .IP "v7" 4
  22537. .IX Item "v7"
  22538. cypress, leon3v7
  22539. .IP "v8" 4
  22540. .IX Item "v8"
  22541. supersparc, hypersparc, leon, leon3
  22542. .IP "sparclite" 4
  22543. .IX Item "sparclite"
  22544. f930, f934, sparclite86x
  22545. .IP "sparclet" 4
  22546. .IX Item "sparclet"
  22547. tsc701
  22548. .IP "v9" 4
  22549. .IX Item "v9"
  22550. ultrasparc, ultrasparc3, niagara, niagara2, niagara3, niagara4,
  22551. niagara7, m8
  22552. .RE
  22553. .RS 4
  22554. .Sp
  22555. By default (unless configured otherwise), \s-1GCC\s0 generates code for the V7
  22556. variant of the \s-1SPARC\s0 architecture. With \fB\-mcpu=cypress\fR, the compiler
  22557. additionally optimizes it for the Cypress \s-1CY7C602\s0 chip, as used in the
  22558. SPARCStation/SPARCServer 3xx series. This is also appropriate for the older
  22559. SPARCStation 1, 2, \s-1IPX\s0 etc.
  22560. .Sp
  22561. With \fB\-mcpu=v8\fR, \s-1GCC\s0 generates code for the V8 variant of the \s-1SPARC\s0
  22562. architecture. The only difference from V7 code is that the compiler emits
  22563. the integer multiply and integer divide instructions which exist in \s-1SPARC\-V8\s0
  22564. but not in \s-1SPARC\-V7. \s0 With \fB\-mcpu=supersparc\fR, the compiler additionally
  22565. optimizes it for the SuperSPARC chip, as used in the SPARCStation 10, 1000 and
  22566. 2000 series.
  22567. .Sp
  22568. With \fB\-mcpu=sparclite\fR, \s-1GCC\s0 generates code for the SPARClite variant of
  22569. the \s-1SPARC\s0 architecture. This adds the integer multiply, integer divide step
  22570. and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClite but not in \s-1SPARC\-V7.\s0
  22571. With \fB\-mcpu=f930\fR, the compiler additionally optimizes it for the
  22572. Fujitsu \s-1MB86930\s0 chip, which is the original SPARClite, with no \s-1FPU. \s0 With
  22573. \&\fB\-mcpu=f934\fR, the compiler additionally optimizes it for the Fujitsu
  22574. \&\s-1MB86934\s0 chip, which is the more recent SPARClite with \s-1FPU.\s0
  22575. .Sp
  22576. With \fB\-mcpu=sparclet\fR, \s-1GCC\s0 generates code for the SPARClet variant of
  22577. the \s-1SPARC\s0 architecture. This adds the integer multiply, multiply/accumulate,
  22578. integer divide step and scan (\f(CW\*(C`ffs\*(C'\fR) instructions which exist in SPARClet
  22579. but not in \s-1SPARC\-V7. \s0 With \fB\-mcpu=tsc701\fR, the compiler additionally
  22580. optimizes it for the \s-1TEMIC\s0 SPARClet chip.
  22581. .Sp
  22582. With \fB\-mcpu=v9\fR, \s-1GCC\s0 generates code for the V9 variant of the \s-1SPARC\s0
  22583. architecture. This adds 64\-bit integer and floating-point move instructions,
  22584. 3 additional floating-point condition code registers and conditional move
  22585. instructions. With \fB\-mcpu=ultrasparc\fR, the compiler additionally
  22586. optimizes it for the Sun UltraSPARC I/II/IIi chips. With
  22587. \&\fB\-mcpu=ultrasparc3\fR, the compiler additionally optimizes it for the
  22588. Sun UltraSPARC III/III+/IIIi/IIIi+/IV/IV+ chips. With
  22589. \&\fB\-mcpu=niagara\fR, the compiler additionally optimizes it for
  22590. Sun UltraSPARC T1 chips. With \fB\-mcpu=niagara2\fR, the compiler
  22591. additionally optimizes it for Sun UltraSPARC T2 chips. With
  22592. \&\fB\-mcpu=niagara3\fR, the compiler additionally optimizes it for Sun
  22593. UltraSPARC T3 chips. With \fB\-mcpu=niagara4\fR, the compiler
  22594. additionally optimizes it for Sun UltraSPARC T4 chips. With
  22595. \&\fB\-mcpu=niagara7\fR, the compiler additionally optimizes it for
  22596. Oracle \s-1SPARC M7\s0 chips. With \fB\-mcpu=m8\fR, the compiler
  22597. additionally optimizes it for Oracle M8 chips.
  22598. .RE
  22599. .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
  22600. .IX Item "-mtune=cpu_type"
  22601. Set the instruction scheduling parameters for machine type
  22602. \&\fIcpu_type\fR, but do not set the instruction set or register set that the
  22603. option \fB\-mcpu=\fR\fIcpu_type\fR does.
  22604. .Sp
  22605. The same values for \fB\-mcpu=\fR\fIcpu_type\fR can be used for
  22606. \&\fB\-mtune=\fR\fIcpu_type\fR, but the only useful values are those
  22607. that select a particular \s-1CPU\s0 implementation. Those are
  22608. \&\fBcypress\fR, \fBsupersparc\fR, \fBhypersparc\fR, \fBleon\fR,
  22609. \&\fBleon3\fR, \fBleon3v7\fR, \fBf930\fR, \fBf934\fR,
  22610. \&\fBsparclite86x\fR, \fBtsc701\fR, \fBultrasparc\fR,
  22611. \&\fBultrasparc3\fR, \fBniagara\fR, \fBniagara2\fR, \fBniagara3\fR,
  22612. \&\fBniagara4\fR, \fBniagara7\fR and \fBm8\fR. With native Solaris
  22613. and GNU/Linux toolchains, \fBnative\fR can also be used.
  22614. .IP "\fB\-mv8plus\fR" 4
  22615. .IX Item "-mv8plus"
  22616. .PD 0
  22617. .IP "\fB\-mno\-v8plus\fR" 4
  22618. .IX Item "-mno-v8plus"
  22619. .PD
  22620. With \fB\-mv8plus\fR, \s-1GCC\s0 generates code for the \s-1SPARC\-V8+ ABI. \s0 The
  22621. difference from the V8 \s-1ABI\s0 is that the global and out registers are
  22622. considered 64 bits wide. This is enabled by default on Solaris in 32\-bit
  22623. mode for all \s-1SPARC\-V9\s0 processors.
  22624. .IP "\fB\-mvis\fR" 4
  22625. .IX Item "-mvis"
  22626. .PD 0
  22627. .IP "\fB\-mno\-vis\fR" 4
  22628. .IX Item "-mno-vis"
  22629. .PD
  22630. With \fB\-mvis\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  22631. Visual Instruction Set extensions. The default is \fB\-mno\-vis\fR.
  22632. .IP "\fB\-mvis2\fR" 4
  22633. .IX Item "-mvis2"
  22634. .PD 0
  22635. .IP "\fB\-mno\-vis2\fR" 4
  22636. .IX Item "-mno-vis2"
  22637. .PD
  22638. With \fB\-mvis2\fR, \s-1GCC\s0 generates code that takes advantage of
  22639. version 2.0 of the UltraSPARC Visual Instruction Set extensions. The
  22640. default is \fB\-mvis2\fR when targeting a cpu that supports such
  22641. instructions, such as UltraSPARC-III and later. Setting \fB\-mvis2\fR
  22642. also sets \fB\-mvis\fR.
  22643. .IP "\fB\-mvis3\fR" 4
  22644. .IX Item "-mvis3"
  22645. .PD 0
  22646. .IP "\fB\-mno\-vis3\fR" 4
  22647. .IX Item "-mno-vis3"
  22648. .PD
  22649. With \fB\-mvis3\fR, \s-1GCC\s0 generates code that takes advantage of
  22650. version 3.0 of the UltraSPARC Visual Instruction Set extensions. The
  22651. default is \fB\-mvis3\fR when targeting a cpu that supports such
  22652. instructions, such as niagara\-3 and later. Setting \fB\-mvis3\fR
  22653. also sets \fB\-mvis2\fR and \fB\-mvis\fR.
  22654. .IP "\fB\-mvis4\fR" 4
  22655. .IX Item "-mvis4"
  22656. .PD 0
  22657. .IP "\fB\-mno\-vis4\fR" 4
  22658. .IX Item "-mno-vis4"
  22659. .PD
  22660. With \fB\-mvis4\fR, \s-1GCC\s0 generates code that takes advantage of
  22661. version 4.0 of the UltraSPARC Visual Instruction Set extensions. The
  22662. default is \fB\-mvis4\fR when targeting a cpu that supports such
  22663. instructions, such as niagara\-7 and later. Setting \fB\-mvis4\fR
  22664. also sets \fB\-mvis3\fR, \fB\-mvis2\fR and \fB\-mvis\fR.
  22665. .IP "\fB\-mvis4b\fR" 4
  22666. .IX Item "-mvis4b"
  22667. .PD 0
  22668. .IP "\fB\-mno\-vis4b\fR" 4
  22669. .IX Item "-mno-vis4b"
  22670. .PD
  22671. With \fB\-mvis4b\fR, \s-1GCC\s0 generates code that takes advantage of
  22672. version 4.0 of the UltraSPARC Visual Instruction Set extensions, plus
  22673. the additional \s-1VIS\s0 instructions introduced in the Oracle \s-1SPARC\s0
  22674. Architecture 2017. The default is \fB\-mvis4b\fR when targeting a
  22675. cpu that supports such instructions, such as m8 and later. Setting
  22676. \&\fB\-mvis4b\fR also sets \fB\-mvis4\fR, \fB\-mvis3\fR,
  22677. \&\fB\-mvis2\fR and \fB\-mvis\fR.
  22678. .IP "\fB\-mcbcond\fR" 4
  22679. .IX Item "-mcbcond"
  22680. .PD 0
  22681. .IP "\fB\-mno\-cbcond\fR" 4
  22682. .IX Item "-mno-cbcond"
  22683. .PD
  22684. With \fB\-mcbcond\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  22685. Compare-and-Branch-on-Condition instructions. The default is \fB\-mcbcond\fR
  22686. when targeting a \s-1CPU\s0 that supports such instructions, such as Niagara\-4 and
  22687. later.
  22688. .IP "\fB\-mfmaf\fR" 4
  22689. .IX Item "-mfmaf"
  22690. .PD 0
  22691. .IP "\fB\-mno\-fmaf\fR" 4
  22692. .IX Item "-mno-fmaf"
  22693. .PD
  22694. With \fB\-mfmaf\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  22695. Fused Multiply-Add Floating-point instructions. The default is \fB\-mfmaf\fR
  22696. when targeting a \s-1CPU\s0 that supports such instructions, such as Niagara\-3 and
  22697. later.
  22698. .IP "\fB\-mfsmuld\fR" 4
  22699. .IX Item "-mfsmuld"
  22700. .PD 0
  22701. .IP "\fB\-mno\-fsmuld\fR" 4
  22702. .IX Item "-mno-fsmuld"
  22703. .PD
  22704. With \fB\-mfsmuld\fR, \s-1GCC\s0 generates code that takes advantage of the
  22705. Floating-point Multiply Single to Double (FsMULd) instruction. The default is
  22706. \&\fB\-mfsmuld\fR when targeting a \s-1CPU\s0 supporting the architecture versions V8
  22707. or V9 with \s-1FPU\s0 except \fB\-mcpu=leon\fR.
  22708. .IP "\fB\-mpopc\fR" 4
  22709. .IX Item "-mpopc"
  22710. .PD 0
  22711. .IP "\fB\-mno\-popc\fR" 4
  22712. .IX Item "-mno-popc"
  22713. .PD
  22714. With \fB\-mpopc\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  22715. Population Count instruction. The default is \fB\-mpopc\fR
  22716. when targeting a \s-1CPU\s0 that supports such an instruction, such as Niagara\-2 and
  22717. later.
  22718. .IP "\fB\-msubxc\fR" 4
  22719. .IX Item "-msubxc"
  22720. .PD 0
  22721. .IP "\fB\-mno\-subxc\fR" 4
  22722. .IX Item "-mno-subxc"
  22723. .PD
  22724. With \fB\-msubxc\fR, \s-1GCC\s0 generates code that takes advantage of the UltraSPARC
  22725. Subtract-Extended-with-Carry instruction. The default is \fB\-msubxc\fR
  22726. when targeting a \s-1CPU\s0 that supports such an instruction, such as Niagara\-7 and
  22727. later.
  22728. .IP "\fB\-mfix\-at697f\fR" 4
  22729. .IX Item "-mfix-at697f"
  22730. Enable the documented workaround for the single erratum of the Atmel \s-1AT697F\s0
  22731. processor (which corresponds to erratum #13 of the \s-1AT697E\s0 processor).
  22732. .IP "\fB\-mfix\-ut699\fR" 4
  22733. .IX Item "-mfix-ut699"
  22734. Enable the documented workarounds for the floating-point errata and the data
  22735. cache nullify errata of the \s-1UT699\s0 processor.
  22736. .IP "\fB\-mfix\-ut700\fR" 4
  22737. .IX Item "-mfix-ut700"
  22738. Enable the documented workaround for the back-to-back store errata of
  22739. the \s-1UT699E/UT700\s0 processor.
  22740. .IP "\fB\-mfix\-gr712rc\fR" 4
  22741. .IX Item "-mfix-gr712rc"
  22742. Enable the documented workaround for the back-to-back store errata of
  22743. the \s-1GR712RC\s0 processor.
  22744. .PP
  22745. These \fB\-m\fR options are supported in addition to the above
  22746. on \s-1SPARC\-V9\s0 processors in 64\-bit environments:
  22747. .IP "\fB\-m32\fR" 4
  22748. .IX Item "-m32"
  22749. .PD 0
  22750. .IP "\fB\-m64\fR" 4
  22751. .IX Item "-m64"
  22752. .PD
  22753. Generate code for a 32\-bit or 64\-bit environment.
  22754. The 32\-bit environment sets int, long and pointer to 32 bits.
  22755. The 64\-bit environment sets int to 32 bits and long and pointer
  22756. to 64 bits.
  22757. .IP "\fB\-mcmodel=\fR\fIwhich\fR" 4
  22758. .IX Item "-mcmodel=which"
  22759. Set the code model to one of
  22760. .RS 4
  22761. .IP "\fBmedlow\fR" 4
  22762. .IX Item "medlow"
  22763. The Medium/Low code model: 64\-bit addresses, programs
  22764. must be linked in the low 32 bits of memory. Programs can be statically
  22765. or dynamically linked.
  22766. .IP "\fBmedmid\fR" 4
  22767. .IX Item "medmid"
  22768. The Medium/Middle code model: 64\-bit addresses, programs
  22769. must be linked in the low 44 bits of memory, the text and data segments must
  22770. be less than 2GB in size and the data segment must be located within 2GB of
  22771. the text segment.
  22772. .IP "\fBmedany\fR" 4
  22773. .IX Item "medany"
  22774. The Medium/Anywhere code model: 64\-bit addresses, programs
  22775. may be linked anywhere in memory, the text and data segments must be less
  22776. than 2GB in size and the data segment must be located within 2GB of the
  22777. text segment.
  22778. .IP "\fBembmedany\fR" 4
  22779. .IX Item "embmedany"
  22780. The Medium/Anywhere code model for embedded systems:
  22781. 64\-bit addresses, the text and data segments must be less than 2GB in
  22782. size, both starting anywhere in memory (determined at link time). The
  22783. global register \f(CW%g4\fR points to the base of the data segment. Programs
  22784. are statically linked and \s-1PIC\s0 is not supported.
  22785. .RE
  22786. .RS 4
  22787. .RE
  22788. .IP "\fB\-mmemory\-model=\fR\fImem-model\fR" 4
  22789. .IX Item "-mmemory-model=mem-model"
  22790. Set the memory model in force on the processor to one of
  22791. .RS 4
  22792. .IP "\fBdefault\fR" 4
  22793. .IX Item "default"
  22794. The default memory model for the processor and operating system.
  22795. .IP "\fBrmo\fR" 4
  22796. .IX Item "rmo"
  22797. Relaxed Memory Order
  22798. .IP "\fBpso\fR" 4
  22799. .IX Item "pso"
  22800. Partial Store Order
  22801. .IP "\fBtso\fR" 4
  22802. .IX Item "tso"
  22803. Total Store Order
  22804. .IP "\fBsc\fR" 4
  22805. .IX Item "sc"
  22806. Sequential Consistency
  22807. .RE
  22808. .RS 4
  22809. .Sp
  22810. These memory models are formally defined in Appendix D of the \s-1SPARC\-V9\s0
  22811. architecture manual, as set in the processor's \f(CW\*(C`PSTATE.MM\*(C'\fR field.
  22812. .RE
  22813. .IP "\fB\-mstack\-bias\fR" 4
  22814. .IX Item "-mstack-bias"
  22815. .PD 0
  22816. .IP "\fB\-mno\-stack\-bias\fR" 4
  22817. .IX Item "-mno-stack-bias"
  22818. .PD
  22819. With \fB\-mstack\-bias\fR, \s-1GCC\s0 assumes that the stack pointer, and
  22820. frame pointer if present, are offset by \-2047 which must be added back
  22821. when making stack frame references. This is the default in 64\-bit mode.
  22822. Otherwise, assume no such offset is present.
  22823. .PP
  22824. \fI\s-1SPU\s0 Options\fR
  22825. .IX Subsection "SPU Options"
  22826. .PP
  22827. These \fB\-m\fR options are supported on the \s-1SPU:\s0
  22828. .IP "\fB\-mwarn\-reloc\fR" 4
  22829. .IX Item "-mwarn-reloc"
  22830. .PD 0
  22831. .IP "\fB\-merror\-reloc\fR" 4
  22832. .IX Item "-merror-reloc"
  22833. .PD
  22834. The loader for \s-1SPU\s0 does not handle dynamic relocations. By default, \s-1GCC\s0
  22835. gives an error when it generates code that requires a dynamic
  22836. relocation. \fB\-mno\-error\-reloc\fR disables the error,
  22837. \&\fB\-mwarn\-reloc\fR generates a warning instead.
  22838. .IP "\fB\-msafe\-dma\fR" 4
  22839. .IX Item "-msafe-dma"
  22840. .PD 0
  22841. .IP "\fB\-munsafe\-dma\fR" 4
  22842. .IX Item "-munsafe-dma"
  22843. .PD
  22844. Instructions that initiate or test completion of \s-1DMA\s0 must not be
  22845. reordered with respect to loads and stores of the memory that is being
  22846. accessed.
  22847. With \fB\-munsafe\-dma\fR you must use the \f(CW\*(C`volatile\*(C'\fR keyword to protect
  22848. memory accesses, but that can lead to inefficient code in places where the
  22849. memory is known to not change. Rather than mark the memory as volatile,
  22850. you can use \fB\-msafe\-dma\fR to tell the compiler to treat
  22851. the \s-1DMA\s0 instructions as potentially affecting all memory.
  22852. .IP "\fB\-mbranch\-hints\fR" 4
  22853. .IX Item "-mbranch-hints"
  22854. By default, \s-1GCC\s0 generates a branch hint instruction to avoid
  22855. pipeline stalls for always-taken or probably-taken branches. A hint
  22856. is not generated closer than 8 instructions away from its branch.
  22857. There is little reason to disable them, except for debugging purposes,
  22858. or to make an object a little bit smaller.
  22859. .IP "\fB\-msmall\-mem\fR" 4
  22860. .IX Item "-msmall-mem"
  22861. .PD 0
  22862. .IP "\fB\-mlarge\-mem\fR" 4
  22863. .IX Item "-mlarge-mem"
  22864. .PD
  22865. By default, \s-1GCC\s0 generates code assuming that addresses are never larger
  22866. than 18 bits. With \fB\-mlarge\-mem\fR code is generated that assumes
  22867. a full 32\-bit address.
  22868. .IP "\fB\-mstdmain\fR" 4
  22869. .IX Item "-mstdmain"
  22870. By default, \s-1GCC\s0 links against startup code that assumes the SPU-style
  22871. main function interface (which has an unconventional parameter list).
  22872. With \fB\-mstdmain\fR, \s-1GCC\s0 links your program against startup
  22873. code that assumes a C99\-style interface to \f(CW\*(C`main\*(C'\fR, including a
  22874. local copy of \f(CW\*(C`argv\*(C'\fR strings.
  22875. .IP "\fB\-mfixed\-range=\fR\fIregister-range\fR" 4
  22876. .IX Item "-mfixed-range=register-range"
  22877. Generate code treating the given register range as fixed registers.
  22878. A fixed register is one that the register allocator cannot use. This is
  22879. useful when compiling kernel code. A register range is specified as
  22880. two registers separated by a dash. Multiple register ranges can be
  22881. specified separated by a comma.
  22882. .IP "\fB\-mea32\fR" 4
  22883. .IX Item "-mea32"
  22884. .PD 0
  22885. .IP "\fB\-mea64\fR" 4
  22886. .IX Item "-mea64"
  22887. .PD
  22888. Compile code assuming that pointers to the \s-1PPU\s0 address space accessed
  22889. via the \f(CW\*(C`_\|_ea\*(C'\fR named address space qualifier are either 32 or 64
  22890. bits wide. The default is 32 bits. As this is an ABI-changing option,
  22891. all object code in an executable must be compiled with the same setting.
  22892. .IP "\fB\-maddress\-space\-conversion\fR" 4
  22893. .IX Item "-maddress-space-conversion"
  22894. .PD 0
  22895. .IP "\fB\-mno\-address\-space\-conversion\fR" 4
  22896. .IX Item "-mno-address-space-conversion"
  22897. .PD
  22898. Allow/disallow treating the \f(CW\*(C`_\|_ea\*(C'\fR address space as superset
  22899. of the generic address space. This enables explicit type casts
  22900. between \f(CW\*(C`_\|_ea\*(C'\fR and generic pointer as well as implicit
  22901. conversions of generic pointers to \f(CW\*(C`_\|_ea\*(C'\fR pointers. The
  22902. default is to allow address space pointer conversions.
  22903. .IP "\fB\-mcache\-size=\fR\fIcache-size\fR" 4
  22904. .IX Item "-mcache-size=cache-size"
  22905. This option controls the version of libgcc that the compiler links to an
  22906. executable and selects a software-managed cache for accessing variables
  22907. in the \f(CW\*(C`_\|_ea\*(C'\fR address space with a particular cache size. Possible
  22908. options for \fIcache-size\fR are \fB8\fR, \fB16\fR, \fB32\fR, \fB64\fR
  22909. and \fB128\fR. The default cache size is 64KB.
  22910. .IP "\fB\-matomic\-updates\fR" 4
  22911. .IX Item "-matomic-updates"
  22912. .PD 0
  22913. .IP "\fB\-mno\-atomic\-updates\fR" 4
  22914. .IX Item "-mno-atomic-updates"
  22915. .PD
  22916. This option controls the version of libgcc that the compiler links to an
  22917. executable and selects whether atomic updates to the software-managed
  22918. cache of PPU-side variables are used. If you use atomic updates, changes
  22919. to a \s-1PPU\s0 variable from \s-1SPU\s0 code using the \f(CW\*(C`_\|_ea\*(C'\fR named address space
  22920. qualifier do not interfere with changes to other \s-1PPU\s0 variables residing
  22921. in the same cache line from \s-1PPU\s0 code. If you do not use atomic updates,
  22922. such interference may occur; however, writing back cache lines is
  22923. more efficient. The default behavior is to use atomic updates.
  22924. .IP "\fB\-mdual\-nops\fR" 4
  22925. .IX Item "-mdual-nops"
  22926. .PD 0
  22927. .IP "\fB\-mdual\-nops=\fR\fIn\fR" 4
  22928. .IX Item "-mdual-nops=n"
  22929. .PD
  22930. By default, \s-1GCC\s0 inserts NOPs to increase dual issue when it expects
  22931. it to increase performance. \fIn\fR can be a value from 0 to 10. A
  22932. smaller \fIn\fR inserts fewer NOPs. 10 is the default, 0 is the
  22933. same as \fB\-mno\-dual\-nops\fR. Disabled with \fB\-Os\fR.
  22934. .IP "\fB\-mhint\-max\-nops=\fR\fIn\fR" 4
  22935. .IX Item "-mhint-max-nops=n"
  22936. Maximum number of NOPs to insert for a branch hint. A branch hint must
  22937. be at least 8 instructions away from the branch it is affecting. \s-1GCC\s0
  22938. inserts up to \fIn\fR NOPs to enforce this, otherwise it does not
  22939. generate the branch hint.
  22940. .IP "\fB\-mhint\-max\-distance=\fR\fIn\fR" 4
  22941. .IX Item "-mhint-max-distance=n"
  22942. The encoding of the branch hint instruction limits the hint to be within
  22943. 256 instructions of the branch it is affecting. By default, \s-1GCC\s0 makes
  22944. sure it is within 125.
  22945. .IP "\fB\-msafe\-hints\fR" 4
  22946. .IX Item "-msafe-hints"
  22947. Work around a hardware bug that causes the \s-1SPU\s0 to stall indefinitely.
  22948. By default, \s-1GCC\s0 inserts the \f(CW\*(C`hbrp\*(C'\fR instruction to make sure
  22949. this stall won't happen.
  22950. .PP
  22951. \fIOptions for System V\fR
  22952. .IX Subsection "Options for System V"
  22953. .PP
  22954. These additional options are available on System V Release 4 for
  22955. compatibility with other compilers on those systems:
  22956. .IP "\fB\-G\fR" 4
  22957. .IX Item "-G"
  22958. Create a shared object.
  22959. It is recommended that \fB\-symbolic\fR or \fB\-shared\fR be used instead.
  22960. .IP "\fB\-Qy\fR" 4
  22961. .IX Item "-Qy"
  22962. Identify the versions of each tool used by the compiler, in a
  22963. \&\f(CW\*(C`.ident\*(C'\fR assembler directive in the output.
  22964. .IP "\fB\-Qn\fR" 4
  22965. .IX Item "-Qn"
  22966. Refrain from adding \f(CW\*(C`.ident\*(C'\fR directives to the output file (this is
  22967. the default).
  22968. .IP "\fB\-YP,\fR\fIdirs\fR" 4
  22969. .IX Item "-YP,dirs"
  22970. Search the directories \fIdirs\fR, and no others, for libraries
  22971. specified with \fB\-l\fR.
  22972. .IP "\fB\-Ym,\fR\fIdir\fR" 4
  22973. .IX Item "-Ym,dir"
  22974. Look in the directory \fIdir\fR to find the M4 preprocessor.
  22975. The assembler uses this option.
  22976. .PP
  22977. \fITILE-Gx Options\fR
  22978. .IX Subsection "TILE-Gx Options"
  22979. .PP
  22980. These \fB\-m\fR options are supported on the TILE-Gx:
  22981. .IP "\fB\-mcmodel=small\fR" 4
  22982. .IX Item "-mcmodel=small"
  22983. Generate code for the small model. The distance for direct calls is
  22984. limited to 500M in either direction. PC-relative addresses are 32
  22985. bits. Absolute addresses support the full address range.
  22986. .IP "\fB\-mcmodel=large\fR" 4
  22987. .IX Item "-mcmodel=large"
  22988. Generate code for the large model. There is no limitation on call
  22989. distance, pc-relative addresses, or absolute addresses.
  22990. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  22991. .IX Item "-mcpu=name"
  22992. Selects the type of \s-1CPU\s0 to be targeted. Currently the only supported
  22993. type is \fBtilegx\fR.
  22994. .IP "\fB\-m32\fR" 4
  22995. .IX Item "-m32"
  22996. .PD 0
  22997. .IP "\fB\-m64\fR" 4
  22998. .IX Item "-m64"
  22999. .PD
  23000. Generate code for a 32\-bit or 64\-bit environment. The 32\-bit
  23001. environment sets int, long, and pointer to 32 bits. The 64\-bit
  23002. environment sets int to 32 bits and long and pointer to 64 bits.
  23003. .IP "\fB\-mbig\-endian\fR" 4
  23004. .IX Item "-mbig-endian"
  23005. .PD 0
  23006. .IP "\fB\-mlittle\-endian\fR" 4
  23007. .IX Item "-mlittle-endian"
  23008. .PD
  23009. Generate code in big/little endian mode, respectively.
  23010. .PP
  23011. \fITILEPro Options\fR
  23012. .IX Subsection "TILEPro Options"
  23013. .PP
  23014. These \fB\-m\fR options are supported on the TILEPro:
  23015. .IP "\fB\-mcpu=\fR\fIname\fR" 4
  23016. .IX Item "-mcpu=name"
  23017. Selects the type of \s-1CPU\s0 to be targeted. Currently the only supported
  23018. type is \fBtilepro\fR.
  23019. .IP "\fB\-m32\fR" 4
  23020. .IX Item "-m32"
  23021. Generate code for a 32\-bit environment, which sets int, long, and
  23022. pointer to 32 bits. This is the only supported behavior so the flag
  23023. is essentially ignored.
  23024. .PP
  23025. \fIV850 Options\fR
  23026. .IX Subsection "V850 Options"
  23027. .PP
  23028. These \fB\-m\fR options are defined for V850 implementations:
  23029. .IP "\fB\-mlong\-calls\fR" 4
  23030. .IX Item "-mlong-calls"
  23031. .PD 0
  23032. .IP "\fB\-mno\-long\-calls\fR" 4
  23033. .IX Item "-mno-long-calls"
  23034. .PD
  23035. Treat all calls as being far away (near). If calls are assumed to be
  23036. far away, the compiler always loads the function's address into a
  23037. register, and calls indirect through the pointer.
  23038. .IP "\fB\-mno\-ep\fR" 4
  23039. .IX Item "-mno-ep"
  23040. .PD 0
  23041. .IP "\fB\-mep\fR" 4
  23042. .IX Item "-mep"
  23043. .PD
  23044. Do not optimize (do optimize) basic blocks that use the same index
  23045. pointer 4 or more times to copy pointer into the \f(CW\*(C`ep\*(C'\fR register, and
  23046. use the shorter \f(CW\*(C`sld\*(C'\fR and \f(CW\*(C`sst\*(C'\fR instructions. The \fB\-mep\fR
  23047. option is on by default if you optimize.
  23048. .IP "\fB\-mno\-prolog\-function\fR" 4
  23049. .IX Item "-mno-prolog-function"
  23050. .PD 0
  23051. .IP "\fB\-mprolog\-function\fR" 4
  23052. .IX Item "-mprolog-function"
  23053. .PD
  23054. Do not use (do use) external functions to save and restore registers
  23055. at the prologue and epilogue of a function. The external functions
  23056. are slower, but use less code space if more than one function saves
  23057. the same number of registers. The \fB\-mprolog\-function\fR option
  23058. is on by default if you optimize.
  23059. .IP "\fB\-mspace\fR" 4
  23060. .IX Item "-mspace"
  23061. Try to make the code as small as possible. At present, this just turns
  23062. on the \fB\-mep\fR and \fB\-mprolog\-function\fR options.
  23063. .IP "\fB\-mtda=\fR\fIn\fR" 4
  23064. .IX Item "-mtda=n"
  23065. Put static or global variables whose size is \fIn\fR bytes or less into
  23066. the tiny data area that register \f(CW\*(C`ep\*(C'\fR points to. The tiny data
  23067. area can hold up to 256 bytes in total (128 bytes for byte references).
  23068. .IP "\fB\-msda=\fR\fIn\fR" 4
  23069. .IX Item "-msda=n"
  23070. Put static or global variables whose size is \fIn\fR bytes or less into
  23071. the small data area that register \f(CW\*(C`gp\*(C'\fR points to. The small data
  23072. area can hold up to 64 kilobytes.
  23073. .IP "\fB\-mzda=\fR\fIn\fR" 4
  23074. .IX Item "-mzda=n"
  23075. Put static or global variables whose size is \fIn\fR bytes or less into
  23076. the first 32 kilobytes of memory.
  23077. .IP "\fB\-mv850\fR" 4
  23078. .IX Item "-mv850"
  23079. Specify that the target processor is the V850.
  23080. .IP "\fB\-mv850e3v5\fR" 4
  23081. .IX Item "-mv850e3v5"
  23082. Specify that the target processor is the V850E3V5. The preprocessor
  23083. constant \f(CW\*(C`_\|_v850e3v5_\|_\*(C'\fR is defined if this option is used.
  23084. .IP "\fB\-mv850e2v4\fR" 4
  23085. .IX Item "-mv850e2v4"
  23086. Specify that the target processor is the V850E3V5. This is an alias for
  23087. the \fB\-mv850e3v5\fR option.
  23088. .IP "\fB\-mv850e2v3\fR" 4
  23089. .IX Item "-mv850e2v3"
  23090. Specify that the target processor is the V850E2V3. The preprocessor
  23091. constant \f(CW\*(C`_\|_v850e2v3_\|_\*(C'\fR is defined if this option is used.
  23092. .IP "\fB\-mv850e2\fR" 4
  23093. .IX Item "-mv850e2"
  23094. Specify that the target processor is the V850E2. The preprocessor
  23095. constant \f(CW\*(C`_\|_v850e2_\|_\*(C'\fR is defined if this option is used.
  23096. .IP "\fB\-mv850e1\fR" 4
  23097. .IX Item "-mv850e1"
  23098. Specify that the target processor is the V850E1. The preprocessor
  23099. constants \f(CW\*(C`_\|_v850e1_\|_\*(C'\fR and \f(CW\*(C`_\|_v850e_\|_\*(C'\fR are defined if
  23100. this option is used.
  23101. .IP "\fB\-mv850es\fR" 4
  23102. .IX Item "-mv850es"
  23103. Specify that the target processor is the V850ES. This is an alias for
  23104. the \fB\-mv850e1\fR option.
  23105. .IP "\fB\-mv850e\fR" 4
  23106. .IX Item "-mv850e"
  23107. Specify that the target processor is the V850E. The preprocessor
  23108. constant \f(CW\*(C`_\|_v850e_\|_\*(C'\fR is defined if this option is used.
  23109. .Sp
  23110. If neither \fB\-mv850\fR nor \fB\-mv850e\fR nor \fB\-mv850e1\fR
  23111. nor \fB\-mv850e2\fR nor \fB\-mv850e2v3\fR nor \fB\-mv850e3v5\fR
  23112. are defined then a default target processor is chosen and the
  23113. relevant \fB_\|_v850*_\|_\fR preprocessor constant is defined.
  23114. .Sp
  23115. The preprocessor constants \f(CW\*(C`_\|_v850\*(C'\fR and \f(CW\*(C`_\|_v851_\|_\*(C'\fR are always
  23116. defined, regardless of which processor variant is the target.
  23117. .IP "\fB\-mdisable\-callt\fR" 4
  23118. .IX Item "-mdisable-callt"
  23119. .PD 0
  23120. .IP "\fB\-mno\-disable\-callt\fR" 4
  23121. .IX Item "-mno-disable-callt"
  23122. .PD
  23123. This option suppresses generation of the \f(CW\*(C`CALLT\*(C'\fR instruction for the
  23124. v850e, v850e1, v850e2, v850e2v3 and v850e3v5 flavors of the v850
  23125. architecture.
  23126. .Sp
  23127. This option is enabled by default when the \s-1RH850 ABI\s0 is
  23128. in use (see \fB\-mrh850\-abi\fR), and disabled by default when the
  23129. \&\s-1GCC ABI\s0 is in use. If \f(CW\*(C`CALLT\*(C'\fR instructions are being generated
  23130. then the C preprocessor symbol \f(CW\*(C`_\|_V850_CALLT_\|_\*(C'\fR is defined.
  23131. .IP "\fB\-mrelax\fR" 4
  23132. .IX Item "-mrelax"
  23133. .PD 0
  23134. .IP "\fB\-mno\-relax\fR" 4
  23135. .IX Item "-mno-relax"
  23136. .PD
  23137. Pass on (or do not pass on) the \fB\-mrelax\fR command-line option
  23138. to the assembler.
  23139. .IP "\fB\-mlong\-jumps\fR" 4
  23140. .IX Item "-mlong-jumps"
  23141. .PD 0
  23142. .IP "\fB\-mno\-long\-jumps\fR" 4
  23143. .IX Item "-mno-long-jumps"
  23144. .PD
  23145. Disable (or re-enable) the generation of PC-relative jump instructions.
  23146. .IP "\fB\-msoft\-float\fR" 4
  23147. .IX Item "-msoft-float"
  23148. .PD 0
  23149. .IP "\fB\-mhard\-float\fR" 4
  23150. .IX Item "-mhard-float"
  23151. .PD
  23152. Disable (or re-enable) the generation of hardware floating point
  23153. instructions. This option is only significant when the target
  23154. architecture is \fBV850E2V3\fR or higher. If hardware floating point
  23155. instructions are being generated then the C preprocessor symbol
  23156. \&\f(CW\*(C`_\|_FPU_OK_\|_\*(C'\fR is defined, otherwise the symbol
  23157. \&\f(CW\*(C`_\|_NO_FPU_\|_\*(C'\fR is defined.
  23158. .IP "\fB\-mloop\fR" 4
  23159. .IX Item "-mloop"
  23160. Enables the use of the e3v5 \s-1LOOP\s0 instruction. The use of this
  23161. instruction is not enabled by default when the e3v5 architecture is
  23162. selected because its use is still experimental.
  23163. .IP "\fB\-mrh850\-abi\fR" 4
  23164. .IX Item "-mrh850-abi"
  23165. .PD 0
  23166. .IP "\fB\-mghs\fR" 4
  23167. .IX Item "-mghs"
  23168. .PD
  23169. Enables support for the \s-1RH850\s0 version of the V850 \s-1ABI. \s0 This is the
  23170. default. With this version of the \s-1ABI\s0 the following rules apply:
  23171. .RS 4
  23172. .IP "*" 4
  23173. Integer sized structures and unions are returned via a memory pointer
  23174. rather than a register.
  23175. .IP "*" 4
  23176. Large structures and unions (more than 8 bytes in size) are passed by
  23177. value.
  23178. .IP "*" 4
  23179. Functions are aligned to 16\-bit boundaries.
  23180. .IP "*" 4
  23181. The \fB\-m8byte\-align\fR command-line option is supported.
  23182. .IP "*" 4
  23183. The \fB\-mdisable\-callt\fR command-line option is enabled by
  23184. default. The \fB\-mno\-disable\-callt\fR command-line option is not
  23185. supported.
  23186. .RE
  23187. .RS 4
  23188. .Sp
  23189. When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
  23190. \&\f(CW\*(C`_\|_V850_RH850_ABI_\|_\*(C'\fR is defined.
  23191. .RE
  23192. .IP "\fB\-mgcc\-abi\fR" 4
  23193. .IX Item "-mgcc-abi"
  23194. Enables support for the old \s-1GCC\s0 version of the V850 \s-1ABI. \s0 With this
  23195. version of the \s-1ABI\s0 the following rules apply:
  23196. .RS 4
  23197. .IP "*" 4
  23198. Integer sized structures and unions are returned in register \f(CW\*(C`r10\*(C'\fR.
  23199. .IP "*" 4
  23200. Large structures and unions (more than 8 bytes in size) are passed by
  23201. reference.
  23202. .IP "*" 4
  23203. Functions are aligned to 32\-bit boundaries, unless optimizing for
  23204. size.
  23205. .IP "*" 4
  23206. The \fB\-m8byte\-align\fR command-line option is not supported.
  23207. .IP "*" 4
  23208. The \fB\-mdisable\-callt\fR command-line option is supported but not
  23209. enabled by default.
  23210. .RE
  23211. .RS 4
  23212. .Sp
  23213. When this version of the \s-1ABI\s0 is enabled the C preprocessor symbol
  23214. \&\f(CW\*(C`_\|_V850_GCC_ABI_\|_\*(C'\fR is defined.
  23215. .RE
  23216. .IP "\fB\-m8byte\-align\fR" 4
  23217. .IX Item "-m8byte-align"
  23218. .PD 0
  23219. .IP "\fB\-mno\-8byte\-align\fR" 4
  23220. .IX Item "-mno-8byte-align"
  23221. .PD
  23222. Enables support for \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long long\*(C'\fR types to be
  23223. aligned on 8\-byte boundaries. The default is to restrict the
  23224. alignment of all objects to at most 4\-bytes. When
  23225. \&\fB\-m8byte\-align\fR is in effect the C preprocessor symbol
  23226. \&\f(CW\*(C`_\|_V850_8BYTE_ALIGN_\|_\*(C'\fR is defined.
  23227. .IP "\fB\-mbig\-switch\fR" 4
  23228. .IX Item "-mbig-switch"
  23229. Generate code suitable for big switch tables. Use this option only if
  23230. the assembler/linker complain about out of range branches within a switch
  23231. table.
  23232. .IP "\fB\-mapp\-regs\fR" 4
  23233. .IX Item "-mapp-regs"
  23234. This option causes r2 and r5 to be used in the code generated by
  23235. the compiler. This setting is the default.
  23236. .IP "\fB\-mno\-app\-regs\fR" 4
  23237. .IX Item "-mno-app-regs"
  23238. This option causes r2 and r5 to be treated as fixed registers.
  23239. .PP
  23240. \fI\s-1VAX\s0 Options\fR
  23241. .IX Subsection "VAX Options"
  23242. .PP
  23243. These \fB\-m\fR options are defined for the \s-1VAX:\s0
  23244. .IP "\fB\-munix\fR" 4
  23245. .IX Item "-munix"
  23246. Do not output certain jump instructions (\f(CW\*(C`aobleq\*(C'\fR and so on)
  23247. that the Unix assembler for the \s-1VAX\s0 cannot handle across long
  23248. ranges.
  23249. .IP "\fB\-mgnu\fR" 4
  23250. .IX Item "-mgnu"
  23251. Do output those jump instructions, on the assumption that the
  23252. \&\s-1GNU\s0 assembler is being used.
  23253. .IP "\fB\-mg\fR" 4
  23254. .IX Item "-mg"
  23255. Output code for G\-format floating-point numbers instead of D\-format.
  23256. .PP
  23257. \fIVisium Options\fR
  23258. .IX Subsection "Visium Options"
  23259. .IP "\fB\-mdebug\fR" 4
  23260. .IX Item "-mdebug"
  23261. A program which performs file I/O and is destined to run on an \s-1MCM\s0 target
  23262. should be linked with this option. It causes the libraries libc.a and
  23263. libdebug.a to be linked. The program should be run on the target under
  23264. the control of the \s-1GDB\s0 remote debugging stub.
  23265. .IP "\fB\-msim\fR" 4
  23266. .IX Item "-msim"
  23267. A program which performs file I/O and is destined to run on the simulator
  23268. should be linked with option. This causes libraries libc.a and libsim.a to
  23269. be linked.
  23270. .IP "\fB\-mfpu\fR" 4
  23271. .IX Item "-mfpu"
  23272. .PD 0
  23273. .IP "\fB\-mhard\-float\fR" 4
  23274. .IX Item "-mhard-float"
  23275. .PD
  23276. Generate code containing floating-point instructions. This is the
  23277. default.
  23278. .IP "\fB\-mno\-fpu\fR" 4
  23279. .IX Item "-mno-fpu"
  23280. .PD 0
  23281. .IP "\fB\-msoft\-float\fR" 4
  23282. .IX Item "-msoft-float"
  23283. .PD
  23284. Generate code containing library calls for floating-point.
  23285. .Sp
  23286. \&\fB\-msoft\-float\fR changes the calling convention in the output file;
  23287. therefore, it is only useful if you compile \fIall\fR of a program with
  23288. this option. In particular, you need to compile \fIlibgcc.a\fR, the
  23289. library that comes with \s-1GCC,\s0 with \fB\-msoft\-float\fR in order for
  23290. this to work.
  23291. .IP "\fB\-mcpu=\fR\fIcpu_type\fR" 4
  23292. .IX Item "-mcpu=cpu_type"
  23293. Set the instruction set, register set, and instruction scheduling parameters
  23294. for machine type \fIcpu_type\fR. Supported values for \fIcpu_type\fR are
  23295. \&\fBmcm\fR, \fBgr5\fR and \fBgr6\fR.
  23296. .Sp
  23297. \&\fBmcm\fR is a synonym of \fBgr5\fR present for backward compatibility.
  23298. .Sp
  23299. By default (unless configured otherwise), \s-1GCC\s0 generates code for the \s-1GR5\s0
  23300. variant of the Visium architecture.
  23301. .Sp
  23302. With \fB\-mcpu=gr6\fR, \s-1GCC\s0 generates code for the \s-1GR6\s0 variant of the Visium
  23303. architecture. The only difference from \s-1GR5\s0 code is that the compiler will
  23304. generate block move instructions.
  23305. .IP "\fB\-mtune=\fR\fIcpu_type\fR" 4
  23306. .IX Item "-mtune=cpu_type"
  23307. Set the instruction scheduling parameters for machine type \fIcpu_type\fR,
  23308. but do not set the instruction set or register set that the option
  23309. \&\fB\-mcpu=\fR\fIcpu_type\fR would.
  23310. .IP "\fB\-msv\-mode\fR" 4
  23311. .IX Item "-msv-mode"
  23312. Generate code for the supervisor mode, where there are no restrictions on
  23313. the access to general registers. This is the default.
  23314. .IP "\fB\-muser\-mode\fR" 4
  23315. .IX Item "-muser-mode"
  23316. Generate code for the user mode, where the access to some general registers
  23317. is forbidden: on the \s-1GR5,\s0 registers r24 to r31 cannot be accessed in this
  23318. mode; on the \s-1GR6,\s0 only registers r29 to r31 are affected.
  23319. .PP
  23320. \fI\s-1VMS\s0 Options\fR
  23321. .IX Subsection "VMS Options"
  23322. .PP
  23323. These \fB\-m\fR options are defined for the \s-1VMS\s0 implementations:
  23324. .IP "\fB\-mvms\-return\-codes\fR" 4
  23325. .IX Item "-mvms-return-codes"
  23326. Return \s-1VMS\s0 condition codes from \f(CW\*(C`main\*(C'\fR. The default is to return POSIX-style
  23327. condition (e.g. error) codes.
  23328. .IP "\fB\-mdebug\-main=\fR\fIprefix\fR" 4
  23329. .IX Item "-mdebug-main=prefix"
  23330. Flag the first routine whose name starts with \fIprefix\fR as the main
  23331. routine for the debugger.
  23332. .IP "\fB\-mmalloc64\fR" 4
  23333. .IX Item "-mmalloc64"
  23334. Default to 64\-bit memory allocation routines.
  23335. .IP "\fB\-mpointer\-size=\fR\fIsize\fR" 4
  23336. .IX Item "-mpointer-size=size"
  23337. Set the default size of pointers. Possible options for \fIsize\fR are
  23338. \&\fB32\fR or \fBshort\fR for 32 bit pointers, \fB64\fR or \fBlong\fR
  23339. for 64 bit pointers, and \fBno\fR for supporting only 32 bit pointers.
  23340. The later option disables \f(CW\*(C`pragma pointer_size\*(C'\fR.
  23341. .PP
  23342. \fIVxWorks Options\fR
  23343. .IX Subsection "VxWorks Options"
  23344. .PP
  23345. The options in this section are defined for all VxWorks targets.
  23346. Options specific to the target hardware are listed with the other
  23347. options for that target.
  23348. .IP "\fB\-mrtp\fR" 4
  23349. .IX Item "-mrtp"
  23350. \&\s-1GCC\s0 can generate code for both VxWorks kernels and real time processes
  23351. (RTPs). This option switches from the former to the latter. It also
  23352. defines the preprocessor macro \f(CW\*(C`_\|_RTP_\|_\*(C'\fR.
  23353. .IP "\fB\-non\-static\fR" 4
  23354. .IX Item "-non-static"
  23355. Link an \s-1RTP\s0 executable against shared libraries rather than static
  23356. libraries. The options \fB\-static\fR and \fB\-shared\fR can
  23357. also be used for RTPs; \fB\-static\fR
  23358. is the default.
  23359. .IP "\fB\-Bstatic\fR" 4
  23360. .IX Item "-Bstatic"
  23361. .PD 0
  23362. .IP "\fB\-Bdynamic\fR" 4
  23363. .IX Item "-Bdynamic"
  23364. .PD
  23365. These options are passed down to the linker. They are defined for
  23366. compatibility with Diab.
  23367. .IP "\fB\-Xbind\-lazy\fR" 4
  23368. .IX Item "-Xbind-lazy"
  23369. Enable lazy binding of function calls. This option is equivalent to
  23370. \&\fB\-Wl,\-z,now\fR and is defined for compatibility with Diab.
  23371. .IP "\fB\-Xbind\-now\fR" 4
  23372. .IX Item "-Xbind-now"
  23373. Disable lazy binding of function calls. This option is the default and
  23374. is defined for compatibility with Diab.
  23375. .PP
  23376. \fIx86 Options\fR
  23377. .IX Subsection "x86 Options"
  23378. .PP
  23379. These \fB\-m\fR options are defined for the x86 family of computers.
  23380. .IP "\fB\-march=\fR\fIcpu-type\fR" 4
  23381. .IX Item "-march=cpu-type"
  23382. Generate instructions for the machine type \fIcpu-type\fR. In contrast to
  23383. \&\fB\-mtune=\fR\fIcpu-type\fR, which merely tunes the generated code
  23384. for the specified \fIcpu-type\fR, \fB\-march=\fR\fIcpu-type\fR allows \s-1GCC\s0
  23385. to generate code that may not run at all on processors other than the one
  23386. indicated. Specifying \fB\-march=\fR\fIcpu-type\fR implies
  23387. \&\fB\-mtune=\fR\fIcpu-type\fR.
  23388. .Sp
  23389. The choices for \fIcpu-type\fR are:
  23390. .RS 4
  23391. .IP "\fBnative\fR" 4
  23392. .IX Item "native"
  23393. This selects the \s-1CPU\s0 to generate code for at compilation time by determining
  23394. the processor type of the compiling machine. Using \fB\-march=native\fR
  23395. enables all instruction subsets supported by the local machine (hence
  23396. the result might not run on different machines). Using \fB\-mtune=native\fR
  23397. produces code optimized for the local machine under the constraints
  23398. of the selected instruction set.
  23399. .IP "\fBi386\fR" 4
  23400. .IX Item "i386"
  23401. Original Intel i386 \s-1CPU.\s0
  23402. .IP "\fBi486\fR" 4
  23403. .IX Item "i486"
  23404. Intel i486 \s-1CPU. \s0(No scheduling is implemented for this chip.)
  23405. .IP "\fBi586\fR" 4
  23406. .IX Item "i586"
  23407. .PD 0
  23408. .IP "\fBpentium\fR" 4
  23409. .IX Item "pentium"
  23410. .PD
  23411. Intel Pentium \s-1CPU\s0 with no \s-1MMX\s0 support.
  23412. .IP "\fBlakemont\fR" 4
  23413. .IX Item "lakemont"
  23414. Intel Lakemont \s-1MCU,\s0 based on Intel Pentium \s-1CPU.\s0
  23415. .IP "\fBpentium-mmx\fR" 4
  23416. .IX Item "pentium-mmx"
  23417. Intel Pentium \s-1MMX CPU,\s0 based on Pentium core with \s-1MMX\s0 instruction set support.
  23418. .IP "\fBpentiumpro\fR" 4
  23419. .IX Item "pentiumpro"
  23420. Intel Pentium Pro \s-1CPU.\s0
  23421. .IP "\fBi686\fR" 4
  23422. .IX Item "i686"
  23423. When used with \fB\-march\fR, the Pentium Pro
  23424. instruction set is used, so the code runs on all i686 family chips.
  23425. When used with \fB\-mtune\fR, it has the same meaning as \fBgeneric\fR.
  23426. .IP "\fBpentium2\fR" 4
  23427. .IX Item "pentium2"
  23428. Intel Pentium \s-1II CPU,\s0 based on Pentium Pro core with \s-1MMX\s0 instruction set
  23429. support.
  23430. .IP "\fBpentium3\fR" 4
  23431. .IX Item "pentium3"
  23432. .PD 0
  23433. .IP "\fBpentium3m\fR" 4
  23434. .IX Item "pentium3m"
  23435. .PD
  23436. Intel Pentium \s-1III CPU,\s0 based on Pentium Pro core with \s-1MMX\s0 and \s-1SSE\s0 instruction
  23437. set support.
  23438. .IP "\fBpentium-m\fR" 4
  23439. .IX Item "pentium-m"
  23440. Intel Pentium M; low-power version of Intel Pentium \s-1III CPU\s0
  23441. with \s-1MMX, SSE\s0 and \s-1SSE2\s0 instruction set support. Used by Centrino notebooks.
  23442. .IP "\fBpentium4\fR" 4
  23443. .IX Item "pentium4"
  23444. .PD 0
  23445. .IP "\fBpentium4m\fR" 4
  23446. .IX Item "pentium4m"
  23447. .PD
  23448. Intel Pentium 4 \s-1CPU\s0 with \s-1MMX, SSE\s0 and \s-1SSE2\s0 instruction set support.
  23449. .IP "\fBprescott\fR" 4
  23450. .IX Item "prescott"
  23451. Improved version of Intel Pentium 4 \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction
  23452. set support.
  23453. .IP "\fBnocona\fR" 4
  23454. .IX Item "nocona"
  23455. Improved version of Intel Pentium 4 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE,
  23456. SSE2\s0 and \s-1SSE3\s0 instruction set support.
  23457. .IP "\fBcore2\fR" 4
  23458. .IX Item "core2"
  23459. Intel Core 2 \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  23460. instruction set support.
  23461. .IP "\fBnehalem\fR" 4
  23462. .IX Item "nehalem"
  23463. Intel Nehalem \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
  23464. SSE4.1, SSE4.2\s0 and \s-1POPCNT\s0 instruction set support.
  23465. .IP "\fBwestmere\fR" 4
  23466. .IX Item "westmere"
  23467. Intel Westmere \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
  23468. SSE4.1, SSE4.2, POPCNT, AES\s0 and \s-1PCLMUL\s0 instruction set support.
  23469. .IP "\fBsandybridge\fR" 4
  23470. .IX Item "sandybridge"
  23471. Intel Sandy Bridge \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
  23472. SSE4.1, SSE4.2, POPCNT, AVX, AES\s0 and \s-1PCLMUL\s0 instruction set support.
  23473. .IP "\fBivybridge\fR" 4
  23474. .IX Item "ivybridge"
  23475. Intel Ivy Bridge \s-1CPU\s0 with 64\-bit extensions, \s-1MMX, SSE, SSE2, SSE3, SSSE3,
  23476. SSE4.1, SSE4.2, POPCNT, AVX, AES, PCLMUL, FSGSBASE, RDRND\s0 and F16C
  23477. instruction set support.
  23478. .IP "\fBhaswell\fR" 4
  23479. .IX Item "haswell"
  23480. Intel Haswell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  23481. SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  23482. BMI, BMI2\s0 and F16C instruction set support.
  23483. .IP "\fBbroadwell\fR" 4
  23484. .IX Item "broadwell"
  23485. Intel Broadwell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  23486. SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  23487. BMI, BMI2, F16C, RDSEED, ADCX\s0 and \s-1PREFETCHW\s0 instruction set support.
  23488. .IP "\fBskylake\fR" 4
  23489. .IX Item "skylake"
  23490. Intel Skylake \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  23491. SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  23492. BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC\s0 and
  23493. \&\s-1XSAVES\s0 instruction set support.
  23494. .IP "\fBbonnell\fR" 4
  23495. .IX Item "bonnell"
  23496. Intel Bonnell \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  23497. instruction set support.
  23498. .IP "\fBsilvermont\fR" 4
  23499. .IX Item "silvermont"
  23500. Intel Silvermont \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3, SSSE3,
  23501. SSE4.1, SSE4.2, POPCNT, AES, PCLMUL\s0 and \s-1RDRND\s0 instruction set support.
  23502. .IP "\fBknl\fR" 4
  23503. .IX Item "knl"
  23504. Intel Knight's Landing \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
  23505. SSSE3, SSE4.1, SSE4.2, POPCNT, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  23506. BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, AVX512F, AVX512PF, AVX512ER\s0 and
  23507. \&\s-1AVX512CD\s0 instruction set support.
  23508. .IP "\fBskylake\-avx512\fR" 4
  23509. .IX Item "skylake-avx512"
  23510. Intel Skylake Server \s-1CPU\s0 with 64\-bit extensions, \s-1MOVBE, MMX, SSE, SSE2, SSE3,
  23511. SSSE3, SSE4.1, SSE4.2, POPCNT, PKU, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA,
  23512. BMI, BMI2, F16C, RDSEED, ADCX, PREFETCHW, CLFLUSHOPT, XSAVEC, XSAVES, AVX512F,
  23513. AVX512VL, AVX512BW, AVX512DQ\s0 and \s-1AVX512CD\s0 instruction set support.
  23514. .IP "\fBk6\fR" 4
  23515. .IX Item "k6"
  23516. \&\s-1AMD K6 CPU\s0 with \s-1MMX\s0 instruction set support.
  23517. .IP "\fBk6\-2\fR" 4
  23518. .IX Item "k6-2"
  23519. .PD 0
  23520. .IP "\fBk6\-3\fR" 4
  23521. .IX Item "k6-3"
  23522. .PD
  23523. Improved versions of \s-1AMD K6 CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
  23524. .IP "\fBathlon\fR" 4
  23525. .IX Item "athlon"
  23526. .PD 0
  23527. .IP "\fBathlon-tbird\fR" 4
  23528. .IX Item "athlon-tbird"
  23529. .PD
  23530. \&\s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX,\s0 3dNOW!, enhanced 3DNow! and \s-1SSE\s0 prefetch instructions
  23531. support.
  23532. .IP "\fBathlon\-4\fR" 4
  23533. .IX Item "athlon-4"
  23534. .PD 0
  23535. .IP "\fBathlon-xp\fR" 4
  23536. .IX Item "athlon-xp"
  23537. .IP "\fBathlon-mp\fR" 4
  23538. .IX Item "athlon-mp"
  23539. .PD
  23540. Improved \s-1AMD\s0 Athlon \s-1CPU\s0 with \s-1MMX,\s0 3DNow!, enhanced 3DNow! and full \s-1SSE\s0
  23541. instruction set support.
  23542. .IP "\fBk8\fR" 4
  23543. .IX Item "k8"
  23544. .PD 0
  23545. .IP "\fBopteron\fR" 4
  23546. .IX Item "opteron"
  23547. .IP "\fBathlon64\fR" 4
  23548. .IX Item "athlon64"
  23549. .IP "\fBathlon-fx\fR" 4
  23550. .IX Item "athlon-fx"
  23551. .PD
  23552. Processors based on the \s-1AMD K8\s0 core with x86\-64 instruction set support,
  23553. including the \s-1AMD\s0 Opteron, Athlon 64, and Athlon 64 \s-1FX\s0 processors.
  23554. (This supersets \s-1MMX, SSE, SSE2,\s0 3DNow!, enhanced 3DNow! and 64\-bit
  23555. instruction set extensions.)
  23556. .IP "\fBk8\-sse3\fR" 4
  23557. .IX Item "k8-sse3"
  23558. .PD 0
  23559. .IP "\fBopteron\-sse3\fR" 4
  23560. .IX Item "opteron-sse3"
  23561. .IP "\fBathlon64\-sse3\fR" 4
  23562. .IX Item "athlon64-sse3"
  23563. .PD
  23564. Improved versions of \s-1AMD K8\s0 cores with \s-1SSE3\s0 instruction set support.
  23565. .IP "\fBamdfam10\fR" 4
  23566. .IX Item "amdfam10"
  23567. .PD 0
  23568. .IP "\fBbarcelona\fR" 4
  23569. .IX Item "barcelona"
  23570. .PD
  23571. CPUs based on \s-1AMD\s0 Family 10h cores with x86\-64 instruction set support. (This
  23572. supersets \s-1MMX, SSE, SSE2, SSE3, SSE4A,\s0 3DNow!, enhanced 3DNow!, \s-1ABM\s0 and 64\-bit
  23573. instruction set extensions.)
  23574. .IP "\fBbdver1\fR" 4
  23575. .IX Item "bdver1"
  23576. CPUs based on \s-1AMD\s0 Family 15h cores with x86\-64 instruction set support. (This
  23577. supersets \s-1FMA4, AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A,
  23578. SSSE3, SSE4.1, SSE4.2, ABM\s0 and 64\-bit instruction set extensions.)
  23579. .IP "\fBbdver2\fR" 4
  23580. .IX Item "bdver2"
  23581. \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support. (This
  23582. supersets \s-1BMI, TBM, F16C, FMA, FMA4, AVX, XOP, LWP, AES, PCL_MUL, CX16, MMX,
  23583. SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM\s0 and 64\-bit instruction set
  23584. extensions.)
  23585. .IP "\fBbdver3\fR" 4
  23586. .IX Item "bdver3"
  23587. \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support. (This
  23588. supersets \s-1BMI, TBM, F16C, FMA, FMA4, FSGSBASE, AVX, XOP, LWP, AES,
  23589. PCL_MUL, CX16, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1, SSE4.2, ABM\s0 and
  23590. 64\-bit instruction set extensions.
  23591. .IP "\fBbdver4\fR" 4
  23592. .IX Item "bdver4"
  23593. \&\s-1AMD\s0 Family 15h core based CPUs with x86\-64 instruction set support. (This
  23594. supersets \s-1BMI, BMI2, TBM, F16C, FMA, FMA4, FSGSBASE, AVX, AVX2, XOP, LWP,
  23595. AES, PCL_MUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3, SSE4.1,
  23596. SSE4.2, ABM\s0 and 64\-bit instruction set extensions.
  23597. .IP "\fBznver1\fR" 4
  23598. .IX Item "znver1"
  23599. \&\s-1AMD\s0 Family 17h core based CPUs with x86\-64 instruction set support. (This
  23600. supersets \s-1BMI, BMI2, F16C, FMA, FSGSBASE, AVX, AVX2, ADCX, RDSEED, MWAITX,
  23601. SHA, CLZERO, AES, PCL_MUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, SSSE3,
  23602. SSE4.1, SSE4.2, ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT,\s0 and 64\-bit
  23603. instruction set extensions.
  23604. .IP "\fBbtver1\fR" 4
  23605. .IX Item "btver1"
  23606. CPUs based on \s-1AMD\s0 Family 14h cores with x86\-64 instruction set support. (This
  23607. supersets \s-1MMX, SSE, SSE2, SSE3, SSSE3, SSE4A, CX16, ABM\s0 and 64\-bit
  23608. instruction set extensions.)
  23609. .IP "\fBbtver2\fR" 4
  23610. .IX Item "btver2"
  23611. CPUs based on \s-1AMD\s0 Family 16h cores with x86\-64 instruction set support. This
  23612. includes \s-1MOVBE, F16C, BMI, AVX, PCL_MUL, AES, SSE4.2, SSE4.1, CX16, ABM,
  23613. SSE4A, SSSE3, SSE3, SSE2, SSE, MMX\s0 and 64\-bit instruction set extensions.
  23614. .IP "\fBwinchip\-c6\fR" 4
  23615. .IX Item "winchip-c6"
  23616. \&\s-1IDT\s0 WinChip C6 \s-1CPU,\s0 dealt in same way as i486 with additional \s-1MMX\s0 instruction
  23617. set support.
  23618. .IP "\fBwinchip2\fR" 4
  23619. .IX Item "winchip2"
  23620. \&\s-1IDT\s0 WinChip 2 \s-1CPU,\s0 dealt in same way as i486 with additional \s-1MMX\s0 and 3DNow!
  23621. instruction set support.
  23622. .IP "\fBc3\fR" 4
  23623. .IX Item "c3"
  23624. \&\s-1VIA C3 CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
  23625. (No scheduling is implemented for this chip.)
  23626. .IP "\fBc3\-2\fR" 4
  23627. .IX Item "c3-2"
  23628. \&\s-1VIA C3\-2 \s0(Nehemiah/C5XL) \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.
  23629. (No scheduling is implemented for this chip.)
  23630. .IP "\fBc7\fR" 4
  23631. .IX Item "c7"
  23632. \&\s-1VIA C7 \s0(Esther) \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
  23633. (No scheduling is implemented for this chip.)
  23634. .IP "\fBsamuel\-2\fR" 4
  23635. .IX Item "samuel-2"
  23636. \&\s-1VIA\s0 Eden Samuel 2 \s-1CPU\s0 with \s-1MMX\s0 and 3DNow! instruction set support.
  23637. (No scheduling is implemented for this chip.)
  23638. .IP "\fBnehemiah\fR" 4
  23639. .IX Item "nehemiah"
  23640. \&\s-1VIA\s0 Eden Nehemiah \s-1CPU\s0 with \s-1MMX\s0 and \s-1SSE\s0 instruction set support.
  23641. (No scheduling is implemented for this chip.)
  23642. .IP "\fBesther\fR" 4
  23643. .IX Item "esther"
  23644. \&\s-1VIA\s0 Eden Esther \s-1CPU\s0 with \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
  23645. (No scheduling is implemented for this chip.)
  23646. .IP "\fBeden\-x2\fR" 4
  23647. .IX Item "eden-x2"
  23648. \&\s-1VIA\s0 Eden X2 \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2\s0 and \s-1SSE3\s0 instruction set support.
  23649. (No scheduling is implemented for this chip.)
  23650. .IP "\fBeden\-x4\fR" 4
  23651. .IX Item "eden-x4"
  23652. \&\s-1VIA\s0 Eden X4 \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2,
  23653. AVX\s0 and \s-1AVX2\s0 instruction set support.
  23654. (No scheduling is implemented for this chip.)
  23655. .IP "\fBnano\fR" 4
  23656. .IX Item "nano"
  23657. Generic \s-1VIA\s0 Nano \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  23658. instruction set support.
  23659. (No scheduling is implemented for this chip.)
  23660. .IP "\fBnano\-1000\fR" 4
  23661. .IX Item "nano-1000"
  23662. \&\s-1VIA\s0 Nano 1xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  23663. instruction set support.
  23664. (No scheduling is implemented for this chip.)
  23665. .IP "\fBnano\-2000\fR" 4
  23666. .IX Item "nano-2000"
  23667. \&\s-1VIA\s0 Nano 2xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3\s0 and \s-1SSSE3\s0
  23668. instruction set support.
  23669. (No scheduling is implemented for this chip.)
  23670. .IP "\fBnano\-3000\fR" 4
  23671. .IX Item "nano-3000"
  23672. \&\s-1VIA\s0 Nano 3xxx \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
  23673. instruction set support.
  23674. (No scheduling is implemented for this chip.)
  23675. .IP "\fBnano\-x2\fR" 4
  23676. .IX Item "nano-x2"
  23677. \&\s-1VIA\s0 Nano Dual Core \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
  23678. instruction set support.
  23679. (No scheduling is implemented for this chip.)
  23680. .IP "\fBnano\-x4\fR" 4
  23681. .IX Item "nano-x4"
  23682. \&\s-1VIA\s0 Nano Quad Core \s-1CPU\s0 with x86\-64, \s-1MMX, SSE, SSE2, SSE3, SSSE3\s0 and \s-1SSE4.1\s0
  23683. instruction set support.
  23684. (No scheduling is implemented for this chip.)
  23685. .IP "\fBgeode\fR" 4
  23686. .IX Item "geode"
  23687. \&\s-1AMD\s0 Geode embedded processor with \s-1MMX\s0 and 3DNow! instruction set support.
  23688. .RE
  23689. .RS 4
  23690. .RE
  23691. .IP "\fB\-mtune=\fR\fIcpu-type\fR" 4
  23692. .IX Item "-mtune=cpu-type"
  23693. Tune to \fIcpu-type\fR everything applicable about the generated code, except
  23694. for the \s-1ABI\s0 and the set of available instructions.
  23695. While picking a specific \fIcpu-type\fR schedules things appropriately
  23696. for that particular chip, the compiler does not generate any code that
  23697. cannot run on the default machine type unless you use a
  23698. \&\fB\-march=\fR\fIcpu-type\fR option.
  23699. For example, if \s-1GCC\s0 is configured for i686\-pc\-linux\-gnu
  23700. then \fB\-mtune=pentium4\fR generates code that is tuned for Pentium 4
  23701. but still runs on i686 machines.
  23702. .Sp
  23703. The choices for \fIcpu-type\fR are the same as for \fB\-march\fR.
  23704. In addition, \fB\-mtune\fR supports 2 extra choices for \fIcpu-type\fR:
  23705. .RS 4
  23706. .IP "\fBgeneric\fR" 4
  23707. .IX Item "generic"
  23708. Produce code optimized for the most common \s-1IA32/AMD64/EM64T\s0 processors.
  23709. If you know the \s-1CPU\s0 on which your code will run, then you should use
  23710. the corresponding \fB\-mtune\fR or \fB\-march\fR option instead of
  23711. \&\fB\-mtune=generic\fR. But, if you do not know exactly what \s-1CPU\s0 users
  23712. of your application will have, then you should use this option.
  23713. .Sp
  23714. As new processors are deployed in the marketplace, the behavior of this
  23715. option will change. Therefore, if you upgrade to a newer version of
  23716. \&\s-1GCC,\s0 code generation controlled by this option will change to reflect
  23717. the processors
  23718. that are most common at the time that version of \s-1GCC\s0 is released.
  23719. .Sp
  23720. There is no \fB\-march=generic\fR option because \fB\-march\fR
  23721. indicates the instruction set the compiler can use, and there is no
  23722. generic instruction set applicable to all processors. In contrast,
  23723. \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
  23724. processors) for which the code is optimized.
  23725. .IP "\fBintel\fR" 4
  23726. .IX Item "intel"
  23727. Produce code optimized for the most current Intel processors, which are
  23728. Haswell and Silvermont for this version of \s-1GCC. \s0 If you know the \s-1CPU\s0
  23729. on which your code will run, then you should use the corresponding
  23730. \&\fB\-mtune\fR or \fB\-march\fR option instead of \fB\-mtune=intel\fR.
  23731. But, if you want your application performs better on both Haswell and
  23732. Silvermont, then you should use this option.
  23733. .Sp
  23734. As new Intel processors are deployed in the marketplace, the behavior of
  23735. this option will change. Therefore, if you upgrade to a newer version of
  23736. \&\s-1GCC,\s0 code generation controlled by this option will change to reflect
  23737. the most current Intel processors at the time that version of \s-1GCC\s0 is
  23738. released.
  23739. .Sp
  23740. There is no \fB\-march=intel\fR option because \fB\-march\fR indicates
  23741. the instruction set the compiler can use, and there is no common
  23742. instruction set applicable to all processors. In contrast,
  23743. \&\fB\-mtune\fR indicates the processor (or, in this case, collection of
  23744. processors) for which the code is optimized.
  23745. .RE
  23746. .RS 4
  23747. .RE
  23748. .IP "\fB\-mcpu=\fR\fIcpu-type\fR" 4
  23749. .IX Item "-mcpu=cpu-type"
  23750. A deprecated synonym for \fB\-mtune\fR.
  23751. .IP "\fB\-mfpmath=\fR\fIunit\fR" 4
  23752. .IX Item "-mfpmath=unit"
  23753. Generate floating-point arithmetic for selected unit \fIunit\fR. The choices
  23754. for \fIunit\fR are:
  23755. .RS 4
  23756. .IP "\fB387\fR" 4
  23757. .IX Item "387"
  23758. Use the standard 387 floating-point coprocessor present on the majority of chips and
  23759. emulated otherwise. Code compiled with this option runs almost everywhere.
  23760. The temporary results are computed in 80\-bit precision instead of the precision
  23761. specified by the type, resulting in slightly different results compared to most
  23762. of other chips. See \fB\-ffloat\-store\fR for more detailed description.
  23763. .Sp
  23764. This is the default choice for non-Darwin x86\-32 targets.
  23765. .IP "\fBsse\fR" 4
  23766. .IX Item "sse"
  23767. Use scalar floating-point instructions present in the \s-1SSE\s0 instruction set.
  23768. This instruction set is supported by Pentium \s-1III\s0 and newer chips,
  23769. and in the \s-1AMD\s0 line
  23770. by Athlon\-4, Athlon \s-1XP\s0 and Athlon \s-1MP\s0 chips. The earlier version of the \s-1SSE\s0
  23771. instruction set supports only single-precision arithmetic, thus the double and
  23772. extended-precision arithmetic are still done using 387. A later version, present
  23773. only in Pentium 4 and \s-1AMD\s0 x86\-64 chips, supports double-precision
  23774. arithmetic too.
  23775. .Sp
  23776. For the x86\-32 compiler, you must use \fB\-march=\fR\fIcpu-type\fR, \fB\-msse\fR
  23777. or \fB\-msse2\fR switches to enable \s-1SSE\s0 extensions and make this option
  23778. effective. For the x86\-64 compiler, these extensions are enabled by default.
  23779. .Sp
  23780. The resulting code should be considerably faster in the majority of cases and avoid
  23781. the numerical instability problems of 387 code, but may break some existing
  23782. code that expects temporaries to be 80 bits.
  23783. .Sp
  23784. This is the default choice for the x86\-64 compiler, Darwin x86\-32 targets,
  23785. and the default choice for x86\-32 targets with the \s-1SSE2\s0 instruction set
  23786. when \fB\-ffast\-math\fR is enabled.
  23787. .IP "\fBsse,387\fR" 4
  23788. .IX Item "sse,387"
  23789. .PD 0
  23790. .IP "\fBsse+387\fR" 4
  23791. .IX Item "sse+387"
  23792. .IP "\fBboth\fR" 4
  23793. .IX Item "both"
  23794. .PD
  23795. Attempt to utilize both instruction sets at once. This effectively doubles the
  23796. amount of available registers, and on chips with separate execution units for
  23797. 387 and \s-1SSE\s0 the execution resources too. Use this option with care, as it is
  23798. still experimental, because the \s-1GCC\s0 register allocator does not model separate
  23799. functional units well, resulting in unstable performance.
  23800. .RE
  23801. .RS 4
  23802. .RE
  23803. .IP "\fB\-masm=\fR\fIdialect\fR" 4
  23804. .IX Item "-masm=dialect"
  23805. Output assembly instructions using selected \fIdialect\fR. Also affects
  23806. which dialect is used for basic \f(CW\*(C`asm\*(C'\fR and
  23807. extended \f(CW\*(C`asm\*(C'\fR. Supported choices (in dialect
  23808. order) are \fBatt\fR or \fBintel\fR. The default is \fBatt\fR. Darwin does
  23809. not support \fBintel\fR.
  23810. .IP "\fB\-mieee\-fp\fR" 4
  23811. .IX Item "-mieee-fp"
  23812. .PD 0
  23813. .IP "\fB\-mno\-ieee\-fp\fR" 4
  23814. .IX Item "-mno-ieee-fp"
  23815. .PD
  23816. Control whether or not the compiler uses \s-1IEEE\s0 floating-point
  23817. comparisons. These correctly handle the case where the result of a
  23818. comparison is unordered.
  23819. .IP "\fB\-m80387\fR" 4
  23820. .IX Item "-m80387"
  23821. .PD 0
  23822. .IP "\fB\-mhard\-float\fR" 4
  23823. .IX Item "-mhard-float"
  23824. .PD
  23825. Generate output containing 80387 instructions for floating point.
  23826. .IP "\fB\-mno\-80387\fR" 4
  23827. .IX Item "-mno-80387"
  23828. .PD 0
  23829. .IP "\fB\-msoft\-float\fR" 4
  23830. .IX Item "-msoft-float"
  23831. .PD
  23832. Generate output containing library calls for floating point.
  23833. .Sp
  23834. \&\fBWarning:\fR the requisite libraries are not part of \s-1GCC.\s0
  23835. Normally the facilities of the machine's usual C compiler are used, but
  23836. this cannot be done directly in cross-compilation. You must make your
  23837. own arrangements to provide suitable library functions for
  23838. cross-compilation.
  23839. .Sp
  23840. On machines where a function returns floating-point results in the 80387
  23841. register stack, some floating-point opcodes may be emitted even if
  23842. \&\fB\-msoft\-float\fR is used.
  23843. .IP "\fB\-mno\-fp\-ret\-in\-387\fR" 4
  23844. .IX Item "-mno-fp-ret-in-387"
  23845. Do not use the \s-1FPU\s0 registers for return values of functions.
  23846. .Sp
  23847. The usual calling convention has functions return values of types
  23848. \&\f(CW\*(C`float\*(C'\fR and \f(CW\*(C`double\*(C'\fR in an \s-1FPU\s0 register, even if there
  23849. is no \s-1FPU. \s0 The idea is that the operating system should emulate
  23850. an \s-1FPU.\s0
  23851. .Sp
  23852. The option \fB\-mno\-fp\-ret\-in\-387\fR causes such values to be returned
  23853. in ordinary \s-1CPU\s0 registers instead.
  23854. .IP "\fB\-mno\-fancy\-math\-387\fR" 4
  23855. .IX Item "-mno-fancy-math-387"
  23856. Some 387 emulators do not support the \f(CW\*(C`sin\*(C'\fR, \f(CW\*(C`cos\*(C'\fR and
  23857. \&\f(CW\*(C`sqrt\*(C'\fR instructions for the 387. Specify this option to avoid
  23858. generating those instructions. This option is the default on
  23859. OpenBSD and NetBSD. This option is overridden when \fB\-march\fR
  23860. indicates that the target \s-1CPU\s0 always has an \s-1FPU\s0 and so the
  23861. instruction does not need emulation. These
  23862. instructions are not generated unless you also use the
  23863. \&\fB\-funsafe\-math\-optimizations\fR switch.
  23864. .IP "\fB\-malign\-double\fR" 4
  23865. .IX Item "-malign-double"
  23866. .PD 0
  23867. .IP "\fB\-mno\-align\-double\fR" 4
  23868. .IX Item "-mno-align-double"
  23869. .PD
  23870. Control whether \s-1GCC\s0 aligns \f(CW\*(C`double\*(C'\fR, \f(CW\*(C`long double\*(C'\fR, and
  23871. \&\f(CW\*(C`long long\*(C'\fR variables on a two-word boundary or a one-word
  23872. boundary. Aligning \f(CW\*(C`double\*(C'\fR variables on a two-word boundary
  23873. produces code that runs somewhat faster on a Pentium at the
  23874. expense of more memory.
  23875. .Sp
  23876. On x86\-64, \fB\-malign\-double\fR is enabled by default.
  23877. .Sp
  23878. \&\fBWarning:\fR if you use the \fB\-malign\-double\fR switch,
  23879. structures containing the above types are aligned differently than
  23880. the published application binary interface specifications for the x86\-32
  23881. and are not binary compatible with structures in code compiled
  23882. without that switch.
  23883. .IP "\fB\-m96bit\-long\-double\fR" 4
  23884. .IX Item "-m96bit-long-double"
  23885. .PD 0
  23886. .IP "\fB\-m128bit\-long\-double\fR" 4
  23887. .IX Item "-m128bit-long-double"
  23888. .PD
  23889. These switches control the size of \f(CW\*(C`long double\*(C'\fR type. The x86\-32
  23890. application binary interface specifies the size to be 96 bits,
  23891. so \fB\-m96bit\-long\-double\fR is the default in 32\-bit mode.
  23892. .Sp
  23893. Modern architectures (Pentium and newer) prefer \f(CW\*(C`long double\*(C'\fR
  23894. to be aligned to an 8\- or 16\-byte boundary. In arrays or structures
  23895. conforming to the \s-1ABI,\s0 this is not possible. So specifying
  23896. \&\fB\-m128bit\-long\-double\fR aligns \f(CW\*(C`long double\*(C'\fR
  23897. to a 16\-byte boundary by padding the \f(CW\*(C`long double\*(C'\fR with an additional
  23898. 32\-bit zero.
  23899. .Sp
  23900. In the x86\-64 compiler, \fB\-m128bit\-long\-double\fR is the default choice as
  23901. its \s-1ABI\s0 specifies that \f(CW\*(C`long double\*(C'\fR is aligned on 16\-byte boundary.
  23902. .Sp
  23903. Notice that neither of these options enable any extra precision over the x87
  23904. standard of 80 bits for a \f(CW\*(C`long double\*(C'\fR.
  23905. .Sp
  23906. \&\fBWarning:\fR if you override the default value for your target \s-1ABI,\s0 this
  23907. changes the size of
  23908. structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
  23909. as well as modifying the function calling convention for functions taking
  23910. \&\f(CW\*(C`long double\*(C'\fR. Hence they are not binary-compatible
  23911. with code compiled without that switch.
  23912. .IP "\fB\-mlong\-double\-64\fR" 4
  23913. .IX Item "-mlong-double-64"
  23914. .PD 0
  23915. .IP "\fB\-mlong\-double\-80\fR" 4
  23916. .IX Item "-mlong-double-80"
  23917. .IP "\fB\-mlong\-double\-128\fR" 4
  23918. .IX Item "-mlong-double-128"
  23919. .PD
  23920. These switches control the size of \f(CW\*(C`long double\*(C'\fR type. A size
  23921. of 64 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the \f(CW\*(C`double\*(C'\fR
  23922. type. This is the default for 32\-bit Bionic C library. A size
  23923. of 128 bits makes the \f(CW\*(C`long double\*(C'\fR type equivalent to the
  23924. \&\f(CW\*(C`_\|_float128\*(C'\fR type. This is the default for 64\-bit Bionic C library.
  23925. .Sp
  23926. \&\fBWarning:\fR if you override the default value for your target \s-1ABI,\s0 this
  23927. changes the size of
  23928. structures and arrays containing \f(CW\*(C`long double\*(C'\fR variables,
  23929. as well as modifying the function calling convention for functions taking
  23930. \&\f(CW\*(C`long double\*(C'\fR. Hence they are not binary-compatible
  23931. with code compiled without that switch.
  23932. .IP "\fB\-malign\-data=\fR\fItype\fR" 4
  23933. .IX Item "-malign-data=type"
  23934. Control how \s-1GCC\s0 aligns variables. Supported values for \fItype\fR are
  23935. \&\fBcompat\fR uses increased alignment value compatible uses \s-1GCC 4.8\s0
  23936. and earlier, \fBabi\fR uses alignment value as specified by the
  23937. psABI, and \fBcacheline\fR uses increased alignment value to match
  23938. the cache line size. \fBcompat\fR is the default.
  23939. .IP "\fB\-mlarge\-data\-threshold=\fR\fIthreshold\fR" 4
  23940. .IX Item "-mlarge-data-threshold=threshold"
  23941. When \fB\-mcmodel=medium\fR is specified, data objects larger than
  23942. \&\fIthreshold\fR are placed in the large data section. This value must be the
  23943. same across all objects linked into the binary, and defaults to 65535.
  23944. .IP "\fB\-mrtd\fR" 4
  23945. .IX Item "-mrtd"
  23946. Use a different function-calling convention, in which functions that
  23947. take a fixed number of arguments return with the \f(CW\*(C`ret \f(CInum\f(CW\*(C'\fR
  23948. instruction, which pops their arguments while returning. This saves one
  23949. instruction in the caller since there is no need to pop the arguments
  23950. there.
  23951. .Sp
  23952. You can specify that an individual function is called with this calling
  23953. sequence with the function attribute \f(CW\*(C`stdcall\*(C'\fR. You can also
  23954. override the \fB\-mrtd\fR option by using the function attribute
  23955. \&\f(CW\*(C`cdecl\*(C'\fR.
  23956. .Sp
  23957. \&\fBWarning:\fR this calling convention is incompatible with the one
  23958. normally used on Unix, so you cannot use it if you need to call
  23959. libraries compiled with the Unix compiler.
  23960. .Sp
  23961. Also, you must provide function prototypes for all functions that
  23962. take variable numbers of arguments (including \f(CW\*(C`printf\*(C'\fR);
  23963. otherwise incorrect code is generated for calls to those
  23964. functions.
  23965. .Sp
  23966. In addition, seriously incorrect code results if you call a
  23967. function with too many arguments. (Normally, extra arguments are
  23968. harmlessly ignored.)
  23969. .IP "\fB\-mregparm=\fR\fInum\fR" 4
  23970. .IX Item "-mregparm=num"
  23971. Control how many registers are used to pass integer arguments. By
  23972. default, no registers are used to pass arguments, and at most 3
  23973. registers can be used. You can control this behavior for a specific
  23974. function by using the function attribute \f(CW\*(C`regparm\*(C'\fR.
  23975. .Sp
  23976. \&\fBWarning:\fR if you use this switch, and
  23977. \&\fInum\fR is nonzero, then you must build all modules with the same
  23978. value, including any libraries. This includes the system libraries and
  23979. startup modules.
  23980. .IP "\fB\-msseregparm\fR" 4
  23981. .IX Item "-msseregparm"
  23982. Use \s-1SSE\s0 register passing conventions for float and double arguments
  23983. and return values. You can control this behavior for a specific
  23984. function by using the function attribute \f(CW\*(C`sseregparm\*(C'\fR.
  23985. .Sp
  23986. \&\fBWarning:\fR if you use this switch then you must build all
  23987. modules with the same value, including any libraries. This includes
  23988. the system libraries and startup modules.
  23989. .IP "\fB\-mvect8\-ret\-in\-mem\fR" 4
  23990. .IX Item "-mvect8-ret-in-mem"
  23991. Return 8\-byte vectors in memory instead of \s-1MMX\s0 registers. This is the
  23992. default on Solaris@tie{}8 and 9 and VxWorks to match the \s-1ABI\s0 of the Sun
  23993. Studio compilers until version 12. Later compiler versions (starting
  23994. with Studio 12 Update@tie{}1) follow the \s-1ABI\s0 used by other x86 targets, which
  23995. is the default on Solaris@tie{}10 and later. \fIOnly\fR use this option if
  23996. you need to remain compatible with existing code produced by those
  23997. previous compiler versions or older versions of \s-1GCC.\s0
  23998. .IP "\fB\-mpc32\fR" 4
  23999. .IX Item "-mpc32"
  24000. .PD 0
  24001. .IP "\fB\-mpc64\fR" 4
  24002. .IX Item "-mpc64"
  24003. .IP "\fB\-mpc80\fR" 4
  24004. .IX Item "-mpc80"
  24005. .PD
  24006. Set 80387 floating-point precision to 32, 64 or 80 bits. When \fB\-mpc32\fR
  24007. is specified, the significands of results of floating-point operations are
  24008. rounded to 24 bits (single precision); \fB\-mpc64\fR rounds the
  24009. significands of results of floating-point operations to 53 bits (double
  24010. precision) and \fB\-mpc80\fR rounds the significands of results of
  24011. floating-point operations to 64 bits (extended double precision), which is
  24012. the default. When this option is used, floating-point operations in higher
  24013. precisions are not available to the programmer without setting the \s-1FPU\s0
  24014. control word explicitly.
  24015. .Sp
  24016. Setting the rounding of floating-point operations to less than the default
  24017. 80 bits can speed some programs by 2% or more. Note that some mathematical
  24018. libraries assume that extended-precision (80\-bit) floating-point operations
  24019. are enabled by default; routines in such libraries could suffer significant
  24020. loss of accuracy, typically through so-called \*(L"catastrophic cancellation\*(R",
  24021. when this option is used to set the precision to less than extended precision.
  24022. .IP "\fB\-mstackrealign\fR" 4
  24023. .IX Item "-mstackrealign"
  24024. Realign the stack at entry. On the x86, the \fB\-mstackrealign\fR
  24025. option generates an alternate prologue and epilogue that realigns the
  24026. run-time stack if necessary. This supports mixing legacy codes that keep
  24027. 4\-byte stack alignment with modern codes that keep 16\-byte stack alignment for
  24028. \&\s-1SSE\s0 compatibility. See also the attribute \f(CW\*(C`force_align_arg_pointer\*(C'\fR,
  24029. applicable to individual functions.
  24030. .IP "\fB\-mpreferred\-stack\-boundary=\fR\fInum\fR" 4
  24031. .IX Item "-mpreferred-stack-boundary=num"
  24032. Attempt to keep the stack boundary aligned to a 2 raised to \fInum\fR
  24033. byte boundary. If \fB\-mpreferred\-stack\-boundary\fR is not specified,
  24034. the default is 4 (16 bytes or 128 bits).
  24035. .Sp
  24036. \&\fBWarning:\fR When generating code for the x86\-64 architecture with
  24037. \&\s-1SSE\s0 extensions disabled, \fB\-mpreferred\-stack\-boundary=3\fR can be
  24038. used to keep the stack boundary aligned to 8 byte boundary. Since
  24039. x86\-64 \s-1ABI\s0 require 16 byte stack alignment, this is \s-1ABI\s0 incompatible and
  24040. intended to be used in controlled environment where stack space is
  24041. important limitation. This option leads to wrong code when functions
  24042. compiled with 16 byte stack alignment (such as functions from a standard
  24043. library) are called with misaligned stack. In this case, \s-1SSE\s0
  24044. instructions may lead to misaligned memory access traps. In addition,
  24045. variable arguments are handled incorrectly for 16 byte aligned
  24046. objects (including x87 long double and _\|_int128), leading to wrong
  24047. results. You must build all modules with
  24048. \&\fB\-mpreferred\-stack\-boundary=3\fR, including any libraries. This
  24049. includes the system libraries and startup modules.
  24050. .IP "\fB\-mincoming\-stack\-boundary=\fR\fInum\fR" 4
  24051. .IX Item "-mincoming-stack-boundary=num"
  24052. Assume the incoming stack is aligned to a 2 raised to \fInum\fR byte
  24053. boundary. If \fB\-mincoming\-stack\-boundary\fR is not specified,
  24054. the one specified by \fB\-mpreferred\-stack\-boundary\fR is used.
  24055. .Sp
  24056. On Pentium and Pentium Pro, \f(CW\*(C`double\*(C'\fR and \f(CW\*(C`long double\*(C'\fR values
  24057. should be aligned to an 8\-byte boundary (see \fB\-malign\-double\fR) or
  24058. suffer significant run time performance penalties. On Pentium \s-1III,\s0 the
  24059. Streaming \s-1SIMD\s0 Extension (\s-1SSE\s0) data type \f(CW\*(C`_\|_m128\*(C'\fR may not work
  24060. properly if it is not 16\-byte aligned.
  24061. .Sp
  24062. To ensure proper alignment of this values on the stack, the stack boundary
  24063. must be as aligned as that required by any value stored on the stack.
  24064. Further, every function must be generated such that it keeps the stack
  24065. aligned. Thus calling a function compiled with a higher preferred
  24066. stack boundary from a function compiled with a lower preferred stack
  24067. boundary most likely misaligns the stack. It is recommended that
  24068. libraries that use callbacks always use the default setting.
  24069. .Sp
  24070. This extra alignment does consume extra stack space, and generally
  24071. increases code size. Code that is sensitive to stack space usage, such
  24072. as embedded systems and operating system kernels, may want to reduce the
  24073. preferred alignment to \fB\-mpreferred\-stack\-boundary=2\fR.
  24074. .IP "\fB\-mmmx\fR" 4
  24075. .IX Item "-mmmx"
  24076. .PD 0
  24077. .IP "\fB\-msse\fR" 4
  24078. .IX Item "-msse"
  24079. .IP "\fB\-msse2\fR" 4
  24080. .IX Item "-msse2"
  24081. .IP "\fB\-msse3\fR" 4
  24082. .IX Item "-msse3"
  24083. .IP "\fB\-mssse3\fR" 4
  24084. .IX Item "-mssse3"
  24085. .IP "\fB\-msse4\fR" 4
  24086. .IX Item "-msse4"
  24087. .IP "\fB\-msse4a\fR" 4
  24088. .IX Item "-msse4a"
  24089. .IP "\fB\-msse4.1\fR" 4
  24090. .IX Item "-msse4.1"
  24091. .IP "\fB\-msse4.2\fR" 4
  24092. .IX Item "-msse4.2"
  24093. .IP "\fB\-mavx\fR" 4
  24094. .IX Item "-mavx"
  24095. .IP "\fB\-mavx2\fR" 4
  24096. .IX Item "-mavx2"
  24097. .IP "\fB\-mavx512f\fR" 4
  24098. .IX Item "-mavx512f"
  24099. .IP "\fB\-mavx512pf\fR" 4
  24100. .IX Item "-mavx512pf"
  24101. .IP "\fB\-mavx512er\fR" 4
  24102. .IX Item "-mavx512er"
  24103. .IP "\fB\-mavx512cd\fR" 4
  24104. .IX Item "-mavx512cd"
  24105. .IP "\fB\-mavx512vl\fR" 4
  24106. .IX Item "-mavx512vl"
  24107. .IP "\fB\-mavx512bw\fR" 4
  24108. .IX Item "-mavx512bw"
  24109. .IP "\fB\-mavx512dq\fR" 4
  24110. .IX Item "-mavx512dq"
  24111. .IP "\fB\-mavx512ifma\fR" 4
  24112. .IX Item "-mavx512ifma"
  24113. .IP "\fB\-mavx512vbmi\fR" 4
  24114. .IX Item "-mavx512vbmi"
  24115. .IP "\fB\-msha\fR" 4
  24116. .IX Item "-msha"
  24117. .IP "\fB\-maes\fR" 4
  24118. .IX Item "-maes"
  24119. .IP "\fB\-mpclmul\fR" 4
  24120. .IX Item "-mpclmul"
  24121. .IP "\fB\-mclflushopt\fR" 4
  24122. .IX Item "-mclflushopt"
  24123. .IP "\fB\-mfsgsbase\fR" 4
  24124. .IX Item "-mfsgsbase"
  24125. .IP "\fB\-mrdrnd\fR" 4
  24126. .IX Item "-mrdrnd"
  24127. .IP "\fB\-mf16c\fR" 4
  24128. .IX Item "-mf16c"
  24129. .IP "\fB\-mfma\fR" 4
  24130. .IX Item "-mfma"
  24131. .IP "\fB\-mfma4\fR" 4
  24132. .IX Item "-mfma4"
  24133. .IP "\fB\-mprefetchwt1\fR" 4
  24134. .IX Item "-mprefetchwt1"
  24135. .IP "\fB\-mxop\fR" 4
  24136. .IX Item "-mxop"
  24137. .IP "\fB\-mlwp\fR" 4
  24138. .IX Item "-mlwp"
  24139. .IP "\fB\-m3dnow\fR" 4
  24140. .IX Item "-m3dnow"
  24141. .IP "\fB\-m3dnowa\fR" 4
  24142. .IX Item "-m3dnowa"
  24143. .IP "\fB\-mpopcnt\fR" 4
  24144. .IX Item "-mpopcnt"
  24145. .IP "\fB\-mabm\fR" 4
  24146. .IX Item "-mabm"
  24147. .IP "\fB\-mbmi\fR" 4
  24148. .IX Item "-mbmi"
  24149. .IP "\fB\-mbmi2\fR" 4
  24150. .IX Item "-mbmi2"
  24151. .IP "\fB\-mlzcnt\fR" 4
  24152. .IX Item "-mlzcnt"
  24153. .IP "\fB\-mfxsr\fR" 4
  24154. .IX Item "-mfxsr"
  24155. .IP "\fB\-mxsave\fR" 4
  24156. .IX Item "-mxsave"
  24157. .IP "\fB\-mxsaveopt\fR" 4
  24158. .IX Item "-mxsaveopt"
  24159. .IP "\fB\-mxsavec\fR" 4
  24160. .IX Item "-mxsavec"
  24161. .IP "\fB\-mxsaves\fR" 4
  24162. .IX Item "-mxsaves"
  24163. .IP "\fB\-mrtm\fR" 4
  24164. .IX Item "-mrtm"
  24165. .IP "\fB\-mtbm\fR" 4
  24166. .IX Item "-mtbm"
  24167. .IP "\fB\-mmpx\fR" 4
  24168. .IX Item "-mmpx"
  24169. .IP "\fB\-mmwaitx\fR" 4
  24170. .IX Item "-mmwaitx"
  24171. .IP "\fB\-mclzero\fR" 4
  24172. .IX Item "-mclzero"
  24173. .IP "\fB\-mpku\fR" 4
  24174. .IX Item "-mpku"
  24175. .PD
  24176. These switches enable the use of instructions in the \s-1MMX, SSE,
  24177. SSE2, SSE3, SSSE3, SSE4.1, AVX, AVX2, AVX512F, AVX512PF, AVX512ER, AVX512CD,
  24178. SHA, AES, PCLMUL, FSGSBASE, RDRND, F16C, FMA, SSE4A, FMA4, XOP, LWP, ABM,
  24179. AVX512VL, AVX512BW, AVX512DQ, AVX512IFMA AVX512VBMI, BMI, BMI2, FXSR,
  24180. XSAVE, XSAVEOPT, LZCNT, RTM, MPX, MWAITX, PKU,\s0 3DNow! or enhanced 3DNow!
  24181. extended instruction sets. Each has a corresponding \fB\-mno\-\fR option
  24182. to disable use of these instructions.
  24183. .Sp
  24184. These extensions are also available as built-in functions: see
  24185. \&\fBx86 Built-in Functions\fR, for details of the functions enabled and
  24186. disabled by these switches.
  24187. .Sp
  24188. To generate \s-1SSE/SSE2\s0 instructions automatically from floating-point
  24189. code (as opposed to 387 instructions), see \fB\-mfpmath=sse\fR.
  24190. .Sp
  24191. \&\s-1GCC\s0 depresses SSEx instructions when \fB\-mavx\fR is used. Instead, it
  24192. generates new \s-1AVX\s0 instructions or \s-1AVX\s0 equivalence for all SSEx instructions
  24193. when needed.
  24194. .Sp
  24195. These options enable \s-1GCC\s0 to use these extended instructions in
  24196. generated code, even without \fB\-mfpmath=sse\fR. Applications that
  24197. perform run-time \s-1CPU\s0 detection must compile separate files for each
  24198. supported architecture, using the appropriate flags. In particular,
  24199. the file containing the \s-1CPU\s0 detection code should be compiled without
  24200. these options.
  24201. .IP "\fB\-mdump\-tune\-features\fR" 4
  24202. .IX Item "-mdump-tune-features"
  24203. This option instructs \s-1GCC\s0 to dump the names of the x86 performance
  24204. tuning features and default settings. The names can be used in
  24205. \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR.
  24206. .IP "\fB\-mtune\-ctrl=\fR\fIfeature-list\fR" 4
  24207. .IX Item "-mtune-ctrl=feature-list"
  24208. This option is used to do fine grain control of x86 code generation features.
  24209. \&\fIfeature-list\fR is a comma separated list of \fIfeature\fR names. See also
  24210. \&\fB\-mdump\-tune\-features\fR. When specified, the \fIfeature\fR is turned
  24211. on if it is not preceded with \fB^\fR, otherwise, it is turned off.
  24212. \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR is intended to be used by \s-1GCC\s0
  24213. developers. Using it may lead to code paths not covered by testing and can
  24214. potentially result in compiler ICEs or runtime errors.
  24215. .IP "\fB\-mno\-default\fR" 4
  24216. .IX Item "-mno-default"
  24217. This option instructs \s-1GCC\s0 to turn off all tunable features. See also
  24218. \&\fB\-mtune\-ctrl=\fR\fIfeature-list\fR and \fB\-mdump\-tune\-features\fR.
  24219. .IP "\fB\-mcld\fR" 4
  24220. .IX Item "-mcld"
  24221. This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`cld\*(C'\fR instruction in the prologue
  24222. of functions that use string instructions. String instructions depend on
  24223. the \s-1DF\s0 flag to select between autoincrement or autodecrement mode. While the
  24224. \&\s-1ABI\s0 specifies the \s-1DF\s0 flag to be cleared on function entry, some operating
  24225. systems violate this specification by not clearing the \s-1DF\s0 flag in their
  24226. exception dispatchers. The exception handler can be invoked with the \s-1DF\s0 flag
  24227. set, which leads to wrong direction mode when string instructions are used.
  24228. This option can be enabled by default on 32\-bit x86 targets by configuring
  24229. \&\s-1GCC\s0 with the \fB\-\-enable\-cld\fR configure option. Generation of \f(CW\*(C`cld\*(C'\fR
  24230. instructions can be suppressed with the \fB\-mno\-cld\fR compiler option
  24231. in this case.
  24232. .IP "\fB\-mvzeroupper\fR" 4
  24233. .IX Item "-mvzeroupper"
  24234. This option instructs \s-1GCC\s0 to emit a \f(CW\*(C`vzeroupper\*(C'\fR instruction
  24235. before a transfer of control flow out of the function to minimize
  24236. the \s-1AVX\s0 to \s-1SSE\s0 transition penalty as well as remove unnecessary \f(CW\*(C`zeroupper\*(C'\fR
  24237. intrinsics.
  24238. .IP "\fB\-mprefer\-avx128\fR" 4
  24239. .IX Item "-mprefer-avx128"
  24240. This option instructs \s-1GCC\s0 to use 128\-bit \s-1AVX\s0 instructions instead of
  24241. 256\-bit \s-1AVX\s0 instructions in the auto-vectorizer.
  24242. .IP "\fB\-mcx16\fR" 4
  24243. .IX Item "-mcx16"
  24244. This option enables \s-1GCC\s0 to generate \f(CW\*(C`CMPXCHG16B\*(C'\fR instructions in 64\-bit
  24245. code to implement compare-and-exchange operations on 16\-byte aligned 128\-bit
  24246. objects. This is useful for atomic updates of data structures exceeding one
  24247. machine word in size. The compiler uses this instruction to implement
  24248. \&\fB_\|_sync Builtins\fR. However, for \fB_\|_atomic Builtins\fR operating on
  24249. 128\-bit integers, a library call is always used.
  24250. .IP "\fB\-msahf\fR" 4
  24251. .IX Item "-msahf"
  24252. This option enables generation of \f(CW\*(C`SAHF\*(C'\fR instructions in 64\-bit code.
  24253. Early Intel Pentium 4 CPUs with Intel 64 support,
  24254. prior to the introduction of Pentium 4 G1 step in December 2005,
  24255. lacked the \f(CW\*(C`LAHF\*(C'\fR and \f(CW\*(C`SAHF\*(C'\fR instructions
  24256. which are supported by \s-1AMD64.\s0
  24257. These are load and store instructions, respectively, for certain status flags.
  24258. In 64\-bit mode, the \f(CW\*(C`SAHF\*(C'\fR instruction is used to optimize \f(CW\*(C`fmod\*(C'\fR,
  24259. \&\f(CW\*(C`drem\*(C'\fR, and \f(CW\*(C`remainder\*(C'\fR built-in functions;
  24260. see \fBOther Builtins\fR for details.
  24261. .IP "\fB\-mmovbe\fR" 4
  24262. .IX Item "-mmovbe"
  24263. This option enables use of the \f(CW\*(C`movbe\*(C'\fR instruction to implement
  24264. \&\f(CW\*(C`_\|_builtin_bswap32\*(C'\fR and \f(CW\*(C`_\|_builtin_bswap64\*(C'\fR.
  24265. .IP "\fB\-mcrc32\fR" 4
  24266. .IX Item "-mcrc32"
  24267. This option enables built-in functions \f(CW\*(C`_\|_builtin_ia32_crc32qi\*(C'\fR,
  24268. \&\f(CW\*(C`_\|_builtin_ia32_crc32hi\*(C'\fR, \f(CW\*(C`_\|_builtin_ia32_crc32si\*(C'\fR and
  24269. \&\f(CW\*(C`_\|_builtin_ia32_crc32di\*(C'\fR to generate the \f(CW\*(C`crc32\*(C'\fR machine instruction.
  24270. .IP "\fB\-mrecip\fR" 4
  24271. .IX Item "-mrecip"
  24272. This option enables use of \f(CW\*(C`RCPSS\*(C'\fR and \f(CW\*(C`RSQRTSS\*(C'\fR instructions
  24273. (and their vectorized variants \f(CW\*(C`RCPPS\*(C'\fR and \f(CW\*(C`RSQRTPS\*(C'\fR)
  24274. with an additional Newton-Raphson step
  24275. to increase precision instead of \f(CW\*(C`DIVSS\*(C'\fR and \f(CW\*(C`SQRTSS\*(C'\fR
  24276. (and their vectorized
  24277. variants) for single-precision floating-point arguments. These instructions
  24278. are generated only when \fB\-funsafe\-math\-optimizations\fR is enabled
  24279. together with \fB\-ffinite\-math\-only\fR and \fB\-fno\-trapping\-math\fR.
  24280. Note that while the throughput of the sequence is higher than the throughput
  24281. of the non-reciprocal instruction, the precision of the sequence can be
  24282. decreased by up to 2 ulp (i.e. the inverse of 1.0 equals 0.99999994).
  24283. .Sp
  24284. 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
  24285. (or \f(CW\*(C`RSQRTPS\*(C'\fR) already with \fB\-ffast\-math\fR (or the above option
  24286. combination), and doesn't need \fB\-mrecip\fR.
  24287. .Sp
  24288. Also note that \s-1GCC\s0 emits the above sequence with additional Newton-Raphson step
  24289. for vectorized single-float division and vectorized \f(CW\*(C`sqrtf(\f(CIx\f(CW)\*(C'\fR
  24290. already with \fB\-ffast\-math\fR (or the above option combination), and
  24291. doesn't need \fB\-mrecip\fR.
  24292. .IP "\fB\-mrecip=\fR\fIopt\fR" 4
  24293. .IX Item "-mrecip=opt"
  24294. This option controls which reciprocal estimate instructions
  24295. may be used. \fIopt\fR is a comma-separated list of options, which may
  24296. be preceded by a \fB!\fR to invert the option:
  24297. .RS 4
  24298. .IP "\fBall\fR" 4
  24299. .IX Item "all"
  24300. Enable all estimate instructions.
  24301. .IP "\fBdefault\fR" 4
  24302. .IX Item "default"
  24303. Enable the default instructions, equivalent to \fB\-mrecip\fR.
  24304. .IP "\fBnone\fR" 4
  24305. .IX Item "none"
  24306. Disable all estimate instructions, equivalent to \fB\-mno\-recip\fR.
  24307. .IP "\fBdiv\fR" 4
  24308. .IX Item "div"
  24309. Enable the approximation for scalar division.
  24310. .IP "\fBvec-div\fR" 4
  24311. .IX Item "vec-div"
  24312. Enable the approximation for vectorized division.
  24313. .IP "\fBsqrt\fR" 4
  24314. .IX Item "sqrt"
  24315. Enable the approximation for scalar square root.
  24316. .IP "\fBvec-sqrt\fR" 4
  24317. .IX Item "vec-sqrt"
  24318. Enable the approximation for vectorized square root.
  24319. .RE
  24320. .RS 4
  24321. .Sp
  24322. So, for example, \fB\-mrecip=all,!sqrt\fR enables
  24323. all of the reciprocal approximations, except for square root.
  24324. .RE
  24325. .IP "\fB\-mveclibabi=\fR\fItype\fR" 4
  24326. .IX Item "-mveclibabi=type"
  24327. Specifies the \s-1ABI\s0 type to use for vectorizing intrinsics using an
  24328. external library. Supported values for \fItype\fR are \fBsvml\fR
  24329. for the Intel short
  24330. vector math library and \fBacml\fR for the \s-1AMD\s0 math core library.
  24331. To use this option, both \fB\-ftree\-vectorize\fR and
  24332. \&\fB\-funsafe\-math\-optimizations\fR have to be enabled, and an \s-1SVML\s0 or \s-1ACML \s0
  24333. ABI-compatible library must be specified at link time.
  24334. .Sp
  24335. \&\s-1GCC\s0 currently emits calls to \f(CW\*(C`vmldExp2\*(C'\fR,
  24336. \&\f(CW\*(C`vmldLn2\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldLog102\*(C'\fR, \f(CW\*(C`vmldPow2\*(C'\fR,
  24337. \&\f(CW\*(C`vmldTanh2\*(C'\fR, \f(CW\*(C`vmldTan2\*(C'\fR, \f(CW\*(C`vmldAtan2\*(C'\fR, \f(CW\*(C`vmldAtanh2\*(C'\fR,
  24338. \&\f(CW\*(C`vmldCbrt2\*(C'\fR, \f(CW\*(C`vmldSinh2\*(C'\fR, \f(CW\*(C`vmldSin2\*(C'\fR, \f(CW\*(C`vmldAsinh2\*(C'\fR,
  24339. \&\f(CW\*(C`vmldAsin2\*(C'\fR, \f(CW\*(C`vmldCosh2\*(C'\fR, \f(CW\*(C`vmldCos2\*(C'\fR, \f(CW\*(C`vmldAcosh2\*(C'\fR,
  24340. \&\f(CW\*(C`vmldAcos2\*(C'\fR, \f(CW\*(C`vmlsExp4\*(C'\fR, \f(CW\*(C`vmlsLn4\*(C'\fR, \f(CW\*(C`vmlsLog104\*(C'\fR,
  24341. \&\f(CW\*(C`vmlsLog104\*(C'\fR, \f(CW\*(C`vmlsPow4\*(C'\fR, \f(CW\*(C`vmlsTanh4\*(C'\fR, \f(CW\*(C`vmlsTan4\*(C'\fR,
  24342. \&\f(CW\*(C`vmlsAtan4\*(C'\fR, \f(CW\*(C`vmlsAtanh4\*(C'\fR, \f(CW\*(C`vmlsCbrt4\*(C'\fR, \f(CW\*(C`vmlsSinh4\*(C'\fR,
  24343. \&\f(CW\*(C`vmlsSin4\*(C'\fR, \f(CW\*(C`vmlsAsinh4\*(C'\fR, \f(CW\*(C`vmlsAsin4\*(C'\fR, \f(CW\*(C`vmlsCosh4\*(C'\fR,
  24344. \&\f(CW\*(C`vmlsCos4\*(C'\fR, \f(CW\*(C`vmlsAcosh4\*(C'\fR and \f(CW\*(C`vmlsAcos4\*(C'\fR for corresponding
  24345. function type when \fB\-mveclibabi=svml\fR is used, and \f(CW\*(C`_\|_vrd2_sin\*(C'\fR,
  24346. \&\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,
  24347. \&\f(CW\*(C`_\|_vrd2_log10\*(C'\fR, \f(CW\*(C`_\|_vrs4_sinf\*(C'\fR, \f(CW\*(C`_\|_vrs4_cosf\*(C'\fR,
  24348. \&\f(CW\*(C`_\|_vrs4_expf\*(C'\fR, \f(CW\*(C`_\|_vrs4_logf\*(C'\fR, \f(CW\*(C`_\|_vrs4_log2f\*(C'\fR,
  24349. \&\f(CW\*(C`_\|_vrs4_log10f\*(C'\fR and \f(CW\*(C`_\|_vrs4_powf\*(C'\fR for the corresponding function type
  24350. when \fB\-mveclibabi=acml\fR is used.
  24351. .IP "\fB\-mabi=\fR\fIname\fR" 4
  24352. .IX Item "-mabi=name"
  24353. Generate code for the specified calling convention. Permissible values
  24354. are \fBsysv\fR for the \s-1ABI\s0 used on GNU/Linux and other systems, and
  24355. \&\fBms\fR for the Microsoft \s-1ABI. \s0 The default is to use the Microsoft
  24356. \&\s-1ABI\s0 when targeting Microsoft Windows and the SysV \s-1ABI\s0 on all other systems.
  24357. You can control this behavior for specific functions by
  24358. using the function attributes \f(CW\*(C`ms_abi\*(C'\fR and \f(CW\*(C`sysv_abi\*(C'\fR.
  24359. .IP "\fB\-mtls\-dialect=\fR\fItype\fR" 4
  24360. .IX Item "-mtls-dialect=type"
  24361. Generate code to access thread-local storage using the \fBgnu\fR or
  24362. \&\fBgnu2\fR conventions. \fBgnu\fR is the conservative default;
  24363. \&\fBgnu2\fR is more efficient, but it may add compile\- and run-time
  24364. requirements that cannot be satisfied on all systems.
  24365. .IP "\fB\-mpush\-args\fR" 4
  24366. .IX Item "-mpush-args"
  24367. .PD 0
  24368. .IP "\fB\-mno\-push\-args\fR" 4
  24369. .IX Item "-mno-push-args"
  24370. .PD
  24371. Use \s-1PUSH\s0 operations to store outgoing parameters. This method is shorter
  24372. and usually equally fast as method using \s-1SUB/MOV\s0 operations and is enabled
  24373. by default. In some cases disabling it may improve performance because of
  24374. improved scheduling and reduced dependencies.
  24375. .IP "\fB\-maccumulate\-outgoing\-args\fR" 4
  24376. .IX Item "-maccumulate-outgoing-args"
  24377. If enabled, the maximum amount of space required for outgoing arguments is
  24378. computed in the function prologue. This is faster on most modern CPUs
  24379. because of reduced dependencies, improved scheduling and reduced stack usage
  24380. when the preferred stack boundary is not equal to 2. The drawback is a notable
  24381. increase in code size. This switch implies \fB\-mno\-push\-args\fR.
  24382. .IP "\fB\-mthreads\fR" 4
  24383. .IX Item "-mthreads"
  24384. Support thread-safe exception handling on MinGW. Programs that rely
  24385. on thread-safe exception handling must compile and link all code with the
  24386. \&\fB\-mthreads\fR option. When compiling, \fB\-mthreads\fR defines
  24387. \&\fB\-D_MT\fR; when linking, it links in a special thread helper library
  24388. \&\fB\-lmingwthrd\fR which cleans up per-thread exception-handling data.
  24389. .IP "\fB\-mms\-bitfields\fR" 4
  24390. .IX Item "-mms-bitfields"
  24391. .PD 0
  24392. .IP "\fB\-mno\-ms\-bitfields\fR" 4
  24393. .IX Item "-mno-ms-bitfields"
  24394. .PD
  24395. Enable/disable bit-field layout compatible with the native Microsoft
  24396. Windows compiler.
  24397. .Sp
  24398. If \f(CW\*(C`packed\*(C'\fR is used on a structure, or if bit-fields are used,
  24399. it may be that the Microsoft \s-1ABI\s0 lays out the structure differently
  24400. than the way \s-1GCC\s0 normally does. Particularly when moving packed
  24401. data between functions compiled with \s-1GCC\s0 and the native Microsoft compiler
  24402. (either via function call or as data in a file), it may be necessary to access
  24403. either format.
  24404. .Sp
  24405. This option is enabled by default for Microsoft Windows
  24406. targets. This behavior can also be controlled locally by use of variable
  24407. or type attributes. For more information, see \fBx86 Variable Attributes\fR
  24408. and \fBx86 Type Attributes\fR.
  24409. .Sp
  24410. The Microsoft structure layout algorithm is fairly simple with the exception
  24411. of the bit-field packing.
  24412. The padding and alignment of members of structures and whether a bit-field
  24413. can straddle a storage-unit boundary are determine by these rules:
  24414. .RS 4
  24415. .IP "1. Structure members are stored sequentially in the order in which they are" 4
  24416. .IX Item "1. Structure members are stored sequentially in the order in which they are"
  24417. declared: the first member has the lowest memory address and the last member
  24418. the highest.
  24419. .IP "2. Every data object has an alignment requirement. The alignment requirement" 4
  24420. .IX Item "2. Every data object has an alignment requirement. The alignment requirement"
  24421. for all data except structures, unions, and arrays is either the size of the
  24422. object or the current packing size (specified with either the
  24423. \&\f(CW\*(C`aligned\*(C'\fR attribute or the \f(CW\*(C`pack\*(C'\fR pragma),
  24424. whichever is less. For structures, unions, and arrays,
  24425. the alignment requirement is the largest alignment requirement of its members.
  24426. Every object is allocated an offset so that:
  24427. .Sp
  24428. .Vb 1
  24429. \& offset % alignment_requirement == 0
  24430. .Ve
  24431. .IP "3. Adjacent bit-fields are packed into the same 1\-, 2\-, or 4\-byte allocation" 4
  24432. .IX Item "3. Adjacent bit-fields are packed into the same 1-, 2-, or 4-byte allocation"
  24433. unit if the integral types are the same size and if the next bit-field fits
  24434. into the current allocation unit without crossing the boundary imposed by the
  24435. common alignment requirements of the bit-fields.
  24436. .RE
  24437. .RS 4
  24438. .Sp
  24439. \&\s-1MSVC\s0 interprets zero-length bit-fields in the following ways:
  24440. .IP "1. If a zero-length bit-field is inserted between two bit-fields that" 4
  24441. .IX Item "1. If a zero-length bit-field is inserted between two bit-fields that"
  24442. are normally coalesced, the bit-fields are not coalesced.
  24443. .Sp
  24444. For example:
  24445. .Sp
  24446. .Vb 6
  24447. \& struct
  24448. \& {
  24449. \& unsigned long bf_1 : 12;
  24450. \& unsigned long : 0;
  24451. \& unsigned long bf_2 : 12;
  24452. \& } t1;
  24453. .Ve
  24454. .Sp
  24455. The size of \f(CW\*(C`t1\*(C'\fR is 8 bytes with the zero-length bit-field. If the
  24456. zero-length bit-field were removed, \f(CW\*(C`t1\*(C'\fR's size would be 4 bytes.
  24457. .ie n .IP "2. If a zero-length bit-field is inserted after a bit-field, ""foo"", and the" 4
  24458. .el .IP "2. If a zero-length bit-field is inserted after a bit-field, \f(CWfoo\fR, and the" 4
  24459. .IX Item "2. If a zero-length bit-field is inserted after a bit-field, foo, and the"
  24460. alignment of the zero-length bit-field is greater than the member that follows it,
  24461. \&\f(CW\*(C`bar\*(C'\fR, \f(CW\*(C`bar\*(C'\fR is aligned as the type of the zero-length bit-field.
  24462. .Sp
  24463. For example:
  24464. .Sp
  24465. .Vb 6
  24466. \& struct
  24467. \& {
  24468. \& char foo : 4;
  24469. \& short : 0;
  24470. \& char bar;
  24471. \& } t2;
  24472. \&
  24473. \& struct
  24474. \& {
  24475. \& char foo : 4;
  24476. \& short : 0;
  24477. \& double bar;
  24478. \& } t3;
  24479. .Ve
  24480. .Sp
  24481. For \f(CW\*(C`t2\*(C'\fR, \f(CW\*(C`bar\*(C'\fR is placed at offset 2, rather than offset 1.
  24482. Accordingly, the size of \f(CW\*(C`t2\*(C'\fR is 4. For \f(CW\*(C`t3\*(C'\fR, the zero-length
  24483. bit-field does not affect the alignment of \f(CW\*(C`bar\*(C'\fR or, as a result, the size
  24484. of the structure.
  24485. .Sp
  24486. Taking this into account, it is important to note the following:
  24487. .RS 4
  24488. .IP "1. If a zero-length bit-field follows a normal bit-field, the type of the" 4
  24489. .IX Item "1. If a zero-length bit-field follows a normal bit-field, the type of the"
  24490. zero-length bit-field may affect the alignment of the structure as whole. For
  24491. example, \f(CW\*(C`t2\*(C'\fR has a size of 4 bytes, since the zero-length bit-field follows a
  24492. normal bit-field, and is of type short.
  24493. .IP "2. Even if a zero-length bit-field is not followed by a normal bit-field, it may" 4
  24494. .IX Item "2. Even if a zero-length bit-field is not followed by a normal bit-field, it may"
  24495. still affect the alignment of the structure:
  24496. .Sp
  24497. .Vb 5
  24498. \& struct
  24499. \& {
  24500. \& char foo : 6;
  24501. \& long : 0;
  24502. \& } t4;
  24503. .Ve
  24504. .Sp
  24505. Here, \f(CW\*(C`t4\*(C'\fR takes up 4 bytes.
  24506. .RE
  24507. .RS 4
  24508. .RE
  24509. .IP "3. Zero-length bit-fields following non-bit-field members are ignored:" 4
  24510. .IX Item "3. Zero-length bit-fields following non-bit-field members are ignored:"
  24511. .Vb 6
  24512. \& struct
  24513. \& {
  24514. \& char foo;
  24515. \& long : 0;
  24516. \& char bar;
  24517. \& } t5;
  24518. .Ve
  24519. .Sp
  24520. Here, \f(CW\*(C`t5\*(C'\fR takes up 2 bytes.
  24521. .RE
  24522. .RS 4
  24523. .RE
  24524. .IP "\fB\-mno\-align\-stringops\fR" 4
  24525. .IX Item "-mno-align-stringops"
  24526. Do not align the destination of inlined string operations. This switch reduces
  24527. code size and improves performance in case the destination is already aligned,
  24528. but \s-1GCC\s0 doesn't know about it.
  24529. .IP "\fB\-minline\-all\-stringops\fR" 4
  24530. .IX Item "-minline-all-stringops"
  24531. By default \s-1GCC\s0 inlines string operations only when the destination is
  24532. known to be aligned to least a 4\-byte boundary.
  24533. This enables more inlining and increases code
  24534. size, but may improve performance of code that depends on fast
  24535. \&\f(CW\*(C`memcpy\*(C'\fR, \f(CW\*(C`strlen\*(C'\fR,
  24536. and \f(CW\*(C`memset\*(C'\fR for short lengths.
  24537. .IP "\fB\-minline\-stringops\-dynamically\fR" 4
  24538. .IX Item "-minline-stringops-dynamically"
  24539. For string operations of unknown size, use run-time checks with
  24540. inline code for small blocks and a library call for large blocks.
  24541. .IP "\fB\-mstringop\-strategy=\fR\fIalg\fR" 4
  24542. .IX Item "-mstringop-strategy=alg"
  24543. Override the internal decision heuristic for the particular algorithm to use
  24544. for inlining string operations. The allowed values for \fIalg\fR are:
  24545. .RS 4
  24546. .IP "\fBrep_byte\fR" 4
  24547. .IX Item "rep_byte"
  24548. .PD 0
  24549. .IP "\fBrep_4byte\fR" 4
  24550. .IX Item "rep_4byte"
  24551. .IP "\fBrep_8byte\fR" 4
  24552. .IX Item "rep_8byte"
  24553. .PD
  24554. Expand using i386 \f(CW\*(C`rep\*(C'\fR prefix of the specified size.
  24555. .IP "\fBbyte_loop\fR" 4
  24556. .IX Item "byte_loop"
  24557. .PD 0
  24558. .IP "\fBloop\fR" 4
  24559. .IX Item "loop"
  24560. .IP "\fBunrolled_loop\fR" 4
  24561. .IX Item "unrolled_loop"
  24562. .PD
  24563. Expand into an inline loop.
  24564. .IP "\fBlibcall\fR" 4
  24565. .IX Item "libcall"
  24566. Always use a library call.
  24567. .RE
  24568. .RS 4
  24569. .RE
  24570. .IP "\fB\-mmemcpy\-strategy=\fR\fIstrategy\fR" 4
  24571. .IX Item "-mmemcpy-strategy=strategy"
  24572. Override the internal decision heuristic to decide if \f(CW\*(C`_\|_builtin_memcpy\*(C'\fR
  24573. should be inlined and what inline algorithm to use when the expected size
  24574. of the copy operation is known. \fIstrategy\fR
  24575. is a comma-separated list of \fIalg\fR:\fImax_size\fR:\fIdest_align\fR triplets.
  24576. \&\fIalg\fR is specified in \fB\-mstringop\-strategy\fR, \fImax_size\fR specifies
  24577. the max byte size with which inline algorithm \fIalg\fR is allowed. For the last
  24578. triplet, the \fImax_size\fR must be \f(CW\*(C`\-1\*(C'\fR. The \fImax_size\fR of the triplets
  24579. in the list must be specified in increasing order. The minimal byte size for
  24580. \&\fIalg\fR is \f(CW0\fR for the first triplet and \f(CW\*(C`\f(CImax_size\f(CW + 1\*(C'\fR of the
  24581. preceding range.
  24582. .IP "\fB\-mmemset\-strategy=\fR\fIstrategy\fR" 4
  24583. .IX Item "-mmemset-strategy=strategy"
  24584. The option is similar to \fB\-mmemcpy\-strategy=\fR except that it is to control
  24585. \&\f(CW\*(C`_\|_builtin_memset\*(C'\fR expansion.
  24586. .IP "\fB\-momit\-leaf\-frame\-pointer\fR" 4
  24587. .IX Item "-momit-leaf-frame-pointer"
  24588. Don't keep the frame pointer in a register for leaf functions. This
  24589. avoids the instructions to save, set up, and restore frame pointers and
  24590. makes an extra register available in leaf functions. The option
  24591. \&\fB\-fomit\-leaf\-frame\-pointer\fR removes the frame pointer for leaf functions,
  24592. which might make debugging harder.
  24593. .IP "\fB\-mtls\-direct\-seg\-refs\fR" 4
  24594. .IX Item "-mtls-direct-seg-refs"
  24595. .PD 0
  24596. .IP "\fB\-mno\-tls\-direct\-seg\-refs\fR" 4
  24597. .IX Item "-mno-tls-direct-seg-refs"
  24598. .PD
  24599. Controls whether \s-1TLS\s0 variables may be accessed with offsets from the
  24600. \&\s-1TLS\s0 segment register (\f(CW%gs\fR for 32\-bit, \f(CW%fs\fR for 64\-bit),
  24601. or whether the thread base pointer must be added. Whether or not this
  24602. is valid depends on the operating system, and whether it maps the
  24603. segment to cover the entire \s-1TLS\s0 area.
  24604. .Sp
  24605. For systems that use the \s-1GNU C\s0 Library, the default is on.
  24606. .IP "\fB\-msse2avx\fR" 4
  24607. .IX Item "-msse2avx"
  24608. .PD 0
  24609. .IP "\fB\-mno\-sse2avx\fR" 4
  24610. .IX Item "-mno-sse2avx"
  24611. .PD
  24612. Specify that the assembler should encode \s-1SSE\s0 instructions with \s-1VEX\s0
  24613. prefix. The option \fB\-mavx\fR turns this on by default.
  24614. .IP "\fB\-mfentry\fR" 4
  24615. .IX Item "-mfentry"
  24616. .PD 0
  24617. .IP "\fB\-mno\-fentry\fR" 4
  24618. .IX Item "-mno-fentry"
  24619. .PD
  24620. If profiling is active (\fB\-pg\fR), put the profiling
  24621. counter call before the prologue.
  24622. Note: On x86 architectures the attribute \f(CW\*(C`ms_hook_prologue\*(C'\fR
  24623. isn't possible at the moment for \fB\-mfentry\fR and \fB\-pg\fR.
  24624. .IP "\fB\-mrecord\-mcount\fR" 4
  24625. .IX Item "-mrecord-mcount"
  24626. .PD 0
  24627. .IP "\fB\-mno\-record\-mcount\fR" 4
  24628. .IX Item "-mno-record-mcount"
  24629. .PD
  24630. If profiling is active (\fB\-pg\fR), generate a _\|_mcount_loc section
  24631. that contains pointers to each profiling call. This is useful for
  24632. automatically patching and out calls.
  24633. .IP "\fB\-mnop\-mcount\fR" 4
  24634. .IX Item "-mnop-mcount"
  24635. .PD 0
  24636. .IP "\fB\-mno\-nop\-mcount\fR" 4
  24637. .IX Item "-mno-nop-mcount"
  24638. .PD
  24639. If profiling is active (\fB\-pg\fR), generate the calls to
  24640. the profiling functions as NOPs. This is useful when they
  24641. should be patched in later dynamically. This is likely only
  24642. useful together with \fB\-mrecord\-mcount\fR.
  24643. .IP "\fB\-mskip\-rax\-setup\fR" 4
  24644. .IX Item "-mskip-rax-setup"
  24645. .PD 0
  24646. .IP "\fB\-mno\-skip\-rax\-setup\fR" 4
  24647. .IX Item "-mno-skip-rax-setup"
  24648. .PD
  24649. When generating code for the x86\-64 architecture with \s-1SSE\s0 extensions
  24650. disabled, \fB\-mskip\-rax\-setup\fR can be used to skip setting up \s-1RAX\s0
  24651. register when there are no variable arguments passed in vector registers.
  24652. .Sp
  24653. \&\fBWarning:\fR Since \s-1RAX\s0 register is used to avoid unnecessarily
  24654. saving vector registers on stack when passing variable arguments, the
  24655. impacts of this option are callees may waste some stack space,
  24656. misbehave or jump to a random location. \s-1GCC 4.4\s0 or newer don't have
  24657. those issues, regardless the \s-1RAX\s0 register value.
  24658. .IP "\fB\-m8bit\-idiv\fR" 4
  24659. .IX Item "-m8bit-idiv"
  24660. .PD 0
  24661. .IP "\fB\-mno\-8bit\-idiv\fR" 4
  24662. .IX Item "-mno-8bit-idiv"
  24663. .PD
  24664. On some processors, like Intel Atom, 8\-bit unsigned integer divide is
  24665. much faster than 32\-bit/64\-bit integer divide. This option generates a
  24666. run-time check. If both dividend and divisor are within range of 0
  24667. to 255, 8\-bit unsigned integer divide is used instead of
  24668. 32\-bit/64\-bit integer divide.
  24669. .IP "\fB\-mavx256\-split\-unaligned\-load\fR" 4
  24670. .IX Item "-mavx256-split-unaligned-load"
  24671. .PD 0
  24672. .IP "\fB\-mavx256\-split\-unaligned\-store\fR" 4
  24673. .IX Item "-mavx256-split-unaligned-store"
  24674. .PD
  24675. Split 32\-byte \s-1AVX\s0 unaligned load and store.
  24676. .IP "\fB\-mstack\-protector\-guard=\fR\fIguard\fR" 4
  24677. .IX Item "-mstack-protector-guard=guard"
  24678. Generate stack protection code using canary at \fIguard\fR. Supported
  24679. locations are \fBglobal\fR for global canary or \fBtls\fR for per-thread
  24680. canary in the \s-1TLS\s0 block (the default). This option has effect only when
  24681. \&\fB\-fstack\-protector\fR or \fB\-fstack\-protector\-all\fR is specified.
  24682. .IP "\fB\-mmitigate\-rop\fR" 4
  24683. .IX Item "-mmitigate-rop"
  24684. Try to avoid generating code sequences that contain unintended return
  24685. opcodes, to mitigate against certain forms of attack. At the moment,
  24686. this option is limited in what it can do and should not be relied
  24687. on to provide serious protection.
  24688. .IP "\fB\-mgeneral\-regs\-only\fR" 4
  24689. .IX Item "-mgeneral-regs-only"
  24690. Generate code that uses only the general-purpose registers. This
  24691. prevents the compiler from using floating-point, vector, mask and bound
  24692. registers.
  24693. .IP "\fB\-mindirect\-branch=\fR\fIchoice\fR" 4
  24694. .IX Item "-mindirect-branch=choice"
  24695. Convert indirect call and jump with \fIchoice\fR. The default is
  24696. \&\fBkeep\fR, which keeps indirect call and jump unmodified.
  24697. \&\fBthunk\fR converts indirect call and jump to call and return thunk.
  24698. \&\fBthunk-inline\fR converts indirect call and jump to inlined call
  24699. and return thunk. \fBthunk-extern\fR converts indirect call and jump
  24700. to external call and return thunk provided in a separate object file.
  24701. You can control this behavior for a specific function by using the
  24702. function attribute \f(CW\*(C`indirect_branch\*(C'\fR.
  24703. .Sp
  24704. Note that \fB\-mcmodel=large\fR is incompatible with
  24705. \&\fB\-mindirect\-branch=thunk\fR nor
  24706. \&\fB\-mindirect\-branch=thunk\-extern\fR since the thunk function may
  24707. not be reachable in large code model.
  24708. .IP "\fB\-mfunction\-return=\fR\fIchoice\fR" 4
  24709. .IX Item "-mfunction-return=choice"
  24710. Convert function return with \fIchoice\fR. The default is \fBkeep\fR,
  24711. which keeps function return unmodified. \fBthunk\fR converts function
  24712. return to call and return thunk. \fBthunk-inline\fR converts function
  24713. return to inlined call and return thunk. \fBthunk-extern\fR converts
  24714. function return to external call and return thunk provided in a separate
  24715. object file. You can control this behavior for a specific function by
  24716. using the function attribute \f(CW\*(C`function_return\*(C'\fR.
  24717. .Sp
  24718. Note that \fB\-mcmodel=large\fR is incompatible with
  24719. \&\fB\-mfunction\-return=thunk\fR nor
  24720. \&\fB\-mfunction\-return=thunk\-extern\fR since the thunk function may
  24721. not be reachable in large code model.
  24722. .IP "\fB\-mindirect\-branch\-register\fR" 4
  24723. .IX Item "-mindirect-branch-register"
  24724. Force indirect call and jump via register.
  24725. .PP
  24726. These \fB\-m\fR switches are supported in addition to the above
  24727. on x86\-64 processors in 64\-bit environments.
  24728. .IP "\fB\-m32\fR" 4
  24729. .IX Item "-m32"
  24730. .PD 0
  24731. .IP "\fB\-m64\fR" 4
  24732. .IX Item "-m64"
  24733. .IP "\fB\-mx32\fR" 4
  24734. .IX Item "-mx32"
  24735. .IP "\fB\-m16\fR" 4
  24736. .IX Item "-m16"
  24737. .IP "\fB\-miamcu\fR" 4
  24738. .IX Item "-miamcu"
  24739. .PD
  24740. Generate code for a 16\-bit, 32\-bit or 64\-bit environment.
  24741. The \fB\-m32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
  24742. to 32 bits, and
  24743. generates code that runs on any i386 system.
  24744. .Sp
  24745. The \fB\-m64\fR option sets \f(CW\*(C`int\*(C'\fR to 32 bits and \f(CW\*(C`long\*(C'\fR and pointer
  24746. types to 64 bits, and generates code for the x86\-64 architecture.
  24747. For Darwin only the \fB\-m64\fR option also turns off the \fB\-fno\-pic\fR
  24748. and \fB\-mdynamic\-no\-pic\fR options.
  24749. .Sp
  24750. The \fB\-mx32\fR option sets \f(CW\*(C`int\*(C'\fR, \f(CW\*(C`long\*(C'\fR, and pointer types
  24751. to 32 bits, and
  24752. generates code for the x86\-64 architecture.
  24753. .Sp
  24754. The \fB\-m16\fR option is the same as \fB\-m32\fR, except for that
  24755. it outputs the \f(CW\*(C`.code16gcc\*(C'\fR assembly directive at the beginning of
  24756. the assembly output so that the binary can run in 16\-bit mode.
  24757. .Sp
  24758. The \fB\-miamcu\fR option generates code which conforms to Intel \s-1MCU\s0
  24759. psABI. It requires the \fB\-m32\fR option to be turned on.
  24760. .IP "\fB\-mno\-red\-zone\fR" 4
  24761. .IX Item "-mno-red-zone"
  24762. Do not use a so-called \*(L"red zone\*(R" for x86\-64 code. The red zone is mandated
  24763. by the x86\-64 \s-1ABI\s0; it is a 128\-byte area beyond the location of the
  24764. stack pointer that is not modified by signal or interrupt handlers
  24765. and therefore can be used for temporary data without adjusting the stack
  24766. pointer. The flag \fB\-mno\-red\-zone\fR disables this red zone.
  24767. .IP "\fB\-mcmodel=small\fR" 4
  24768. .IX Item "-mcmodel=small"
  24769. Generate code for the small code model: the program and its symbols must
  24770. be linked in the lower 2 \s-1GB\s0 of the address space. Pointers are 64 bits.
  24771. Programs can be statically or dynamically linked. This is the default
  24772. code model.
  24773. .IP "\fB\-mcmodel=kernel\fR" 4
  24774. .IX Item "-mcmodel=kernel"
  24775. Generate code for the kernel code model. The kernel runs in the
  24776. negative 2 \s-1GB\s0 of the address space.
  24777. This model has to be used for Linux kernel code.
  24778. .IP "\fB\-mcmodel=medium\fR" 4
  24779. .IX Item "-mcmodel=medium"
  24780. Generate code for the medium model: the program is linked in the lower 2
  24781. \&\s-1GB\s0 of the address space. Small symbols are also placed there. Symbols
  24782. with sizes larger than \fB\-mlarge\-data\-threshold\fR are put into
  24783. large data or \s-1BSS\s0 sections and can be located above 2GB. Programs can
  24784. be statically or dynamically linked.
  24785. .IP "\fB\-mcmodel=large\fR" 4
  24786. .IX Item "-mcmodel=large"
  24787. Generate code for the large model. This model makes no assumptions
  24788. about addresses and sizes of sections.
  24789. .IP "\fB\-maddress\-mode=long\fR" 4
  24790. .IX Item "-maddress-mode=long"
  24791. Generate code for long address mode. This is only supported for 64\-bit
  24792. and x32 environments. It is the default address mode for 64\-bit
  24793. environments.
  24794. .IP "\fB\-maddress\-mode=short\fR" 4
  24795. .IX Item "-maddress-mode=short"
  24796. Generate code for short address mode. This is only supported for 32\-bit
  24797. and x32 environments. It is the default address mode for 32\-bit and
  24798. x32 environments.
  24799. .PP
  24800. \fIx86 Windows Options\fR
  24801. .IX Subsection "x86 Windows Options"
  24802. .PP
  24803. These additional options are available for Microsoft Windows targets:
  24804. .IP "\fB\-mconsole\fR" 4
  24805. .IX Item "-mconsole"
  24806. This option
  24807. specifies that a console application is to be generated, by
  24808. instructing the linker to set the \s-1PE\s0 header subsystem type
  24809. required for console applications.
  24810. This option is available for Cygwin and MinGW targets and is
  24811. enabled by default on those targets.
  24812. .IP "\fB\-mdll\fR" 4
  24813. .IX Item "-mdll"
  24814. This option is available for Cygwin and MinGW targets. It
  24815. specifies that a DLL\-\-\-a dynamic link library\-\-\-is to be
  24816. generated, enabling the selection of the required runtime
  24817. startup object and entry point.
  24818. .IP "\fB\-mnop\-fun\-dllimport\fR" 4
  24819. .IX Item "-mnop-fun-dllimport"
  24820. This option is available for Cygwin and MinGW targets. It
  24821. specifies that the \f(CW\*(C`dllimport\*(C'\fR attribute should be ignored.
  24822. .IP "\fB\-mthread\fR" 4
  24823. .IX Item "-mthread"
  24824. This option is available for MinGW targets. It specifies
  24825. that MinGW-specific thread support is to be used.
  24826. .IP "\fB\-municode\fR" 4
  24827. .IX Item "-municode"
  24828. This option is available for MinGW\-w64 targets. It causes
  24829. the \f(CW\*(C`UNICODE\*(C'\fR preprocessor macro to be predefined, and
  24830. chooses Unicode-capable runtime startup code.
  24831. .IP "\fB\-mwin32\fR" 4
  24832. .IX Item "-mwin32"
  24833. This option is available for Cygwin and MinGW targets. It
  24834. specifies that the typical Microsoft Windows predefined macros are to
  24835. be set in the pre-processor, but does not influence the choice
  24836. of runtime library/startup code.
  24837. .IP "\fB\-mwindows\fR" 4
  24838. .IX Item "-mwindows"
  24839. This option is available for Cygwin and MinGW targets. It
  24840. specifies that a \s-1GUI\s0 application is to be generated by
  24841. instructing the linker to set the \s-1PE\s0 header subsystem type
  24842. appropriately.
  24843. .IP "\fB\-fno\-set\-stack\-executable\fR" 4
  24844. .IX Item "-fno-set-stack-executable"
  24845. This option is available for MinGW targets. It specifies that
  24846. the executable flag for the stack used by nested functions isn't
  24847. set. This is necessary for binaries running in kernel mode of
  24848. Microsoft Windows, as there the User32 \s-1API,\s0 which is used to set executable
  24849. privileges, isn't available.
  24850. .IP "\fB\-fwritable\-relocated\-rdata\fR" 4
  24851. .IX Item "-fwritable-relocated-rdata"
  24852. This option is available for MinGW and Cygwin targets. It specifies
  24853. that relocated-data in read-only section is put into the \f(CW\*(C`.data\*(C'\fR
  24854. section. This is a necessary for older runtimes not supporting
  24855. modification of \f(CW\*(C`.rdata\*(C'\fR sections for pseudo-relocation.
  24856. .IP "\fB\-mpe\-aligned\-commons\fR" 4
  24857. .IX Item "-mpe-aligned-commons"
  24858. This option is available for Cygwin and MinGW targets. It
  24859. specifies that the \s-1GNU\s0 extension to the \s-1PE\s0 file format that
  24860. permits the correct alignment of \s-1COMMON\s0 variables should be
  24861. used when generating code. It is enabled by default if
  24862. \&\s-1GCC\s0 detects that the target assembler found during configuration
  24863. supports the feature.
  24864. .PP
  24865. See also under \fBx86 Options\fR for standard options.
  24866. .PP
  24867. \fIXstormy16 Options\fR
  24868. .IX Subsection "Xstormy16 Options"
  24869. .PP
  24870. These options are defined for Xstormy16:
  24871. .IP "\fB\-msim\fR" 4
  24872. .IX Item "-msim"
  24873. Choose startup files and linker script suitable for the simulator.
  24874. .PP
  24875. \fIXtensa Options\fR
  24876. .IX Subsection "Xtensa Options"
  24877. .PP
  24878. These options are supported for Xtensa targets:
  24879. .IP "\fB\-mconst16\fR" 4
  24880. .IX Item "-mconst16"
  24881. .PD 0
  24882. .IP "\fB\-mno\-const16\fR" 4
  24883. .IX Item "-mno-const16"
  24884. .PD
  24885. Enable or disable use of \f(CW\*(C`CONST16\*(C'\fR instructions for loading
  24886. constant values. The \f(CW\*(C`CONST16\*(C'\fR instruction is currently not a
  24887. standard option from Tensilica. When enabled, \f(CW\*(C`CONST16\*(C'\fR
  24888. instructions are always used in place of the standard \f(CW\*(C`L32R\*(C'\fR
  24889. instructions. The use of \f(CW\*(C`CONST16\*(C'\fR is enabled by default only if
  24890. the \f(CW\*(C`L32R\*(C'\fR instruction is not available.
  24891. .IP "\fB\-mfused\-madd\fR" 4
  24892. .IX Item "-mfused-madd"
  24893. .PD 0
  24894. .IP "\fB\-mno\-fused\-madd\fR" 4
  24895. .IX Item "-mno-fused-madd"
  24896. .PD
  24897. Enable or disable use of fused multiply/add and multiply/subtract
  24898. instructions in the floating-point option. This has no effect if the
  24899. floating-point option is not also enabled. Disabling fused multiply/add
  24900. and multiply/subtract instructions forces the compiler to use separate
  24901. instructions for the multiply and add/subtract operations. This may be
  24902. desirable in some cases where strict \s-1IEEE\s0 754\-compliant results are
  24903. required: the fused multiply add/subtract instructions do not round the
  24904. intermediate result, thereby producing results with \fImore\fR bits of
  24905. precision than specified by the \s-1IEEE\s0 standard. Disabling fused multiply
  24906. add/subtract instructions also ensures that the program output is not
  24907. sensitive to the compiler's ability to combine multiply and add/subtract
  24908. operations.
  24909. .IP "\fB\-mserialize\-volatile\fR" 4
  24910. .IX Item "-mserialize-volatile"
  24911. .PD 0
  24912. .IP "\fB\-mno\-serialize\-volatile\fR" 4
  24913. .IX Item "-mno-serialize-volatile"
  24914. .PD
  24915. When this option is enabled, \s-1GCC\s0 inserts \f(CW\*(C`MEMW\*(C'\fR instructions before
  24916. \&\f(CW\*(C`volatile\*(C'\fR memory references to guarantee sequential consistency.
  24917. The default is \fB\-mserialize\-volatile\fR. Use
  24918. \&\fB\-mno\-serialize\-volatile\fR to omit the \f(CW\*(C`MEMW\*(C'\fR instructions.
  24919. .IP "\fB\-mforce\-no\-pic\fR" 4
  24920. .IX Item "-mforce-no-pic"
  24921. For targets, like GNU/Linux, where all user-mode Xtensa code must be
  24922. position-independent code (\s-1PIC\s0), this option disables \s-1PIC\s0 for compiling
  24923. kernel code.
  24924. .IP "\fB\-mtext\-section\-literals\fR" 4
  24925. .IX Item "-mtext-section-literals"
  24926. .PD 0
  24927. .IP "\fB\-mno\-text\-section\-literals\fR" 4
  24928. .IX Item "-mno-text-section-literals"
  24929. .PD
  24930. These options control the treatment of literal pools. The default is
  24931. \&\fB\-mno\-text\-section\-literals\fR, which places literals in a separate
  24932. section in the output file. This allows the literal pool to be placed
  24933. in a data \s-1RAM/ROM,\s0 and it also allows the linker to combine literal
  24934. pools from separate object files to remove redundant literals and
  24935. improve code size. With \fB\-mtext\-section\-literals\fR, the literals
  24936. are interspersed in the text section in order to keep them as close as
  24937. possible to their references. This may be necessary for large assembly
  24938. files. Literals for each function are placed right before that function.
  24939. .IP "\fB\-mauto\-litpools\fR" 4
  24940. .IX Item "-mauto-litpools"
  24941. .PD 0
  24942. .IP "\fB\-mno\-auto\-litpools\fR" 4
  24943. .IX Item "-mno-auto-litpools"
  24944. .PD
  24945. These options control the treatment of literal pools. The default is
  24946. \&\fB\-mno\-auto\-litpools\fR, which places literals in a separate
  24947. section in the output file unless \fB\-mtext\-section\-literals\fR is
  24948. used. With \fB\-mauto\-litpools\fR the literals are interspersed in
  24949. the text section by the assembler. Compiler does not produce explicit
  24950. \&\f(CW\*(C`.literal\*(C'\fR directives and loads literals into registers with
  24951. \&\f(CW\*(C`MOVI\*(C'\fR instructions instead of \f(CW\*(C`L32R\*(C'\fR to let the assembler
  24952. do relaxation and place literals as necessary. This option allows
  24953. assembler to create several literal pools per function and assemble
  24954. very big functions, which may not be possible with
  24955. \&\fB\-mtext\-section\-literals\fR.
  24956. .IP "\fB\-mtarget\-align\fR" 4
  24957. .IX Item "-mtarget-align"
  24958. .PD 0
  24959. .IP "\fB\-mno\-target\-align\fR" 4
  24960. .IX Item "-mno-target-align"
  24961. .PD
  24962. When this option is enabled, \s-1GCC\s0 instructs the assembler to
  24963. automatically align instructions to reduce branch penalties at the
  24964. expense of some code density. The assembler attempts to widen density
  24965. instructions to align branch targets and the instructions following call
  24966. instructions. If there are not enough preceding safe density
  24967. instructions to align a target, no widening is performed. The
  24968. default is \fB\-mtarget\-align\fR. These options do not affect the
  24969. treatment of auto-aligned instructions like \f(CW\*(C`LOOP\*(C'\fR, which the
  24970. assembler always aligns, either by widening density instructions or
  24971. by inserting \s-1NOP\s0 instructions.
  24972. .IP "\fB\-mlongcalls\fR" 4
  24973. .IX Item "-mlongcalls"
  24974. .PD 0
  24975. .IP "\fB\-mno\-longcalls\fR" 4
  24976. .IX Item "-mno-longcalls"
  24977. .PD
  24978. When this option is enabled, \s-1GCC\s0 instructs the assembler to translate
  24979. direct calls to indirect calls unless it can determine that the target
  24980. of a direct call is in the range allowed by the call instruction. This
  24981. translation typically occurs for calls to functions in other source
  24982. files. Specifically, the assembler translates a direct \f(CW\*(C`CALL\*(C'\fR
  24983. instruction into an \f(CW\*(C`L32R\*(C'\fR followed by a \f(CW\*(C`CALLX\*(C'\fR instruction.
  24984. The default is \fB\-mno\-longcalls\fR. This option should be used in
  24985. programs where the call target can potentially be out of range. This
  24986. option is implemented in the assembler, not the compiler, so the
  24987. assembly code generated by \s-1GCC\s0 still shows direct call
  24988. instructions\-\-\-look at the disassembled object code to see the actual
  24989. instructions. Note that the assembler uses an indirect call for
  24990. every cross-file call, not just those that really are out of range.
  24991. .PP
  24992. \fIzSeries Options\fR
  24993. .IX Subsection "zSeries Options"
  24994. .PP
  24995. These are listed under
  24996. .SH "ENVIRONMENT"
  24997. .IX Header "ENVIRONMENT"
  24998. This section describes several environment variables that affect how \s-1GCC\s0
  24999. operates. Some of them work by specifying directories or prefixes to use
  25000. when searching for various kinds of files. Some are used to specify other
  25001. aspects of the compilation environment.
  25002. .PP
  25003. Note that you can also specify places to search using options such as
  25004. \&\fB\-B\fR, \fB\-I\fR and \fB\-L\fR. These
  25005. take precedence over places specified using environment variables, which
  25006. in turn take precedence over those specified by the configuration of \s-1GCC.\s0
  25007. .IP "\fB\s-1LANG\s0\fR" 4
  25008. .IX Item "LANG"
  25009. .PD 0
  25010. .IP "\fB\s-1LC_CTYPE\s0\fR" 4
  25011. .IX Item "LC_CTYPE"
  25012. .IP "\fB\s-1LC_MESSAGES\s0\fR" 4
  25013. .IX Item "LC_MESSAGES"
  25014. .IP "\fB\s-1LC_ALL\s0\fR" 4
  25015. .IX Item "LC_ALL"
  25016. .PD
  25017. These environment variables control the way that \s-1GCC\s0 uses
  25018. localization information which allows \s-1GCC\s0 to work with different
  25019. national conventions. \s-1GCC\s0 inspects the locale categories
  25020. \&\fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR if it has been configured to do
  25021. so. These locale categories can be set to any value supported by your
  25022. installation. A typical value is \fBen_GB.UTF\-8\fR for English in the United
  25023. Kingdom encoded in \s-1UTF\-8.\s0
  25024. .Sp
  25025. The \fB\s-1LC_CTYPE\s0\fR environment variable specifies character
  25026. classification. \s-1GCC\s0 uses it to determine the character boundaries in
  25027. a string; this is needed for some multibyte encodings that contain quote
  25028. and escape characters that are otherwise interpreted as a string
  25029. end or escape.
  25030. .Sp
  25031. The \fB\s-1LC_MESSAGES\s0\fR environment variable specifies the language to
  25032. use in diagnostic messages.
  25033. .Sp
  25034. If the \fB\s-1LC_ALL\s0\fR environment variable is set, it overrides the value
  25035. of \fB\s-1LC_CTYPE\s0\fR and \fB\s-1LC_MESSAGES\s0\fR; otherwise, \fB\s-1LC_CTYPE\s0\fR
  25036. and \fB\s-1LC_MESSAGES\s0\fR default to the value of the \fB\s-1LANG\s0\fR
  25037. environment variable. If none of these variables are set, \s-1GCC\s0
  25038. defaults to traditional C English behavior.
  25039. .IP "\fB\s-1TMPDIR\s0\fR" 4
  25040. .IX Item "TMPDIR"
  25041. If \fB\s-1TMPDIR\s0\fR is set, it specifies the directory to use for temporary
  25042. files. \s-1GCC\s0 uses temporary files to hold the output of one stage of
  25043. compilation which is to be used as input to the next stage: for example,
  25044. the output of the preprocessor, which is the input to the compiler
  25045. proper.
  25046. .IP "\fB\s-1GCC_COMPARE_DEBUG\s0\fR" 4
  25047. .IX Item "GCC_COMPARE_DEBUG"
  25048. Setting \fB\s-1GCC_COMPARE_DEBUG\s0\fR is nearly equivalent to passing
  25049. \&\fB\-fcompare\-debug\fR to the compiler driver. See the documentation
  25050. of this option for more details.
  25051. .IP "\fB\s-1GCC_EXEC_PREFIX\s0\fR" 4
  25052. .IX Item "GCC_EXEC_PREFIX"
  25053. If \fB\s-1GCC_EXEC_PREFIX\s0\fR is set, it specifies a prefix to use in the
  25054. names of the subprograms executed by the compiler. No slash is added
  25055. when this prefix is combined with the name of a subprogram, but you can
  25056. specify a prefix that ends with a slash if you wish.
  25057. .Sp
  25058. If \fB\s-1GCC_EXEC_PREFIX\s0\fR is not set, \s-1GCC\s0 attempts to figure out
  25059. an appropriate prefix to use based on the pathname it is invoked with.
  25060. .Sp
  25061. If \s-1GCC\s0 cannot find the subprogram using the specified prefix, it
  25062. tries looking in the usual places for the subprogram.
  25063. .Sp
  25064. The default value of \fB\s-1GCC_EXEC_PREFIX\s0\fR is
  25065. \&\fI\fIprefix\fI/lib/gcc/\fR where \fIprefix\fR is the prefix to
  25066. the installed compiler. In many cases \fIprefix\fR is the value
  25067. of \f(CW\*(C`prefix\*(C'\fR when you ran the \fIconfigure\fR script.
  25068. .Sp
  25069. Other prefixes specified with \fB\-B\fR take precedence over this prefix.
  25070. .Sp
  25071. This prefix is also used for finding files such as \fIcrt0.o\fR that are
  25072. used for linking.
  25073. .Sp
  25074. In addition, the prefix is used in an unusual way in finding the
  25075. directories to search for header files. For each of the standard
  25076. directories whose name normally begins with \fB/usr/local/lib/gcc\fR
  25077. (more precisely, with the value of \fB\s-1GCC_INCLUDE_DIR\s0\fR), \s-1GCC\s0 tries
  25078. replacing that beginning with the specified prefix to produce an
  25079. alternate directory name. Thus, with \fB\-Bfoo/\fR, \s-1GCC\s0 searches
  25080. \&\fIfoo/bar\fR just before it searches the standard directory
  25081. \&\fI/usr/local/lib/bar\fR.
  25082. If a standard directory begins with the configured
  25083. \&\fIprefix\fR then the value of \fIprefix\fR is replaced by
  25084. \&\fB\s-1GCC_EXEC_PREFIX\s0\fR when looking for header files.
  25085. .IP "\fB\s-1COMPILER_PATH\s0\fR" 4
  25086. .IX Item "COMPILER_PATH"
  25087. The value of \fB\s-1COMPILER_PATH\s0\fR is a colon-separated list of
  25088. directories, much like \fB\s-1PATH\s0\fR. \s-1GCC\s0 tries the directories thus
  25089. specified when searching for subprograms, if it cannot find the
  25090. subprograms using \fB\s-1GCC_EXEC_PREFIX\s0\fR.
  25091. .IP "\fB\s-1LIBRARY_PATH\s0\fR" 4
  25092. .IX Item "LIBRARY_PATH"
  25093. The value of \fB\s-1LIBRARY_PATH\s0\fR is a colon-separated list of
  25094. directories, much like \fB\s-1PATH\s0\fR. When configured as a native compiler,
  25095. \&\s-1GCC\s0 tries the directories thus specified when searching for special
  25096. linker files, if it cannot find them using \fB\s-1GCC_EXEC_PREFIX\s0\fR. Linking
  25097. using \s-1GCC\s0 also uses these directories when searching for ordinary
  25098. libraries for the \fB\-l\fR option (but directories specified with
  25099. \&\fB\-L\fR come first).
  25100. .IP "\fB\s-1LANG\s0\fR" 4
  25101. .IX Item "LANG"
  25102. This variable is used to pass locale information to the compiler. One way in
  25103. which this information is used is to determine the character set to be used
  25104. when character literals, string literals and comments are parsed in C and \*(C+.
  25105. When the compiler is configured to allow multibyte characters,
  25106. the following values for \fB\s-1LANG\s0\fR are recognized:
  25107. .RS 4
  25108. .IP "\fBC\-JIS\fR" 4
  25109. .IX Item "C-JIS"
  25110. Recognize \s-1JIS\s0 characters.
  25111. .IP "\fBC\-SJIS\fR" 4
  25112. .IX Item "C-SJIS"
  25113. Recognize \s-1SJIS\s0 characters.
  25114. .IP "\fBC\-EUCJP\fR" 4
  25115. .IX Item "C-EUCJP"
  25116. Recognize \s-1EUCJP\s0 characters.
  25117. .RE
  25118. .RS 4
  25119. .Sp
  25120. If \fB\s-1LANG\s0\fR is not defined, or if it has some other value, then the
  25121. compiler uses \f(CW\*(C`mblen\*(C'\fR and \f(CW\*(C`mbtowc\*(C'\fR as defined by the default locale to
  25122. recognize and translate multibyte characters.
  25123. .RE
  25124. .PP
  25125. Some additional environment variables affect the behavior of the
  25126. preprocessor.
  25127. .IP "\fB\s-1CPATH\s0\fR" 4
  25128. .IX Item "CPATH"
  25129. .PD 0
  25130. .IP "\fBC_INCLUDE_PATH\fR" 4
  25131. .IX Item "C_INCLUDE_PATH"
  25132. .IP "\fB\s-1CPLUS_INCLUDE_PATH\s0\fR" 4
  25133. .IX Item "CPLUS_INCLUDE_PATH"
  25134. .IP "\fB\s-1OBJC_INCLUDE_PATH\s0\fR" 4
  25135. .IX Item "OBJC_INCLUDE_PATH"
  25136. .PD
  25137. Each variable's value is a list of directories separated by a special
  25138. character, much like \fB\s-1PATH\s0\fR, in which to look for header files.
  25139. The special character, \f(CW\*(C`PATH_SEPARATOR\*(C'\fR, is target-dependent and
  25140. determined at \s-1GCC\s0 build time. For Microsoft Windows-based targets it is a
  25141. semicolon, and for almost all other targets it is a colon.
  25142. .Sp
  25143. \&\fB\s-1CPATH\s0\fR specifies a list of directories to be searched as if
  25144. specified with \fB\-I\fR, but after any paths given with \fB\-I\fR
  25145. options on the command line. This environment variable is used
  25146. regardless of which language is being preprocessed.
  25147. .Sp
  25148. The remaining environment variables apply only when preprocessing the
  25149. particular language indicated. Each specifies a list of directories
  25150. to be searched as if specified with \fB\-isystem\fR, but after any
  25151. paths given with \fB\-isystem\fR options on the command line.
  25152. .Sp
  25153. In all these variables, an empty element instructs the compiler to
  25154. search its current working directory. Empty elements can appear at the
  25155. beginning or end of a path. For instance, if the value of
  25156. \&\fB\s-1CPATH\s0\fR is \f(CW\*(C`:/special/include\*(C'\fR, that has the same
  25157. effect as \fB\-I.\ \-I/special/include\fR.
  25158. .IP "\fB\s-1DEPENDENCIES_OUTPUT\s0\fR" 4
  25159. .IX Item "DEPENDENCIES_OUTPUT"
  25160. If this variable is set, its value specifies how to output
  25161. dependencies for Make based on the non-system header files processed
  25162. by the compiler. System header files are ignored in the dependency
  25163. output.
  25164. .Sp
  25165. The value of \fB\s-1DEPENDENCIES_OUTPUT\s0\fR can be just a file name, in
  25166. which case the Make rules are written to that file, guessing the target
  25167. name from the source file name. Or the value can have the form
  25168. \&\fIfile\fR\fB \fR\fItarget\fR, in which case the rules are written to
  25169. file \fIfile\fR using \fItarget\fR as the target name.
  25170. .Sp
  25171. In other words, this environment variable is equivalent to combining
  25172. the options \fB\-MM\fR and \fB\-MF\fR,
  25173. with an optional \fB\-MT\fR switch too.
  25174. .IP "\fB\s-1SUNPRO_DEPENDENCIES\s0\fR" 4
  25175. .IX Item "SUNPRO_DEPENDENCIES"
  25176. This variable is the same as \fB\s-1DEPENDENCIES_OUTPUT\s0\fR (see above),
  25177. except that system header files are not ignored, so it implies
  25178. \&\fB\-M\fR rather than \fB\-MM\fR. However, the dependence on the
  25179. main input file is omitted.
  25180. .IP "\fB\s-1SOURCE_DATE_EPOCH\s0\fR" 4
  25181. .IX Item "SOURCE_DATE_EPOCH"
  25182. If this variable is set, its value specifies a \s-1UNIX\s0 timestamp to be
  25183. used in replacement of the current date and time in the \f(CW\*(C`_\|_DATE_\|_\*(C'\fR
  25184. and \f(CW\*(C`_\|_TIME_\|_\*(C'\fR macros, so that the embedded timestamps become
  25185. reproducible.
  25186. .Sp
  25187. The value of \fB\s-1SOURCE_DATE_EPOCH\s0\fR must be a \s-1UNIX\s0 timestamp,
  25188. defined as the number of seconds (excluding leap seconds) since
  25189. 01 Jan 1970 00:00:00 represented in \s-1ASCII\s0; identical to the output of
  25190. \&\fB\f(CB@command\fB{date +%s\fR} on GNU/Linux and other systems that support the
  25191. \&\f(CW%s\fR extension in the \f(CW\*(C`date\*(C'\fR command.
  25192. .Sp
  25193. The value should be a known timestamp such as the last modification
  25194. time of the source or package and it should be set by the build
  25195. process.
  25196. .SH "BUGS"
  25197. .IX Header "BUGS"
  25198. For instructions on reporting bugs, see
  25199. <\fBhttps://gcc.gnu.org/bugs/\fR>.
  25200. .SH "FOOTNOTES"
  25201. .IX Header "FOOTNOTES"
  25202. .IP "1." 4
  25203. On some systems, \fBgcc \-shared\fR
  25204. needs to build supplementary stub code for constructors to work. On
  25205. multi-libbed systems, \fBgcc \-shared\fR must select the correct support
  25206. libraries to link against. Failing to supply the correct flags may lead
  25207. to subtle defects. Supplying them in cases where they are not necessary
  25208. is innocuous.
  25209. .SH "SEE ALSO"
  25210. .IX Header "SEE ALSO"
  25211. \&\fIgpl\fR\|(7), \fIgfdl\fR\|(7), \fIfsf\-funding\fR\|(7),
  25212. \&\fIcpp\fR\|(1), \fIgcov\fR\|(1), \fIas\fR\|(1), \fIld\fR\|(1), \fIgdb\fR\|(1), \fIadb\fR\|(1), \fIdbx\fR\|(1), \fIsdb\fR\|(1)
  25213. and the Info entries for \fIgcc\fR, \fIcpp\fR, \fIas\fR,
  25214. \&\fIld\fR, \fIbinutils\fR and \fIgdb\fR.
  25215. .SH "AUTHOR"
  25216. .IX Header "AUTHOR"
  25217. See the Info entry for \fBgcc\fR, or
  25218. <\fBhttp://gcc.gnu.org/onlinedocs/gcc/Contributors.html\fR>,
  25219. for contributors to \s-1GCC.\s0
  25220. .SH "COPYRIGHT"
  25221. .IX Header "COPYRIGHT"
  25222. Copyright (c) 1988\-2017 Free Software Foundation, Inc.
  25223. .PP
  25224. Permission is granted to copy, distribute and/or modify this document
  25225. under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3 or
  25226. any later version published by the Free Software Foundation; with the
  25227. Invariant Sections being \*(L"\s-1GNU\s0 General Public License\*(R" and \*(L"Funding
  25228. Free Software\*(R", the Front-Cover texts being (a) (see below), and with
  25229. the Back-Cover Texts being (b) (see below). A copy of the license is
  25230. included in the \fIgfdl\fR\|(7) man page.
  25231. .PP
  25232. (a) The \s-1FSF\s0's Front-Cover Text is:
  25233. .PP
  25234. .Vb 1
  25235. \& A GNU Manual
  25236. .Ve
  25237. .PP
  25238. (b) The \s-1FSF\s0's Back-Cover Text is:
  25239. .PP
  25240. .Vb 3
  25241. \& You have freedom to copy and modify this GNU Manual, like GNU
  25242. \& software. Copies published by the Free Software Foundation raise
  25243. \& funds for GNU development.
  25244. .Ve