config.gcc 124 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418
  1. # GCC target-specific configuration file.
  2. # Copyright (C) 1997-2015 Free Software Foundation, Inc.
  3. #This file is part of GCC.
  4. #GCC is free software; you can redistribute it and/or modify it under
  5. #the terms of the GNU General Public License as published by the Free
  6. #Software Foundation; either version 3, or (at your option) any later
  7. #version.
  8. #GCC is distributed in the hope that it will be useful, but WITHOUT
  9. #ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. #FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. #for more details.
  12. #You should have received a copy of the GNU General Public License
  13. #along with GCC; see the file COPYING3. If not see
  14. #<http://www.gnu.org/licenses/>.
  15. # This is the GCC target-specific configuration file
  16. # where a configuration type is mapped to different system-specific
  17. # definitions and files. This is invoked by the autoconf-generated
  18. # configure script. Putting it in a separate shell file lets us skip
  19. # running autoconf when modifying target-specific information.
  20. # When you change the cases in the OS or target switches, consider
  21. # updating ../libgcc/config.host also.
  22. # This file switches on the shell variable ${target}, and also uses the
  23. # following shell variables:
  24. #
  25. # with_* Various variables as set by configure.
  26. #
  27. # enable_threads Either the name, yes or no depending on whether
  28. # threads support was requested.
  29. #
  30. # default_use_cxa_atexit
  31. # The default value for the $enable___cxa_atexit
  32. # variable. enable___cxa_atexit needs to be set to
  33. # "yes" for the correct operation of C++ destructors
  34. # but it relies upon the presence of a non-standard C
  35. # library function called __cxa_atexit.
  36. # Since not all C libraries provide __cxa_atexit the
  37. # default value of $default_use_cxa_atexit is set to
  38. # "no" except for targets which are known to be OK.
  39. #
  40. # default_gnu_indirect_function
  41. # The default value for the $enable_gnu_indirect_function
  42. # variable. enable_gnu_indirect_function relies
  43. # upon the presence of a non-standard gnu ifunc support
  44. # in the assembler, linker and dynamic linker.
  45. # Since not all libraries provide the dynamic linking
  46. # support, the default value of
  47. # $default_gnu_indirect_function is set to
  48. # "no" except for targets which are known to be OK.
  49. #
  50. # gas_flag Either yes or no depending on whether GNU as was
  51. # requested.
  52. #
  53. # gnu_ld_flag Either yes or no depending on whether GNU ld was
  54. # requested.
  55. # This file sets the following shell variables for use by the
  56. # autoconf-generated configure script:
  57. #
  58. # cpu_type The name of the cpu, if different from the first
  59. # chunk of the canonical target name.
  60. #
  61. # tm_defines List of target macros to define for all compilations.
  62. #
  63. # tm_file A list of target macro files, if different from
  64. # "$cpu_type/$cpu_type.h". Usually it's constructed
  65. # per target in a way like this:
  66. # tm_file="${tm_file} dbxelf.h elfos.h ${cpu_type.h}/elf.h"
  67. # Note that the preferred order is:
  68. # - specific target header "${cpu_type}/${cpu_type.h}"
  69. # - generic headers like dbxelf.h elfos.h, etc.
  70. # - specializing target headers like ${cpu_type.h}/elf.h
  71. # This helps to keep OS specific stuff out of the CPU
  72. # defining header ${cpu_type}/${cpu_type.h}.
  73. #
  74. # It is possible to include automatically-generated
  75. # build-directory files by prefixing them with "./".
  76. # All other files should relative to $srcdir/config.
  77. #
  78. # tm_p_file Location of file with declarations for functions
  79. # in $out_file.
  80. #
  81. # out_file The name of the machine description C support
  82. # file, if different from "$cpu_type/$cpu_type.c".
  83. #
  84. # common_out_file The name of the source file for code shared between
  85. # the compiler proper and the driver.
  86. #
  87. # md_file The name of the machine-description file, if
  88. # different from "$cpu_type/$cpu_type.md".
  89. #
  90. # tmake_file A list of machine-description-specific
  91. # makefile-fragments, if different from
  92. # "$cpu_type/t-$cpu_type".
  93. #
  94. # extra_modes The name of the file containing a list of extra
  95. # machine modes, if necessary and different from
  96. # "$cpu_type/$cpu_type-modes.def".
  97. #
  98. # extra_objs List of extra objects that should be linked into
  99. # the compiler proper (cc1, cc1obj, cc1plus)
  100. # depending on target.
  101. #
  102. # extra_gcc_objs List of extra objects that should be linked into
  103. # the compiler driver (gcc) depending on target.
  104. #
  105. # extra_headers List of used header files from the directory
  106. # config/${cpu_type}.
  107. #
  108. # user_headers_inc_next_pre
  109. # List of header file names of internal gcc header
  110. # files, which should be prefixed by an include_next.
  111. # user_headers_inc_next_post
  112. # List of header file names of internal gcc header
  113. # files, which should be postfixed by an include_next.
  114. # use_gcc_tgmath If set, add tgmath.h to the list of used header
  115. # files.
  116. #
  117. # use_gcc_stdint If "wrap", install a version of stdint.h that
  118. # wraps the system's copy for hosted compilations;
  119. # if "provide", provide a version of systems without
  120. # such a system header; otherwise "none", do not
  121. # provide such a header at all.
  122. #
  123. # extra_programs List of extra executables compiled for this target
  124. # machine, used when linking.
  125. #
  126. # extra_options List of target-dependent .opt files.
  127. #
  128. # c_target_objs List of extra target-dependent objects that be
  129. # linked into the C compiler only.
  130. #
  131. # cxx_target_objs List of extra target-dependent objects that be
  132. # linked into the C++ compiler only.
  133. #
  134. # fortran_target_objs List of extra target-dependent objects that be
  135. # linked into the fortran compiler only.
  136. #
  137. # target_gtfiles List of extra source files with type information.
  138. #
  139. # xm_defines List of macros to define when compiling for the
  140. # target machine.
  141. #
  142. # xm_file List of files to include when compiling for the
  143. # target machine.
  144. #
  145. # use_collect2 Set to yes or no, depending on whether collect2
  146. # will be used.
  147. #
  148. # target_cpu_default Set to override the default target model.
  149. #
  150. # gdb_needs_out_file_path
  151. # Set to yes if gdb needs a dir command with
  152. # `dirname $out_file`.
  153. #
  154. # thread_file Set to control which thread package to use.
  155. #
  156. # gas Set to yes or no depending on whether the target
  157. # system normally uses GNU as.
  158. #
  159. # configure_default_options
  160. # Set to an initializer for configure_default_options
  161. # in configargs.h, based on --with-cpu et cetera.
  162. #
  163. # native_system_header_dir
  164. # Where system header files are found for this
  165. # target. This defaults to /usr/include. If
  166. # the --with-sysroot configure option or the
  167. # --sysroot command line option is used this
  168. # will be relative to the sysroot.
  169. # target_type_format_char
  170. # The default character to be used for formatting
  171. # the attribute in a
  172. # .type symbol_name, ${t_t_f_c}<property>
  173. # directive.
  174. # The following variables are used in each case-construct to build up the
  175. # outgoing variables:
  176. #
  177. # gnu_ld Set to yes or no depending on whether the target
  178. # system normally uses GNU ld.
  179. #
  180. # target_has_targetcm Set to yes or no depending on whether the target
  181. # has its own definition of targetcm.
  182. #
  183. # target_has_targetm_common Set to yes or no depending on whether the
  184. # target has its own definition of targetm_common.
  185. out_file=
  186. common_out_file=
  187. tmake_file=
  188. extra_headers=
  189. user_headers_inc_next_pre=
  190. user_headers_inc_next_post=
  191. use_gcc_tgmath=yes
  192. use_gcc_stdint=none
  193. extra_programs=
  194. extra_objs=
  195. extra_gcc_objs=
  196. extra_options=
  197. c_target_objs=
  198. cxx_target_objs=
  199. fortran_target_objs=
  200. target_has_targetcm=no
  201. target_has_targetm_common=yes
  202. tm_defines=
  203. xm_defines=
  204. # Set this to force installation and use of collect2.
  205. use_collect2=
  206. # Set this to override the default target model.
  207. target_cpu_default=
  208. # Set this if gdb needs a dir command with `dirname $out_file`
  209. gdb_needs_out_file_path=
  210. # Set this to control which thread package will be used.
  211. thread_file=
  212. # Reinitialize these from the flag values every loop pass, since some
  213. # configure entries modify them.
  214. gas="$gas_flag"
  215. gnu_ld="$gnu_ld_flag"
  216. default_use_cxa_atexit=no
  217. default_gnu_indirect_function=no
  218. target_gtfiles=
  219. need_64bit_isa=
  220. native_system_header_dir=/usr/include
  221. target_type_format_char='@'
  222. # Don't carry these over build->host->target. Please.
  223. xm_file=
  224. md_file=
  225. # Obsolete configurations.
  226. case ${target} in
  227. # Currently there are no obsolete targets.
  228. nothing \
  229. )
  230. if test "x$enable_obsolete" != xyes; then
  231. echo "*** Configuration ${target} is obsolete." >&2
  232. echo "*** Specify --enable-obsolete to build it anyway." >&2
  233. echo "*** Support will be REMOVED in the next major release of GCC," >&2
  234. echo "*** unless a maintainer comes forward." >&2
  235. exit 1
  236. fi;;
  237. esac
  238. # Unsupported targets list. Do not put an entry in this list unless
  239. # it would otherwise be caught by a more permissive pattern. The list
  240. # should be in alphabetical order.
  241. case ${target} in
  242. # Avoid special cases that are not obsolete
  243. arm*-*-*eabi* \
  244. )
  245. ;;
  246. arm*-wince-pe* \
  247. | arm*-*-ecos-elf \
  248. | arm*-*-elf \
  249. | arm*-*-linux* \
  250. | arm*-*-uclinux* \
  251. | i[34567]86-go32-* \
  252. | i[34567]86-*-go32* \
  253. | m68k-*-uclinuxoldabi* \
  254. | mips64orion*-*-rtems* \
  255. | pdp11-*-bsd \
  256. | sparc-hal-solaris2* \
  257. | thumb-*-* \
  258. | *-*-freebsd[12] | *-*-freebsd[12].* \
  259. | *-*-freebsd*aout* \
  260. | *-*-linux*aout* \
  261. | *-*-linux*coff* \
  262. | *-*-linux*libc1* \
  263. | *-*-linux*oldld* \
  264. | *-*-rtemsaout* \
  265. | *-*-rtemscoff* \
  266. | *-*-solaris2 \
  267. | *-*-solaris2.[0-9] \
  268. | *-*-solaris2.[0-9].* \
  269. | *-*-sysv* \
  270. | vax-*-vms* \
  271. )
  272. echo "*** Configuration ${target} not supported" 1>&2
  273. exit 1
  274. ;;
  275. esac
  276. # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
  277. # updated in each machine entry. Also set default extra_headers for some
  278. # machines.
  279. tm_p_file=
  280. cpu_type=`echo ${target} | sed 's/-.*$//'`
  281. cpu_is_64bit=
  282. case ${target} in
  283. m32c*-*-*)
  284. cpu_type=m32c
  285. tmake_file=m32c/t-m32c
  286. target_has_targetm_common=no
  287. ;;
  288. aarch64*-*-*)
  289. cpu_type=aarch64
  290. extra_headers="arm_neon.h arm_acle.h"
  291. extra_objs="aarch64-builtins.o aarch-common.o"
  292. target_gtfiles="\$(srcdir)/config/aarch64/aarch64-builtins.c"
  293. target_has_targetm_common=yes
  294. ;;
  295. alpha*-*-*)
  296. cpu_type=alpha
  297. extra_options="${extra_options} g.opt"
  298. ;;
  299. am33_2.0-*-linux*)
  300. cpu_type=mn10300
  301. ;;
  302. arc*-*-*)
  303. cpu_type=arc
  304. ;;
  305. arm*-*-*)
  306. cpu_type=arm
  307. extra_objs="arm-builtins.o aarch-common.o"
  308. extra_headers="mmintrin.h arm_neon.h arm_acle.h"
  309. target_type_format_char='%'
  310. c_target_objs="arm-c.o"
  311. cxx_target_objs="arm-c.o"
  312. extra_options="${extra_options} arm/arm-tables.opt"
  313. target_gtfiles="\$(srcdir)/config/arm/arm-builtins.c"
  314. ;;
  315. avr-*-*)
  316. cpu_type=avr
  317. c_target_objs="avr-c.o"
  318. cxx_target_objs="avr-c.o"
  319. ;;
  320. bfin*-*)
  321. cpu_type=bfin
  322. ;;
  323. crisv32-*)
  324. cpu_type=cris
  325. ;;
  326. frv*) cpu_type=frv
  327. extra_options="${extra_options} g.opt"
  328. ;;
  329. moxie*) cpu_type=moxie
  330. target_has_targetm_common=no
  331. ;;
  332. fido-*-*)
  333. cpu_type=m68k
  334. extra_headers=math-68881.h
  335. extra_options="${extra_options} m68k/m68k-tables.opt"
  336. ;;
  337. i[34567]86-*-*)
  338. cpu_type=i386
  339. c_target_objs="i386-c.o"
  340. cxx_target_objs="i386-c.o"
  341. extra_options="${extra_options} fused-madd.opt"
  342. extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h
  343. pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h
  344. nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h
  345. immintrin.h x86intrin.h avxintrin.h xopintrin.h
  346. ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h
  347. lzcntintrin.h bmiintrin.h bmi2intrin.h tbmintrin.h
  348. avx2intrin.h avx512fintrin.h fmaintrin.h f16cintrin.h
  349. rtmintrin.h xtestintrin.h rdseedintrin.h prfchwintrin.h
  350. adxintrin.h fxsrintrin.h xsaveintrin.h xsaveoptintrin.h
  351. avx512cdintrin.h avx512erintrin.h avx512pfintrin.h
  352. shaintrin.h clflushoptintrin.h xsavecintrin.h
  353. xsavesintrin.h avx512dqintrin.h avx512bwintrin.h
  354. avx512vlintrin.h avx512vlbwintrin.h avx512vldqintrin.h
  355. avx512ifmaintrin.h avx512ifmavlintrin.h avx512vbmiintrin.h
  356. avx512vbmivlintrin.h clwbintrin.h pcommitintrin.h mwaitxintrin.h"
  357. ;;
  358. x86_64-*-*)
  359. cpu_type=i386
  360. c_target_objs="i386-c.o"
  361. cxx_target_objs="i386-c.o"
  362. extra_options="${extra_options} fused-madd.opt"
  363. extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h
  364. pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h
  365. nmmintrin.h bmmintrin.h fma4intrin.h wmmintrin.h
  366. immintrin.h x86intrin.h avxintrin.h xopintrin.h
  367. ia32intrin.h cross-stdarg.h lwpintrin.h popcntintrin.h
  368. lzcntintrin.h bmiintrin.h tbmintrin.h bmi2intrin.h
  369. avx2intrin.h avx512fintrin.h fmaintrin.h f16cintrin.h
  370. rtmintrin.h xtestintrin.h rdseedintrin.h prfchwintrin.h
  371. adxintrin.h fxsrintrin.h xsaveintrin.h xsaveoptintrin.h
  372. avx512cdintrin.h avx512erintrin.h avx512pfintrin.h
  373. shaintrin.h clflushoptintrin.h xsavecintrin.h
  374. xsavesintrin.h avx512dqintrin.h avx512bwintrin.h
  375. avx512vlintrin.h avx512vlbwintrin.h avx512vldqintrin.h
  376. avx512ifmaintrin.h avx512ifmavlintrin.h avx512vbmiintrin.h
  377. avx512vbmivlintrin.h clwbintrin.h pcommitintrin.h mwaitxintrin.h"
  378. ;;
  379. ia64-*-*)
  380. extra_headers=ia64intrin.h
  381. extra_options="${extra_options} g.opt fused-madd.opt"
  382. ;;
  383. hppa*-*-*)
  384. cpu_type=pa
  385. ;;
  386. lm32*)
  387. extra_options="${extra_options} g.opt"
  388. ;;
  389. m32r*-*-*)
  390. cpu_type=m32r
  391. extra_options="${extra_options} g.opt"
  392. ;;
  393. m68k-*-*)
  394. extra_headers=math-68881.h
  395. extra_options="${extra_options} m68k/m68k-tables.opt"
  396. ;;
  397. microblaze*-*-*)
  398. cpu_type=microblaze
  399. extra_options="${extra_options} g.opt"
  400. ;;
  401. mips*-*-*)
  402. cpu_type=mips
  403. extra_headers="loongson.h"
  404. extra_options="${extra_options} g.opt mips/mips-tables.opt"
  405. ;;
  406. nds32*)
  407. cpu_type=nds32
  408. extra_headers="nds32_intrinsic.h"
  409. extra_objs="nds32-cost.o nds32-intrinsic.o nds32-isr.o nds32-md-auxiliary.o nds32-pipelines-auxiliary.o nds32-predicates.o nds32-memory-manipulation.o nds32-fp-as-gp.o"
  410. ;;
  411. nios2-*-*)
  412. cpu_type=nios2
  413. extra_options="${extra_options} g.opt"
  414. ;;
  415. nvptx-*-*)
  416. cpu_type=nvptx
  417. ;;
  418. powerpc*-*-*)
  419. cpu_type=rs6000
  420. extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h htmintrin.h htmxlintrin.h"
  421. case x$with_cpu in
  422. xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345678]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|Xe6500)
  423. cpu_is_64bit=yes
  424. ;;
  425. esac
  426. extra_options="${extra_options} g.opt fused-madd.opt rs6000/rs6000-tables.opt"
  427. ;;
  428. rs6000*-*-*)
  429. extra_options="${extra_options} g.opt fused-madd.opt rs6000/rs6000-tables.opt"
  430. ;;
  431. sparc*-*-*)
  432. cpu_type=sparc
  433. c_target_objs="sparc-c.o"
  434. cxx_target_objs="sparc-c.o"
  435. extra_headers="visintrin.h"
  436. ;;
  437. spu*-*-*)
  438. cpu_type=spu
  439. ;;
  440. s390*-*-*)
  441. cpu_type=s390
  442. extra_options="${extra_options} fused-madd.opt"
  443. extra_headers="s390intrin.h htmintrin.h htmxlintrin.h vecintrin.h"
  444. ;;
  445. # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
  446. sh[123456789lbe]*-*-* | sh-*-*)
  447. cpu_type=sh
  448. extra_options="${extra_options} fused-madd.opt"
  449. extra_objs="${extra_objs} sh_treg_combine.o sh-mem.o sh_optimize_sett_clrt.o"
  450. ;;
  451. v850*-*-*)
  452. cpu_type=v850
  453. ;;
  454. tic6x-*-*)
  455. cpu_type=c6x
  456. extra_headers="c6x_intrinsics.h"
  457. extra_options="${extra_options} c6x/c6x-tables.opt"
  458. ;;
  459. xtensa*-*-*)
  460. extra_options="${extra_options} fused-madd.opt"
  461. ;;
  462. tilegx*-*-*)
  463. cpu_type=tilegx
  464. ;;
  465. tilepro*-*-*)
  466. cpu_type=tilepro
  467. ;;
  468. esac
  469. tm_file=${cpu_type}/${cpu_type}.h
  470. if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h
  471. then
  472. tm_p_file=${cpu_type}/${cpu_type}-protos.h
  473. fi
  474. extra_modes=
  475. if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
  476. then
  477. extra_modes=${cpu_type}/${cpu_type}-modes.def
  478. fi
  479. if test -f ${srcdir}/config/${cpu_type}/${cpu_type}.opt
  480. then
  481. extra_options="${extra_options} ${cpu_type}/${cpu_type}.opt"
  482. fi
  483. case ${target} in
  484. aarch64*-*-*)
  485. tm_p_file="${tm_p_file} arm/aarch-common-protos.h"
  486. case ${with_abi} in
  487. "")
  488. if test "x$with_multilib_list" = xilp32; then
  489. tm_file="aarch64/biarchilp32.h ${tm_file}"
  490. else
  491. tm_file="aarch64/biarchlp64.h ${tm_file}"
  492. fi
  493. ;;
  494. ilp32)
  495. tm_file="aarch64/biarchilp32.h ${tm_file}"
  496. ;;
  497. lp64)
  498. tm_file="aarch64/biarchlp64.h ${tm_file}"
  499. ;;
  500. *)
  501. echo "Unknown ABI used in --with-abi=$with_abi"
  502. exit 1
  503. esac
  504. ;;
  505. i[34567]86-*-*)
  506. if test "x$with_abi" != x; then
  507. echo "This target does not support --with-abi."
  508. exit 1
  509. fi
  510. if test "x$enable_cld" = xyes; then
  511. tm_defines="${tm_defines} USE_IX86_CLD=1"
  512. fi
  513. if test "x$enable_frame_pointer" = xyes; then
  514. tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
  515. fi
  516. tm_file="vxworks-dummy.h ${tm_file}"
  517. ;;
  518. x86_64-*-*)
  519. case ${with_abi} in
  520. "")
  521. if test "x$with_multilib_list" = xmx32; then
  522. tm_file="i386/biarchx32.h ${tm_file}"
  523. else
  524. tm_file="i386/biarch64.h ${tm_file}"
  525. fi
  526. ;;
  527. 64 | m64)
  528. tm_file="i386/biarch64.h ${tm_file}"
  529. ;;
  530. x32 | mx32)
  531. tm_file="i386/biarchx32.h ${tm_file}"
  532. ;;
  533. *)
  534. echo "Unknown ABI used in --with-abi=$with_abi"
  535. exit 1
  536. esac
  537. if test "x$enable_cld" = xyes; then
  538. tm_defines="${tm_defines} USE_IX86_CLD=1"
  539. fi
  540. if test "x$enable_frame_pointer" = xyes; then
  541. tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
  542. fi
  543. tm_file="vxworks-dummy.h ${tm_file}"
  544. ;;
  545. arm*-*-*)
  546. tm_p_file="${tm_p_file} arm/aarch-common-protos.h"
  547. tm_file="vxworks-dummy.h ${tm_file}"
  548. ;;
  549. mips*-*-* | sh*-*-* | sparc*-*-*)
  550. tm_file="vxworks-dummy.h ${tm_file}"
  551. ;;
  552. esac
  553. # On a.out targets, we need to use collect2.
  554. case ${target} in
  555. *-*-*aout*)
  556. use_collect2=yes
  557. ;;
  558. esac
  559. # Common C libraries.
  560. tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3"
  561. # 32-bit x86 processors supported by --with-arch=. Each processor
  562. # MUST be separated by exactly one space.
  563. x86_archs="athlon athlon-4 athlon-fx athlon-mp athlon-tbird \
  564. athlon-xp k6 k6-2 k6-3 geode c3 c3-2 winchip-c6 winchip2 i386 i486 \
  565. i586 i686 pentium pentium-m pentium-mmx pentium2 pentium3 pentium3m \
  566. pentium4 pentium4m pentiumpro prescott"
  567. # 64-bit x86 processors supported by --with-arch=. Each processor
  568. # MUST be separated by exactly one space.
  569. x86_64_archs="amdfam10 athlon64 athlon64-sse3 barcelona bdver1 bdver2 \
  570. bdver3 bdver4 btver1 btver2 k8 k8-sse3 opteron opteron-sse3 nocona \
  571. core2 corei7 corei7-avx core-avx-i core-avx2 atom slm nehalem westmere \
  572. sandybridge ivybridge haswell broadwell bonnell silvermont knl x86-64 \
  573. native"
  574. # Additional x86 processors supported by --with-cpu=. Each processor
  575. # MUST be separated by exactly one space.
  576. x86_cpus="generic intel"
  577. # Common parts for widely ported systems.
  578. case ${target} in
  579. *-*-darwin*)
  580. tmake_file="t-darwin ${cpu_type}/t-darwin"
  581. tm_file="${tm_file} darwin.h"
  582. case ${target} in
  583. *-*-darwin9*)
  584. tm_file="${tm_file} darwin9.h"
  585. ;;
  586. *-*-darwin[12][0-9]*)
  587. tm_file="${tm_file} darwin9.h darwin10.h"
  588. ;;
  589. esac
  590. tm_file="${tm_file} ${cpu_type}/darwin.h"
  591. tm_p_file="${tm_p_file} darwin-protos.h"
  592. target_gtfiles="\$(srcdir)/config/darwin.c"
  593. extra_options="${extra_options} darwin.opt"
  594. c_target_objs="${c_target_objs} darwin-c.o"
  595. cxx_target_objs="${cxx_target_objs} darwin-c.o"
  596. fortran_target_objs="darwin-f.o"
  597. target_has_targetcm=yes
  598. extra_objs="darwin.o"
  599. extra_gcc_objs="darwin-driver.o"
  600. default_use_cxa_atexit=yes
  601. use_gcc_stdint=wrap
  602. case ${enable_threads} in
  603. "" | yes | posix) thread_file='posix' ;;
  604. esac
  605. ;;
  606. *-*-dragonfly*)
  607. gas=yes
  608. gnu_ld=yes
  609. tmake_file="t-slibgcc"
  610. case ${enable_threads} in
  611. "" | yes | posix)
  612. thread_file='posix'
  613. ;;
  614. no | single)
  615. # Let these non-posix thread selections fall through if requested
  616. ;;
  617. *)
  618. echo 'Unknown thread configuration for DragonFly BSD'
  619. exit 1
  620. ;;
  621. esac
  622. extra_options="$extra_options rpath.opt dragonfly.opt"
  623. default_use_cxa_atexit=yes
  624. use_gcc_stdint=wrap
  625. ;;
  626. *-*-freebsd*)
  627. # This is the generic ELF configuration of FreeBSD. Later
  628. # machine-specific sections may refine and add to this
  629. # configuration.
  630. #
  631. # Due to tm_file entry ordering issues that vary between cpu
  632. # architectures, we only define fbsd_tm_file to allow the
  633. # machine-specific section to dictate the final order of all
  634. # entries of tm_file with the minor exception that components
  635. # of the tm_file set here will always be of the form:
  636. #
  637. # freebsd<version_number>.h [freebsd-<conf_option>.h ...] freebsd-spec.h freebsd.h
  638. #
  639. # The machine-specific section should not tamper with this
  640. # ordering but may order all other entries of tm_file as it
  641. # pleases around the provided core setting.
  642. gas=yes
  643. gnu_ld=yes
  644. fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'`
  645. tm_defines="${tm_defines} FBSD_MAJOR=${fbsd_major}"
  646. tmake_file="t-slibgcc"
  647. case ${enable_threads} in
  648. no)
  649. fbsd_tm_file="${fbsd_tm_file} freebsd-nthr.h"
  650. ;;
  651. "" | yes | posix)
  652. thread_file='posix'
  653. ;;
  654. *)
  655. echo 'Unknown thread configuration for FreeBSD'
  656. exit 1
  657. ;;
  658. esac
  659. fbsd_tm_file="${fbsd_tm_file} freebsd-spec.h freebsd.h freebsd-stdint.h"
  660. extra_options="$extra_options rpath.opt freebsd.opt"
  661. case ${target} in
  662. *-*-freebsd[345].*)
  663. :;;
  664. *)
  665. default_use_cxa_atexit=yes;;
  666. esac
  667. use_gcc_stdint=wrap
  668. ;;
  669. *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
  670. extra_options="$extra_options gnu-user.opt"
  671. gas=yes
  672. gnu_ld=yes
  673. case ${enable_threads} in
  674. "" | yes | posix) thread_file='posix' ;;
  675. esac
  676. tmake_file="t-slibgcc"
  677. case $target in
  678. *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-kopensolaris*-gnu)
  679. :;;
  680. *-*-gnu*)
  681. native_system_header_dir=/include
  682. ;;
  683. esac
  684. # Linux C libraries selection switch: glibc / uclibc / bionic.
  685. # uclibc and bionic aren't usable for GNU/Hurd and neither for GNU/k*BSD.
  686. case $target in
  687. *linux*)
  688. tm_p_file="${tm_p_file} linux-protos.h"
  689. tmake_file="${tmake_file} t-linux"
  690. extra_objs="${extra_objs} linux.o"
  691. extra_options="${extra_options} linux.opt"
  692. ;;
  693. esac
  694. case $target in
  695. *-*-*android*)
  696. tm_defines="$tm_defines DEFAULT_LIBC=LIBC_BIONIC"
  697. ;;
  698. *-*-*uclibc*)
  699. tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC"
  700. ;;
  701. *)
  702. tm_defines="$tm_defines DEFAULT_LIBC=LIBC_GLIBC"
  703. ;;
  704. esac
  705. # Assume that glibc or uClibc or Bionic are being used and so __cxa_atexit
  706. # is provided.
  707. default_use_cxa_atexit=yes
  708. use_gcc_tgmath=no
  709. use_gcc_stdint=wrap
  710. # Enable compilation for Android by default for *android* targets.
  711. case $target in
  712. *-*-*android*)
  713. tm_defines="$tm_defines ANDROID_DEFAULT=1"
  714. ;;
  715. *)
  716. tm_defines="$tm_defines ANDROID_DEFAULT=0"
  717. ;;
  718. esac
  719. c_target_objs="${c_target_objs} glibc-c.o"
  720. cxx_target_objs="${cxx_target_objs} glibc-c.o"
  721. tmake_file="${tmake_file} t-glibc"
  722. target_has_targetcm=yes
  723. ;;
  724. *-*-netbsd*)
  725. tmake_file="t-slibgcc"
  726. gas=yes
  727. gnu_ld=yes
  728. # NetBSD 2.0 and later get POSIX threads enabled by default.
  729. # Allow them to be explicitly enabled on any other version.
  730. case ${enable_threads} in
  731. "")
  732. case ${target} in
  733. *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
  734. thread_file='posix'
  735. tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
  736. ;;
  737. esac
  738. ;;
  739. yes | posix)
  740. thread_file='posix'
  741. tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
  742. ;;
  743. esac
  744. # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
  745. # default (unless overridden by --disable-__cxa_atexit).
  746. case ${target} in
  747. *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
  748. default_use_cxa_atexit=yes
  749. ;;
  750. esac
  751. ;;
  752. *-*-openbsd*)
  753. tmake_file="t-openbsd"
  754. case ${enable_threads} in
  755. yes)
  756. thread_file='posix'
  757. ;;
  758. esac
  759. case ${target} in
  760. *-*-openbsd2.*|*-*-openbsd3.[012])
  761. tm_defines="${tm_defines} HAS_LIBC_R=1" ;;
  762. esac
  763. case ${target} in
  764. *-*-openbsd4.[3-9]|*-*-openbsd[5-9]*)
  765. default_use_cxa_atexit=yes
  766. ;;
  767. esac
  768. ;;
  769. *-*-rtems*)
  770. case ${enable_threads} in
  771. "" | yes | rtems) thread_file='rtems' ;;
  772. posix) thread_file='posix' ;;
  773. no) ;;
  774. *)
  775. echo 'Unknown thread configuration for RTEMS'
  776. exit 1
  777. ;;
  778. esac
  779. tmake_file="${tmake_file} t-rtems"
  780. extra_options="${extra_options} rtems.opt"
  781. default_use_cxa_atexit=yes
  782. use_gcc_stdint=wrap
  783. ;;
  784. *-*-uclinux*)
  785. extra_options="$extra_options gnu-user.opt"
  786. use_gcc_stdint=wrap
  787. tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC SINGLE_LIBC"
  788. ;;
  789. *-*-rdos*)
  790. use_gcc_stdint=wrap
  791. ;;
  792. *-*-solaris2*)
  793. # i?86-*-solaris2* needs to insert headers between cpu default and
  794. # Solaris 2 specific ones.
  795. sol2_tm_file_head="dbxelf.h elfos.h ${cpu_type}/sysv4.h"
  796. sol2_tm_file_tail="${cpu_type}/sol2.h sol2.h"
  797. sol2_tm_file="${sol2_tm_file_head} ${sol2_tm_file_tail}"
  798. use_gcc_stdint=wrap
  799. if test x$gnu_ld = xyes; then
  800. tm_file="usegld.h ${tm_file}"
  801. fi
  802. if test x$gas = xyes; then
  803. tm_file="usegas.h ${tm_file}"
  804. fi
  805. tm_p_file="${tm_p_file} sol2-protos.h"
  806. tmake_file="${tmake_file} t-sol2 t-slibgcc"
  807. c_target_objs="${c_target_objs} sol2-c.o"
  808. cxx_target_objs="${cxx_target_objs} sol2-c.o sol2-cxx.o"
  809. extra_objs="sol2.o sol2-stubs.o"
  810. extra_options="${extra_options} sol2.opt"
  811. case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
  812. "":yes:* | yes:yes:* )
  813. thread_file=posix
  814. ;;
  815. esac
  816. ;;
  817. *-*-*vms*)
  818. extra_options="${extra_options} vms/vms.opt"
  819. xmake_file=vms/x-vms
  820. tmake_file="vms/t-vms t-slibgcc"
  821. extra_objs="vms.o"
  822. target_gtfiles="$target_gtfiles \$(srcdir)/config/vms/vms.c"
  823. tm_p_file="${tm_p_file} vms/vms-protos.h"
  824. xm_file="vms/xm-vms.h"
  825. c_target_objs="vms-c.o"
  826. cxx_target_objs="vms-c.o"
  827. fortran_target_objs="vms-f.o"
  828. use_gcc_stdint=provide
  829. tm_file="${tm_file} vms/vms-stdint.h"
  830. if test x$gnu_ld != xyes; then
  831. # Build wrappers for native case.
  832. extra_programs="ld\$(exeext) ar\$(exeext)"
  833. tmake_file="$tmake_file vms/t-vmsnative"
  834. fi
  835. ;;
  836. *-*-vxworks*)
  837. tmake_file=t-vxworks
  838. xm_defines=POSIX
  839. extra_options="${extra_options} vxworks.opt"
  840. extra_objs="$extra_objs vxworks.o"
  841. case ${enable_threads} in
  842. no) ;;
  843. "" | yes | vxworks) thread_file='vxworks' ;;
  844. *) echo 'Unknown thread configuration for VxWorks'; exit 1 ;;
  845. esac
  846. ;;
  847. *-*-elf|arc*-*-elf*)
  848. # Assume that newlib is being used and so __cxa_atexit is provided.
  849. default_use_cxa_atexit=yes
  850. use_gcc_stdint=wrap
  851. ;;
  852. esac
  853. case ${target} in
  854. aarch64*-*-elf)
  855. tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h"
  856. tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-elf-raw.h"
  857. tmake_file="${tmake_file} aarch64/t-aarch64"
  858. use_gcc_stdint=wrap
  859. case $target in
  860. aarch64_be-*)
  861. tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
  862. ;;
  863. esac
  864. aarch64_multilibs="${with_multilib_list}"
  865. if test "$aarch64_multilibs" = "default"; then
  866. aarch64_multilibs="lp64,ilp32"
  867. fi
  868. aarch64_multilibs=`echo $aarch64_multilibs | sed -e 's/,/ /g'`
  869. for aarch64_multilib in ${aarch64_multilibs}; do
  870. case ${aarch64_multilib} in
  871. ilp32 | lp64 )
  872. TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${aarch64_multilib}"
  873. ;;
  874. *)
  875. echo "--with-multilib-list=${aarch64_multilib} not supported."
  876. exit 1
  877. esac
  878. done
  879. TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'`
  880. ;;
  881. aarch64*-*-linux*)
  882. tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h"
  883. tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-linux.h"
  884. tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aarch64-linux"
  885. case $target in
  886. aarch64_be-*)
  887. tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
  888. ;;
  889. esac
  890. aarch64_multilibs="${with_multilib_list}"
  891. if test "$aarch64_multilibs" = "default"; then
  892. # TODO: turn on ILP32 multilib build after its support is mature.
  893. # aarch64_multilibs="lp64,ilp32"
  894. aarch64_multilibs="lp64"
  895. fi
  896. aarch64_multilibs=`echo $aarch64_multilibs | sed -e 's/,/ /g'`
  897. for aarch64_multilib in ${aarch64_multilibs}; do
  898. case ${aarch64_multilib} in
  899. ilp32 | lp64 )
  900. TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${aarch64_multilib}"
  901. ;;
  902. *)
  903. echo "--with-multilib-list=${aarch64_multilib} not supported."
  904. exit 1
  905. esac
  906. done
  907. TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'`
  908. ;;
  909. alpha*-*-linux*)
  910. tm_file="elfos.h ${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h glibc-stdint.h"
  911. tmake_file="${tmake_file} alpha/t-linux"
  912. extra_options="${extra_options} alpha/elf.opt"
  913. ;;
  914. alpha*-*-freebsd*)
  915. tm_file="elfos.h ${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h"
  916. extra_options="${extra_options} alpha/elf.opt"
  917. ;;
  918. alpha*-*-netbsd*)
  919. tm_file="elfos.h ${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h"
  920. extra_options="${extra_options} netbsd.opt netbsd-elf.opt \
  921. alpha/elf.opt"
  922. ;;
  923. alpha*-*-openbsd*)
  924. tm_defines="${tm_defines} OBSD_HAS_DECLARE_FUNCTION_NAME OBSD_HAS_DECLARE_FUNCTION_SIZE OBSD_HAS_DECLARE_OBJECT"
  925. tm_file="elfos.h alpha/alpha.h alpha/elf.h openbsd.h openbsd-stdint.h alpha/openbsd.h openbsd-libpthread.h"
  926. extra_options="${extra_options} openbsd.opt alpha/elf.opt"
  927. # default x-alpha is only appropriate for dec-osf.
  928. ;;
  929. alpha*-dec-*vms*)
  930. tm_file="${tm_file} vms/vms.h alpha/vms.h"
  931. tmake_file="${tmake_file} alpha/t-vms"
  932. ;;
  933. arc*-*-elf*)
  934. extra_headers="arc-simd.h"
  935. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  936. tmake_file="arc/t-arc-newlib arc/t-arc"
  937. case x"${with_cpu}" in
  938. xarc600|xarc601|xarc700)
  939. target_cpu_default="TARGET_CPU_$with_cpu"
  940. ;;
  941. esac
  942. if test x${with_endian} = x; then
  943. case ${target} in
  944. arc*be-*-* | arc*eb-*-*) with_endian=big ;;
  945. *) with_endian=little ;;
  946. esac
  947. fi
  948. case ${with_endian} in
  949. big|little) ;;
  950. *) echo "with_endian=${with_endian} not supported."; exit 1 ;;
  951. esac
  952. case ${with_endian} in
  953. big*) tm_defines="DRIVER_ENDIAN_SELF_SPECS=\\\"%{!EL:%{!mlittle-endian:-mbig-endian}}\\\" ${tm_defines}"
  954. esac
  955. ;;
  956. arc*-*-linux-uclibc*)
  957. extra_headers="arc-simd.h"
  958. tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file}"
  959. tmake_file="${tmake_file} arc/t-arc-uClibc arc/t-arc"
  960. tm_defines="${tm_defines} TARGET_SDATA_DEFAULT=0"
  961. tm_defines="${tm_defines} TARGET_MMEDIUM_CALLS_DEFAULT=1"
  962. case x"${with_cpu}" in
  963. xarc600|xarc601|xarc700)
  964. target_cpu_default="TARGET_CPU_$with_cpu"
  965. ;;
  966. esac
  967. if test x${with_endian} = x; then
  968. case ${target} in
  969. arc*be-*-* | arc*eb-*-*) with_endian=big ;;
  970. *) with_endian=little ;;
  971. esac
  972. fi
  973. case ${with_endian} in
  974. big|little) ;;
  975. *) echo "with_endian=${with_endian} not supported."; exit 1 ;;
  976. esac
  977. case ${with_endian} in
  978. big*) tm_defines="DRIVER_ENDIAN_SELF_SPECS=\\\"%{!EL:%{!mlittle-endian:-mbig-endian}}\\\" ${tm_defines}"
  979. esac
  980. ;;
  981. arm-wrs-vxworks)
  982. tm_file="elfos.h arm/elf.h arm/aout.h ${tm_file} vx-common.h vxworks.h arm/vxworks.h"
  983. extra_options="${extra_options} arm/vxworks.opt"
  984. tmake_file="${tmake_file} arm/t-arm arm/t-vxworks"
  985. ;;
  986. arm*-*-freebsd*) # ARM FreeBSD EABI
  987. tm_file="dbxelf.h elfos.h ${fbsd_tm_file} arm/elf.h"
  988. case $target in
  989. arm*b-*-freebsd*)
  990. tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
  991. ;;
  992. esac
  993. tmake_file="${tmake_file} arm/t-arm arm/t-bpabi"
  994. tm_file="${tm_file} arm/bpabi.h arm/freebsd.h arm/aout.h arm/arm.h"
  995. case $target in
  996. armv6*-*-freebsd*)
  997. tm_defines="${tm_defines} TARGET_FREEBSD_ARMv6=1"
  998. ;;
  999. esac
  1000. case $target in
  1001. arm*hf-*-freebsd*)
  1002. tm_defines="${tm_defines} TARGET_FREEBSD_ARM_HARD_FLOAT=1"
  1003. ;;
  1004. esac
  1005. with_tls=${with_tls:-gnu}
  1006. ;;
  1007. arm*-*-netbsdelf*)
  1008. tm_file="dbxelf.h elfos.h netbsd.h netbsd-elf.h arm/elf.h arm/aout.h ${tm_file} arm/netbsd-elf.h"
  1009. extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  1010. tmake_file="${tmake_file} arm/t-arm"
  1011. ;;
  1012. arm*-*-linux-*) # ARM GNU/Linux with ELF
  1013. tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
  1014. extra_options="${extra_options} linux-android.opt"
  1015. case $target in
  1016. arm*b-*-linux*)
  1017. tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
  1018. ;;
  1019. esac
  1020. tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi"
  1021. tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h arm/aout.h vxworks-dummy.h arm/arm.h"
  1022. # Define multilib configuration for arm-linux-androideabi.
  1023. case ${target} in
  1024. *-androideabi)
  1025. tmake_file="$tmake_file arm/t-linux-androideabi"
  1026. ;;
  1027. esac
  1028. # The EABI requires the use of __cxa_atexit.
  1029. default_use_cxa_atexit=yes
  1030. with_tls=${with_tls:-gnu}
  1031. ;;
  1032. arm*-*-uclinux*eabi*) # ARM ucLinux
  1033. tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/linux-gas.h arm/uclinux-elf.h glibc-stdint.h"
  1034. tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf arm/t-bpabi"
  1035. tm_file="$tm_file arm/bpabi.h arm/uclinux-eabi.h arm/aout.h vxworks-dummy.h arm/arm.h"
  1036. # The EABI requires the use of __cxa_atexit.
  1037. default_use_cxa_atexit=yes
  1038. ;;
  1039. arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
  1040. case ${target} in
  1041. arm*eb-*-eabi*)
  1042. tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
  1043. esac
  1044. default_use_cxa_atexit=yes
  1045. tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h"
  1046. tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf"
  1047. case ${target} in
  1048. arm*-*-eabi*)
  1049. tm_file="$tm_file newlib-stdint.h"
  1050. tmake_file="${tmake_file} arm/t-bpabi"
  1051. use_gcc_stdint=wrap
  1052. ;;
  1053. arm*-*-rtems*)
  1054. tm_file="${tm_file} rtems.h arm/rtems.h newlib-stdint.h"
  1055. tmake_file="${tmake_file} arm/t-bpabi arm/t-rtems"
  1056. ;;
  1057. arm*-*-symbianelf*)
  1058. tm_file="${tm_file} arm/symbian.h"
  1059. # We do not include t-bpabi for Symbian OS because the system
  1060. # provides its own implementation of the BPABI functions.
  1061. tmake_file="${tmake_file} arm/t-symbian"
  1062. ;;
  1063. esac
  1064. tm_file="${tm_file} arm/aout.h vxworks-dummy.h arm/arm.h"
  1065. ;;
  1066. avr-*-rtems*)
  1067. tm_file="elfos.h avr/elf.h avr/avr-arch.h avr/avr.h avr/specs.h dbxelf.h avr/rtems.h rtems.h newlib-stdint.h"
  1068. tm_defines="${tm_defines} WITH_RTEMS"
  1069. tmake_file="${tmake_file} avr/t-avr avr/t-multilib avr/t-rtems"
  1070. extra_gcc_objs="driver-avr.o avr-devices.o"
  1071. extra_objs="avr-devices.o avr-log.o"
  1072. ;;
  1073. avr-*-*)
  1074. tm_file="elfos.h avr/elf.h avr/avr-arch.h avr/avr.h avr/specs.h dbxelf.h avr/avr-stdint.h"
  1075. if test x${with_avrlibc} != xno; then
  1076. tm_file="${tm_file} ${cpu_type}/avrlibc.h"
  1077. tm_defines="${tm_defines} WITH_AVRLIBC"
  1078. fi
  1079. tmake_file="${tmake_file} avr/t-avr avr/t-multilib"
  1080. use_gcc_stdint=wrap
  1081. extra_gcc_objs="driver-avr.o avr-devices.o"
  1082. extra_objs="avr-devices.o avr-log.o"
  1083. ;;
  1084. bfin*-elf*)
  1085. tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h"
  1086. tmake_file=bfin/t-bfin-elf
  1087. use_collect2=no
  1088. ;;
  1089. bfin*-uclinux*)
  1090. tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h gnu-user.h linux.h glibc-stdint.h bfin/uclinux.h"
  1091. tmake_file=bfin/t-bfin-uclinux
  1092. use_collect2=no
  1093. ;;
  1094. bfin*-linux-uclibc*)
  1095. tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h gnu-user.h linux.h glibc-stdint.h bfin/linux.h ./linux-sysroot-suffix.h"
  1096. tmake_file="bfin/t-bfin-linux t-slibgcc t-linux"
  1097. use_collect2=no
  1098. ;;
  1099. bfin*-rtems*)
  1100. tm_file="${tm_file} dbxelf.h elfos.h bfin/elf.h bfin/rtems.h rtems.h newlib-stdint.h"
  1101. tmake_file="${tmake_file} bfin/t-rtems"
  1102. ;;
  1103. bfin*-*)
  1104. tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h bfin/elf.h"
  1105. use_collect2=no
  1106. use_gcc_stdint=wrap
  1107. ;;
  1108. cr16-*-elf)
  1109. tm_file="elfos.h ${tm_file}"
  1110. tmake_file="${tmake_file} cr16/t-cr16 "
  1111. use_collect2=no
  1112. ;;
  1113. crisv32-*-elf | crisv32-*-none)
  1114. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  1115. tmake_file="cris/t-cris"
  1116. target_cpu_default=32
  1117. gas=yes
  1118. extra_options="${extra_options} cris/elf.opt"
  1119. use_gcc_stdint=wrap
  1120. ;;
  1121. cris-*-elf | cris-*-none)
  1122. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  1123. tmake_file="cris/t-cris cris/t-elfmulti"
  1124. gas=yes
  1125. extra_options="${extra_options} cris/elf.opt"
  1126. use_gcc_stdint=wrap
  1127. ;;
  1128. crisv32-*-linux* | cris-*-linux*)
  1129. tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h glibc-stdint.h cris/linux.h"
  1130. tmake_file="${tmake_file} cris/t-cris cris/t-linux"
  1131. extra_options="${extra_options} cris/linux.opt"
  1132. case $target in
  1133. cris-*-*)
  1134. target_cpu_default=10
  1135. ;;
  1136. crisv32-*-*)
  1137. target_cpu_default=32
  1138. ;;
  1139. esac
  1140. ;;
  1141. epiphany-*-elf )
  1142. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  1143. tmake_file="epiphany/t-epiphany"
  1144. extra_options="${extra_options} fused-madd.opt"
  1145. extra_objs="$extra_objs mode-switch-use.o resolve-sw-modes.o"
  1146. tm_defines="${tm_defines} EPIPHANY_STACK_OFFSET=${with_stack_offset:-8}"
  1147. extra_headers="epiphany_intrinsics.h"
  1148. ;;
  1149. fr30-*-elf)
  1150. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  1151. ;;
  1152. frv-*-elf)
  1153. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  1154. tmake_file=frv/t-frv
  1155. ;;
  1156. frv-*-*linux*)
  1157. tm_file="dbxelf.h elfos.h ${tm_file} \
  1158. gnu-user.h linux.h glibc-stdint.h frv/linux.h"
  1159. tmake_file="${tmake_file} frv/t-frv frv/t-linux"
  1160. ;;
  1161. moxie-*-elf)
  1162. gas=yes
  1163. gnu_ld=yes
  1164. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  1165. tmake_file="${tmake_file} moxie/t-moxie"
  1166. ;;
  1167. moxie-*-uclinux*)
  1168. gas=yes
  1169. gnu_ld=yes
  1170. tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h glibc-stdint.h moxie/uclinux.h"
  1171. tmake_file="${tmake_file} moxie/t-moxie"
  1172. ;;
  1173. moxie-*-rtems*)
  1174. tmake_file="${tmake_file} moxie/t-moxie"
  1175. tm_file="moxie/moxie.h dbxelf.h elfos.h moxie/rtems.h rtems.h newlib-stdint.h"
  1176. ;;
  1177. moxie-*-moxiebox*)
  1178. gas=yes
  1179. gnu_ld=yes
  1180. tm_file="${tm_file} dbxelf.h elfos.h moxie/moxiebox.h newlib-stdint.h"
  1181. tmake_file="${tmake_file} moxie/t-moxiebox"
  1182. ;;
  1183. h8300-*-rtems*)
  1184. tmake_file="${tmake_file} h8300/t-h8300 h8300/t-rtems"
  1185. tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h h8300/rtems.h rtems.h newlib-stdint.h"
  1186. ;;
  1187. h8300-*-elf*)
  1188. tmake_file="h8300/t-h8300"
  1189. tm_file="h8300/h8300.h dbxelf.h elfos.h newlib-stdint.h h8300/elf.h"
  1190. ;;
  1191. hppa*64*-*-linux*)
  1192. target_cpu_default="MASK_PA_11|MASK_PA_20"
  1193. tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h gnu-user.h linux.h \
  1194. glibc-stdint.h pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h \
  1195. pa/pa64-linux.h"
  1196. gas=yes gnu_ld=yes
  1197. ;;
  1198. hppa*-*-linux*)
  1199. target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS"
  1200. tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h pa/pa-linux.h \
  1201. pa/pa32-regs.h pa/pa32-linux.h"
  1202. tmake_file="${tmake_file} pa/t-linux"
  1203. ;;
  1204. hppa*-*-openbsd*)
  1205. target_cpu_default="MASK_PA_11"
  1206. tm_file="${tm_file} dbxelf.h elfos.h openbsd.h openbsd-stdint.h openbsd-libpthread.h \
  1207. pa/pa-openbsd.h pa/pa32-regs.h pa/pa32-openbsd.h"
  1208. extra_options="${extra_options} openbsd.opt"
  1209. gas=yes
  1210. gnu_ld=yes
  1211. ;;
  1212. hppa[12]*-*-hpux10*)
  1213. case ${target} in
  1214. hppa1.1-*-* | hppa2*-*-*)
  1215. target_cpu_default="MASK_PA_11"
  1216. ;;
  1217. esac
  1218. tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \
  1219. pa/pa-hpux.h pa/pa-hpux10.h"
  1220. extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux10.opt"
  1221. case ${target} in
  1222. *-*-hpux10.[1-9]*)
  1223. tm_file="${tm_file} pa/pa-hpux1010.h"
  1224. extra_options="${extra_options} pa/pa-hpux1010.opt"
  1225. ;;
  1226. esac
  1227. use_gcc_stdint=provide
  1228. tm_file="${tm_file} hpux-stdint.h"
  1229. tmake_file="t-slibgcc"
  1230. case ${enable_threads} in
  1231. "")
  1232. if test x$have_pthread_h = xyes ; then
  1233. tmake_file="${tmake_file} pa/t-dce-thr"
  1234. fi
  1235. ;;
  1236. yes | dce)
  1237. tmake_file="${tmake_file} pa/t-dce-thr"
  1238. ;;
  1239. esac
  1240. use_collect2=yes
  1241. gas=yes
  1242. if test "x$with_dwarf2" != x; then
  1243. echo "Warning: dwarf2 debug format is not supported for this target, --with-dwarf2 ignored" 1>&2
  1244. dwarf2=no
  1245. fi
  1246. ;;
  1247. hppa*64*-*-hpux11*)
  1248. target_cpu_default="MASK_PA_11|MASK_PA_20"
  1249. if test x$gnu_ld = xyes
  1250. then
  1251. target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
  1252. fi
  1253. tm_file="pa/pa64-start.h ${tm_file} dbxelf.h elfos.h \
  1254. pa/pa64-regs.h pa/pa-hpux.h pa/pa-hpux1010.h \
  1255. pa/pa-hpux11.h"
  1256. case ${target} in
  1257. *-*-hpux11.[12]*)
  1258. tm_file="${tm_file} pa/pa-hpux1111.h pa/pa-64.h pa/pa64-hpux.h"
  1259. extra_options="${extra_options} pa/pa-hpux1111.opt"
  1260. ;;
  1261. *-*-hpux11.[3-9]*)
  1262. tm_file="${tm_file} pa/pa-hpux1131.h pa/pa-64.h pa/pa64-hpux.h"
  1263. extra_options="${extra_options} pa/pa-hpux1131.opt"
  1264. ;;
  1265. *)
  1266. tm_file="${tm_file} pa/pa-64.h pa/pa64-hpux.h"
  1267. ;;
  1268. esac
  1269. extra_options="${extra_options} pa/pa-hpux.opt \
  1270. pa/pa-hpux1010.opt pa/pa64-hpux.opt hpux11.opt"
  1271. tmake_file="t-slibgcc"
  1272. case x${enable_threads} in
  1273. x | xyes | xposix )
  1274. thread_file=posix
  1275. ;;
  1276. esac
  1277. gas=yes
  1278. case ${target} in
  1279. *-*-hpux11.[01]*)
  1280. use_gcc_stdint=provide
  1281. tm_file="${tm_file} hpux-stdint.h"
  1282. ;;
  1283. *-*-hpux11.[23]*)
  1284. use_gcc_stdint=wrap
  1285. tm_file="${tm_file} hpux-stdint.h"
  1286. ;;
  1287. esac
  1288. ;;
  1289. hppa[12]*-*-hpux11*)
  1290. case ${target} in
  1291. hppa1.1-*-* | hppa2*-*-*)
  1292. target_cpu_default="MASK_PA_11"
  1293. ;;
  1294. esac
  1295. tm_file="${tm_file} pa/pa32-regs.h dbxelf.h pa/som.h \
  1296. pa/pa-hpux.h pa/pa-hpux1010.h pa/pa-hpux11.h"
  1297. extra_options="${extra_options} pa/pa-hpux.opt pa/pa-hpux1010.opt \
  1298. hpux11.opt"
  1299. case ${target} in
  1300. *-*-hpux11.[12]*)
  1301. tm_file="${tm_file} pa/pa-hpux1111.h"
  1302. extra_options="${extra_options} pa/pa-hpux1111.opt"
  1303. ;;
  1304. *-*-hpux11.[3-9]*)
  1305. tm_file="${tm_file} pa/pa-hpux1131.h"
  1306. extra_options="${extra_options} pa/pa-hpux1131.opt"
  1307. ;;
  1308. esac
  1309. tmake_file="t-slibgcc"
  1310. case x${enable_threads} in
  1311. x | xyes | xposix )
  1312. thread_file=posix
  1313. ;;
  1314. esac
  1315. use_collect2=yes
  1316. gas=yes
  1317. case ${target} in
  1318. *-*-hpux11.[01]*)
  1319. use_gcc_stdint=provide
  1320. tm_file="${tm_file} hpux-stdint.h"
  1321. ;;
  1322. *-*-hpux11.[23]*)
  1323. use_gcc_stdint=wrap
  1324. tm_file="${tm_file} hpux-stdint.h"
  1325. ;;
  1326. esac
  1327. if test "x$with_dwarf2" != x; then
  1328. echo "Warning: dwarf2 debug format is not supported for this target, --with-dwarf2 ignored" 1>&2
  1329. dwarf2=no
  1330. fi
  1331. ;;
  1332. i[34567]86-*-darwin*)
  1333. need_64bit_isa=yes
  1334. # Baseline choice for a machine that allows m64 support.
  1335. with_cpu=${with_cpu:-core2}
  1336. tmake_file="${tmake_file} t-slibgcc"
  1337. ;;
  1338. x86_64-*-darwin*)
  1339. with_cpu=${with_cpu:-core2}
  1340. tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc"
  1341. tm_file="${tm_file} ${cpu_type}/darwin64.h"
  1342. ;;
  1343. i[34567]86-*-elf*)
  1344. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h"
  1345. ;;
  1346. x86_64-*-elf*)
  1347. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h"
  1348. ;;
  1349. i[34567]86-*-rdos*)
  1350. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/rdos.h"
  1351. ;;
  1352. x86_64-*-rdos*)
  1353. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h i386/rdos.h i386/rdos64.h"
  1354. tmake_file="i386/t-i386elf t-svr4"
  1355. ;;
  1356. i[34567]86-*-dragonfly*)
  1357. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h dragonfly.h dragonfly-stdint.h i386/dragonfly.h"
  1358. tmake_file="${tmake_file} i386/t-crtstuff"
  1359. ;;
  1360. x86_64-*-dragonfly*)
  1361. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h dragonfly.h dragonfly-stdint.h i386/x86-64.h i386/dragonfly.h"
  1362. tmake_file="${tmake_file} i386/t-crtstuff"
  1363. ;;
  1364. i[34567]86-*-freebsd*)
  1365. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
  1366. ;;
  1367. x86_64-*-freebsd*)
  1368. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h"
  1369. ;;
  1370. i[34567]86-*-netbsdelf*)
  1371. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
  1372. extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  1373. ;;
  1374. x86_64-*-netbsd*)
  1375. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h"
  1376. extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  1377. ;;
  1378. i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
  1379. tm_file="i386/i386.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h i386/openbsd.h"
  1380. extra_options="${extra_options} openbsd.opt"
  1381. # needed to unconfuse gdb
  1382. tmake_file="${tmake_file} t-openbsd i386/t-openbsd"
  1383. # we need collect2 until our bug is fixed...
  1384. use_collect2=yes
  1385. ;;
  1386. i[34567]86-*-openbsd*)
  1387. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h"
  1388. tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/openbsdelf.h"
  1389. extra_options="${extra_options} openbsd.opt"
  1390. gas=yes
  1391. gnu_ld=yes
  1392. ;;
  1393. x86_64-*-openbsd*)
  1394. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h"
  1395. tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h i386/x86-64.h i386/openbsdelf.h"
  1396. extra_options="${extra_options} openbsd.opt"
  1397. gas=yes
  1398. gnu_ld=yes
  1399. ;;
  1400. i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu)
  1401. # Intel 80386's running GNU/*
  1402. # with ELF format using glibc 2
  1403. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h"
  1404. case ${target} in
  1405. i[34567]86-*-linux*)
  1406. tm_file="${tm_file} linux.h linux-android.h"
  1407. extra_options="${extra_options} linux-android.opt"
  1408. # Assume modern glibc if not targeting Android nor uclibc.
  1409. case ${target} in
  1410. *-*-*android*|*-*-*uclibc*)
  1411. ;;
  1412. *)
  1413. default_gnu_indirect_function=yes
  1414. ;;
  1415. esac
  1416. if test x$enable_targets = xall; then
  1417. tm_file="${tm_file} i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h i386/linux-common.h i386/linux64.h"
  1418. tm_defines="${tm_defines} TARGET_BI_ARCH=1"
  1419. tmake_file="${tmake_file} i386/t-linux64"
  1420. x86_multilibs="${with_multilib_list}"
  1421. if test "$x86_multilibs" = "default"; then
  1422. x86_multilibs="m64,m32"
  1423. fi
  1424. x86_multilibs=`echo $x86_multilibs | sed -e 's/,/ /g'`
  1425. for x86_multilib in ${x86_multilibs}; do
  1426. case ${x86_multilib} in
  1427. m32 | m64 | mx32)
  1428. TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${x86_multilib}"
  1429. ;;
  1430. *)
  1431. echo "--with-multilib-list=${x86_with_multilib} not supported."
  1432. exit 1
  1433. esac
  1434. done
  1435. TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'`
  1436. need_64bit_isa=yes
  1437. if test x$with_cpu = x; then
  1438. if test x$with_cpu_64 = x; then
  1439. with_cpu_64=generic
  1440. fi
  1441. else
  1442. case " $x86_cpus $x86_archs $x86_64_archs " in
  1443. *" $with_cpu "*)
  1444. ;;
  1445. *)
  1446. echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
  1447. echo "$x86_cpus $x86_archs $x86_64_archs " 1>&2
  1448. exit 1
  1449. ;;
  1450. esac
  1451. fi
  1452. else
  1453. tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h i386/linux-common.h i386/linux.h"
  1454. fi
  1455. ;;
  1456. i[34567]86-*-knetbsd*-gnu)
  1457. tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h knetbsd-gnu.h i386/knetbsd-gnu.h"
  1458. ;;
  1459. i[34567]86-*-kfreebsd*-gnu)
  1460. tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h kfreebsd-gnu.h i386/kfreebsd-gnu.h"
  1461. ;;
  1462. i[34567]86-*-kopensolaris*-gnu)
  1463. tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h kopensolaris-gnu.h i386/kopensolaris-gnu.h"
  1464. ;;
  1465. i[34567]86-*-gnu*)
  1466. tm_file="$tm_file i386/gnu-user-common.h i386/gnu-user.h gnu.h i386/gnu.h"
  1467. ;;
  1468. esac
  1469. ;;
  1470. x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
  1471. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h gnu-user.h glibc-stdint.h \
  1472. i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h"
  1473. case ${target} in
  1474. x86_64-*-linux*)
  1475. tm_file="${tm_file} linux.h linux-android.h i386/linux-common.h i386/linux64.h"
  1476. extra_options="${extra_options} linux-android.opt"
  1477. # Assume modern glibc if not targeting Android nor uclibc.
  1478. case ${target} in
  1479. *-*-*android*|*-*-*uclibc*)
  1480. ;;
  1481. *)
  1482. default_gnu_indirect_function=yes
  1483. ;;
  1484. esac
  1485. ;;
  1486. x86_64-*-kfreebsd*-gnu)
  1487. tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu64.h"
  1488. ;;
  1489. x86_64-*-knetbsd*-gnu)
  1490. tm_file="${tm_file} knetbsd-gnu.h"
  1491. ;;
  1492. esac
  1493. tmake_file="${tmake_file} i386/t-linux64"
  1494. x86_multilibs="${with_multilib_list}"
  1495. if test "$x86_multilibs" = "default"; then
  1496. case ${with_abi} in
  1497. x32 | mx32)
  1498. x86_multilibs="mx32"
  1499. ;;
  1500. *)
  1501. x86_multilibs="m64,m32"
  1502. ;;
  1503. esac
  1504. fi
  1505. x86_multilibs=`echo $x86_multilibs | sed -e 's/,/ /g'`
  1506. for x86_multilib in ${x86_multilibs}; do
  1507. case ${x86_multilib} in
  1508. m32 | m64 | mx32)
  1509. TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG},${x86_multilib}"
  1510. ;;
  1511. *)
  1512. echo "--with-multilib-list=${x86_with_multilib} not supported."
  1513. exit 1
  1514. esac
  1515. done
  1516. TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'`
  1517. ;;
  1518. i[34567]86-pc-msdosdjgpp*)
  1519. xm_file=i386/xm-djgpp.h
  1520. tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h i386/djgpp-stdint.h"
  1521. native_system_header_dir=/dev/env/DJDIR/include
  1522. extra_options="${extra_options} i386/djgpp.opt"
  1523. gnu_ld=yes
  1524. gas=yes
  1525. use_gcc_stdint=wrap
  1526. ;;
  1527. i[34567]86-*-lynxos*)
  1528. xm_defines=POSIX
  1529. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/lynx.h lynx.h"
  1530. tmake_file="${tmake_file} t-lynx"
  1531. extra_options="${extra_options} lynx.opt"
  1532. thread_file=lynx
  1533. gnu_ld=yes
  1534. gas=yes
  1535. ;;
  1536. i[34567]86-*-nto-qnx*)
  1537. tm_file="${tm_file} i386/att.h dbxelf.h tm-dwarf2.h elfos.h i386/unix.h i386/nto.h"
  1538. extra_options="${extra_options} i386/nto.opt"
  1539. gnu_ld=yes
  1540. gas=yes
  1541. ;;
  1542. i[34567]86-*-rtems*)
  1543. tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/rtemself.h rtems.h newlib-stdint.h"
  1544. tmake_file="${tmake_file} i386/t-rtems"
  1545. ;;
  1546. i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
  1547. # Set default arch_32 to pentium4, tune_32 to generic like the other
  1548. # i386 targets, although config.guess defaults to i386-pc-solaris2*.
  1549. with_arch_32=${with_arch_32:-pentium4}
  1550. with_tune_32=${with_tune_32:-generic}
  1551. tm_file="${tm_file} i386/unix.h i386/att.h ${sol2_tm_file_head} i386/x86-64.h ${sol2_tm_file_tail}"
  1552. tm_defines="${tm_defines} TARGET_BI_ARCH=1"
  1553. tmake_file="$tmake_file i386/t-sol2"
  1554. need_64bit_isa=yes
  1555. if test x$with_cpu = x; then
  1556. if test x$with_cpu_64 = x; then
  1557. with_cpu_64=generic
  1558. fi
  1559. else
  1560. case " $x86_cpus $x86_archs $x86_64_archs " in
  1561. *" $with_cpu "*)
  1562. ;;
  1563. *)
  1564. echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
  1565. echo "$x86_cpus $x86_archs $x86_64_archs" 1>&2
  1566. exit 1
  1567. ;;
  1568. esac
  1569. fi
  1570. ;;
  1571. i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
  1572. tm_file="${tm_file} i386/unix.h i386/att.h elfos.h vx-common.h"
  1573. case ${target} in
  1574. *-vxworksae*)
  1575. tm_file="${tm_file} vxworksae.h i386/vxworks.h i386/vxworksae.h"
  1576. tmake_file="${tmake_file} i386/t-vxworks i386/t-vxworksae"
  1577. ;;
  1578. *)
  1579. tm_file="${tm_file} vxworks.h i386/vxworks.h"
  1580. tmake_file="${tmake_file} i386/t-vxworks"
  1581. ;;
  1582. esac
  1583. ;;
  1584. i[34567]86-*-cygwin*)
  1585. tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h i386/cygwin-stdint.h"
  1586. xm_file=i386/xm-cygwin.h
  1587. tmake_file="${tmake_file} i386/t-cygming t-slibgcc"
  1588. target_gtfiles="\$(srcdir)/config/i386/winnt.c"
  1589. extra_options="${extra_options} i386/cygming.opt i386/cygwin.opt"
  1590. extra_objs="winnt.o winnt-stubs.o"
  1591. c_target_objs="${c_target_objs} msformat-c.o"
  1592. cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
  1593. if test x$enable_threads = xyes; then
  1594. thread_file='posix'
  1595. fi
  1596. default_use_cxa_atexit=yes
  1597. use_gcc_stdint=wrap
  1598. ;;
  1599. x86_64-*-cygwin*)
  1600. need_64bit_isa=yes
  1601. tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/cygwin.h i386/cygwin-w64.h i386/cygwin-stdint.h"
  1602. xm_file=i386/xm-cygwin.h
  1603. tmake_file="${tmake_file} i386/t-cygming t-slibgcc i386/t-cygwin-w64"
  1604. target_gtfiles="\$(srcdir)/config/i386/winnt.c"
  1605. extra_options="${extra_options} i386/cygming.opt i386/cygwin.opt"
  1606. extra_objs="winnt.o winnt-stubs.o"
  1607. c_target_objs="${c_target_objs} msformat-c.o"
  1608. cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
  1609. if test x$enable_threads = xyes; then
  1610. thread_file='posix'
  1611. fi
  1612. default_use_cxa_atexit=yes
  1613. use_gcc_stdint=wrap
  1614. tm_defines="${tm_defines} TARGET_CYGWIN64=1"
  1615. ;;
  1616. x86_64-w64-minwin64*)
  1617. tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h"
  1618. tm_file="${tm_file} i386/minwin64.h i386/mingw-stdint.h"
  1619. xm_file=i386/xm-mingw32.h
  1620. extra_objs="winnt.o winnt-stubs.o"
  1621. c_target_objs="${c_target_objs} winnt-c.o"
  1622. target_has_targetcm="yes"
  1623. user_headers_inc_next_post="${user_headers_inc_next_post} float.h"
  1624. user_headers_inc_next_pre="${user_headers_inc_next_pre} stddef.h stdarg.h"
  1625. tmake_file="${tmake_file} t-winnt i386/t-cygming t-slibgcc"
  1626. tmake_file="${tmake_file} i386/t-mingw-w64"
  1627. target_gtfiles="\$(srcdir)/config/i386/winnt.c"
  1628. extra_options="${extra_options} i386/cygming.opt"
  1629. need_64bit_isa=yes
  1630. native_system_header_dir=""
  1631. gas=yes
  1632. gnu_ld=yes
  1633. use_gcc_stdint=wrap
  1634. ;;
  1635. i[34567]86-*-mingw* | x86_64-*-mingw*)
  1636. tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h"
  1637. xm_file=i386/xm-mingw32.h
  1638. c_target_objs="${c_target_objs} winnt-c.o"
  1639. cxx_target_objs="${cxx_target_objs} winnt-c.o"
  1640. target_has_targetcm="yes"
  1641. case ${target} in
  1642. x86_64-*-* | *-w64-*)
  1643. need_64bit_isa=yes
  1644. ;;
  1645. *)
  1646. ;;
  1647. esac
  1648. if test x$enable_threads = xposix ; then
  1649. tm_file="${tm_file} i386/mingw-pthread.h"
  1650. fi
  1651. tm_file="${tm_file} i386/mingw32.h"
  1652. # This makes the logic if mingw's or the w64 feature set has to be used
  1653. case ${target} in
  1654. *-w64-*)
  1655. user_headers_inc_next_post="${user_headers_inc_next_post} float.h"
  1656. user_headers_inc_next_pre="${user_headers_inc_next_pre} stddef.h stdarg.h"
  1657. tm_file="${tm_file} i386/mingw-w64.h"
  1658. if test x$enable_targets = xall; then
  1659. tm_defines="${tm_defines} TARGET_BI_ARCH=1"
  1660. if test x$with_cpu = x; then
  1661. if test x$with_cpu_64 = x; then
  1662. with_cpu_64=generic
  1663. fi
  1664. else
  1665. case " $x86_cpus $x86_archs $x86_64_archs " in
  1666. *" $with_cpu "*)
  1667. ;;
  1668. *)
  1669. echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
  1670. echo "$x86_cpus $x86_archs $x86_64_archs" 1>&2
  1671. exit 1
  1672. ;;
  1673. esac
  1674. fi
  1675. fi
  1676. ;;
  1677. *)
  1678. ;;
  1679. esac
  1680. tm_file="${tm_file} i386/mingw-stdint.h"
  1681. tmake_file="${tmake_file} t-winnt i386/t-cygming t-slibgcc"
  1682. case ${target} in
  1683. x86_64-w64-*)
  1684. tmake_file="${tmake_file} i386/t-mingw-w64"
  1685. ;;
  1686. i[34567]86-w64-*)
  1687. tmake_file="${tmake_file} i386/t-mingw-w32"
  1688. ;;
  1689. esac
  1690. native_system_header_dir=/mingw/include
  1691. target_gtfiles="\$(srcdir)/config/i386/winnt.c"
  1692. extra_options="${extra_options} i386/cygming.opt i386/mingw.opt"
  1693. case ${target} in
  1694. *-w64-*)
  1695. extra_options="${extra_options} i386/mingw-w64.opt"
  1696. ;;
  1697. *)
  1698. ;;
  1699. esac
  1700. extra_objs="winnt.o winnt-stubs.o"
  1701. c_target_objs="${c_target_objs} msformat-c.o"
  1702. cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
  1703. gas=yes
  1704. gnu_ld=yes
  1705. default_use_cxa_atexit=yes
  1706. use_gcc_stdint=wrap
  1707. case ${enable_threads} in
  1708. "" | yes | win32)
  1709. thread_file='win32'
  1710. ;;
  1711. posix)
  1712. thread_file='posix'
  1713. ;;
  1714. esac
  1715. case ${target} in
  1716. *mingw32crt*)
  1717. tm_file="${tm_file} i386/crtdll.h"
  1718. ;;
  1719. *mingw32msv* | *mingw*)
  1720. ;;
  1721. esac
  1722. ;;
  1723. i[34567]86-*-interix[3-9]*)
  1724. tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h"
  1725. tmake_file="${tmake_file} i386/t-interix"
  1726. extra_options="${extra_options} rpath.opt i386/interix.opt"
  1727. extra_objs="winnt.o winnt-stubs.o"
  1728. target_gtfiles="\$(srcdir)/config/i386/winnt.c"
  1729. if test x$enable_threads = xyes ; then
  1730. thread_file='posix'
  1731. fi
  1732. if test x$stabs = xyes ; then
  1733. tm_file="${tm_file} dbxcoff.h"
  1734. fi
  1735. ;;
  1736. ia64*-*-elf*)
  1737. tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h ia64/sysv4.h ia64/elf.h"
  1738. tmake_file="ia64/t-ia64"
  1739. target_cpu_default="0"
  1740. if test x$gas = xyes
  1741. then
  1742. target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
  1743. fi
  1744. if test x$gnu_ld = xyes
  1745. then
  1746. target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
  1747. fi
  1748. ;;
  1749. ia64*-*-freebsd*)
  1750. tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} ia64/sysv4.h ia64/freebsd.h"
  1751. target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
  1752. tmake_file="${tmake_file} ia64/t-ia64"
  1753. ;;
  1754. ia64*-*-linux*)
  1755. tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ia64/sysv4.h ia64/linux.h"
  1756. tmake_file="${tmake_file} ia64/t-ia64 ia64/t-linux t-libunwind"
  1757. target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
  1758. ;;
  1759. ia64*-*-hpux*)
  1760. tm_file="${tm_file} dbxelf.h elfos.h ia64/sysv4.h ia64/hpux.h"
  1761. tmake_file="ia64/t-ia64 ia64/t-hpux t-slibgcc"
  1762. target_cpu_default="MASK_GNU_AS"
  1763. case x$enable_threads in
  1764. x | xyes | xposix )
  1765. thread_file=posix
  1766. ;;
  1767. esac
  1768. use_collect2=no
  1769. c_target_objs="ia64-c.o"
  1770. cxx_target_objs="ia64-c.o"
  1771. extra_options="${extra_options} ia64/ilp32.opt hpux11.opt"
  1772. use_gcc_stdint=wrap
  1773. tm_file="${tm_file} hpux-stdint.h"
  1774. case ${target} in
  1775. *-*-hpux11.3*)
  1776. tm_file="${tm_file} ia64/hpux-unix2003.h"
  1777. ;;
  1778. esac
  1779. ;;
  1780. ia64-hp-*vms*)
  1781. tm_file="${tm_file} elfos.h ia64/sysv4.h vms/vms.h ia64/vms.h"
  1782. tmake_file="${tmake_file} ia64/t-ia64"
  1783. target_cpu_default="0"
  1784. if test x$gas = xyes
  1785. then
  1786. target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
  1787. fi
  1788. extra_options="${extra_options} ia64/vms.opt"
  1789. ;;
  1790. iq2000*-*-elf*)
  1791. tm_file="elfos.h newlib-stdint.h iq2000/iq2000.h"
  1792. out_file=iq2000/iq2000.c
  1793. md_file=iq2000/iq2000.md
  1794. ;;
  1795. lm32-*-elf*)
  1796. tm_file="dbxelf.h elfos.h ${tm_file}"
  1797. tmake_file="${tmake_file} lm32/t-lm32"
  1798. ;;
  1799. lm32-*-rtems*)
  1800. tm_file="dbxelf.h elfos.h ${tm_file} lm32/rtems.h rtems.h newlib-stdint.h"
  1801. tmake_file="${tmake_file} lm32/t-lm32"
  1802. tmake_file="${tmake_file} lm32/t-rtems"
  1803. ;;
  1804. lm32-*-uclinux*)
  1805. tm_file="dbxelf.h elfos.h ${tm_file} gnu-user.h linux.h lm32/uclinux-elf.h"
  1806. tmake_file="${tmake_file} lm32/t-lm32"
  1807. ;;
  1808. m32r-*-elf*)
  1809. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  1810. ;;
  1811. m32rle-*-elf*)
  1812. tm_file="dbxelf.h elfos.h newlib-stdint.h m32r/little.h ${tm_file}"
  1813. ;;
  1814. m32r-*-rtems*)
  1815. tm_file="dbxelf.h elfos.h ${tm_file} m32r/rtems.h rtems.h newlib-stdint.h"
  1816. tmake_file="${tmake_file} m32r/t-m32r"
  1817. ;;
  1818. m32r-*-linux*)
  1819. tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} m32r/linux.h"
  1820. tmake_file="${tmake_file} m32r/t-linux t-slibgcc"
  1821. gnu_ld=yes
  1822. if test x$enable_threads = xyes; then
  1823. thread_file='posix'
  1824. fi
  1825. ;;
  1826. m32rle-*-linux*)
  1827. tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h m32r/little.h ${tm_file} m32r/linux.h"
  1828. tmake_file="${tmake_file} m32r/t-linux t-slibgcc"
  1829. gnu_ld=yes
  1830. if test x$enable_threads = xyes; then
  1831. thread_file='posix'
  1832. fi
  1833. ;;
  1834. m68k-*-elf* | fido-*-elf*)
  1835. case ${target} in
  1836. fido-*-elf*)
  1837. # Check that $with_cpu makes sense.
  1838. case $with_cpu in
  1839. "" | "fidoa")
  1840. ;;
  1841. *)
  1842. echo "Cannot accept --with-cpu=$with_cpu"
  1843. exit 1
  1844. ;;
  1845. esac
  1846. with_cpu=fidoa
  1847. ;;
  1848. *)
  1849. default_m68k_cpu=68020
  1850. default_cf_cpu=5206
  1851. ;;
  1852. esac
  1853. tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h newlib-stdint.h m68k/m68kemb.h m68k/m68020-elf.h"
  1854. tm_defines="${tm_defines} MOTOROLA=1"
  1855. tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-m68kelf"
  1856. # Add multilibs for targets other than fido.
  1857. case ${target} in
  1858. fido-*-elf*)
  1859. ;;
  1860. *)
  1861. tmake_file="$tmake_file m68k/t-mlibs"
  1862. ;;
  1863. esac
  1864. ;;
  1865. m68k*-*-netbsdelf*)
  1866. default_m68k_cpu=68020
  1867. default_cf_cpu=5475
  1868. tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h m68k/netbsd-elf.h"
  1869. extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  1870. tm_defines="${tm_defines} MOTOROLA=1"
  1871. ;;
  1872. m68k*-*-openbsd*)
  1873. default_m68k_cpu=68020
  1874. default_cf_cpu=5475
  1875. # needed to unconfuse gdb
  1876. tm_defines="${tm_defines} OBSD_OLD_GAS"
  1877. tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h m68k/openbsd.h"
  1878. extra_options="${extra_options} openbsd.opt"
  1879. tmake_file="t-openbsd m68k/t-openbsd"
  1880. # we need collect2 until our bug is fixed...
  1881. use_collect2=yes
  1882. ;;
  1883. m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux
  1884. # with uClibc, using the new GNU/Linux-style
  1885. # ABI.
  1886. default_m68k_cpu=68020
  1887. default_cf_cpu=5206
  1888. tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h flat.h m68k/linux.h m68k/uclinux.h ./sysroot-suffix.h"
  1889. extra_options="${extra_options} m68k/uclinux.opt"
  1890. tm_defines="${tm_defines} MOTOROLA=1"
  1891. tmake_file="m68k/t-floatlib m68k/t-uclinux m68k/t-mlibs"
  1892. ;;
  1893. m68k-*-linux*) # Motorola m68k's running GNU/Linux
  1894. # with ELF format using glibc 2
  1895. # aka the GNU/Linux C library 6.
  1896. default_m68k_cpu=68020
  1897. default_cf_cpu=5475
  1898. with_arch=${with_arch:-m68k}
  1899. tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h m68k/linux.h ./sysroot-suffix.h"
  1900. extra_options="${extra_options} m68k/ieee.opt"
  1901. tm_defines="${tm_defines} MOTOROLA=1"
  1902. tmake_file="${tmake_file} m68k/t-floatlib m68k/t-linux m68k/t-mlibs"
  1903. ;;
  1904. m68k-*-rtems*)
  1905. default_m68k_cpu=68020
  1906. default_cf_cpu=5206
  1907. tmake_file="${tmake_file} m68k/t-floatlib m68k/t-m68kbare m68k/t-crtstuff m68k/t-rtems m68k/t-mlibs"
  1908. tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h m68k/rtemself.h rtems.h newlib-stdint.h"
  1909. tm_defines="${tm_defines} MOTOROLA=1"
  1910. ;;
  1911. mcore-*-elf)
  1912. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file} mcore/mcore-elf.h"
  1913. tmake_file=mcore/t-mcore
  1914. inhibit_libc=true
  1915. ;;
  1916. mep-*-*)
  1917. tm_file="dbxelf.h elfos.h ${tm_file}"
  1918. tmake_file=mep/t-mep
  1919. c_target_objs="mep-pragma.o"
  1920. cxx_target_objs="mep-pragma.o"
  1921. if test -d "${srcdir}/../newlib/libc/include" &&
  1922. test "x$with_headers" = x; then
  1923. with_headers=yes
  1924. fi
  1925. use_gcc_stdint=wrap
  1926. ;;
  1927. microblaze*-linux*)
  1928. case $target in
  1929. microblazeel-*)
  1930. tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=0"
  1931. ;;
  1932. microblaze-*)
  1933. tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=4321"
  1934. ;;
  1935. esac
  1936. tm_file="${tm_file} dbxelf.h gnu-user.h linux.h microblaze/linux.h"
  1937. tm_file="${tm_file} glibc-stdint.h"
  1938. c_target_objs="${c_target_objs} microblaze-c.o"
  1939. cxx_target_objs="${cxx_target_objs} microblaze-c.o"
  1940. tmake_file="${tmake_file} microblaze/t-microblaze"
  1941. tmake_file="${tmake_file} microblaze/t-microblaze-linux"
  1942. ;;
  1943. microblaze*-*-rtems*)
  1944. case $target in
  1945. microblazeel-*)
  1946. tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=0"
  1947. ;;
  1948. microblaze-*)
  1949. tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=4321"
  1950. ;;
  1951. esac
  1952. tm_file="${tm_file} dbxelf.h"
  1953. tm_file="${tm_file} microblaze/rtems.h rtems.h newlib-stdint.h"
  1954. c_target_objs="${c_target_objs} microblaze-c.o"
  1955. cxx_target_objs="${cxx_target_objs} microblaze-c.o"
  1956. tmake_file="${tmake_file} microblaze/t-microblaze"
  1957. tmake_file="${tmake_file} microblaze/t-rtems"
  1958. ;;
  1959. microblaze*-*-elf)
  1960. case $target in
  1961. microblazeel-*)
  1962. tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=0"
  1963. ;;
  1964. microblaze-*)
  1965. tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=4321"
  1966. ;;
  1967. esac
  1968. tm_file="${tm_file} dbxelf.h newlib-stdint.h"
  1969. c_target_objs="${c_target_objs} microblaze-c.o"
  1970. cxx_target_objs="${cxx_target_objs} microblaze-c.o"
  1971. tmake_file="${tmake_file} microblaze/t-microblaze"
  1972. ;;
  1973. mips*-*-netbsd*) # NetBSD/mips, either endian.
  1974. target_cpu_default="MASK_ABICALLS"
  1975. tm_file="elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h"
  1976. extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  1977. ;;
  1978. mips*-img-linux*)
  1979. tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h mips/linux-common.h mips/mti-linux.h"
  1980. extra_options="${extra_options} linux-android.opt"
  1981. tmake_file="${tmake_file} mips/t-img-linux"
  1982. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=37 MIPS_ABI_DEFAULT=ABI_32"
  1983. gnu_ld=yes
  1984. gas=yes
  1985. ;;
  1986. mips*-mti-linux*)
  1987. tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h mips/linux-common.h mips/mti-linux.h"
  1988. extra_options="${extra_options} linux-android.opt"
  1989. tmake_file="${tmake_file} mips/t-mti-linux"
  1990. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32"
  1991. gnu_ld=yes
  1992. gas=yes
  1993. ;;
  1994. mips*-*-linux*) # Linux MIPS, either endian.
  1995. tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h mips/linux-common.h"
  1996. extra_options="${extra_options} linux-android.opt"
  1997. case ${target} in
  1998. mipsisa32r6*)
  1999. default_mips_arch=mips32r6
  2000. ;;
  2001. mipsisa32r2*)
  2002. default_mips_arch=mips32r2
  2003. ;;
  2004. mipsisa32*)
  2005. default_mips_arch=mips32
  2006. ;;
  2007. mips64el-st-linux-gnu)
  2008. default_mips_abi=n32
  2009. tm_file="${tm_file} mips/st.h"
  2010. tmake_file="${tmake_file} mips/t-st"
  2011. enable_mips_multilibs="yes"
  2012. ;;
  2013. mips64octeon*-*-linux*)
  2014. default_mips_abi=n32
  2015. tm_defines="${tm_defines} MIPS_CPU_STRING_DEFAULT=\\\"octeon\\\""
  2016. target_cpu_default=MASK_SOFT_FLOAT_ABI
  2017. enable_mips_multilibs="yes"
  2018. ;;
  2019. mipsisa64r6*-*-linux*)
  2020. default_mips_abi=n32
  2021. default_mips_arch=mips64r6
  2022. enable_mips_multilibs="yes"
  2023. ;;
  2024. mipsisa64r2*-*-linux*)
  2025. default_mips_abi=n32
  2026. default_mips_arch=mips64r2
  2027. enable_mips_multilibs="yes"
  2028. ;;
  2029. mips64*-*-linux* | mipsisa64*-*-linux*)
  2030. default_mips_abi=n32
  2031. enable_mips_multilibs="yes"
  2032. ;;
  2033. esac
  2034. if test x$enable_targets = xall; then
  2035. enable_mips_multilibs="yes"
  2036. fi
  2037. if test x$enable_mips_multilibs = xyes; then
  2038. tmake_file="${tmake_file} mips/t-linux64"
  2039. fi
  2040. ;;
  2041. mips*-mti-elf*)
  2042. tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/n32-elf.h mips/sde.h mips/mti-elf.h"
  2043. tmake_file="mips/t-mti-elf"
  2044. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32"
  2045. ;;
  2046. mips*-img-elf*)
  2047. tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/n32-elf.h mips/sde.h mips/mti-elf.h"
  2048. tmake_file="mips/t-img-elf"
  2049. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=37 MIPS_ABI_DEFAULT=ABI_32"
  2050. ;;
  2051. mips*-sde-elf*)
  2052. tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/n32-elf.h mips/sde.h"
  2053. tmake_file="mips/t-sde"
  2054. extra_options="${extra_options} mips/sde.opt"
  2055. case "${with_newlib}" in
  2056. yes)
  2057. # newlib / libgloss.
  2058. ;;
  2059. *)
  2060. # MIPS toolkit libraries.
  2061. tm_file="$tm_file mips/sdemtk.h"
  2062. tmake_file="$tmake_file mips/t-sdemtk"
  2063. case ${enable_threads} in
  2064. "" | yes | mipssde)
  2065. thread_file='mipssde'
  2066. ;;
  2067. esac
  2068. ;;
  2069. esac
  2070. case ${target} in
  2071. mipsisa32r6*)
  2072. tm_defines="MIPS_ISA_DEFAULT=37 MIPS_ABI_DEFAULT=ABI_32"
  2073. ;;
  2074. mipsisa32r2*)
  2075. tm_defines="MIPS_ISA_DEFAULT=33 MIPS_ABI_DEFAULT=ABI_32"
  2076. ;;
  2077. mipsisa32*)
  2078. tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_32"
  2079. ;;
  2080. mipsisa64r6*)
  2081. tm_defines="MIPS_ISA_DEFAULT=69 MIPS_ABI_DEFAULT=ABI_N32"
  2082. ;;
  2083. mipsisa64r2*)
  2084. tm_defines="MIPS_ISA_DEFAULT=65 MIPS_ABI_DEFAULT=ABI_N32"
  2085. ;;
  2086. mipsisa64*)
  2087. tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_N32"
  2088. ;;
  2089. esac
  2090. ;;
  2091. mipsisa32-*-elf* | mipsisa32el-*-elf* | \
  2092. mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
  2093. mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
  2094. mipsisa64-*-elf* | mipsisa64el-*-elf* | \
  2095. mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
  2096. mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
  2097. tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
  2098. tmake_file="mips/t-isa3264"
  2099. case ${target} in
  2100. mipsisa32r6*)
  2101. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=37"
  2102. ;;
  2103. mipsisa32r2*)
  2104. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33"
  2105. ;;
  2106. mipsisa32*)
  2107. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=32"
  2108. ;;
  2109. mipsisa64r6*)
  2110. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=69"
  2111. ;;
  2112. mipsisa64r2*)
  2113. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65"
  2114. ;;
  2115. mipsisa64*)
  2116. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64"
  2117. ;;
  2118. esac
  2119. case ${target} in
  2120. mipsisa32*-*-elfoabi*)
  2121. tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_32"
  2122. tm_file="${tm_file} mips/elfoabi.h"
  2123. ;;
  2124. mipsisa64*-*-elfoabi*)
  2125. tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_O64"
  2126. tm_file="${tm_file} mips/elfoabi.h"
  2127. ;;
  2128. *-*-elf*)
  2129. tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI"
  2130. ;;
  2131. esac
  2132. ;;
  2133. mipsisa64sr71k-*-elf*)
  2134. tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
  2135. tmake_file=mips/t-sr71k
  2136. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI"
  2137. ;;
  2138. mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
  2139. tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
  2140. tmake_file="mips/t-elf mips/t-sb1"
  2141. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64"
  2142. ;;
  2143. mips-*-elf* | mipsel-*-elf* | mipsr5900-*-elf* | mipsr5900el-*-elf*)
  2144. tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
  2145. tmake_file="mips/t-elf"
  2146. ;;
  2147. mips64r5900-*-elf* | mips64r5900el-*-elf*)
  2148. tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/n32-elf.h"
  2149. tmake_file="mips/t-elf"
  2150. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
  2151. ;;
  2152. mips64-*-elf* | mips64el-*-elf*)
  2153. tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h"
  2154. tmake_file="mips/t-elf"
  2155. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
  2156. ;;
  2157. mips64vr-*-elf* | mips64vrel-*-elf*)
  2158. tm_file="elfos.h newlib-stdint.h ${tm_file} mips/vr.h mips/elf.h"
  2159. tmake_file=mips/t-vr
  2160. tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_EABI"
  2161. ;;
  2162. mips64orion-*-elf* | mips64orionel-*-elf*)
  2163. tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elforion.h mips/elf.h"
  2164. tmake_file="mips/t-elf"
  2165. tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
  2166. ;;
  2167. mips*-*-rtems*)
  2168. tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h mips/rtems.h rtems.h"
  2169. tmake_file="${tmake_file} mips/t-elf mips/t-rtems"
  2170. ;;
  2171. mips-wrs-vxworks)
  2172. tm_file="elfos.h ${tm_file} mips/elf.h vx-common.h vxworks.h mips/vxworks.h"
  2173. tmake_file="${tmake_file} mips/t-vxworks"
  2174. ;;
  2175. mipstx39-*-elf* | mipstx39el-*-elf*)
  2176. tm_file="elfos.h newlib-stdint.h ${tm_file} mips/r3900.h mips/elf.h"
  2177. tmake_file="mips/t-r3900"
  2178. ;;
  2179. mmix-knuth-mmixware)
  2180. tm_file="${tm_file} newlib-stdint.h"
  2181. use_gcc_stdint=wrap
  2182. ;;
  2183. mn10300-*-*)
  2184. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  2185. if test x$stabs = xyes
  2186. then
  2187. tm_file="${tm_file} dbx.h"
  2188. fi
  2189. use_collect2=no
  2190. use_gcc_stdint=wrap
  2191. ;;
  2192. msp430*-*-*)
  2193. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  2194. c_target_objs="msp430-c.o"
  2195. cxx_target_objs="msp430-c.o"
  2196. tmake_file="${tmake_file} msp430/t-msp430"
  2197. ;;
  2198. nds32le-*-*)
  2199. target_cpu_default="0"
  2200. tm_defines="${tm_defines}"
  2201. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  2202. tmake_file="nds32/t-nds32 nds32/t-mlibs"
  2203. ;;
  2204. nds32be-*-*)
  2205. target_cpu_default="0|MASK_BIG_ENDIAN"
  2206. tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
  2207. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  2208. tmake_file="nds32/t-nds32 nds32/t-mlibs"
  2209. ;;
  2210. nios2-*-*)
  2211. tm_file="elfos.h ${tm_file}"
  2212. tmake_file="${tmake_file} nios2/t-nios2"
  2213. case ${target} in
  2214. nios2-*-linux*)
  2215. tm_file="${tm_file} gnu-user.h linux.h glibc-stdint.h nios2/linux.h "
  2216. ;;
  2217. nios2-*-elf*)
  2218. tm_file="${tm_file} newlib-stdint.h nios2/elf.h"
  2219. extra_options="${extra_options} nios2/elf.opt"
  2220. ;;
  2221. nios2-*-rtems*)
  2222. tm_file="${tm_file} newlib-stdint.h nios2/rtems.h rtems.h"
  2223. tmake_file="${tmake_file} t-rtems nios2/t-rtems"
  2224. ;;
  2225. esac
  2226. ;;
  2227. nvptx-*)
  2228. tm_file="${tm_file} newlib-stdint.h"
  2229. tmake_file="nvptx/t-nvptx"
  2230. if test x$enable_as_accelerator = xyes; then
  2231. extra_programs="${extra_programs} mkoffload\$(exeext)"
  2232. tm_file="${tm_file} nvptx/offload.h"
  2233. fi
  2234. ;;
  2235. pdp11-*-*)
  2236. tm_file="${tm_file} newlib-stdint.h"
  2237. use_gcc_stdint=wrap
  2238. ;;
  2239. # port not yet contributed
  2240. #powerpc-*-openbsd*)
  2241. # tmake_file="${tmake_file} rs6000/t-fprules"
  2242. # extra_headers=
  2243. # ;;
  2244. powerpc-*-darwin*)
  2245. extra_options="${extra_options} rs6000/darwin.opt"
  2246. case ${target} in
  2247. *-darwin1[0-9]* | *-darwin[8-9]*)
  2248. tmake_file="${tmake_file} rs6000/t-darwin8"
  2249. tm_file="${tm_file} rs6000/darwin8.h"
  2250. ;;
  2251. *-darwin7*)
  2252. tm_file="${tm_file} rs6000/darwin7.h"
  2253. ;;
  2254. *-darwin[0-6]*)
  2255. ;;
  2256. esac
  2257. tmake_file="${tmake_file} t-slibgcc"
  2258. extra_headers=altivec.h
  2259. ;;
  2260. powerpc64-*-darwin*)
  2261. extra_options="${extra_options} ${cpu_type}/darwin.opt"
  2262. tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc"
  2263. tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h"
  2264. extra_headers=altivec.h
  2265. ;;
  2266. powerpc*-*-freebsd*)
  2267. tm_file="${tm_file} dbxelf.h elfos.h ${fbsd_tm_file} rs6000/sysv4.h"
  2268. extra_options="${extra_options} rs6000/sysv4.opt"
  2269. tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
  2270. case ${target} in
  2271. powerpc64*)
  2272. tm_file="${tm_file} rs6000/default64.h rs6000/freebsd64.h"
  2273. tmake_file="${tmake_file} rs6000/t-freebsd64"
  2274. extra_options="${extra_options} rs6000/linux64.opt"
  2275. ;;
  2276. *)
  2277. tm_file="${tm_file} rs6000/freebsd.h"
  2278. ;;
  2279. esac
  2280. ;;
  2281. powerpc-*-netbsd*)
  2282. tm_file="${tm_file} dbxelf.h elfos.h netbsd.h netbsd-elf.h freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
  2283. extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  2284. tmake_file="${tmake_file} rs6000/t-netbsd"
  2285. extra_options="${extra_options} rs6000/sysv4.opt"
  2286. ;;
  2287. powerpc-*-eabispe*)
  2288. tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabispe.h"
  2289. extra_options="${extra_options} rs6000/sysv4.opt"
  2290. tmake_file="rs6000/t-spe rs6000/t-ppccomm"
  2291. use_gcc_stdint=wrap
  2292. ;;
  2293. powerpc-*-eabisimaltivec*)
  2294. tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h rs6000/eabialtivec.h"
  2295. extra_options="${extra_options} rs6000/sysv4.opt"
  2296. tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
  2297. use_gcc_stdint=wrap
  2298. ;;
  2299. powerpc-*-eabisim*)
  2300. tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h"
  2301. extra_options="${extra_options} rs6000/sysv4.opt"
  2302. tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
  2303. use_gcc_stdint=wrap
  2304. ;;
  2305. powerpc-*-elf*)
  2306. tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h"
  2307. extra_options="${extra_options} rs6000/sysv4.opt"
  2308. tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
  2309. ;;
  2310. powerpc-*-eabialtivec*)
  2311. tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/eabialtivec.h"
  2312. extra_options="${extra_options} rs6000/sysv4.opt"
  2313. tmake_file="rs6000/t-fprules rs6000/t-ppcendian rs6000/t-ppccomm"
  2314. use_gcc_stdint=wrap
  2315. ;;
  2316. powerpc-xilinx-eabi*)
  2317. tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/singlefp.h rs6000/xfpu.h rs6000/xilinx.h"
  2318. extra_options="${extra_options} rs6000/sysv4.opt rs6000/xilinx.opt"
  2319. tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm rs6000/t-xilinx"
  2320. use_gcc_stdint=wrap
  2321. ;;
  2322. powerpc-*-eabi*)
  2323. tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h"
  2324. extra_options="${extra_options} rs6000/sysv4.opt"
  2325. tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
  2326. use_gcc_stdint=wrap
  2327. ;;
  2328. powerpc-*-rtems*)
  2329. tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/eabi.h rs6000/e500.h rs6000/rtems.h rtems.h"
  2330. extra_options="${extra_options} rs6000/sysv4.opt"
  2331. tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-rtems rs6000/t-ppccomm"
  2332. ;;
  2333. powerpc*-*-linux*)
  2334. tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h freebsd-spec.h rs6000/sysv4.h"
  2335. extra_options="${extra_options} rs6000/sysv4.opt"
  2336. tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm"
  2337. extra_objs="$extra_objs rs6000-linux.o"
  2338. case ${target} in
  2339. powerpc*le-*-*)
  2340. tm_file="${tm_file} rs6000/sysv4le.h" ;;
  2341. esac
  2342. case ${target}:${with_cpu} in
  2343. powerpc64*: | powerpc64*:native) cpu_is_64bit=yes ;;
  2344. esac
  2345. maybe_biarch=${cpu_is_64bit}
  2346. case ${enable_targets} in
  2347. *powerpc64*) maybe_biarch=yes ;;
  2348. all) maybe_biarch=yes ;;
  2349. esac
  2350. case ${target} in
  2351. powerpc64*-*-linux*spe* | powerpc64*-*-linux*paired*)
  2352. echo "*** Configuration ${target} not supported" 1>&2
  2353. exit 1
  2354. ;;
  2355. powerpc*-*-linux*spe* | powerpc*-*-linux*paired*)
  2356. maybe_biarch=
  2357. ;;
  2358. esac
  2359. case ${target}:${enable_targets}:${maybe_biarch} in
  2360. powerpc64-* | powerpc-*:*:yes | *:*powerpc64-*:yes | *:all:yes \
  2361. | powerpc64le*:*powerpcle* | powerpc64le*:*powerpc-* \
  2362. | powerpcle-*:*powerpc64le*:yes)
  2363. if test x$cpu_is_64bit = xyes; then
  2364. tm_file="${tm_file} rs6000/default64.h"
  2365. fi
  2366. tm_file="rs6000/biarch64.h ${tm_file} rs6000/linux64.h glibc-stdint.h"
  2367. tmake_file="$tmake_file rs6000/t-linux64"
  2368. case ${target} in
  2369. powerpc*le-*-*)
  2370. tmake_file="$tmake_file rs6000/t-linux64le"
  2371. case ${enable_targets} in
  2372. all | *powerpc64-* | *powerpc-*)
  2373. tmake_file="$tmake_file rs6000/t-linux64lebe" ;;
  2374. esac ;;
  2375. *)
  2376. case ${enable_targets} in
  2377. all | *powerpc64le-* | *powerpcle-*)
  2378. tmake_file="$tmake_file rs6000/t-linux64bele" ;;
  2379. esac ;;
  2380. esac
  2381. extra_options="${extra_options} rs6000/linux64.opt"
  2382. ;;
  2383. powerpc64*)
  2384. tm_file="${tm_file} rs6000/default64.h rs6000/linux64.h glibc-stdint.h"
  2385. extra_options="${extra_options} rs6000/linux64.opt"
  2386. tmake_file="${tmake_file} rs6000/t-linux"
  2387. ;;
  2388. *)
  2389. tm_file="${tm_file} rs6000/linux.h glibc-stdint.h"
  2390. tmake_file="${tmake_file} rs6000/t-ppcos rs6000/t-linux"
  2391. ;;
  2392. esac
  2393. case ${target} in
  2394. powerpc*-*-linux*ppc476*)
  2395. tm_file="${tm_file} rs6000/476.h"
  2396. extra_options="${extra_options} rs6000/476.opt" ;;
  2397. powerpc*-*-linux*altivec*)
  2398. tm_file="${tm_file} rs6000/linuxaltivec.h" ;;
  2399. powerpc*-*-linux*spe*)
  2400. tm_file="${tm_file} rs6000/linuxspe.h rs6000/e500.h" ;;
  2401. powerpc*-*-linux*paired*)
  2402. tm_file="${tm_file} rs6000/750cl.h" ;;
  2403. esac
  2404. if test x${enable_secureplt} = xyes; then
  2405. tm_file="rs6000/secureplt.h ${tm_file}"
  2406. fi
  2407. ;;
  2408. powerpc-wrs-vxworks|powerpc-wrs-vxworksae|powerpc-wrs-vxworksmils)
  2409. tm_file="${tm_file} elfos.h freebsd-spec.h rs6000/sysv4.h"
  2410. tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
  2411. extra_options="${extra_options} rs6000/sysv4.opt"
  2412. extra_headers=ppc-asm.h
  2413. case ${target} in
  2414. *-vxworksmils*)
  2415. tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/e500.h rs6000/vxworksmils.h"
  2416. tmake_file="${tmake_file} rs6000/t-vxworksmils"
  2417. ;;
  2418. *-vxworksae*)
  2419. tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/e500.h rs6000/vxworksae.h"
  2420. tmake_file="${tmake_file} rs6000/t-vxworksae"
  2421. ;;
  2422. *-vxworks*)
  2423. tm_file="${tm_file} vx-common.h vxworks.h rs6000/vxworks.h rs6000/e500.h"
  2424. ;;
  2425. esac
  2426. ;;
  2427. powerpc-*-lynxos*)
  2428. xm_defines=POSIX
  2429. tm_file="${tm_file} dbxelf.h elfos.h rs6000/sysv4.h rs6000/lynx.h lynx.h"
  2430. tmake_file="t-lynx rs6000/t-lynx"
  2431. extra_options="${extra_options} rs6000/sysv4.opt lynx.opt"
  2432. thread_file=lynx
  2433. gnu_ld=yes
  2434. gas=yes
  2435. ;;
  2436. powerpcle-*-elf*)
  2437. tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h"
  2438. tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
  2439. extra_options="${extra_options} rs6000/sysv4.opt"
  2440. ;;
  2441. powerpcle-*-eabisim*)
  2442. tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h rs6000/eabisim.h"
  2443. tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
  2444. extra_options="${extra_options} rs6000/sysv4.opt"
  2445. use_gcc_stdint=wrap
  2446. ;;
  2447. powerpcle-*-eabi*)
  2448. tm_file="${tm_file} dbxelf.h elfos.h usegas.h freebsd-spec.h newlib-stdint.h rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/e500.h"
  2449. tmake_file="rs6000/t-fprules rs6000/t-ppcgas rs6000/t-ppccomm"
  2450. extra_options="${extra_options} rs6000/sysv4.opt"
  2451. use_gcc_stdint=wrap
  2452. ;;
  2453. rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
  2454. tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix43.h rs6000/xcoff.h rs6000/aix-stdint.h"
  2455. tmake_file="rs6000/t-aix43 t-slibgcc"
  2456. extra_options="${extra_options} rs6000/aix64.opt"
  2457. use_collect2=yes
  2458. thread_file='aix'
  2459. use_gcc_stdint=provide
  2460. extra_headers=
  2461. ;;
  2462. rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
  2463. tm_file="rs6000/biarch64.h ${tm_file} rs6000/aix.h rs6000/aix51.h rs6000/xcoff.h rs6000/aix-stdint.h"
  2464. extra_options="${extra_options} rs6000/aix64.opt"
  2465. tmake_file="rs6000/t-aix43 t-slibgcc"
  2466. use_collect2=yes
  2467. thread_file='aix'
  2468. use_gcc_stdint=wrap
  2469. extra_headers=
  2470. ;;
  2471. rs6000-ibm-aix5.2.* | powerpc-ibm-aix5.2.*)
  2472. tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h rs6000/aix-stdint.h"
  2473. tmake_file="rs6000/t-aix52 t-slibgcc"
  2474. extra_options="${extra_options} rs6000/aix64.opt"
  2475. use_collect2=yes
  2476. thread_file='aix'
  2477. use_gcc_stdint=wrap
  2478. extra_headers=
  2479. ;;
  2480. rs6000-ibm-aix5.3.* | powerpc-ibm-aix5.3.*)
  2481. tm_file="${tm_file} rs6000/aix.h rs6000/aix53.h rs6000/xcoff.h rs6000/aix-stdint.h"
  2482. tmake_file="rs6000/t-aix52 t-slibgcc"
  2483. extra_options="${extra_options} rs6000/aix64.opt"
  2484. use_collect2=yes
  2485. thread_file='aix'
  2486. use_gcc_stdint=wrap
  2487. extra_headers=altivec.h
  2488. ;;
  2489. rs6000-ibm-aix[6789].* | powerpc-ibm-aix[6789].*)
  2490. tm_file="${tm_file} rs6000/aix.h rs6000/aix61.h rs6000/xcoff.h rs6000/aix-stdint.h"
  2491. tmake_file="rs6000/t-aix52 t-slibgcc"
  2492. extra_options="${extra_options} rs6000/aix64.opt"
  2493. use_collect2=yes
  2494. thread_file='aix'
  2495. use_gcc_stdint=wrap
  2496. extra_headers=altivec.h
  2497. ;;
  2498. rl78-*-elf*)
  2499. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  2500. target_has_targetm_common=no
  2501. c_target_objs="rl78-c.o"
  2502. cxx_target_objs="rl78-c.o"
  2503. tmake_file="${tmake_file} rl78/t-rl78"
  2504. ;;
  2505. rx-*-elf*)
  2506. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  2507. tmake_file="${tmake_file} rx/t-rx"
  2508. ;;
  2509. s390-*-linux*)
  2510. default_gnu_indirect_function=yes
  2511. tm_file="s390/s390.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h s390/linux.h"
  2512. c_target_objs="${c_target_objs} s390-c.o"
  2513. cxx_target_objs="${cxx_target_objs} s390-c.o"
  2514. if test x$enable_targets = xall; then
  2515. tmake_file="${tmake_file} s390/t-linux64"
  2516. fi
  2517. tmake_file="${tmake_file} s390/t-s390"
  2518. ;;
  2519. s390x-*-linux*)
  2520. default_gnu_indirect_function=yes
  2521. tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h s390/linux.h"
  2522. tm_p_file="linux-protos.h s390/s390-protos.h"
  2523. c_target_objs="${c_target_objs} s390-c.o"
  2524. cxx_target_objs="${cxx_target_objs} s390-c.o"
  2525. md_file=s390/s390.md
  2526. extra_modes=s390/s390-modes.def
  2527. out_file=s390/s390.c
  2528. tmake_file="${tmake_file} s390/t-linux64 s390/t-s390"
  2529. ;;
  2530. s390x-ibm-tpf*)
  2531. tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h s390/tpf.h"
  2532. tm_p_file=s390/s390-protos.h
  2533. c_target_objs="${c_target_objs} s390-c.o"
  2534. cxx_target_objs="${cxx_target_objs} s390-c.o"
  2535. md_file=s390/s390.md
  2536. extra_modes=s390/s390-modes.def
  2537. out_file=s390/s390.c
  2538. thread_file='tpf'
  2539. extra_options="${extra_options} s390/tpf.opt"
  2540. tmake_file="${tmake_file} s390/t-s390"
  2541. ;;
  2542. sh-*-elf* | sh[12346l]*-*-elf* | \
  2543. sh-*-linux* | sh[2346lbe]*-*-linux* | \
  2544. sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
  2545. sh64-*-netbsd* | sh64l*-*-netbsd*)
  2546. tmake_file="${tmake_file} sh/t-sh sh/t-elf"
  2547. if test x${with_endian} = x; then
  2548. case ${target} in
  2549. sh[1234]*be-*-* | sh[1234]*eb-*-*) with_endian=big ;;
  2550. shbe-*-* | sheb-*-*) with_endian=big,little ;;
  2551. sh[1234]l* | sh[34]*-*-linux*) with_endian=little ;;
  2552. shl* | sh64l* | sh*-*-linux* | \
  2553. sh5l* | sh-superh-elf) with_endian=little,big ;;
  2554. sh[1234]*-*-*) with_endian=big ;;
  2555. *) with_endian=big,little ;;
  2556. esac
  2557. fi
  2558. # TM_ENDIAN_CONFIG is used by t-sh to determine multilibs.
  2559. # First word : the default endian.
  2560. # Second word: the secondary endian (optional).
  2561. case ${with_endian} in
  2562. big) TM_ENDIAN_CONFIG=mb ;;
  2563. little) TM_ENDIAN_CONFIG=ml ;;
  2564. big,little) TM_ENDIAN_CONFIG="mb ml" ;;
  2565. little,big) TM_ENDIAN_CONFIG="ml mb" ;;
  2566. *) echo "with_endian=${with_endian} not supported."; exit 1 ;;
  2567. esac
  2568. case ${with_endian} in
  2569. little*) tm_file="sh/little.h ${tm_file}" ;;
  2570. esac
  2571. tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h"
  2572. case ${target} in
  2573. sh*-*-linux*) tmake_file="${tmake_file} sh/t-linux"
  2574. tm_file="${tm_file} gnu-user.h linux.h glibc-stdint.h sh/linux.h" ;;
  2575. sh*-*-netbsd*)
  2576. tm_file="${tm_file} netbsd.h netbsd-elf.h sh/netbsd-elf.h"
  2577. extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  2578. ;;
  2579. sh*-superh-elf) if test x$with_libgloss != xno; then
  2580. with_libgloss=yes
  2581. tm_file="${tm_file} sh/newlib.h"
  2582. fi
  2583. tm_file="${tm_file} sh/embed-elf.h"
  2584. tm_file="${tm_file} sh/superh.h"
  2585. extra_options="${extra_options} sh/superh.opt" ;;
  2586. *) if test x$with_newlib = xyes \
  2587. && test x$with_libgloss = xyes; then
  2588. tm_file="${tm_file} sh/newlib.h"
  2589. fi
  2590. tm_file="${tm_file} sh/embed-elf.h" ;;
  2591. esac
  2592. case ${target} in
  2593. sh5*-*-netbsd*)
  2594. # SHmedia, 32-bit ABI
  2595. tmake_file="${tmake_file} sh/t-sh64"
  2596. ;;
  2597. sh64*-netbsd*)
  2598. # SHmedia, 64-bit ABI
  2599. tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5-64"
  2600. ;;
  2601. *-*-netbsd)
  2602. ;;
  2603. sh64*-*-linux*)
  2604. tmake_file="${tmake_file} sh/t-sh64"
  2605. tm_file="${tm_file} sh/sh64.h"
  2606. extra_headers="shmedia.h ushmedia.h sshmedia.h"
  2607. ;;
  2608. sh64*)
  2609. tmake_file="${tmake_file} sh/t-sh64"
  2610. tm_file="${tm_file} sh/sh64.h"
  2611. if test x$with_newlib = xyes; then
  2612. tm_file="${tm_file} newlib-stdint.h"
  2613. fi
  2614. extra_headers="shmedia.h ushmedia.h sshmedia.h"
  2615. ;;
  2616. *-*-elf*)
  2617. tm_file="${tm_file} newlib-stdint.h"
  2618. ;;
  2619. esac
  2620. # sed el/eb endian suffixes away to avoid confusion with sh[23]e
  2621. case `echo ${target} | sed 's/e[lb]-/-/'` in
  2622. sh64*-*-netbsd*) sh_cpu_target=sh5-64media ;;
  2623. sh64* | sh5*-*-netbsd*) sh_cpu_target=sh5-32media ;;
  2624. sh4a_single_only*) sh_cpu_target=sh4a-single-only ;;
  2625. sh4a_single*) sh_cpu_target=sh4a-single ;;
  2626. sh4a_nofpu*) sh_cpu_target=sh4a-nofpu ;;
  2627. sh4al) sh_cpu_target=sh4al ;;
  2628. sh4a*) sh_cpu_target=sh4a ;;
  2629. sh4_single_only*) sh_cpu_target=sh4-single-only ;;
  2630. sh4_single*) sh_cpu_target=sh4-single ;;
  2631. sh4_nofpu*) sh_cpu_target=sh4-nofpu ;;
  2632. sh4* | sh-superh-*) sh_cpu_target=sh4 ;;
  2633. sh3e*) sh_cpu_target=sh3e ;;
  2634. sh*-*-netbsd* | sh3*) sh_cpu_target=sh3 ;;
  2635. sh2a_single_only*) sh_cpu_target=sh2a-single-only ;;
  2636. sh2a_single*) sh_cpu_target=sh2a-single ;;
  2637. sh2a_nofpu*) sh_cpu_target=sh2a-nofpu ;;
  2638. sh2a*) sh_cpu_target=sh2a ;;
  2639. sh2e*) sh_cpu_target=sh2e ;;
  2640. sh2*) sh_cpu_target=sh2 ;;
  2641. *) sh_cpu_target=sh1 ;;
  2642. esac
  2643. # did the user say --without-fp ?
  2644. if test x$with_fp = xno; then
  2645. case ${sh_cpu_target} in
  2646. sh5-*media) sh_cpu_target=${sh_cpu_target}-nofpu ;;
  2647. sh4al | sh1) ;;
  2648. sh4a* ) sh_cpu_target=sh4a-nofpu ;;
  2649. sh4*) sh_cpu_target=sh4-nofpu ;;
  2650. sh3*) sh_cpu_target=sh3 ;;
  2651. sh2a*) sh_cpu_target=sh2a-nofpu ;;
  2652. sh2*) sh_cpu_target=sh2 ;;
  2653. *) echo --without-fp not available for $target: ignored
  2654. esac
  2655. tm_defines="$tm_defines STRICT_NOFPU=1"
  2656. fi
  2657. sh_cpu_default="`echo $with_cpu|sed s/^m/sh/|tr A-Z_ a-z-`"
  2658. case $sh_cpu_default in
  2659. sh5-64media-nofpu | sh5-64media | \
  2660. sh5-32media-nofpu | sh5-32media | sh5-compact-nofpu | sh5-compact | \
  2661. sh2a-single-only | sh2a-single | sh2a-nofpu | sh2a | \
  2662. sh4a-single-only | sh4a-single | sh4a-nofpu | sh4a | sh4al | \
  2663. sh4-single-only | sh4-single | sh4-nofpu | sh4 | sh4-300 | \
  2664. sh3e | sh3 | sh2e | sh2 | sh1) ;;
  2665. "") sh_cpu_default=${sh_cpu_target} ;;
  2666. *) echo "with_cpu=$with_cpu not supported"; exit 1 ;;
  2667. esac
  2668. sh_multilibs=${with_multilib_list}
  2669. if test "$sh_multilibs" = "default" ; then
  2670. case ${target} in
  2671. sh64-superh-linux* | \
  2672. sh[1234]*) sh_multilibs=${sh_cpu_target} ;;
  2673. sh64* | sh5*) sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;;
  2674. sh-superh-*) sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;;
  2675. sh*-*-linux*) sh_multilibs=m1,m2,m2a,m3e,m4 ;;
  2676. sh*-*-netbsd*) sh_multilibs=m3,m3e,m4 ;;
  2677. *) sh_multilibs=m1,m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single ;;
  2678. esac
  2679. if test x$with_fp = xno; then
  2680. sh_multilibs="`echo $sh_multilibs|sed -e s/m4/sh4-nofpu/ -e s/,m4-[^,]*//g -e s/,m[23]e// -e s/m2a,m2a-single/m2a-nofpu/ -e s/m5-..m....,//g`"
  2681. fi
  2682. fi
  2683. target_cpu_default=SELECT_`echo ${sh_cpu_default}|tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`
  2684. tm_defines=${tm_defines}' SH_MULTILIB_CPU_DEFAULT=\"'`echo $sh_cpu_default|sed s/sh/m/`'\"'
  2685. tm_defines="$tm_defines SUPPORT_`echo $sh_cpu_default | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1"
  2686. sh_multilibs=`echo $sh_multilibs | sed -e 's/,/ /g' -e 's/^[Ss][Hh]/m/' -e 's/ [Ss][Hh]/ m/g' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz-`
  2687. for sh_multilib in ${sh_multilibs}; do
  2688. case ${sh_multilib} in
  2689. m1 | m2 | m2e | m3 | m3e | \
  2690. m4 | m4-single | m4-single-only | m4-nofpu | m4-300 |\
  2691. m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al | \
  2692. m2a | m2a-single | m2a-single-only | m2a-nofpu | \
  2693. m5-64media | m5-64media-nofpu | \
  2694. m5-32media | m5-32media-nofpu | \
  2695. m5-compact | m5-compact-nofpu)
  2696. # TM_MULTILIB_CONFIG is used by t-sh for the non-endian multilib definition
  2697. # It is passed to MULTIILIB_OPTIONS verbatim.
  2698. TM_MULTILIB_CONFIG="${TM_MULTILIB_CONFIG}/${sh_multilib}"
  2699. tm_defines="$tm_defines SUPPORT_`echo $sh_multilib | sed 's/^m/sh/' | tr abcdefghijklmnopqrstuvwxyz- ABCDEFGHIJKLMNOPQRSTUVWXYZ_`=1"
  2700. ;;
  2701. \!*) # TM_MULTILIB_EXCEPTIONS_CONFIG is used by t-sh
  2702. # It is passed the MULTILIB_EXCEPTIONS verbatim.
  2703. TM_MULTILIB_EXCEPTIONS_CONFIG="${TM_MULTILIB_EXCEPTIONS_CONFIG} `echo $sh_multilib | sed 's/^!//'`" ;;
  2704. *)
  2705. echo "with_multilib_list=${sh_multilib} not supported."
  2706. exit 1
  2707. ;;
  2708. esac
  2709. done
  2710. TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's:^/::'`
  2711. if test x${enable_incomplete_targets} = xyes ; then
  2712. tm_defines="$tm_defines SUPPORT_SH1=1 SUPPORT_SH2E=1 SUPPORT_SH4=1 SUPPORT_SH4_SINGLE=1 SUPPORT_SH2A=1 SUPPORT_SH2A_SINGLE=1 SUPPORT_SH5_32MEDIA=1 SUPPORT_SH5_32MEDIA_NOFPU=1 SUPPORT_SH5_64MEDIA=1 SUPPORT_SH5_64MEDIA_NOFPU=1"
  2713. fi
  2714. tm_file="$tm_file ./sysroot-suffix.h"
  2715. tmake_file="$tmake_file t-sysroot-suffix"
  2716. ;;
  2717. sh-*-rtems*)
  2718. tmake_file="${tmake_file} sh/t-sh sh/t-rtems"
  2719. tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h newlib-stdint.h"
  2720. ;;
  2721. sh-wrs-vxworks)
  2722. tmake_file="$tmake_file sh/t-sh sh/t-vxworks"
  2723. tm_file="${tm_file} elfos.h sh/elf.h sh/embed-elf.h vx-common.h vxworks.h sh/vxworks.h"
  2724. ;;
  2725. sparc-*-elf*)
  2726. tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp-elf.h"
  2727. case ${target} in
  2728. *-leon-*)
  2729. tmake_file="sparc/t-sparc sparc/t-leon"
  2730. ;;
  2731. *-leon[3-9]*)
  2732. tmake_file="sparc/t-sparc sparc/t-leon3"
  2733. ;;
  2734. *)
  2735. tmake_file="sparc/t-sparc sparc/t-elf"
  2736. ;;
  2737. esac
  2738. ;;
  2739. sparc-*-rtems*)
  2740. tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h"
  2741. tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems"
  2742. ;;
  2743. sparc-*-linux*)
  2744. tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/tso.h"
  2745. extra_options="${extra_options} sparc/long-double-switch.opt"
  2746. case ${target} in
  2747. *-leon-*)
  2748. tmake_file="${tmake_file} sparc/t-sparc sparc/t-leon"
  2749. ;;
  2750. *-leon[3-9]*)
  2751. tmake_file="${tmake_file} sparc/t-sparc sparc/t-leon3"
  2752. ;;
  2753. *)
  2754. tmake_file="${tmake_file} sparc/t-sparc"
  2755. ;;
  2756. esac
  2757. if test x$enable_targets = xall; then
  2758. tm_file="sparc/biarch64.h ${tm_file} sparc/linux64.h"
  2759. tmake_file="${tmake_file} sparc/t-linux64"
  2760. else
  2761. tm_file="${tm_file} sparc/linux.h"
  2762. tmake_file="${tmake_file} sparc/t-linux"
  2763. fi
  2764. ;;
  2765. sparc-*-netbsdelf*)
  2766. tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
  2767. extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  2768. extra_options="${extra_options} sparc/long-double-switch.opt"
  2769. tmake_file="${tmake_file} sparc/t-sparc"
  2770. ;;
  2771. sparc*-*-solaris2*)
  2772. tm_file="sparc/biarch64.h ${tm_file} ${sol2_tm_file} sparc/tso.h"
  2773. case ${target} in
  2774. sparc64-*-* | sparcv9-*-*)
  2775. tm_file="sparc/default-64.h ${tm_file}"
  2776. ;;
  2777. *)
  2778. test x$with_cpu != x || with_cpu=v9
  2779. ;;
  2780. esac
  2781. tmake_file="${tmake_file} sparc/t-sparc sparc/t-sol2"
  2782. ;;
  2783. sparc-wrs-vxworks)
  2784. tm_file="${tm_file} elfos.h sparc/sysv4.h vx-common.h vxworks.h sparc/vxworks.h"
  2785. tmake_file="${tmake_file} sparc/t-sparc sparc/t-vxworks"
  2786. ;;
  2787. sparc64-*-elf*)
  2788. tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h"
  2789. extra_options="${extra_options}"
  2790. tmake_file="${tmake_file} sparc/t-sparc"
  2791. ;;
  2792. sparc64-*-rtems*)
  2793. tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h sparc/sysv4.h sparc/sp64-elf.h sparc/rtemself.h rtems.h"
  2794. extra_options="${extra_options}"
  2795. tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems-64"
  2796. ;;
  2797. sparc64-*-linux*)
  2798. tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default-64.h sparc/linux64.h sparc/tso.h"
  2799. extra_options="${extra_options} sparc/long-double-switch.opt"
  2800. tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux64"
  2801. ;;
  2802. sparc64-*-freebsd*|ultrasparc-*-freebsd*)
  2803. tm_file="${tm_file} ${fbsd_tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/freebsd.h"
  2804. extra_options="${extra_options} sparc/long-double-switch.opt"
  2805. case "x$with_cpu" in
  2806. xultrasparc) ;;
  2807. x) with_cpu=ultrasparc ;;
  2808. *) echo "$with_cpu not supported for freebsd target"; exit 1 ;;
  2809. esac
  2810. tmake_file="${tmake_file} sparc/t-sparc"
  2811. ;;
  2812. sparc64-*-netbsd*)
  2813. tm_file="sparc/biarch64.h ${tm_file}"
  2814. tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h netbsd.h netbsd-elf.h sparc/netbsd-elf.h"
  2815. extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
  2816. extra_options="${extra_options} sparc/long-double-switch.opt"
  2817. tmake_file="${tmake_file} sparc/t-sparc sparc/t-netbsd64"
  2818. ;;
  2819. sparc64-*-openbsd*)
  2820. tm_file="sparc/openbsd1-64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp64-elf.h"
  2821. tm_file="${tm_file} openbsd.h openbsd-stdint.h openbsd-libpthread.h sparc/openbsd64.h"
  2822. extra_options="${extra_options} openbsd.opt"
  2823. extra_options="${extra_options}"
  2824. gas=yes gnu_ld=yes
  2825. with_cpu=ultrasparc
  2826. tmake_file="${tmake_file} sparc/t-sparc"
  2827. ;;
  2828. spu-*-elf*)
  2829. tm_file="dbxelf.h elfos.h spu/spu-elf.h spu/spu.h newlib-stdint.h"
  2830. tmake_file="spu/t-spu-elf"
  2831. native_system_header_dir=/include
  2832. extra_headers="spu_intrinsics.h spu_internals.h vmx2spu.h spu_mfcio.h vec_types.h spu_cache.h"
  2833. extra_modes=spu/spu-modes.def
  2834. c_target_objs="${c_target_objs} spu-c.o"
  2835. cxx_target_objs="${cxx_target_objs} spu-c.o"
  2836. ;;
  2837. tic6x-*-elf)
  2838. tm_file="elfos.h ${tm_file} c6x/elf-common.h c6x/elf.h"
  2839. tm_file="${tm_file} dbxelf.h tm-dwarf2.h newlib-stdint.h"
  2840. tmake_file="c6x/t-c6x c6x/t-c6x-elf"
  2841. use_collect2=no
  2842. ;;
  2843. tic6x-*-uclinux)
  2844. tm_file="elfos.h ${tm_file} gnu-user.h linux.h c6x/elf-common.h c6x/uclinux-elf.h"
  2845. tm_file="${tm_file} dbxelf.h tm-dwarf2.h glibc-stdint.h"
  2846. tm_file="${tm_file} ./sysroot-suffix.h"
  2847. tmake_file="t-sysroot-suffix t-slibgcc"
  2848. tmake_file="${tmake_file} c6x/t-c6x c6x/t-c6x-elf c6x/t-c6x-uclinux"
  2849. use_collect2=no
  2850. ;;
  2851. tilegx*-*-linux*)
  2852. tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h tilegx/linux.h ${tm_file}"
  2853. tmake_file="${tmake_file} tilegx/t-tilegx"
  2854. extra_objs="${extra_objs} mul-tables.o"
  2855. c_target_objs="${c_target_objs} tilegx-c.o"
  2856. cxx_target_objs="${cxx_target_objs} tilegx-c.o"
  2857. extra_headers="feedback.h"
  2858. case $target in
  2859. tilegxbe-*)
  2860. tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
  2861. ;;
  2862. esac
  2863. ;;
  2864. tilepro*-*-linux*)
  2865. tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h tilepro/linux.h ${tm_file}"
  2866. tmake_file="${tmake_file} tilepro/t-tilepro"
  2867. extra_objs="${extra_objs} mul-tables.o"
  2868. c_target_objs="${c_target_objs} tilepro-c.o"
  2869. cxx_target_objs="${cxx_target_objs} tilepro-c.o"
  2870. extra_headers="feedback.h"
  2871. ;;
  2872. v850-*-rtems*)
  2873. target_cpu_default="TARGET_CPU_generic"
  2874. tm_file="dbxelf.h elfos.h v850/v850.h"
  2875. tm_file="${tm_file} rtems.h v850/rtems.h newlib-stdint.h"
  2876. tmake_file="${tmake_file} v850/t-v850"
  2877. tmake_file="${tmake_file} v850/t-rtems"
  2878. use_collect2=no
  2879. c_target_objs="v850-c.o"
  2880. cxx_target_objs="v850-c.o"
  2881. ;;
  2882. v850*-*-*)
  2883. case ${target} in
  2884. v850e3v5-*-*)
  2885. target_cpu_default="TARGET_CPU_v850e3v5"
  2886. ;;
  2887. v850e2v3-*-*)
  2888. target_cpu_default="TARGET_CPU_v850e2v3"
  2889. ;;
  2890. v850e2-*-*)
  2891. target_cpu_default="TARGET_CPU_v850e2"
  2892. ;;
  2893. v850e1-*-* | v850es-*-*)
  2894. target_cpu_default="TARGET_CPU_v850e1"
  2895. ;;
  2896. v850e-*-*)
  2897. target_cpu_default="TARGET_CPU_v850e"
  2898. ;;
  2899. v850-*-*)
  2900. target_cpu_default="TARGET_CPU_generic"
  2901. ;;
  2902. esac
  2903. tm_file="dbxelf.h elfos.h newlib-stdint.h v850/v850.h"
  2904. if test x$stabs = xyes
  2905. then
  2906. tm_file="${tm_file} dbx.h"
  2907. fi
  2908. use_collect2=no
  2909. c_target_objs="v850-c.o"
  2910. cxx_target_objs="v850-c.o"
  2911. use_gcc_stdint=wrap
  2912. ;;
  2913. vax-*-linux*)
  2914. tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h vax/elf.h vax/linux.h"
  2915. extra_options="${extra_options} vax/elf.opt"
  2916. ;;
  2917. vax-*-netbsdelf*)
  2918. tm_file="${tm_file} elfos.h netbsd.h netbsd-elf.h vax/elf.h vax/netbsd-elf.h"
  2919. extra_options="${extra_options} netbsd.opt netbsd-elf.opt vax/elf.opt"
  2920. ;;
  2921. vax-*-openbsd*)
  2922. tm_file="vax/vax.h vax/openbsd1.h openbsd.h openbsd-stdint.h openbsd-pthread.h vax/openbsd.h"
  2923. extra_options="${extra_options} openbsd.opt"
  2924. use_collect2=yes
  2925. ;;
  2926. visium-*-elf*)
  2927. tm_file="dbxelf.h elfos.h ${tm_file} visium/elf.h newlib-stdint.h"
  2928. tmake_file="visium/t-visium visium/t-crtstuff"
  2929. ;;
  2930. xstormy16-*-elf)
  2931. # For historical reasons, the target files omit the 'x'.
  2932. tm_file="dbxelf.h elfos.h newlib-stdint.h stormy16/stormy16.h"
  2933. tm_p_file=stormy16/stormy16-protos.h
  2934. md_file=stormy16/stormy16.md
  2935. out_file=stormy16/stormy16.c
  2936. extra_options=stormy16/stormy16.opt
  2937. tmake_file="stormy16/t-stormy16"
  2938. ;;
  2939. xtensa*-*-elf*)
  2940. tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h xtensa/elf.h"
  2941. extra_options="${extra_options} xtensa/elf.opt"
  2942. ;;
  2943. xtensa*-*-linux*)
  2944. tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h xtensa/linux.h"
  2945. tmake_file="${tmake_file} xtensa/t-xtensa"
  2946. ;;
  2947. am33_2.0-*-linux*)
  2948. tm_file="mn10300/mn10300.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h mn10300/linux.h"
  2949. gas=yes gnu_ld=yes
  2950. use_collect2=no
  2951. ;;
  2952. m32c-*-rtems*)
  2953. tm_file="dbxelf.h elfos.h ${tm_file} m32c/rtems.h rtems.h newlib-stdint.h"
  2954. c_target_objs="m32c-pragma.o"
  2955. cxx_target_objs="m32c-pragma.o"
  2956. ;;
  2957. m32c-*-elf*)
  2958. tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
  2959. c_target_objs="m32c-pragma.o"
  2960. cxx_target_objs="m32c-pragma.o"
  2961. ;;
  2962. *)
  2963. echo "*** Configuration ${target} not supported" 1>&2
  2964. exit 1
  2965. ;;
  2966. esac
  2967. case ${target} in
  2968. i[34567]86-*-linux* | x86_64-*-linux*)
  2969. tmake_file="${tmake_file} i386/t-pmm_malloc i386/t-i386"
  2970. ;;
  2971. i[34567]86-*-* | x86_64-*-*)
  2972. tmake_file="${tmake_file} i386/t-gmm_malloc i386/t-i386"
  2973. ;;
  2974. powerpc*-*-* | rs6000-*-*)
  2975. tm_file="${tm_file} rs6000/option-defaults.h"
  2976. esac
  2977. # Build mkoffload tool
  2978. case ${target} in
  2979. *-intelmic-* | *-intelmicemul-*)
  2980. tmake_file="${tmake_file} i386/t-intelmic"
  2981. tm_file="${tm_file} i386/intelmic-offload.h"
  2982. ;;
  2983. esac
  2984. if [ "$target_has_targetcm" = "no" ]; then
  2985. c_target_objs="$c_target_objs default-c.o"
  2986. cxx_target_objs="$cxx_target_objs default-c.o"
  2987. fi
  2988. if [ "$common_out_file" = "" ]; then
  2989. if [ "$target_has_targetm_common" = "yes" ]; then
  2990. common_out_file="$cpu_type/$cpu_type-common.c"
  2991. else
  2992. common_out_file="default-common.c"
  2993. fi
  2994. fi
  2995. # Support for --with-cpu and related options (and a few unrelated options,
  2996. # too).
  2997. case ${with_cpu} in
  2998. yes | no)
  2999. echo "--with-cpu must be passed a value" 1>&2
  3000. exit 1
  3001. ;;
  3002. esac
  3003. # Set arch and cpu from ${target} and ${target_noncanonical}. Set cpu
  3004. # to generic if there is no processor scheduler model for the target.
  3005. arch=
  3006. cpu=
  3007. arch_without_sse2=no
  3008. arch_without_64bit=no
  3009. case ${target} in
  3010. i386-*-freebsd*)
  3011. if test $fbsd_major -ge 6; then
  3012. arch=i486
  3013. else
  3014. arch=i386
  3015. fi
  3016. cpu=generic
  3017. arch_without_sse2=yes
  3018. arch_without_64bit=yes
  3019. ;;
  3020. i386-*-*)
  3021. arch=i386
  3022. cpu=i386
  3023. arch_without_sse2=yes
  3024. arch_without_64bit=yes
  3025. ;;
  3026. i486-*-*)
  3027. arch=i486
  3028. cpu=i486
  3029. arch_without_sse2=yes
  3030. arch_without_64bit=yes
  3031. ;;
  3032. i586-*-*)
  3033. arch_without_sse2=yes
  3034. arch_without_64bit=yes
  3035. case ${target_noncanonical} in
  3036. k6_2-*)
  3037. arch=k6-2
  3038. cpu=k6-2
  3039. ;;
  3040. k6_3-*)
  3041. arch=k6-3
  3042. cpu=k6-3
  3043. ;;
  3044. k6-*)
  3045. arch=k6
  3046. cpu=k6
  3047. ;;
  3048. pentium_mmx-*|winchip_c6-*|winchip2-*|c3-*)
  3049. arch=pentium-mmx
  3050. cpu=pentium-mmx
  3051. ;;
  3052. *)
  3053. arch=pentium
  3054. cpu=pentium
  3055. ;;
  3056. esac
  3057. ;;
  3058. i686-*-* | i786-*-*)
  3059. case ${target_noncanonical} in
  3060. bdver4-*)
  3061. arch=bdver4
  3062. cpu=bdver4
  3063. ;;
  3064. bdver3-*)
  3065. arch=bdver3
  3066. cpu=bdver3
  3067. ;;
  3068. bdver2-*)
  3069. arch=bdver2
  3070. cpu=bdver2
  3071. ;;
  3072. bdver1-*)
  3073. arch=bdver1
  3074. cpu=bdver1
  3075. ;;
  3076. btver1-*)
  3077. arch=btver1
  3078. cpu=btver1
  3079. ;;
  3080. btver2-*)
  3081. arch=btver2
  3082. cpu=btver2
  3083. ;;
  3084. amdfam10-*|barcelona-*)
  3085. arch=amdfam10
  3086. cpu=amdfam10
  3087. ;;
  3088. k8_sse3-*|opteron_sse3-*|athlon64_sse3-*)
  3089. arch=k8-sse3
  3090. cpu=k8-sse3
  3091. ;;
  3092. k8-*|opteron-*|athlon64-*|athlon_fx-*)
  3093. arch=k8
  3094. cpu=k8
  3095. ;;
  3096. athlon_xp-*|athlon_mp-*|athlon_4-*)
  3097. arch=athlon-4
  3098. cpu=athlon-4
  3099. arch_without_sse2=yes
  3100. arch_without_64bit=yes
  3101. ;;
  3102. athlon_tbird-*|athlon-*)
  3103. arch=athlon
  3104. cpu=athlon
  3105. arch_without_sse2=yes
  3106. ;;
  3107. geode-*)
  3108. arch=geode
  3109. cpu=geode
  3110. arch_without_sse2=yes
  3111. ;;
  3112. pentium2-*)
  3113. arch=pentium2
  3114. cpu=pentium2
  3115. arch_without_sse2=yes
  3116. ;;
  3117. pentium3-*|pentium3m-*)
  3118. arch=pentium3
  3119. cpu=pentium3
  3120. arch_without_sse2=yes
  3121. ;;
  3122. pentium4-*|pentium4m-*)
  3123. arch=pentium4
  3124. cpu=pentium4
  3125. ;;
  3126. prescott-*)
  3127. arch=prescott
  3128. cpu=prescott
  3129. ;;
  3130. nocona-*)
  3131. arch=nocona
  3132. cpu=nocona
  3133. ;;
  3134. atom-*)
  3135. arch=atom
  3136. cpu=atom
  3137. ;;
  3138. slm-*)
  3139. arch=slm
  3140. cpu=slm
  3141. ;;
  3142. core2-*)
  3143. arch=core2
  3144. cpu=core2
  3145. ;;
  3146. corei7-*)
  3147. arch=corei7
  3148. cpu=corei7
  3149. ;;
  3150. corei7_avx-*)
  3151. arch=corei7-avx
  3152. cpu=corei7-avx
  3153. ;;
  3154. pentium_m-*)
  3155. arch=pentium-m
  3156. cpu=pentium-m
  3157. ;;
  3158. pentiumpro-*)
  3159. arch=pentiumpro
  3160. cpu=pentiumpro
  3161. arch_without_sse2=yes
  3162. ;;
  3163. *)
  3164. arch=pentiumpro
  3165. cpu=generic
  3166. arch_without_sse2=yes
  3167. arch_without_64bit=yes
  3168. ;;
  3169. esac
  3170. ;;
  3171. x86_64-*-*)
  3172. case ${target_noncanonical} in
  3173. bdver4-*)
  3174. arch=bdver4
  3175. cpu=bdver4
  3176. ;;
  3177. bdver3-*)
  3178. arch=bdver3
  3179. cpu=bdver3
  3180. ;;
  3181. bdver2-*)
  3182. arch=bdver2
  3183. cpu=bdver2
  3184. ;;
  3185. bdver1-*)
  3186. arch=bdver1
  3187. cpu=bdver1
  3188. ;;
  3189. btver1-*)
  3190. arch=btver1
  3191. cpu=btver1
  3192. ;;
  3193. btver2-*)
  3194. arch=btver2
  3195. cpu=btver2
  3196. ;;
  3197. amdfam10-*|barcelona-*)
  3198. arch=amdfam10
  3199. cpu=amdfam10
  3200. ;;
  3201. k8_sse3-*|opteron_sse3-*|athlon64_sse3-*)
  3202. arch=k8-sse3
  3203. cpu=k8-sse3
  3204. ;;
  3205. k8-*|opteron-*|athlon_64-*)
  3206. arch=k8
  3207. cpu=k8
  3208. ;;
  3209. nocona-*)
  3210. arch=nocona
  3211. cpu=nocona
  3212. ;;
  3213. atom-*)
  3214. arch=atom
  3215. cpu=atom
  3216. ;;
  3217. slm-*)
  3218. arch=slm
  3219. cpu=slm
  3220. ;;
  3221. core2-*)
  3222. arch=core2
  3223. cpu=core2
  3224. ;;
  3225. corei7-*)
  3226. arch=corei7
  3227. cpu=corei7
  3228. ;;
  3229. *)
  3230. arch=x86-64
  3231. cpu=generic
  3232. ;;
  3233. esac
  3234. ;;
  3235. esac
  3236. # If there is no $with_cpu option, try to infer one from ${target}.
  3237. # This block sets nothing except for with_cpu.
  3238. if test x$with_cpu = x ; then
  3239. case ${target} in
  3240. i[34567]86-*-*|x86_64-*-*)
  3241. with_cpu=$cpu
  3242. ;;
  3243. alphaev6[78]*-*-*)
  3244. with_cpu=ev67
  3245. ;;
  3246. alphaev6*-*-*)
  3247. with_cpu=ev6
  3248. ;;
  3249. alphapca56*-*-*)
  3250. with_cpu=pca56
  3251. ;;
  3252. alphaev56*-*-*)
  3253. with_cpu=ev56
  3254. ;;
  3255. alphaev5*-*-*)
  3256. with_cpu=ev5
  3257. ;;
  3258. frv-*-*linux* | frv400-*-*linux*)
  3259. with_cpu=fr400
  3260. ;;
  3261. frv550-*-*linux*)
  3262. with_cpu=fr550
  3263. ;;
  3264. m68k*-*-*)
  3265. case "$with_arch" in
  3266. "cf")
  3267. with_cpu=${default_cf_cpu}
  3268. ;;
  3269. "" | "m68k")
  3270. with_cpu=m${default_m68k_cpu}
  3271. ;;
  3272. esac
  3273. ;;
  3274. powerpc*-*-*spe*)
  3275. if test x$enable_e500_double = xyes; then
  3276. with_cpu=8548
  3277. else
  3278. with_cpu=8540
  3279. fi
  3280. ;;
  3281. sparc*-*-*)
  3282. case ${target} in
  3283. *-leon-*)
  3284. with_cpu=leon
  3285. ;;
  3286. *-leon[3-9]*)
  3287. with_cpu=leon3
  3288. ;;
  3289. *-leon[3-9]v7*)
  3290. with_cpu=leon3v7
  3291. ;;
  3292. *)
  3293. with_cpu="`echo ${target} | sed 's/-.*$//'`"
  3294. ;;
  3295. esac
  3296. ;;
  3297. esac
  3298. # Avoid overriding --with-cpu-32 and --with-cpu-64 values.
  3299. case ${target} in
  3300. i[34567]86-*-*|x86_64-*-*)
  3301. if test x$with_cpu_32 != x || test x$with_cpu_64 != x; then
  3302. if test x$with_cpu_32 = x; then
  3303. with_cpu_32=$with_cpu
  3304. fi
  3305. if test x$with_cpu_64 = x; then
  3306. with_cpu_64=$with_cpu
  3307. fi
  3308. with_cpu=
  3309. fi
  3310. ;;
  3311. esac
  3312. fi
  3313. # Support for --with-arch and related options (and a few unrelated options,
  3314. # too).
  3315. case ${with_arch} in
  3316. yes | no)
  3317. echo "--with-arch must be passed a value" 1>&2
  3318. exit 1
  3319. ;;
  3320. esac
  3321. # If there is no $with_arch option, try to infer one from ${target}.
  3322. # This block sets nothing except for with_arch.
  3323. if test x$with_arch = x ; then
  3324. case ${target} in
  3325. i[34567]86-*-darwin*|x86_64-*-darwin*)
  3326. # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT
  3327. # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h.
  3328. ;;
  3329. i[34567]86-*-*)
  3330. # --with-fpmath sets the default ISA to SSE2, which is the same
  3331. # ISA supported by Pentium 4.
  3332. if test x$with_fpmath = x || test $arch_without_sse2 = no; then
  3333. with_arch=$arch
  3334. else
  3335. with_arch=pentium4
  3336. fi
  3337. ;;
  3338. x86_64-*-*)
  3339. with_arch=$arch
  3340. ;;
  3341. mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*)
  3342. with_arch=r5900
  3343. ;;
  3344. mips*-*-vxworks)
  3345. with_arch=mips2
  3346. ;;
  3347. esac
  3348. # Avoid overriding --with-arch-32 and --with-arch-64 values.
  3349. case ${target} in
  3350. i[34567]86-*-darwin*|x86_64-*-darwin*)
  3351. # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT
  3352. # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h.
  3353. ;;
  3354. i[34567]86-*-*|x86_64-*-*)
  3355. if test x$with_arch_32 != x || test x$with_arch_64 != x; then
  3356. if test x$with_arch_32 = x; then
  3357. with_arch_32=$with_arch
  3358. fi
  3359. if test x$with_arch_64 = x; then
  3360. if test $arch_without_64bit = yes; then
  3361. # Set the default 64bit arch to x86-64 if the default arch
  3362. # doesn't support 64bit.
  3363. with_arch_64=x86-64
  3364. else
  3365. with_arch_64=$with_arch
  3366. fi
  3367. fi
  3368. with_arch=
  3369. elif test $arch_without_64bit$need_64bit_isa = yesyes; then
  3370. # Set the default 64bit arch to x86-64 if the default arch
  3371. # doesn't support 64bit and we need 64bit ISA.
  3372. with_arch_32=$with_arch
  3373. with_arch_64=x86-64
  3374. with_arch=
  3375. fi
  3376. ;;
  3377. esac
  3378. fi
  3379. # Infer a default setting for --with-float.
  3380. if test x$with_float = x; then
  3381. case ${target} in
  3382. mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*)
  3383. # The R5900 doesn't support 64-bit float. 32-bit float doesn't
  3384. # comply with IEEE 754.
  3385. with_float=soft
  3386. ;;
  3387. esac
  3388. fi
  3389. # Infer a default setting for --with-fpu.
  3390. if test x$with_fpu = x; then
  3391. case ${target} in
  3392. mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*)
  3393. # The R5900 FPU only supports single precision.
  3394. with_fpu=single
  3395. ;;
  3396. esac
  3397. fi
  3398. # Support --with-fpmath.
  3399. if test x$with_fpmath != x; then
  3400. case ${target} in
  3401. i[34567]86-*-* | x86_64-*-*)
  3402. case ${with_fpmath} in
  3403. avx)
  3404. tm_file="${tm_file} i386/avxmath.h"
  3405. ;;
  3406. sse)
  3407. tm_file="${tm_file} i386/ssemath.h"
  3408. ;;
  3409. *)
  3410. echo "Invalid --with-fpmath=$with_fpmath" 1>&2
  3411. exit 1
  3412. ;;
  3413. esac
  3414. ;;
  3415. *)
  3416. echo "--with-fpmath isn't supported for $target." 1>&2
  3417. exit 1
  3418. ;;
  3419. esac
  3420. fi
  3421. # Similarly for --with-schedule.
  3422. if test x$with_schedule = x; then
  3423. case ${target} in
  3424. hppa1*)
  3425. # Override default PA8000 scheduling model.
  3426. with_schedule=7100LC
  3427. ;;
  3428. esac
  3429. fi
  3430. # Infer a default setting for --with-llsc.
  3431. if test x$with_llsc = x; then
  3432. case ${target} in
  3433. mips64r5900-*-* | mips64r5900el-*-* | mipsr5900-*-* | mipsr5900el-*-*)
  3434. # The R5900 doesn't support LL(D) and SC(D).
  3435. with_llsc=no
  3436. ;;
  3437. mips*-*-linux*)
  3438. # The kernel emulates LL and SC where necessary.
  3439. with_llsc=yes
  3440. ;;
  3441. esac
  3442. fi
  3443. # Validate and mark as valid any --with options supported
  3444. # by this target. In order to use a particular --with option
  3445. # you must list it in supported_defaults; validating the value
  3446. # is optional. This case statement should set nothing besides
  3447. # supported_defaults.
  3448. supported_defaults=
  3449. case "${target}" in
  3450. aarch64*-*-*)
  3451. supported_defaults="abi cpu arch"
  3452. for which in cpu arch; do
  3453. eval "val=\$with_$which"
  3454. base_val=`echo $val | sed -e 's/\+.*//'`
  3455. ext_val=`echo $val | sed -e 's/[a-z0-9\-]\+//'`
  3456. if [ $which = arch ]; then
  3457. def=aarch64-arches.def
  3458. pattern=AARCH64_ARCH
  3459. else
  3460. def=aarch64-cores.def
  3461. pattern=AARCH64_CORE
  3462. fi
  3463. ext_mask=AARCH64_CPU_DEFAULT_FLAGS
  3464. # Find the base CPU or ARCH id in aarch64-cores.def or
  3465. # aarch64-arches.def
  3466. if [ x"$base_val" = x ] \
  3467. || grep "^$pattern(\"$base_val\"," \
  3468. ${srcdir}/config/aarch64/$def \
  3469. > /dev/null; then
  3470. if [ $which = arch ]; then
  3471. base_id=`grep "^$pattern(\"$base_val\"," \
  3472. ${srcdir}/config/aarch64/$def | \
  3473. sed -e 's/^[^,]*,[ ]*//' | \
  3474. sed -e 's/,.*$//'`
  3475. # Extract the architecture flags from aarch64-arches.def
  3476. ext_mask=`grep "^$pattern(\"$base_val\"," \
  3477. ${srcdir}/config/aarch64/$def | \
  3478. sed -e 's/)$//' | \
  3479. sed -e 's/^.*,//'`
  3480. else
  3481. base_id=`grep "^$pattern(\"$base_val\"," \
  3482. ${srcdir}/config/aarch64/$def | \
  3483. sed -e 's/^[^,]*,[ ]*//' | \
  3484. sed -e 's/,.*$//'`
  3485. fi
  3486. while [ x"$ext_val" != x ]
  3487. do
  3488. ext_val=`echo $ext_val | sed -e 's/\+//'`
  3489. ext=`echo $ext_val | sed -e 's/\+.*//'`
  3490. base_ext=`echo $ext | sed -e 's/^no//'`
  3491. if [ x"$base_ext" = x ] \
  3492. || grep "^AARCH64_OPT_EXTENSION(\"$base_ext\"," \
  3493. ${srcdir}/config/aarch64/aarch64-option-extensions.def \
  3494. > /dev/null; then
  3495. ext_on=`grep "^AARCH64_OPT_EXTENSION(\"$base_ext\"," \
  3496. ${srcdir}/config/aarch64/aarch64-option-extensions.def | \
  3497. sed -e 's/^[^,]*,[ ]*//' | \
  3498. sed -e 's/,.*$//'`
  3499. ext_off=`grep "^AARCH64_OPT_EXTENSION(\"$base_ext\"," \
  3500. ${srcdir}/config/aarch64/aarch64-option-extensions.def | \
  3501. sed -e 's/^[^,]*,[ ]*[^,]*,[ ]*//' | \
  3502. sed -e 's/,.*$//' | \
  3503. sed -e 's/).*$//'`
  3504. if [ $ext = $base_ext ]; then
  3505. # Adding extension
  3506. ext_mask="("$ext_mask") | ("$ext_on")"
  3507. else
  3508. # Removing extension
  3509. ext_mask="("$ext_mask") & ~("$ext_off")"
  3510. fi
  3511. true
  3512. else
  3513. echo "Unknown extension used in --with-$which=$val" 1>&2
  3514. exit 1
  3515. fi
  3516. ext_val=`echo $ext_val | sed -e 's/[a-z0-9]\+//'`
  3517. done
  3518. ext_mask="(("$ext_mask") << 6)"
  3519. if [ x"$base_id" != x ]; then
  3520. target_cpu_cname="TARGET_CPU_$base_id | $ext_mask"
  3521. fi
  3522. true
  3523. else
  3524. echo "Unknown $which used in --with-$which=$val" 1>&2
  3525. exit 1
  3526. fi
  3527. done
  3528. ;;
  3529. alpha*-*-*)
  3530. supported_defaults="cpu tune"
  3531. for which in cpu tune; do
  3532. eval "val=\$with_$which"
  3533. case "$val" in
  3534. "" \
  3535. | ev4 | ev45 | 21064 | ev5 | 21164 | ev56 | 21164a \
  3536. | pca56 | 21164PC | 21164pc | ev6 | 21264 | ev67 \
  3537. | 21264a)
  3538. ;;
  3539. *)
  3540. echo "Unknown CPU used in --with-$which=$val" 1>&2
  3541. exit 1
  3542. ;;
  3543. esac
  3544. done
  3545. ;;
  3546. arc*-*-*) # was: arc*-*-linux-uclibc)
  3547. supported_defaults="cpu"
  3548. case $with_cpu in
  3549. arc600|arc601|arc700)
  3550. ;;
  3551. *) echo "Unknown cpu type"
  3552. exit 1
  3553. ;;
  3554. esac
  3555. ;;
  3556. arm*-*-*)
  3557. supported_defaults="arch cpu float tune fpu abi mode tls"
  3558. for which in cpu tune; do
  3559. # See if it matches any of the entries in arm-cores.def
  3560. eval "val=\$with_$which"
  3561. if [ x"$val" = x ] \
  3562. || grep "^ARM_CORE(\"$val\"," \
  3563. ${srcdir}/config/arm/arm-cores.def \
  3564. > /dev/null; then
  3565. # Ok
  3566. new_val=`grep "^ARM_CORE(\"$val\"," \
  3567. ${srcdir}/config/arm/arm-cores.def | \
  3568. sed -e 's/^[^,]*,[ ]*//' | \
  3569. sed -e 's/,.*$//'`
  3570. eval "target_${which}_cname=$new_val"
  3571. echo "For $val real value is $new_val"
  3572. true
  3573. else
  3574. echo "Unknown CPU used in --with-$which=$val" 1>&2
  3575. exit 1
  3576. fi
  3577. done
  3578. # See if it matches any of the entries in arm-arches.def
  3579. if [ x"$with_arch" = x ] \
  3580. || grep "^ARM_ARCH(\"$with_arch\"," \
  3581. ${srcdir}/config/arm/arm-arches.def \
  3582. > /dev/null; then
  3583. # OK
  3584. true
  3585. else
  3586. echo "Unknown arch used in --with-arch=$with_arch" 1>&2
  3587. exit 1
  3588. fi
  3589. case "$with_float" in
  3590. "" \
  3591. | soft | hard | softfp)
  3592. # OK
  3593. ;;
  3594. *)
  3595. echo "Unknown floating point type used in --with-float=$with_float" 1>&2
  3596. exit 1
  3597. ;;
  3598. esac
  3599. # see if it matches any of the entries in arm-fpus.def
  3600. if [ x"$with_fpu" = x ] \
  3601. || grep "^ARM_FPU(\"$with_fpu\"," \
  3602. ${srcdir}/config/arm/arm-fpus.def \
  3603. > /dev/null; then
  3604. # OK
  3605. true
  3606. else
  3607. echo "Unknown fpu used in --with-fpu=$with_fpu" 1>&2
  3608. exit 1
  3609. fi
  3610. case "$with_abi" in
  3611. "" \
  3612. | apcs-gnu | atpcs | aapcs | iwmmxt | aapcs-linux )
  3613. #OK
  3614. ;;
  3615. *)
  3616. echo "Unknown ABI used in --with-abi=$with_abi"
  3617. exit 1
  3618. ;;
  3619. esac
  3620. case "$with_mode" in
  3621. "" \
  3622. | arm | thumb )
  3623. #OK
  3624. ;;
  3625. *)
  3626. echo "Unknown mode used in --with-mode=$with_mode"
  3627. exit 1
  3628. ;;
  3629. esac
  3630. case "$with_tls" in
  3631. "" \
  3632. | gnu | gnu2)
  3633. # OK
  3634. ;;
  3635. *)
  3636. echo "Unknown TLS method used in --with-tls=$with_tls" 1>&2
  3637. exit 1
  3638. ;;
  3639. esac
  3640. if test "x$with_arch" != x && test "x$with_cpu" != x; then
  3641. echo "Switch \"--with-arch\" may not be used with switch \"--with-cpu\"" 1>&2
  3642. exit 1
  3643. fi
  3644. if test "x$with_cpu" != x && test "x$with_tune" != x; then
  3645. echo "Switch \"--with-tune\" may not be used with switch \"--with-cpu\"" 1>&2
  3646. exit 1
  3647. fi
  3648. # Add extra multilibs
  3649. if test "x$with_multilib_list" != x; then
  3650. arm_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
  3651. for arm_multilib in ${arm_multilibs}; do
  3652. case ${arm_multilib} in
  3653. aprofile)
  3654. # Note that arm/t-aprofile is a
  3655. # stand-alone make file fragment to be
  3656. # used only with itself. We do not
  3657. # specifically use the
  3658. # TM_MULTILIB_OPTION framework because
  3659. # this shorthand is more
  3660. # pragmatic. Additionally it is only
  3661. # designed to work without any
  3662. # with-cpu, with-arch with-mode
  3663. # with-fpu or with-float options.
  3664. if test "x$with_arch" != x \
  3665. || test "x$with_cpu" != x \
  3666. || test "x$with_float" != x \
  3667. || test "x$with_fpu" != x \
  3668. || test "x$with_mode" != x ; then
  3669. echo "Error: You cannot use any of --with-arch/cpu/fpu/float/mode with --with-multilib-list=aprofile" 1>&2
  3670. exit 1
  3671. fi
  3672. tmake_file="${tmake_file} arm/t-aprofile"
  3673. break
  3674. ;;
  3675. default)
  3676. ;;
  3677. *)
  3678. echo "Error: --with-multilib-list=${with_multilib_list} not supported." 1>&2
  3679. exit 1
  3680. ;;
  3681. esac
  3682. done
  3683. fi
  3684. ;;
  3685. fr*-*-*linux*)
  3686. supported_defaults=cpu
  3687. case "$with_cpu" in
  3688. fr400) ;;
  3689. fr550) ;;
  3690. *)
  3691. echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
  3692. exit 1
  3693. ;;
  3694. esac
  3695. ;;
  3696. fido-*-* | m68k*-*-*)
  3697. supported_defaults="arch cpu"
  3698. case "$with_arch" in
  3699. "" | "m68k"| "cf")
  3700. m68k_arch_family="$with_arch"
  3701. ;;
  3702. *)
  3703. echo "Invalid --with-arch=$with_arch" 1>&2
  3704. exit 1
  3705. ;;
  3706. esac
  3707. # We always have a $with_cpu setting here.
  3708. case "$with_cpu" in
  3709. "m68000" | "m68010" | "m68020" | "m68030" | "m68040" | "m68060")
  3710. m68k_cpu_ident=$with_cpu
  3711. ;;
  3712. "m68020-40")
  3713. m68k_cpu_ident=m68020
  3714. tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_40"
  3715. ;;
  3716. "m68020-60")
  3717. m68k_cpu_ident=m68020
  3718. tm_defines="$tm_defines M68K_DEFAULT_TUNE=u68020_60"
  3719. ;;
  3720. *)
  3721. # We need the C identifier rather than the string.
  3722. m68k_cpu_ident=`awk -v arg="\"$with_cpu\"" \
  3723. 'BEGIN { FS="[ \t]*[,()][ \t]*" }; \
  3724. $1 == "M68K_DEVICE" && $2 == arg { print $3 }' \
  3725. ${srcdir}/config/m68k/m68k-devices.def`
  3726. if [ x"$m68k_cpu_ident" = x ] ; then
  3727. echo "Unknown CPU used in --with-cpu=$with_cpu" 1>&2
  3728. exit 1
  3729. fi
  3730. with_cpu="mcpu=$with_cpu"
  3731. ;;
  3732. esac
  3733. ;;
  3734. hppa*-*-*)
  3735. supported_defaults="arch schedule"
  3736. case "$with_arch" in
  3737. "" | 1.0 | 1.1 | 2.0)
  3738. # OK
  3739. ;;
  3740. *)
  3741. echo "Unknown architecture used in --with-arch=$with_arch" 1>&2
  3742. exit 1
  3743. ;;
  3744. esac
  3745. case "$with_schedule" in
  3746. "" | 700 | 7100 | 7100LC | 7200 | 7300 | 8000)
  3747. # OK
  3748. ;;
  3749. *)
  3750. echo "Unknown processor used in --with-schedule=$with_schedule." 1>&2
  3751. exit 1
  3752. ;;
  3753. esac
  3754. ;;
  3755. i[34567]86-*-* | x86_64-*-*)
  3756. supported_defaults="abi arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64"
  3757. for which in arch arch_32 arch_64 cpu cpu_32 cpu_64 tune tune_32 tune_64; do
  3758. eval "val=\$with_$which"
  3759. case " $x86_archs " in
  3760. *" ${val} "*)
  3761. case "${target}" in
  3762. x86_64-*-*)
  3763. case "x$which" in
  3764. *_32)
  3765. ;;
  3766. *)
  3767. echo "CPU given in --with-$which=$val doesn't support 64bit mode." 1>&2
  3768. exit 1
  3769. ;;
  3770. esac
  3771. ;;
  3772. esac
  3773. # OK
  3774. ;;
  3775. *)
  3776. if test x${val} != x; then
  3777. case " $x86_64_archs " in
  3778. *" ${val} "*)
  3779. # OK
  3780. ;;
  3781. *)
  3782. # Allow $x86_cpus --with-cpu=/--with-tune=
  3783. case "x$which" in
  3784. xcpu*|xtune*)
  3785. case " $x86_cpus " in
  3786. *" ${val} "*)
  3787. # OK
  3788. ;;
  3789. *)
  3790. echo "Unknown CPU given in --with-$which=$val." 1>&2
  3791. exit 1
  3792. ;;
  3793. esac
  3794. ;;
  3795. *)
  3796. echo "Unknown CPU given in --with-$which=$val." 1>&2
  3797. exit 1
  3798. ;;
  3799. esac
  3800. ;;
  3801. esac
  3802. fi
  3803. ;;
  3804. esac
  3805. done
  3806. ;;
  3807. mips*-*-*)
  3808. supported_defaults="abi arch arch_32 arch_64 float fpu nan fp_32 odd_spreg_32 tune tune_32 tune_64 divide llsc mips-plt synci"
  3809. case ${with_float} in
  3810. "" | soft | hard)
  3811. # OK
  3812. ;;
  3813. *)
  3814. echo "Unknown floating point type used in --with-float=$with_float" 1>&2
  3815. exit 1
  3816. ;;
  3817. esac
  3818. case ${with_fpu} in
  3819. "" | single | double)
  3820. # OK
  3821. ;;
  3822. *)
  3823. echo "Unknown fpu type used in --with-fpu=$with_fpu" 1>&2
  3824. exit 1
  3825. ;;
  3826. esac
  3827. case ${with_nan} in
  3828. "" | 2008 | legacy)
  3829. # OK
  3830. ;;
  3831. *)
  3832. echo "Unknown NaN encoding used in --with-nan=$with_nan" 1>&2
  3833. exit 1
  3834. ;;
  3835. esac
  3836. case ${with_fp_32} in
  3837. "" | 32 | xx | 64)
  3838. # OK
  3839. ;;
  3840. *)
  3841. echo "Unknown FP mode used in --with-fp-32=$with_fp_32" 1>&2
  3842. exit 1
  3843. ;;
  3844. esac
  3845. case ${with_odd_spreg_32} in
  3846. yes)
  3847. with_odd_spreg_32="odd-spreg"
  3848. ;;
  3849. no)
  3850. with_odd_spreg_32="no-odd-spreg"
  3851. ;;
  3852. "")
  3853. # OK
  3854. ;;
  3855. *)
  3856. echo "Unknown odd-spreg-32 type used in --with-odd-spreg-32=$with_odd_spreg_32" 1>&2
  3857. exit 1
  3858. ;;
  3859. esac
  3860. case ${with_abi} in
  3861. "" | 32 | o64 | n32 | 64 | eabi)
  3862. # OK
  3863. ;;
  3864. *)
  3865. echo "Unknown ABI used in --with-abi=$with_abi" 1>&2
  3866. exit 1
  3867. ;;
  3868. esac
  3869. case ${with_divide} in
  3870. "" | breaks | traps)
  3871. # OK
  3872. ;;
  3873. *)
  3874. echo "Unknown division check type use in --with-divide=$with_divide" 1>&2
  3875. exit 1
  3876. ;;
  3877. esac
  3878. case ${with_llsc} in
  3879. yes)
  3880. with_llsc=llsc
  3881. ;;
  3882. no)
  3883. with_llsc="no-llsc"
  3884. ;;
  3885. "")
  3886. # OK
  3887. ;;
  3888. *)
  3889. echo "Unknown llsc type used in --with-llsc" 1>&2
  3890. exit 1
  3891. ;;
  3892. esac
  3893. case ${with_mips_plt} in
  3894. yes)
  3895. with_mips_plt=plt
  3896. ;;
  3897. no)
  3898. with_mips_plt=no-plt
  3899. ;;
  3900. "")
  3901. ;;
  3902. *)
  3903. echo "Unknown --with-mips-plt argument: $with_mips_plt" 1>&2
  3904. exit 1
  3905. ;;
  3906. esac
  3907. case ${with_synci} in
  3908. yes)
  3909. with_synci=synci
  3910. ;;
  3911. no)
  3912. with_synci=no-synci
  3913. ;;
  3914. "")
  3915. ;;
  3916. *)
  3917. echo "Unknown synci type used in --with-synci" 1>&2
  3918. exit 1
  3919. ;;
  3920. esac
  3921. ;;
  3922. nds32*-*-*)
  3923. supported_defaults="arch nds32_lib"
  3924. # process --with-arch
  3925. case "${with_arch}" in
  3926. "" | v2 | v3 | v3m)
  3927. # OK
  3928. ;;
  3929. *)
  3930. echo "Cannot accept --with-arch=$with_arch, available values are: v2 v3 v3m" 1>&2
  3931. exit 1
  3932. ;;
  3933. esac
  3934. # process --with-nds32-lib
  3935. case "${with_nds32_lib}" in
  3936. "")
  3937. # the default library is newlib
  3938. with_nds32_lib=newlib
  3939. ;;
  3940. newlib)
  3941. # OK
  3942. ;;
  3943. mculib)
  3944. # OK
  3945. ;;
  3946. *)
  3947. echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
  3948. exit 1
  3949. ;;
  3950. esac
  3951. ;;
  3952. powerpc*-*-* | rs6000-*-*)
  3953. supported_defaults="abi cpu cpu_32 cpu_64 float tune tune_32 tune_64"
  3954. for which in cpu cpu_32 cpu_64 tune tune_32 tune_64; do
  3955. eval "val=\$with_$which"
  3956. case ${val} in
  3957. default32 | default64)
  3958. case $which in
  3959. cpu | tune)
  3960. ;;
  3961. *)
  3962. echo "$val only valid for --with-cpu and --with-tune." 1>&2
  3963. exit 1
  3964. ;;
  3965. esac
  3966. with_which="with_$which"
  3967. eval $with_which=
  3968. ;;
  3969. 405cr)
  3970. tm_defines="${tm_defines} CONFIG_PPC405CR"
  3971. eval "with_$which=405"
  3972. ;;
  3973. "" | common | native \
  3974. | power | power[2345678] | power6x | powerpc | powerpc64 \
  3975. | rios | rios1 | rios2 | rsc | rsc1 | rs64a \
  3976. | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \
  3977. | 476 | 476fp | 505 | 601 | 602 | 603 | 603e | ec603e \
  3978. | 604 | 604e | 620 | 630 | 740 | 750 | 7400 | 7450 \
  3979. | a2 | e300c[23] | 854[08] | e500mc | e500mc64 | e5500 | e6500 \
  3980. | titan | 801 | 821 | 823 | 860 | 970 | G3 | G4 | G5 | cell)
  3981. # OK
  3982. ;;
  3983. *)
  3984. echo "Unknown cpu used in --with-$which=$val." 1>&2
  3985. exit 1
  3986. ;;
  3987. esac
  3988. done
  3989. case "$with_abi" in
  3990. "" | elfv1 | elfv2 )
  3991. #OK
  3992. ;;
  3993. *)
  3994. echo "Unknown ABI used in --with-abi=$with_abi"
  3995. exit 1
  3996. ;;
  3997. esac
  3998. ;;
  3999. s390*-*-*)
  4000. supported_defaults="arch mode tune"
  4001. for which in arch tune; do
  4002. eval "val=\$with_$which"
  4003. case ${val} in
  4004. "" | g5 | g6 | z900 | z990 | z9-109 | z9-ec | z10 | z196 | zEC12 | z13)
  4005. # OK
  4006. ;;
  4007. *)
  4008. echo "Unknown cpu used in --with-$which=$val." 1>&2
  4009. exit 1
  4010. ;;
  4011. esac
  4012. done
  4013. case ${with_mode} in
  4014. "" | esa | zarch)
  4015. # OK
  4016. ;;
  4017. *)
  4018. echo "Unknown architecture mode used in --with-mode=$with_mode." 1>&2
  4019. exit 1
  4020. ;;
  4021. esac
  4022. ;;
  4023. sh[123456ble]-*-* | sh-*-*)
  4024. supported_defaults="cpu"
  4025. case "`echo $with_cpu | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz- | sed s/sh/m/`" in
  4026. "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu )
  4027. # OK
  4028. ;;
  4029. m2a | m2a-single | m2a-single-only | m2a-nofpu)
  4030. ;;
  4031. m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al)
  4032. ;;
  4033. *)
  4034. echo "Unknown CPU used in --with-cpu=$with_cpu, known values:" 1>&2
  4035. echo "m1 m2 m2e m3 m3e m4 m4-single m4-single-only m4-nofpu" 1>&2
  4036. echo "m4a m4a-single m4a-single-only m4a-nofpu m4al" 1>&2
  4037. echo "m2a m2a-single m2a-single-only m2a-nofpu" 1>&2
  4038. exit 1
  4039. ;;
  4040. esac
  4041. ;;
  4042. sparc*-*-*)
  4043. supported_defaults="cpu float tune"
  4044. for which in cpu tune; do
  4045. eval "val=\$with_$which"
  4046. case ${val} in
  4047. "" | sparc | sparcv9 | sparc64 \
  4048. | v7 | cypress \
  4049. | v8 | supersparc | hypersparc | leon | leon3 | leon3v7 \
  4050. | sparclite | f930 | f934 | sparclite86x \
  4051. | sparclet | tsc701 \
  4052. | v9 | ultrasparc | ultrasparc3 | niagara | niagara2 \
  4053. | niagara3 | niagara4)
  4054. # OK
  4055. ;;
  4056. *)
  4057. echo "Unknown cpu used in --with-$which=$val" 1>&2
  4058. exit 1
  4059. ;;
  4060. esac
  4061. done
  4062. case ${with_float} in
  4063. "" | soft | hard)
  4064. # OK
  4065. ;;
  4066. *)
  4067. echo "Unknown floating point type used in --with-float=$with_float" 1>&2
  4068. exit 1
  4069. ;;
  4070. esac
  4071. ;;
  4072. spu-*-*)
  4073. supported_defaults="arch tune"
  4074. for which in arch tune; do
  4075. eval "val=\$with_$which"
  4076. case ${val} in
  4077. "" | cell | celledp)
  4078. # OK
  4079. ;;
  4080. *)
  4081. echo "Unknown cpu used in --with-$which=$val." 1>&2
  4082. exit 1
  4083. ;;
  4084. esac
  4085. done
  4086. ;;
  4087. tic6x-*-*)
  4088. supported_defaults="arch"
  4089. case ${with_arch} in
  4090. "" | c62x | c64x | c64x+ | c67x | c67x+ | c674x)
  4091. # OK
  4092. ;;
  4093. *)
  4094. echo "Unknown arch used in --with-arch=$with_arch." 1>&2
  4095. exit 1
  4096. ;;
  4097. esac
  4098. ;;
  4099. v850*-*-*)
  4100. supported_defaults=cpu
  4101. case ${with_cpu} in
  4102. "" | v850e | v850e1 | v850e2 | v850es | v850e2v3 | v850e3v5)
  4103. # OK
  4104. ;;
  4105. *)
  4106. echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
  4107. exit 1
  4108. ;;
  4109. esac
  4110. ;;
  4111. esac
  4112. # Set some miscellaneous flags for particular targets.
  4113. target_cpu_default2=
  4114. case ${target} in
  4115. aarch64*-*-*)
  4116. if test x"$target_cpu_cname" != x
  4117. then
  4118. target_cpu_default2=$target_cpu_cname
  4119. fi
  4120. ;;
  4121. arm*-*-*)
  4122. if test x$target_cpu_cname = x
  4123. then
  4124. target_cpu_default2=TARGET_CPU_generic
  4125. else
  4126. target_cpu_default2=TARGET_CPU_$target_cpu_cname
  4127. fi
  4128. ;;
  4129. hppa*-*-*)
  4130. if test x$gas = xyes
  4131. then
  4132. target_cpu_default2="MASK_GAS"
  4133. fi
  4134. ;;
  4135. fido*-*-* | m68k*-*-*)
  4136. target_cpu_default2=$m68k_cpu_ident
  4137. tmake_file="m68k/t-opts $tmake_file"
  4138. if [ x"$m68k_arch_family" != x ]; then
  4139. tmake_file="m68k/t-$m68k_arch_family $tmake_file"
  4140. fi
  4141. ;;
  4142. i[34567]86-*-darwin* | x86_64-*-darwin*)
  4143. ;;
  4144. i[34567]86-*-linux* | x86_64-*-linux*)
  4145. tmake_file="$tmake_file i386/t-linux"
  4146. ;;
  4147. i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu)
  4148. tmake_file="$tmake_file i386/t-kfreebsd"
  4149. ;;
  4150. i[34567]86-*-gnu*)
  4151. tmake_file="$tmake_file i386/t-gnu"
  4152. ;;
  4153. i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
  4154. ;;
  4155. i[34567]86-*-cygwin* | x86_64-*-cygwin*)
  4156. ;;
  4157. i[34567]86-*-mingw* | x86_64-*-mingw* | x86_64-w64-minwin64*)
  4158. ;;
  4159. i[34567]86-*-dragonfly* | x86_64-*-dragonfly*)
  4160. ;;
  4161. i[34567]86-*-freebsd* | x86_64-*-freebsd*)
  4162. ;;
  4163. ia64*-*-linux*)
  4164. ;;
  4165. mips*-*-*)
  4166. if test x$gnu_ld = xyes
  4167. then
  4168. target_cpu_default2="MASK_SPLIT_ADDRESSES"
  4169. fi
  4170. case ${target} in
  4171. mips*el-*-*)
  4172. tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
  4173. ;;
  4174. esac
  4175. if test x$with_arch != x; then
  4176. default_mips_arch=$with_arch
  4177. fi
  4178. if test x$with_abi != x; then
  4179. default_mips_abi=$with_abi
  4180. fi
  4181. case ${default_mips_arch} in
  4182. mips1) tm_defines="$tm_defines MIPS_ISA_DEFAULT=1" ;;
  4183. mips2) tm_defines="$tm_defines MIPS_ISA_DEFAULT=2" ;;
  4184. mips3) tm_defines="$tm_defines MIPS_ISA_DEFAULT=3" ;;
  4185. mips4) tm_defines="$tm_defines MIPS_ISA_DEFAULT=4" ;;
  4186. mips32) tm_defines="$tm_defines MIPS_ISA_DEFAULT=32" ;;
  4187. mips32r2) tm_defines="$tm_defines MIPS_ISA_DEFAULT=33" ;;
  4188. mips32r6) tm_defines="$tm_defines MIPS_ISA_DEFAULT=37" ;;
  4189. mips64) tm_defines="$tm_defines MIPS_ISA_DEFAULT=64" ;;
  4190. mips64r2) tm_defines="$tm_defines MIPS_ISA_DEFAULT=65" ;;
  4191. mips64r6) tm_defines="$tm_defines MIPS_ISA_DEFAULT=69" ;;
  4192. esac
  4193. case ${default_mips_abi} in
  4194. 32) tm_defines="$tm_defines MIPS_ABI_DEFAULT=ABI_32" ;;
  4195. o64) tm_defines="$tm_defines MIPS_ABI_DEFAULT=ABI_O64" ;;
  4196. n32) tm_defines="$tm_defines MIPS_ABI_DEFAULT=ABI_N32" ;;
  4197. 64) tm_defines="$tm_defines MIPS_ABI_DEFAULT=ABI_64" ;;
  4198. eabi) tm_defines="$tm_defines MIPS_ABI_DEFAULT=ABI_EABI" ;;
  4199. esac
  4200. tmake_file="mips/t-mips $tmake_file"
  4201. ;;
  4202. powerpc*-*-* | rs6000-*-*)
  4203. # FIXME: The PowerPC port uses the value set at compile time,
  4204. # although it's only cosmetic.
  4205. if test "x$with_cpu" != x
  4206. then
  4207. target_cpu_default2="\\\"$with_cpu\\\""
  4208. fi
  4209. out_file=rs6000/rs6000.c
  4210. c_target_objs="${c_target_objs} rs6000-c.o"
  4211. cxx_target_objs="${cxx_target_objs} rs6000-c.o"
  4212. tmake_file="rs6000/t-rs6000 ${tmake_file}"
  4213. ;;
  4214. sh[123456ble]*-*-* | sh-*-*)
  4215. c_target_objs="${c_target_objs} sh-c.o"
  4216. cxx_target_objs="${cxx_target_objs} sh-c.o"
  4217. ;;
  4218. sparc*-*-*)
  4219. # Some standard aliases.
  4220. case x$with_cpu in
  4221. xsparc)
  4222. with_cpu=v7
  4223. ;;
  4224. xsparcv9 | xsparc64)
  4225. with_cpu=v9
  4226. ;;
  4227. esac
  4228. if test x$with_tune = x ; then
  4229. case ${target} in
  4230. *-leon-*)
  4231. with_tune=leon
  4232. ;;
  4233. *-leon[3-9]*)
  4234. with_tune=leon3
  4235. ;;
  4236. esac
  4237. fi
  4238. # The SPARC port checks this value at compile-time.
  4239. target_cpu_default2="TARGET_CPU_$with_cpu"
  4240. ;;
  4241. v850*-*-*)
  4242. case "x$with_cpu" in
  4243. x)
  4244. ;;
  4245. xv850e | xv850e1 | xv850e2 | xv850e2v3 | xv850e3v5)
  4246. target_cpu_default2="TARGET_CPU_$with_cpu"
  4247. ;;
  4248. xv850es)
  4249. target_cpu_default2="TARGET_CPU_v850e1"
  4250. ;;
  4251. esac
  4252. ;;
  4253. esac
  4254. t=
  4255. all_defaults="abi cpu cpu_32 cpu_64 arch arch_32 arch_64 tune tune_32 tune_64 schedule float mode fpu nan fp_32 odd_spreg_32 divide llsc mips-plt synci tls"
  4256. for option in $all_defaults
  4257. do
  4258. eval "val=\$with_"`echo $option | sed s/-/_/g`
  4259. if test -n "$val"; then
  4260. case " $supported_defaults " in
  4261. *" $option "*)
  4262. ;;
  4263. *)
  4264. echo "This target does not support --with-$option." 2>&1
  4265. echo "Valid --with options are: $supported_defaults" 2>&1
  4266. exit 1
  4267. ;;
  4268. esac
  4269. if test "x$t" = x
  4270. then
  4271. t="{ \"$option\", \"$val\" }"
  4272. else
  4273. t="${t}, { \"$option\", \"$val\" }"
  4274. fi
  4275. fi
  4276. done
  4277. if test "x$t" = x
  4278. then
  4279. configure_default_options="{ { NULL, NULL} }"
  4280. else
  4281. configure_default_options="{ ${t} }"
  4282. fi
  4283. if test "$target_cpu_default2" != ""
  4284. then
  4285. if test "$target_cpu_default" != ""
  4286. then
  4287. target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
  4288. else
  4289. target_cpu_default=$target_cpu_default2
  4290. fi
  4291. fi
  4292. case ${target} in
  4293. i[34567]86-*-* | x86_64-*-*)
  4294. if test x$enable_as_accelerator = xyes; then
  4295. extra_programs="mkoffload\$(exeext)"
  4296. fi
  4297. ;;
  4298. esac