config.host 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611
  1. # libgcc host-specific configuration file.
  2. # Copyright (C) 1997-2022 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 libgcc host-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 host-specific information.
  20. # This file bears an obvious resemblance to gcc/config.gcc. The cases
  21. # should be kept similar, to ease moving library-specific settings
  22. # from config.gcc to this file. That is also why tmake_file is
  23. # left as tmake_file, rather than hmake_file, even though this library
  24. # switches on ${host}.
  25. # This file switches on the shell variable ${host}, and also uses the
  26. # following shell variables:
  27. #
  28. # with_* Various variables as set by configure.
  29. # This file sets the following shell variables for use by the
  30. # autoconf-generated configure script:
  31. #
  32. # asm_hidden_op The assembler pseudo-op to use for hide
  33. # lists for object files implemented in
  34. # assembly (with -fvisibility=hidden for C).
  35. # The default is ".hidden".
  36. # cpu_type The name of the cpu, if different from the first
  37. # chunk of the canonical host name.
  38. # enable_execute_stack The name of a source file implementing
  39. # __enable_execute_stack.
  40. # extra_parts List of extra object files that should be compiled
  41. # for this target machine. This may be overridden
  42. # by setting EXTRA_PARTS in a tmake_file fragment.
  43. # If either is set, EXTRA_PARTS and
  44. # EXTRA_MULTILIB_PARTS inherited from the GCC
  45. # subdirectory will be ignored.
  46. # md_unwind_header The name of a header file defining
  47. # MD_FALLBACK_FRAME_STATE_FOR.
  48. # sfp_machine_header The name of a sfp-machine.h header file for soft-fp.
  49. # Defaults to "$cpu_type/sfp-machine.h" if it exists,
  50. # no-sfp-machine.h otherwise.
  51. # tmake_file A list of machine-description-specific
  52. # makefile fragments.
  53. # tm_defines List of target macros to define for all compilations.
  54. # tm_file A list of target macro files used only for code
  55. # built for the target, not the host. These files
  56. # are relative to $srcdir/config and must not have
  57. # the same names as files in $srcdir/../gcc/config.
  58. # unwind_header The name of the header file declaring the unwind
  59. # runtime interface routines.
  60. asm_hidden_op=.hidden
  61. enable_execute_stack=
  62. extra_parts=
  63. tmake_file=
  64. tm_file=
  65. tm_define=
  66. md_unwind_header=no-unwind.h
  67. unwind_header=unwind-generic.h
  68. # Set default cpu_type so it can be updated in each machine entry.
  69. cpu_type=`echo ${host} | sed 's/-.*$//'`
  70. case ${host} in
  71. m32c*-*-*)
  72. cpu_type=m32c
  73. tmake_file=t-fdpbit
  74. ;;
  75. aarch64*-*-*)
  76. cpu_type=aarch64
  77. ;;
  78. alpha*-*-*)
  79. cpu_type=alpha
  80. ;;
  81. am33_2.0-*-linux*)
  82. cpu_type=mn10300
  83. ;;
  84. amdgcn*-*-*)
  85. cpu_type=gcn
  86. tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
  87. ;;
  88. arc*-*-*)
  89. cpu_type=arc
  90. ;;
  91. arm*-*-*)
  92. cpu_type=arm
  93. ;;
  94. avr-*-*)
  95. cpu_type=avr
  96. ;;
  97. bfin*-*)
  98. cpu_type=bfin
  99. ;;
  100. bpf-*-*)
  101. cpu_type=bpf
  102. ;;
  103. cr16-*-*)
  104. ;;
  105. csky*-*-*)
  106. cpu_type=csky
  107. ;;
  108. fido-*-*)
  109. cpu_type=m68k
  110. ;;
  111. frv*) cpu_type=frv
  112. ;;
  113. ft32*) cpu_type=ft32
  114. ;;
  115. moxie*) cpu_type=moxie
  116. ;;
  117. i[34567]86-*-*)
  118. cpu_type=i386
  119. ;;
  120. x86_64-*-*)
  121. cpu_type=i386
  122. ;;
  123. ia64-*-*)
  124. ;;
  125. hppa*-*-*)
  126. cpu_type=pa
  127. ;;
  128. lm32*-*-*)
  129. cpu_type=lm32
  130. ;;
  131. loongarch*-*-*)
  132. cpu_type=loongarch
  133. tmake_file="loongarch/t-loongarch"
  134. if test "${libgcc_cv_loongarch_hard_float}" = yes; then
  135. tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
  136. else
  137. tmake_file="${tmake_file} t-softfp-sfdf"
  138. fi
  139. if test "${ac_cv_sizeof_long_double}" = 16; then
  140. tmake_file="${tmake_file} loongarch/t-softfp-tf"
  141. fi
  142. if test "${host_address}" = 64; then
  143. tmake_file="${tmake_file} loongarch/t-loongarch64"
  144. fi
  145. tmake_file="${tmake_file} t-softfp"
  146. ;;
  147. m32r*-*-*)
  148. cpu_type=m32r
  149. ;;
  150. m68k-*-*)
  151. ;;
  152. microblaze*-*-*)
  153. cpu_type=microblaze
  154. ;;
  155. mips*-*-*)
  156. # All MIPS targets provide a full set of FP routines.
  157. cpu_type=mips
  158. tmake_file="mips/t-mips"
  159. if test "${libgcc_cv_mips_hard_float}" = yes; then
  160. tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
  161. else
  162. tmake_file="${tmake_file} t-softfp-sfdf"
  163. fi
  164. if test "${ac_cv_sizeof_long_double}" = 16; then
  165. tmake_file="${tmake_file} mips/t-softfp-tf"
  166. fi
  167. if test "${host_address}" = 64; then
  168. tmake_file="${tmake_file} mips/t-mips64"
  169. fi
  170. tmake_file="${tmake_file} t-softfp"
  171. ;;
  172. nds32*-*)
  173. cpu_type=nds32
  174. ;;
  175. nios2*-*-*)
  176. cpu_type=nios2
  177. ;;
  178. or1k*-*-*)
  179. cpu_type=or1k
  180. ;;
  181. powerpc*-*-*)
  182. cpu_type=rs6000
  183. ;;
  184. pru-*-*)
  185. cpu_type=pru
  186. ;;
  187. rs6000*-*-*)
  188. ;;
  189. riscv*-*-*)
  190. cpu_type=riscv
  191. ;;
  192. sparc64*-*-*)
  193. cpu_type=sparc
  194. ;;
  195. sparc*-*-*)
  196. cpu_type=sparc
  197. ;;
  198. s390*-*-*)
  199. cpu_type=s390
  200. ;;
  201. # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
  202. sh[123456789lbe]*-*-*)
  203. cpu_type=sh
  204. ;;
  205. tilegx*-*-*)
  206. cpu_type=tilegx
  207. ;;
  208. tilepro*-*-*)
  209. cpu_type=tilepro
  210. ;;
  211. v850*-*-*)
  212. cpu_type=v850
  213. ;;
  214. tic6x-*-*)
  215. cpu_type=c6x
  216. ;;
  217. esac
  218. # Common parts for widely ported systems.
  219. case ${host} in
  220. *-*-darwin*)
  221. asm_hidden_op=.private_extern
  222. tmake_file="$tmake_file t-darwin ${cpu_type}/t-darwin t-libgcc-pic"
  223. # The unwinder is provided by the system shared libraries, do not add one
  224. # to the shared libgcc but, for older systems, we build a shared unwinder
  225. # separately so that we can construct a libgcc_s.1 to use for binaries
  226. # linked against the old libgcc_ext.10.x stubs.
  227. case ${host} in
  228. *-*-darwin[89]* | *-*-darwin10*)
  229. tmake_file="$tmake_file t-darwin-ehs ${cpu_type}/t-darwin-ehs"
  230. ;;
  231. esac
  232. tmake_file="$tmake_file t-slibgcc-darwin"
  233. extra_parts="crt3.o libd10-uwfef.a crttms.o crttme.o libemutls_w.a"
  234. ;;
  235. *-*-dragonfly*)
  236. tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
  237. tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
  238. extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
  239. ;;
  240. *-*-freebsd*)
  241. # This is the generic ELF configuration of FreeBSD. Later
  242. # machine-specific sections may refine and add to this
  243. # configuration.
  244. tmake_file="$tmake_file t-freebsd t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
  245. extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
  246. case ${target_thread_file} in
  247. posix)
  248. tmake_file="${tmake_file} t-freebsd-thread"
  249. # Before 5.0, FreeBSD can't bind shared libraries to -lc
  250. # when "optionally" threaded via weak pthread_* checks.
  251. case ${host} in
  252. *-*-freebsd[34] | *-*-freebsd[34].*)
  253. tmake_file="${tmake_file} t-slibgcc-nolc-override"
  254. ;;
  255. esac
  256. ;;
  257. esac
  258. ;;
  259. *-*-fuchsia*)
  260. tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-fuchsia"
  261. extra_parts="crtbegin.o crtend.o"
  262. ;;
  263. *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu | *-*-uclinuxfdpiceabi)
  264. tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-linux"
  265. extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
  266. if test x$enable_vtable_verify = xyes; then
  267. extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
  268. fi
  269. ;;
  270. *-*-lynxos*)
  271. tmake_file="$tmake_file t-lynx $cpu_type/t-crtstuff t-crtstuff-pic t-libgcc-pic"
  272. extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
  273. ;;
  274. *-*-netbsd*)
  275. tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
  276. tmake_file="$tmake_file t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver"
  277. tmake_file="$tmake_file t-slibgcc-libgcc"
  278. extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
  279. ;;
  280. *-*-openbsd*)
  281. tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
  282. case ${target_thread_file} in
  283. posix)
  284. tmake_file="$tmake_file t-openbsd-thread"
  285. ;;
  286. esac
  287. ;;
  288. *-*-rtems*)
  289. tmake_file="$tmake_file t-rtems"
  290. extra_parts="crtbegin.o crtend.o"
  291. ;;
  292. *-*-solaris2*)
  293. # Unless linker support and dl_iterate_phdr are present,
  294. # unwind-dw2-fde-dip.c automatically falls back to unwind-dw2-fde.c.
  295. tmake_file="$tmake_file sol2/t-sol2 t-eh-dw2-dip t-crtstuff-pic t-libgcc-pic t-slibgcc t-slibgcc-elf-ver"
  296. if test $with_gnu_ld = yes; then
  297. tmake_file="$tmake_file t-slibgcc-gld"
  298. else
  299. tmake_file="$tmake_file t-slibgcc-sld"
  300. fi
  301. # Add cpu-specific t-sol2 after t-slibgcc-* so it can augment SHLIB_MAPFILES.
  302. tmake_file="$tmake_file $cpu_type/t-sol2"
  303. extra_parts="gmon.o crtbegin.o crtend.o"
  304. if test "${libgcc_cv_solaris_crts}" = yes; then
  305. # Solaris 11.4 provides crt1.o, crti.o, and crtn.o as part of the
  306. # base system. crtp.o and crtpg.o implement the compiler-dependent parts.
  307. extra_parts="$extra_parts crtp.o crtpg.o"
  308. # If the Solaris CRTs are present, both ld and gld will have PIE support.
  309. extra_parts="$extra_parts crtbeginS.o crtendS.o"
  310. else
  311. case ${host} in
  312. i?86-*-solaris2* | x86_64-*-solaris2*)
  313. # Solaris 10+/x86 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
  314. # part of the base system.
  315. ;;
  316. sparc*-*-solaris2*)
  317. # Solaris 10+/SPARC lacks crt1.o and gcrt1.o.
  318. extra_parts="$extra_parts crt1.o gcrt1.o"
  319. ;;
  320. esac
  321. fi
  322. if test x$enable_vtable_verify = xyes; then
  323. extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
  324. fi
  325. ;;
  326. *-*-uclinux*)
  327. extra_parts="crtbegin.o crtend.o"
  328. ;;
  329. *-*-*vms*)
  330. tmake_file="vms/t-vms"
  331. extra_parts="crt0.o crtbegin.o crtbeginS.o crtend.o crtendS.o"
  332. ;;
  333. *-*-vxworksae*)
  334. tmake_file=t-vxworksae
  335. ;;
  336. *-*-vxworks*)
  337. tmake_file=t-vxworks
  338. ;;
  339. *-*-elf)
  340. extra_parts="crtbegin.o crtend.o"
  341. ;;
  342. esac
  343. # VxWorks ports rely on specially crafted crtstuff files
  344. case ${host} in
  345. *-*-vxworks*)
  346. tmake_file="${tmake_file} t-vxcrtstuff"
  347. ;;
  348. esac
  349. case ${host} in
  350. *-*-darwin* | *-*-dragonfly* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | \
  351. *-*-solaris2*)
  352. enable_execute_stack=enable-execute-stack-mprotect.c
  353. ;;
  354. i[34567]86-*-mingw* | x86_64-*-mingw*)
  355. enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
  356. ;;
  357. i[34567]86-*-cygwin* | x86_64-*-cygwin*)
  358. enable_execute_stack=config/i386/enable-execute-stack-mingw32.c
  359. ;;
  360. *)
  361. enable_execute_stack=enable-execute-stack-empty.c;
  362. ;;
  363. esac
  364. case ${host} in
  365. aarch64*-*-elf | aarch64*-*-rtems*)
  366. extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
  367. extra_parts="$extra_parts crtfastmath.o"
  368. tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
  369. tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
  370. tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
  371. md_unwind_header=aarch64/aarch64-unwind.h
  372. ;;
  373. aarch64*-*-freebsd*)
  374. extra_parts="$extra_parts crtfastmath.o"
  375. tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
  376. tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
  377. tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
  378. md_unwind_header=aarch64/freebsd-unwind.h
  379. ;;
  380. aarch64*-*-netbsd*)
  381. extra_parts="$extra_parts crtfastmath.o"
  382. tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
  383. tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
  384. md_unwind_header=aarch64/aarch64-unwind.h
  385. ;;
  386. aarch64*-*-fuchsia*)
  387. tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
  388. tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
  389. tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp"
  390. ;;
  391. aarch64*-*-linux*)
  392. extra_parts="$extra_parts crtfastmath.o"
  393. md_unwind_header=aarch64/linux-unwind.h
  394. tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
  395. tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
  396. tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
  397. ;;
  398. aarch64*-*-vxworks7*)
  399. extra_parts="$extra_parts crtfastmath.o"
  400. md_unwind_header=aarch64/aarch64-unwind.h
  401. tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
  402. tmake_file="${tmake_file} ${cpu_type}/t-lse t-slibgcc-libgcc"
  403. tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
  404. ;;
  405. alpha*-*-linux*)
  406. tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm alpha/t-linux"
  407. extra_parts="$extra_parts crtfastmath.o"
  408. md_unwind_header=alpha/linux-unwind.h
  409. ;;
  410. alpha*-*-freebsd*)
  411. tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee t-crtfm"
  412. extra_parts="$extra_parts crtbeginT.o crtfastmath.o"
  413. ;;
  414. alpha*-*-netbsd*)
  415. tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
  416. ;;
  417. alpha*-*-openbsd*)
  418. tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee"
  419. ;;
  420. alpha64-dec-*vms*)
  421. tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
  422. extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
  423. md_unwind_header=alpha/vms-unwind.h
  424. ;;
  425. alpha*-dec-*vms*)
  426. tmake_file="$tmake_file alpha/t-alpha alpha/t-ieee alpha/t-vms t-slibgcc-vms"
  427. extra_parts="$extra_parts vms-dwarf2.o vms-dwarf2eh.o"
  428. md_unwind_header=alpha/vms-unwind.h
  429. ;;
  430. amdgcn*-*-amdhsa)
  431. tmake_file="$tmake_file gcn/t-amdgcn"
  432. extra_parts="crt0.o"
  433. ;;
  434. arc*-*-elf*)
  435. tmake_file="arc/t-arc"
  436. extra_parts="crti.o crtn.o crtend.o crtbegin.o crtendS.o crtbeginS.o"
  437. extra_parts="$extra_parts crttls.o"
  438. ;;
  439. arc*-*-linux*)
  440. tmake_file="${tmake_file} t-slibgcc-libgcc t-slibgcc-nolc-override arc/t-arc-uClibc arc/t-arc"
  441. extra_parts="$extra_parts crti.o crtn.o"
  442. extra_parts="$extra_parts crttls.o"
  443. md_unwind_header=arc/linux-unwind.h
  444. ;;
  445. arm-wrs-vxworks7*)
  446. tmake_file="$tmake_file arm/t-arm arm/t-elf arm/t-bpabi arm/t-vxworks7"
  447. tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
  448. tm_file="$tm_file arm/bpabi-lib.h"
  449. unwind_header=config/arm/unwind-arm.h
  450. extra_parts="$extra_parts crti.o crtn.o"
  451. ;;
  452. arm*-*-freebsd*) # ARM FreeBSD EABI
  453. tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix arm/t-elf"
  454. tmake_file="${tmake_file} arm/t-bpabi arm/t-freebsd"
  455. tm_file="${tm_file} arm/bpabi-lib.h"
  456. unwind_header=config/arm/unwind-arm.h
  457. tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
  458. ;;
  459. arm*-*-fuchsia*)
  460. tmake_file="${tmake_file} arm/t-arm arm/t-elf arm/t-bpabi"
  461. tmake_file="${tmake_file} arm/tsoftfp t-softfp"
  462. tm_file="${tm_file} arm/bpabi-lib.h"
  463. unwind_header=config/arm/unwind-arm.h
  464. ;;
  465. arm*-*-netbsdelf*)
  466. tmake_file="$tmake_file arm/t-arm"
  467. case ${host} in
  468. arm*-*-netbsdelf-*eabi*)
  469. tmake_file="${tmake_file} arm/t-netbsd-eabi"
  470. unwind_header=config/arm/unwind-arm.h
  471. ;;
  472. *)
  473. tmake_file="${tmake_file} arm/t-netbsd t-slibgcc-gld-nover"
  474. ;;
  475. esac
  476. ;;
  477. arm*-*-linux* | arm*-*-uclinuxfdpiceabi)
  478. tmake_file="${tmake_file} arm/t-arm t-fixedpoint-gnu-prefix t-crtfm"
  479. tmake_file="${tmake_file} arm/t-elf arm/t-bpabi arm/t-linux-eabi t-slibgcc-libgcc"
  480. tm_file="$tm_file arm/bpabi-lib.h"
  481. unwind_header=config/arm/unwind-arm.h
  482. tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
  483. extra_parts="$extra_parts crtfastmath.o"
  484. ;;
  485. arm*-*-uclinux*) # ARM ucLinux
  486. tmake_file="${tmake_file} t-fixedpoint-gnu-prefix t-crtfm"
  487. tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
  488. tmake_file="${tmake_file} arm/t-bpabi"
  489. tm_file="$tm_file arm/bpabi-lib.h"
  490. unwind_header=config/arm/unwind-arm.h
  491. extra_parts="$extra_parts crti.o crtn.o"
  492. ;;
  493. arm*-*-phoenix*)
  494. tmake_file="t-hardfp t-softfp arm/t-arm arm/t-elf arm/t-softfp arm/t-phoenix"
  495. tmake_file="${tmake_file} arm/t-bpabi"
  496. tm_file="$tm_file arm/bpabi-lib.h"
  497. extra_parts="crtbegin.o crtend.o crti.o crtn.o"
  498. unwind_header=config/arm/unwind-arm.h
  499. ;;
  500. arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*)
  501. tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix"
  502. tm_file="$tm_file arm/bpabi-lib.h"
  503. case ${host} in
  504. arm*-*-eabi* | arm*-*-rtems*)
  505. tmake_file="${tmake_file} arm/t-bpabi t-crtfm"
  506. extra_parts="crtbegin.o crtend.o crti.o crtn.o"
  507. ;;
  508. arm*-*-symbianelf*)
  509. tmake_file="${tmake_file} arm/t-symbian t-slibgcc-nolc-override"
  510. tm_file="$tm_file arm/symbian-lib.h"
  511. # Symbian OS provides its own startup code.
  512. ;;
  513. esac
  514. tmake_file="$tmake_file t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp"
  515. extra_parts="$extra_parts crtfastmath.o"
  516. unwind_header=config/arm/unwind-arm.h
  517. ;;
  518. avr-*-*)
  519. # Make HImode functions for AVR
  520. tmake_file="${cpu_type}/t-avr t-fpbit"
  521. # Make some DFmode functions from libf7, part of avr-libgcc.
  522. # This must be prior to adding t-avrlibc.
  523. case "y${with_libf7}" in
  524. yno)
  525. # No libf7 support.
  526. ;;
  527. ylibgcc)
  528. tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
  529. ;;
  530. ymath)
  531. tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
  532. tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
  533. ;;
  534. ymath-symbols | yyes | y)
  535. tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math-symbols"
  536. tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7-math"
  537. tmake_file="$tmake_file ${cpu_type}/libf7/t-libf7"
  538. ;;
  539. *)
  540. echo "Error: --with-libf7=${with_libf7} but can only be used with: 'libgcc', 'math', 'math-symbols', 'yes', 'no'" 1>&2
  541. exit 1
  542. ;;
  543. esac
  544. if test x${with_avrlibc} != xno; then
  545. tmake_file="$tmake_file ${cpu_type}/t-avrlibc"
  546. fi
  547. tm_file="$tm_file avr/avr-lib.h"
  548. if test x${with_fixed_point} = xno; then
  549. fixed_point=no
  550. fi
  551. ;;
  552. bfin*-elf*)
  553. tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
  554. extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o crtlibid.o"
  555. ;;
  556. bfin*-uclinux*)
  557. tmake_file="bfin/t-bfin bfin/t-crtlibid bfin/t-crtstuff t-libgcc-pic t-fdpbit"
  558. extra_parts="$extra_parts crtbeginS.o crtendS.o crtlibid.o"
  559. md_unwind_header=bfin/linux-unwind.h
  560. ;;
  561. bfin*-linux-uclibc*)
  562. tmake_file="$tmake_file bfin/t-bfin bfin/t-crtstuff t-libgcc-pic t-fdpbit bfin/t-linux"
  563. # No need to build crtbeginT.o on uClibc systems. Should probably
  564. # be moved to the OS specific section above.
  565. extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
  566. md_unwind_header=bfin/linux-unwind.h
  567. ;;
  568. bfin*-rtems*)
  569. tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
  570. extra_parts="$extra_parts crti.o crtn.o"
  571. ;;
  572. bfin*-*)
  573. tmake_file="$tmake_file bfin/t-bfin t-fdpbit"
  574. extra_parts="crtbegin.o crtend.o crti.o crtn.o"
  575. ;;
  576. bpf-*-*)
  577. tmake_file="$tmake_file ${cpu_type}/t-${cpu_type}"
  578. extra_parts="crti.o crtn.o"
  579. ;;
  580. cr16-*-elf)
  581. tmake_file="${tmake_file} cr16/t-cr16 cr16/t-crtlibid t-fdpbit"
  582. extra_parts="$extra_parts crti.o crtn.o crtlibid.o"
  583. ;;
  584. cris-*-elf)
  585. tmake_file="$tmake_file cris/t-cris t-softfp-sfdf t-softfp cris/t-elfmulti"
  586. ;;
  587. csky-*-elf*)
  588. tmake_file="csky/t-csky t-fdpbit"
  589. extra_parts="crtbegin.o crtend.o crti.o crtn.o"
  590. ;;
  591. csky-*-linux*)
  592. tmake_file="$tmake_file csky/t-csky t-slibgcc-libgcc t-fdpbit csky/t-linux-csky"
  593. extra_parts="$extra_parts crti.o crtn.o"
  594. md_unwind_header=csky/linux-unwind.h
  595. ;;
  596. epiphany-*-elf* | epiphany-*-rtems*)
  597. tmake_file="$tmake_file epiphany/t-epiphany t-fdpbit epiphany/t-custom-eqsf"
  598. extra_parts="$extra_parts crti.o crtint.o crtrunc.o crtm1reg-r43.o crtm1reg-r63.o crtn.o"
  599. ;;
  600. fr30-*-elf)
  601. tmake_file="$tmake_file fr30/t-fr30 t-fdpbit"
  602. extra_parts="$extra_parts crti.o crtn.o"
  603. ;;
  604. frv-*-elf)
  605. tmake_file="$tmake_file frv/t-frv t-fdpbit"
  606. tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
  607. # Don't use crtbegin.o, crtend.o.
  608. extra_parts="frvbegin.o frvend.o"
  609. ;;
  610. frv-*-*linux*)
  611. tmake_file="$tmake_file frv/t-frv frv/t-linux t-fdpbit"
  612. tm_file="$tm_file frv/elf-lib.h frv/frv-abi.h"
  613. ;;
  614. ft32-*-elf)
  615. tmake_file="ft32/t-ft32 t-softfp-sfdf t-softfp-excl t-softfp"
  616. extra_parts="$extra_parts crti.o crti-hw.o crtn.o"
  617. ;;
  618. h8300-*-elf*)
  619. tmake_file="$tmake_file h8300/t-h8300 t-fpbit"
  620. tm_file="$tm_file h8300/h8300-lib.h"
  621. extra_parts="$extra_parts crti.o crtn.o"
  622. ;;
  623. h8300-*-linux*)
  624. tmake_file="t-linux h8300/t-linux t-softfp-sfdf t-softfp"
  625. tm_file="$tm_file h8300/h8300-lib.h"
  626. ;;
  627. hppa*64*-*-linux*)
  628. tmake_file="$tmake_file pa/t-linux64 pa/t-dimode"
  629. tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp"
  630. extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
  631. ;;
  632. hppa*-*-linux*)
  633. tmake_file="$tmake_file pa/t-linux t-slibgcc-libgcc"
  634. # Set the libgcc version number
  635. if test x$ac_cv_sjlj_exceptions = xyes; then
  636. tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
  637. else
  638. tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
  639. fi
  640. extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
  641. md_unwind_header=pa/linux-unwind.h
  642. ;;
  643. hppa[12]*-*-hpux10*)
  644. tmake_file="$tmake_file pa/t-hpux pa/t-hpux10 t-libgcc-pic t-slibgcc"
  645. # Set the libgcc version number
  646. if test x$ac_cv_sjlj_exceptions = xyes; then
  647. tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
  648. else
  649. tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
  650. fi
  651. tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
  652. md_unwind_header=pa/hpux-unwind.h
  653. ;;
  654. hppa*64*-*-hpux11*)
  655. tmake_file="$tmake_file pa/t-hpux pa/t-pa64 pa/t-dimode"
  656. tmake_file="$tmake_file pa/t-stublib t-libgcc-pic t-slibgcc"
  657. # Set the libgcc version number
  658. if test x$ac_cv_sjlj_exceptions = xyes; then
  659. tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
  660. else
  661. tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
  662. fi
  663. tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
  664. tmake_file="$tmake_file pa/t-softfp-sfdftf t-softfp"
  665. tm_file="$tm_file pa/pa64-hpux-lib.h"
  666. extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o \
  667. libgcc_stub.a"
  668. md_unwind_header=pa/hpux-unwind.h
  669. ;;
  670. hppa[12]*-*-hpux11*)
  671. tmake_file="$tmake_file pa/t-hpux pa/t-stublib t-libgcc-pic t-slibgcc"
  672. # Set the libgcc version number
  673. if test x$ac_cv_sjlj_exceptions = xyes; then
  674. tmake_file="$tmake_file pa/t-slibgcc-sjlj-ver"
  675. else
  676. tmake_file="$tmake_file pa/t-slibgcc-dwarf-ver"
  677. fi
  678. tmake_file="$tmake_file pa/t-slibgcc-hpux t-slibgcc-hpux"
  679. md_unwind_header=pa/hpux-unwind.h
  680. ;;
  681. hppa*-*-openbsd*)
  682. tmake_file="$tmake_file pa/t-openbsd"
  683. ;;
  684. hppa*-*-netbsd*)
  685. tmake_file="$tmake_file pa/t-netbsd"
  686. ;;
  687. i[34567]86-*-darwin*)
  688. tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
  689. tm_file="$tm_file i386/darwin-lib.h"
  690. extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
  691. ;;
  692. x86_64-*-darwin*)
  693. tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
  694. tm_file="$tm_file i386/darwin-lib.h"
  695. extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
  696. ;;
  697. i[34567]86-*-elfiamcu)
  698. tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/32/t-iamcu i386/t-softfp t-softfp t-dfprules"
  699. ;;
  700. i[34567]86-*-elf*)
  701. tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
  702. ;;
  703. x86_64-*-elf* | x86_64-*-rtems*)
  704. tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic"
  705. case ${host} in
  706. x86_64-*-rtems*)
  707. extra_parts="$extra_parts crti.o crtn.o"
  708. ;;
  709. esac
  710. ;;
  711. x86_64-*-fuchsia*)
  712. tmake_file="$tmake_file t-libgcc-pic"
  713. ;;
  714. i[34567]86-*-dragonfly*)
  715. tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
  716. md_unwind_header=i386/dragonfly-unwind.h
  717. ;;
  718. x86_64-*-dragonfly*)
  719. tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff"
  720. md_unwind_header=i386/dragonfly-unwind.h
  721. ;;
  722. i[34567]86-*-freebsd*)
  723. tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
  724. md_unwind_header=i386/freebsd-unwind.h
  725. ;;
  726. x86_64-*-freebsd*)
  727. tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff"
  728. md_unwind_header=i386/freebsd-unwind.h
  729. ;;
  730. i[34567]86-*-netbsdelf*)
  731. tmake_file="${tmake_file} i386/t-crtstuff"
  732. ;;
  733. x86_64-*-netbsd*)
  734. tmake_file="${tmake_file} i386/t-crtstuff"
  735. ;;
  736. i[34567]86-*-openbsd*)
  737. ;;
  738. x86_64-*-openbsd*)
  739. ;;
  740. i[34567]86-*-linux*)
  741. extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
  742. tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
  743. tm_file="${tm_file} i386/elf-lib.h"
  744. md_unwind_header=i386/linux-unwind.h
  745. ;;
  746. i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-kopensolaris*-gnu)
  747. extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
  748. tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
  749. tm_file="${tm_file} i386/elf-lib.h"
  750. ;;
  751. i[34567]86-*-gnu*)
  752. extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
  753. tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
  754. tm_file="${tm_file} i386/elf-lib.h"
  755. md_unwind_header=i386/gnu-unwind.h
  756. ;;
  757. x86_64-*-linux*)
  758. extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
  759. tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
  760. tm_file="${tm_file} i386/elf-lib.h"
  761. md_unwind_header=i386/linux-unwind.h
  762. ;;
  763. x86_64-*-kfreebsd*-gnu)
  764. extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
  765. tmake_file="${tmake_file} i386/t-crtpc t-crtfm i386/t-crtstuff t-dfprules"
  766. tm_file="${tm_file} i386/elf-lib.h"
  767. ;;
  768. i[34567]86-pc-msdosdjgpp*)
  769. ;;
  770. i[34567]86-*-lynxos*)
  771. ;;
  772. i[34567]86-*-nto-qnx*)
  773. tmake_file="$tmake_file i386/t-nto t-libgcc-pic"
  774. extra_parts=crtbegin.o
  775. ;;
  776. i[34567]86-*-rtems*)
  777. tmake_file="$tmake_file i386/t-crtstuff t-softfp-sfdftf i386/32/t-softfp i386/t-softfp t-softfp"
  778. extra_parts="$extra_parts crti.o crtn.o"
  779. ;;
  780. i[34567]86-*-solaris2* | x86_64-*-solaris2*)
  781. tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
  782. extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
  783. tm_file="${tm_file} i386/elf-lib.h"
  784. md_unwind_header=i386/sol2-unwind.h
  785. ;;
  786. i[4567]86-wrs-vxworks*|x86_64-wrs-vxworks*)
  787. ;;
  788. i[34567]86-*-cygwin*)
  789. extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
  790. if test x$enable_vtable_verify = xyes; then
  791. extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
  792. fi
  793. # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
  794. if test x$ac_cv_sjlj_exceptions = xyes; then
  795. tmake_eh_file="i386/t-sjlj-eh"
  796. else
  797. tmake_eh_file="i386/t-dw2-eh"
  798. fi
  799. # Shared libgcc DLL install dir depends on cross/native build.
  800. if test x${build} = x${host} ; then
  801. tmake_dlldir_file="i386/t-dlldir"
  802. else
  803. tmake_dlldir_file="i386/t-dlldir-x"
  804. fi
  805. tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin t-crtfm i386/t-chkstk t-dfprules"
  806. ;;
  807. x86_64-*-cygwin*)
  808. extra_parts="crtbegin.o crtbeginS.o crtend.o crtfastmath.o"
  809. if test x$enable_vtable_verify = xyes; then
  810. extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
  811. fi
  812. # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
  813. if test x$ac_cv_sjlj_exceptions = xyes; then
  814. tmake_eh_file="i386/t-sjlj-eh"
  815. elif test "${host_address}" = 32; then
  816. # biarch -m32 with --disable-sjlj-exceptions
  817. tmake_eh_file="i386/t-dw2-eh"
  818. else
  819. tmake_eh_file="i386/t-seh-eh"
  820. fi
  821. # Shared libgcc DLL install dir depends on cross/native build.
  822. if test x${build} = x${host} ; then
  823. tmake_dlldir_file="i386/t-dlldir"
  824. else
  825. tmake_dlldir_file="i386/t-dlldir-x"
  826. fi
  827. # FIXME - dj - t-chkstk used to be in here, need a 64-bit version of that
  828. tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-cygwin t-crtfm t-dfprules i386/t-chkstk"
  829. ;;
  830. i[34567]86-*-mingw*)
  831. extra_parts="crtbegin.o crtend.o crtfastmath.o"
  832. if test x$enable_vtable_verify = xyes; then
  833. extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
  834. fi
  835. case ${target_thread_file} in
  836. win32)
  837. tmake_file="$tmake_file i386/t-gthr-win32"
  838. ;;
  839. posix)
  840. tmake_file="i386/t-mingw-pthread $tmake_file"
  841. ;;
  842. esac
  843. # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
  844. if test x$ac_cv_sjlj_exceptions = xyes; then
  845. tmake_eh_file="i386/t-sjlj-eh"
  846. else
  847. tmake_eh_file="i386/t-dw2-eh"
  848. md_unwind_header=i386/w32-unwind.h
  849. fi
  850. # Shared libgcc DLL install dir depends on cross/native build.
  851. if test x${build} = x${host} ; then
  852. tmake_dlldir_file="i386/t-dlldir"
  853. else
  854. tmake_dlldir_file="i386/t-dlldir-x"
  855. fi
  856. tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-mingw32 t-crtfm i386/t-chkstk t-dfprules"
  857. ;;
  858. x86_64-*-mingw*)
  859. case ${target_thread_file} in
  860. win32)
  861. tmake_file="$tmake_file i386/t-gthr-win32"
  862. ;;
  863. posix)
  864. tmake_file="i386/t-mingw-pthread $tmake_file"
  865. ;;
  866. esac
  867. # This has to match the logic for DWARF2_UNWIND_INFO in gcc/config/i386/cygming.h
  868. if test x$ac_cv_sjlj_exceptions = xyes; then
  869. tmake_eh_file="i386/t-sjlj-eh"
  870. elif test "${host_address}" = 32; then
  871. # biarch -m32 with --disable-sjlj-exceptions
  872. tmake_eh_file="i386/t-dw2-eh"
  873. md_unwind_header=i386/w32-unwind.h
  874. else
  875. tmake_eh_file="i386/t-seh-eh"
  876. fi
  877. # Shared libgcc DLL install dir depends on cross/native build.
  878. if test x${build} = x${host} ; then
  879. tmake_dlldir_file="i386/t-dlldir"
  880. else
  881. tmake_dlldir_file="i386/t-dlldir-x"
  882. fi
  883. tmake_file="${tmake_file} ${tmake_eh_file} ${tmake_dlldir_file} i386/t-slibgcc-cygming i386/t-cygming i386/t-mingw32 t-dfprules t-crtfm i386/t-chkstk"
  884. extra_parts="$extra_parts crtbegin.o crtend.o crtfastmath.o"
  885. if test x$enable_vtable_verify = xyes; then
  886. extra_parts="$extra_parts vtv_start.o vtv_end.o vtv_start_preinit.o vtv_end_preinit.o"
  887. fi
  888. ;;
  889. ia64*-*-elf*)
  890. extra_parts="$extra_parts crtbeginS.o crtendS.o crtfastmath.o"
  891. tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat"
  892. ;;
  893. ia64*-*-freebsd*)
  894. extra_parts="$extra_parts crtfastmath.o"
  895. tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf ia64/t-eh-ia64 t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat"
  896. ;;
  897. ia64*-*-linux*)
  898. # Don't use crtbeginT.o from *-*-linux* default.
  899. extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
  900. tmake_file="$tmake_file ia64/t-ia64 ia64/t-ia64-elf t-crtfm t-softfp-tf ia64/t-softfp t-softfp ia64/t-softfp-compat ia64/t-eh-ia64 t-libunwind ia64/t-linux"
  901. if test x$with_system_libunwind != xyes ; then
  902. tmake_file="${tmake_file} t-libunwind-elf ia64/t-linux-libunwind"
  903. fi
  904. md_unwind_header=ia64/linux-unwind.h
  905. ;;
  906. ia64*-*-hpux*)
  907. tmake_file="ia64/t-ia64 ia64/t-ia64-elf ia64/t-hpux t-slibgcc ia64/t-slibgcc-hpux t-slibgcc-hpux"
  908. ;;
  909. ia64-hp-*vms*)
  910. tmake_file="$tmake_file ia64/t-ia64 ia64/t-eh-ia64 ia64/t-vms t-slibgcc-vms t-softfp-tf ia64/t-softfp t-softfp"
  911. extra_parts="$extra_parts crtinitS.o"
  912. md_unwind_header=ia64/vms-unwind.h
  913. ;;
  914. iq2000*-*-elf*)
  915. tmake_file="iq2000/t-iq2000 t-fdpbit"
  916. # Don't use default.
  917. extra_parts=
  918. ;;
  919. lm32-*-elf*)
  920. extra_parts="$extra_parts crti.o crtn.o"
  921. tmake_file="lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
  922. ;;
  923. lm32-*-rtems*)
  924. tmake_file="$tmake_file lm32/t-lm32 lm32/t-elf t-softfp-sfdf t-softfp"
  925. extra_parts="$extra_parts crti.o crtn.o"
  926. ;;
  927. lm32-*-uclinux*)
  928. extra_parts="$extra_parts crtbegin.o crtendS.o crtbeginT.o"
  929. tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
  930. ;;
  931. loongarch*-*-linux*)
  932. extra_parts="$extra_parts crtfastmath.o"
  933. tmake_file="${tmake_file} t-crtfm loongarch/t-crtstuff"
  934. case ${host} in
  935. *)
  936. tmake_file="${tmake_file} t-slibgcc-libgcc"
  937. ;;
  938. esac
  939. md_unwind_header=loongarch/linux-unwind.h
  940. ;;
  941. m32r-*-elf*)
  942. tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
  943. extra_parts="$extra_parts crtinit.o crtfini.o"
  944. ;;
  945. m32rle-*-elf*)
  946. tmake_file=t-fdpbit
  947. ;;
  948. m68k-*-elf* | fido-*-elf)
  949. tmake_file="$tmake_file m68k/t-floatlib"
  950. ;;
  951. m68k*-*-netbsdelf*)
  952. ;;
  953. m68k*-*-openbsd*)
  954. ;;
  955. m68k-*-uclinux*) # Motorola m68k/ColdFire running uClinux with uClibc
  956. tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
  957. md_unwind_header=m68k/linux-unwind.h
  958. ;;
  959. m68k-*-linux*) # Motorola m68k's running GNU/Linux
  960. # with ELF format using glibc 2
  961. # aka the GNU/Linux C library 6.
  962. tmake_file="$tmake_file m68k/t-floatlib m68k/t-linux"
  963. # If not configured with setjmp/longjmp exceptions, bump the
  964. # libgcc version number.
  965. if test x$ac_cv_sjlj_exceptions != xyes; then
  966. tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
  967. fi
  968. md_unwind_header=m68k/linux-unwind.h
  969. ;;
  970. m68k-*-rtems*)
  971. tmake_file="$tmake_file m68k/t-floatlib"
  972. extra_parts="$extra_parts crti.o crtn.o"
  973. ;;
  974. mcore-*-elf)
  975. tmake_file="mcore/t-mcore t-fdpbit"
  976. extra_parts="$extra_parts crti.o crtn.o"
  977. ;;
  978. microblaze*-linux*)
  979. tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit t-slibgcc-libgcc"
  980. ;;
  981. microblaze*-*-elf)
  982. tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
  983. extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
  984. ;;
  985. microblaze*-*-rtems*)
  986. tmake_file="${tmake_file} microblaze/t-microblaze t-fdpbit"
  987. extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o crti.o crtn.o"
  988. ;;
  989. mips*-*-netbsd*) # NetBSD/mips, either endian.
  990. ;;
  991. mips*-*-linux*) # Linux MIPS, either endian.
  992. extra_parts="$extra_parts crtfastmath.o"
  993. tmake_file="${tmake_file} t-crtfm"
  994. case ${host} in
  995. mips64r5900* | mipsr5900*)
  996. # The MIPS16 support code uses floating point
  997. # instructions that are not supported on r5900.
  998. ;;
  999. *)
  1000. tmake_file="${tmake_file} mips/t-mips16 t-slibgcc-libgcc"
  1001. ;;
  1002. esac
  1003. md_unwind_header=mips/linux-unwind.h
  1004. ;;
  1005. mips*-sde-elf*)
  1006. tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
  1007. case "${with_newlib}" in
  1008. yes)
  1009. # newlib / libgloss.
  1010. ;;
  1011. *)
  1012. # MIPS toolkit libraries.
  1013. tmake_file="$tmake_file mips/t-sdemtk"
  1014. ;;
  1015. esac
  1016. extra_parts="$extra_parts crti.o crtn.o"
  1017. ;;
  1018. mipsisa32-*-elf* | mipsisa32el-*-elf* | \
  1019. mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
  1020. mipsisa32r6-*-elf* | mipsisa32r6el-*-elf* | \
  1021. mipsisa64-*-elf* | mipsisa64el-*-elf* | \
  1022. mipsisa64r2-*-elf* | mipsisa64r2el-*-elf* | \
  1023. mipsisa64r6-*-elf* | mipsisa64r6el-*-elf*)
  1024. tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
  1025. extra_parts="$extra_parts crti.o crtn.o"
  1026. ;;
  1027. mipsisa64sr71k-*-elf*)
  1028. tmake_file="$tmake_file mips/t-elf mips/t-crtstuff t-fdpbit"
  1029. extra_parts="$extra_parts crti.o crtn.o"
  1030. ;;
  1031. mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
  1032. tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
  1033. extra_parts="$extra_parts crti.o crtn.o"
  1034. ;;
  1035. mips-*-elf* | mipsel-*-elf*)
  1036. tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
  1037. extra_parts="$extra_parts crti.o crtn.o"
  1038. ;;
  1039. mipsr5900-*-elf* | mipsr5900el-*-elf*)
  1040. tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
  1041. extra_parts="$extra_parts crti.o crtn.o"
  1042. ;;
  1043. mips64-*-elf* | mips64el-*-elf*)
  1044. tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
  1045. extra_parts="$extra_parts crti.o crtn.o"
  1046. ;;
  1047. mips64r5900-*-elf* | mips64r5900el-*-elf*)
  1048. tmake_file="$tmake_file mips/t-elf mips/t-crtstuff"
  1049. extra_parts="$extra_parts crti.o crtn.o"
  1050. ;;
  1051. mips64vr-*-elf* | mips64vrel-*-elf*)
  1052. tmake_file="$tmake_file mips/t-elf mips/t-vr mips/t-crtstuff"
  1053. extra_parts="$extra_parts crti.o crtn.o"
  1054. ;;
  1055. mips64orion-*-elf* | mips64orionel-*-elf*)
  1056. tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
  1057. extra_parts="$extra_parts crti.o crtn.o"
  1058. ;;
  1059. mips*-*-rtems*)
  1060. tmake_file="$tmake_file mips/t-elf mips/t-crtstuff mips/t-mips16"
  1061. extra_parts="$extra_parts crti.o crtn.o"
  1062. ;;
  1063. mips-wrs-vxworks)
  1064. ;;
  1065. mipstx39-*-elf* | mipstx39el-*-elf*)
  1066. tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16"
  1067. ;;
  1068. mmix-knuth-mmixware)
  1069. extra_parts="crti.o crtn.o crtbegin.o crtend.o"
  1070. tmake_file="${tmake_file} ${cpu_type}/t-${cpu_type}"
  1071. ;;
  1072. mn10300-*-*)
  1073. tmake_file=t-fdpbit
  1074. ;;
  1075. moxie-*-elf | moxie-*-moxiebox* | moxie-*-uclinux* | moxie-*-rtems*)
  1076. tmake_file="$tmake_file moxie/t-moxie t-softfp-sfdf t-softfp-excl t-softfp"
  1077. extra_parts="$extra_parts crti.o crtn.o crtbegin.o crtend.o"
  1078. ;;
  1079. msp430-*-elf*)
  1080. tmake_file="$tm_file t-crtstuff t-fdpbit msp430/t-msp430"
  1081. extra_parts="crtbegin.o crtend.o crtbegin_no_eh.o crtend_no_eh.o"
  1082. extra_parts="$extra_parts libmul_none.a libmul_16.a libmul_32.a libmul_f5.a"
  1083. ;;
  1084. nds32*-linux*)
  1085. # Basic makefile fragment and extra_parts for crt stuff.
  1086. # We also append c-isr library implementation.
  1087. tmake_file="${tmake_file} t-slibgcc-libgcc"
  1088. tmake_file="${tmake_file} nds32/t-nds32-glibc nds32/t-crtstuff t-softfp-sfdf t-softfp"
  1089. # The header file of defining MD_FALLBACK_FRAME_STATE_FOR.
  1090. md_unwind_header=nds32/linux-unwind.h
  1091. # Append library definition makefile fragment according to --with-nds32-lib=X setting.
  1092. case "${with_nds32_lib}" in
  1093. "" | glibc | uclibc )
  1094. ;;
  1095. *)
  1096. echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: glibc uclibc" 1>&2
  1097. exit 1
  1098. ;;
  1099. esac
  1100. ;;
  1101. nds32*-elf*)
  1102. # Basic makefile fragment and extra_parts for crt stuff.
  1103. # We also append c-isr library implementation.
  1104. tmake_file="${tmake_file} nds32/t-nds32 nds32/t-nds32-isr"
  1105. extra_parts="crtbegin1.o crtend1.o libnds32_isr.a"
  1106. # Append library definition makefile fragment according to --with-nds32-lib=X setting.
  1107. case "${with_nds32_lib}" in
  1108. "" | newlib)
  1109. # Append library definition makefile fragment t-nds32-newlib.
  1110. # Append 'soft-fp' software floating point make rule fragment provided by gcc.
  1111. tmake_file="${tmake_file} nds32/t-nds32-newlib t-softfp-sfdf t-softfp"
  1112. ;;
  1113. mculib)
  1114. # Append library definition makefile fragment t-nds32-mculib.
  1115. # The software floating point library is included in mculib.
  1116. tmake_file="${tmake_file} nds32/t-nds32-mculib"
  1117. ;;
  1118. *)
  1119. echo "Cannot accept --with-nds32-lib=$with_nds32_lib, available values are: newlib mculib" 1>&2
  1120. exit 1
  1121. ;;
  1122. esac
  1123. ;;
  1124. nios2-*-linux*)
  1125. tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-eh-dw2-dip t-slibgcc-libgcc"
  1126. tm_file="$tm_file nios2/elf-lib.h"
  1127. md_unwind_header=nios2/linux-unwind.h
  1128. ;;
  1129. nios2-*-*)
  1130. tmake_file="$tmake_file nios2/t-nios2 t-softfp-sfdf t-softfp-excl t-softfp"
  1131. extra_parts="$extra_parts crti.o crtn.o"
  1132. ;;
  1133. or1k-*-linux*)
  1134. tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff"
  1135. tmake_file="$tmake_file t-softfp-sfdf t-softfp"
  1136. md_unwind_header=or1k/linux-unwind.h
  1137. ;;
  1138. or1k-*-*)
  1139. tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff"
  1140. tmake_file="$tmake_file t-softfp-sfdf t-softfp"
  1141. ;;
  1142. pdp11-*-*)
  1143. tmake_file="pdp11/t-pdp11 t-fdpbit"
  1144. ;;
  1145. powerpc-*-darwin*)
  1146. case ${host} in
  1147. *-*-darwin9* | *-*-darwin[12][0-9]*)
  1148. # libSystem contains unwind information for signal frames since
  1149. # Darwin 9.
  1150. ;;
  1151. *)
  1152. md_unwind_header=rs6000/darwin-unwind.h
  1153. ;;
  1154. esac
  1155. # We build the darwin10 EH shim for Rosetta (running on x86 machines).
  1156. tm_file="$tm_file i386/darwin-lib.h"
  1157. tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
  1158. extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
  1159. ;;
  1160. powerpc64-*-darwin*)
  1161. # We build the darwin10 EH shim for Rosetta (running on x86 machines).
  1162. tm_file="$tm_file i386/darwin-lib.h"
  1163. tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
  1164. extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
  1165. ;;
  1166. powerpc*-*-freebsd*)
  1167. tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-freebsd t-softfp-sfdf t-softfp-excl t-softfp"
  1168. extra_parts="$extra_parts crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
  1169. case ${host} in
  1170. powerpc64*)
  1171. tmake_file="${tmake_file} rs6000/t-freebsd64"
  1172. md_unwind_header=rs6000/freebsd-unwind.h
  1173. ;;
  1174. esac
  1175. ;;
  1176. powerpc-*-netbsd*)
  1177. tmake_file="$tmake_file rs6000/t-netbsd rs6000/t-crtstuff"
  1178. ;;
  1179. powerpc-*-eabispe*)
  1180. tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
  1181. extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
  1182. ;;
  1183. powerpc-*-eabisimaltivec*)
  1184. tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
  1185. extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
  1186. ;;
  1187. powerpc-*-eabisim*)
  1188. tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
  1189. extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
  1190. ;;
  1191. powerpc-*-elf*)
  1192. tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
  1193. extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
  1194. ;;
  1195. powerpc-*-eabialtivec*)
  1196. tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
  1197. extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
  1198. ;;
  1199. powerpc-xilinx-eabi*)
  1200. tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
  1201. extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
  1202. ;;
  1203. powerpc-*-eabi*)
  1204. tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
  1205. extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
  1206. ;;
  1207. powerpc-*-rtems*)
  1208. tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
  1209. extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
  1210. ;;
  1211. powerpc*-*-linux*)
  1212. tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-savresfgpr rs6000/t-crtstuff rs6000/t-linux t-dfprules rs6000/t-ppc64-fp t-slibgcc-libgcc"
  1213. tmake_file="${tmake_file} t-stack rs6000/t-stack-rs6000"
  1214. case $ppc_fp_type in
  1215. 64)
  1216. ;;
  1217. hard)
  1218. tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp"
  1219. ;;
  1220. soft)
  1221. tmake_file="${tmake_file} t-softfp-sfdf ${ppc_fp_compat} t-softfp"
  1222. ;;
  1223. e500v1)
  1224. tmake_file="${tmake_file} rs6000/t-e500v1-fp ${ppc_fp_compat} t-softfp t-hardfp"
  1225. ;;
  1226. e500v2)
  1227. tmake_file="${tmake_file} t-hardfp-sfdf rs6000/t-e500v2-fp ${ppc_fp_compat} t-softfp t-hardfp"
  1228. ;;
  1229. *)
  1230. echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
  1231. exit 1
  1232. ;;
  1233. esac
  1234. if test $libgcc_cv_powerpc_float128 = yes; then
  1235. tmake_file="${tmake_file} rs6000/t-float128"
  1236. fi
  1237. if test $libgcc_cv_powerpc_float128_hw = yes; then
  1238. tmake_file="${tmake_file} rs6000/t-float128-hw"
  1239. fi
  1240. if test $libgcc_cv_powerpc_3_1_float128_hw = yes; then
  1241. tmake_file="${tmake_file} rs6000/t-float128-p10-hw"
  1242. fi
  1243. extra_parts="$extra_parts ecrti.o ecrtn.o ncrti.o ncrtn.o"
  1244. md_unwind_header=rs6000/linux-unwind.h
  1245. ;;
  1246. powerpc*-wrs-vxworks7*)
  1247. tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-dfprules rs6000/t-ppc64-fp"
  1248. tmake_file="rs6000/t-crtstuff ${tmake_file}"
  1249. case $ppc_fp_type in
  1250. 64)
  1251. ;;
  1252. hard)
  1253. tmake_file="${tmake_file} t-hardfp-sfdf"
  1254. ;;
  1255. soft)
  1256. tmake_file="${tmake_file} t-softfp-sfdf t-softfp"
  1257. ;;
  1258. *)
  1259. echo "Unknown ppc_fp_type $ppc_fp_type" 1>&2
  1260. exit 1
  1261. ;;
  1262. esac
  1263. ;;
  1264. powerpc-wrs-vxworks*)
  1265. tmake_file="$tmake_file rs6000/t-vxworks rs6000/t-savresfgpr t-fdpbit"
  1266. ;;
  1267. powerpc-*-lynxos*)
  1268. tmake_file="$tmake_file rs6000/t-lynx t-fdpbit"
  1269. ;;
  1270. powerpcle-*-elf*)
  1271. tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
  1272. extra_parts="$extra_parts crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
  1273. ;;
  1274. powerpcle-*-eabisim*)
  1275. tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
  1276. extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
  1277. ;;
  1278. powerpcle-*-eabi*)
  1279. tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-crtstuff t-crtstuff-pic t-fdpbit"
  1280. extra_parts="$extra_parts crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o"
  1281. ;;
  1282. pru-*-*)
  1283. tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix pru/t-pru"
  1284. tm_file="$tm_file pru/pru-abi.h"
  1285. ;;
  1286. riscv*-*-linux*)
  1287. tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
  1288. extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
  1289. md_unwind_header=riscv/linux-unwind.h
  1290. ;;
  1291. riscv*-*-freebsd*)
  1292. tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address} t-slibgcc-libgcc"
  1293. extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o crtendS.o crtbeginT.o"
  1294. ;;
  1295. riscv*-*-*)
  1296. tmake_file="${tmake_file} riscv/t-softfp${host_address} t-softfp riscv/t-elf riscv/t-elf${host_address}"
  1297. extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
  1298. ;;
  1299. rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
  1300. md_unwind_header=rs6000/aix-unwind.h
  1301. tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
  1302. ;;
  1303. rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
  1304. md_unwind_header=rs6000/aix-unwind.h
  1305. tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble"
  1306. ;;
  1307. rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
  1308. md_unwind_header=rs6000/aix-unwind.h
  1309. tmake_file="t-fdpbit rs6000/t-ppc64-fp rs6000/t-slibgcc-aix rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
  1310. extra_parts="crtcxa.o crtcxa_s.o crtdbase.o crtcxa_64.o crtcxa_64_s.o crtdbase_64.o"
  1311. ;;
  1312. rl78-*-elf)
  1313. tmake_file="$tm_file t-fdpbit rl78/t-rl78"
  1314. ;;
  1315. rx-*-elf)
  1316. tmake_file="rx/t-rx t-fdpbit"
  1317. tm_file="$tm_file rx/rx-abi.h rx/rx-lib.h"
  1318. ;;
  1319. rx-*-linux*)
  1320. tmake_file="rx/t-rx t-fdpbit"
  1321. tm_file="$tm_file rx/rx-lib.h"
  1322. ;;
  1323. s390-*-linux*)
  1324. tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux s390/32/t-floattodi t-stack s390/t-stack-s390"
  1325. md_unwind_header=s390/linux-unwind.h
  1326. ;;
  1327. s390x-*-linux*)
  1328. tmake_file="${tmake_file} s390/t-crtstuff s390/t-linux t-stack s390/t-stack-s390"
  1329. if test "${host_address}" = 32; then
  1330. tmake_file="${tmake_file} s390/32/t-floattodi"
  1331. fi
  1332. md_unwind_header=s390/linux-unwind.h
  1333. ;;
  1334. s390x-ibm-tpf*)
  1335. tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip s390/t-tpf"
  1336. extra_parts="crtbeginS.o crtendS.o"
  1337. md_unwind_header=s390/tpf-unwind.h
  1338. ;;
  1339. sh-*-elf* | sh[12346l]*-*-elf*)
  1340. tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
  1341. extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
  1342. libic_invalidate_array_4-100.a \
  1343. libic_invalidate_array_4-200.a \
  1344. libic_invalidate_array_4a.a \
  1345. libgcc-Os-4-200.a libgcc-4-300.a"
  1346. case ${host} in
  1347. sh*-superh-elf)
  1348. tmake_file="$tmake_file sh/t-superh"
  1349. extra_parts="$extra_parts crt1-mmu.o gcrt1-mmu.o gcrt1.o"
  1350. ;;
  1351. esac
  1352. ;;
  1353. sh-*-linux* | sh[2346lbe]*-*-linux*)
  1354. tmake_file="${tmake_file} sh/t-sh t-slibgcc-libgcc sh/t-linux t-fdpbit"
  1355. md_unwind_header=sh/linux-unwind.h
  1356. ;;
  1357. sh-*-netbsdelf* | shl*-*-netbsdelf*)
  1358. tmake_file="$tmake_file sh/t-sh sh/t-netbsd"
  1359. # NetBSD's C library includes a fast software FP library that
  1360. # has support for setting/setting the rounding mode, exception
  1361. # mask, etc. Therefore, we don't want to include software FP
  1362. # in libgcc.
  1363. ;;
  1364. sh-*-rtems*)
  1365. tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
  1366. extra_parts="$extra_parts crt1.o crti.o crtn.o crtbeginS.o crtendS.o \
  1367. libic_invalidate_array_4-100.a \
  1368. libic_invalidate_array_4-200.a \
  1369. libic_invalidate_array_4a.a \
  1370. libgcc-Os-4-200.a libgcc-4-300.a"
  1371. ;;
  1372. sh-wrs-vxworks)
  1373. tmake_file="$tmake_file sh/t-sh t-crtstuff-pic t-fdpbit"
  1374. ;;
  1375. sparc-*-netbsdelf*)
  1376. ;;
  1377. sparc64-*-openbsd*)
  1378. ;;
  1379. sparc-*-elf*)
  1380. case ${host} in
  1381. *-leon[3-9]*)
  1382. ;;
  1383. *)
  1384. tmake_file="sparc/t-softmul"
  1385. ;;
  1386. esac
  1387. tmake_file="${tmake_file} t-fdpbit t-crtfm"
  1388. extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
  1389. ;;
  1390. sparc-*-linux*) # SPARC's running GNU/Linux, libc6
  1391. tmake_file="${tmake_file} t-crtfm"
  1392. if test "${host_address}" = 64; then
  1393. tmake_file="$tmake_file sparc/t-linux64"
  1394. fi
  1395. case ${host} in
  1396. *-leon*)
  1397. tmake_file="${tmake_file} t-fdpbit"
  1398. ;;
  1399. *)
  1400. tmake_file="${tmake_file} sparc/t-linux"
  1401. ;;
  1402. esac
  1403. case ${host} in
  1404. *-leon[3-9]*)
  1405. ;;
  1406. *)
  1407. if test "${host_address}" = 32; then
  1408. tmake_file="$tmake_file sparc/t-softmul"
  1409. fi
  1410. ;;
  1411. esac
  1412. extra_parts="$extra_parts crtfastmath.o"
  1413. md_unwind_header=sparc/linux-unwind.h
  1414. ;;
  1415. sparc-*-rtems*)
  1416. tmake_file="$tmake_file sparc/t-elf sparc/t-softmul t-crtfm t-fdpbit"
  1417. extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
  1418. ;;
  1419. sparc*-*-solaris2*)
  1420. tmake_file="$tmake_file t-crtfm"
  1421. extra_parts="$extra_parts crtfastmath.o"
  1422. md_unwind_header=sparc/sol2-unwind.h
  1423. ;;
  1424. sparc64-*-elf*)
  1425. tmake_file="${tmake_file} t-crtfm"
  1426. extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
  1427. ;;
  1428. sparc64-*-rtems*)
  1429. tmake_file="$tmake_file t-crtfm"
  1430. extra_parts="$extra_parts crti.o crtn.o crtfastmath.o"
  1431. ;;
  1432. sparc-wrs-vxworks)
  1433. ;;
  1434. sparc64-*-freebsd*|ultrasparc-*-freebsd*)
  1435. tmake_file="$tmake_file t-crtfm"
  1436. extra_parts="$extra_parts crtfastmath.o"
  1437. ;;
  1438. sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
  1439. extra_parts="$extra_parts crtfastmath.o"
  1440. tmake_file="${tmake_file} t-crtfm sparc/t-linux"
  1441. if test "${host_address}" = 64; then
  1442. tmake_file="${tmake_file} sparc/t-linux64"
  1443. fi
  1444. if test "${host_address}" = 32; then
  1445. tmake_file="${tmake_file} sparc/t-softmul"
  1446. fi
  1447. md_unwind_header=sparc/linux-unwind.h
  1448. ;;
  1449. sparc64-*-netbsd*)
  1450. ;;
  1451. tic6x-*-uclinux)
  1452. tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp \
  1453. c6x/t-elf c6x/t-uclinux t-crtstuff-pic t-libgcc-pic \
  1454. t-slibgcc t-slibgcc-gld t-slibgcc-elf-ver t-gnu-prefix"
  1455. tm_file="$tm_file c6x/c6x-abi.h"
  1456. extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
  1457. unwind_header=config/c6x/unwind-c6x.h
  1458. ;;
  1459. tic6x-*-elf)
  1460. tmake_file="${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp t-gnu-prefix c6x/t-elf"
  1461. tm_file="$tm_file c6x/c6x-abi.h"
  1462. extra_parts="$extra_parts crtbeginS.o crtendS.o crti.o crtn.o"
  1463. unwind_header=config/c6x/unwind-c6x.h
  1464. ;;
  1465. tilegx*-*-linux*)
  1466. if test "${host_address}" = 64; then
  1467. tmake_file="${tmake_file} tilegx/t-softfp"
  1468. fi
  1469. tmake_file="${tmake_file} tilegx/t-crtstuff t-softfp-sfdf t-softfp tilegx/t-tilegx"
  1470. md_unwind_header=tilepro/linux-unwind.h
  1471. ;;
  1472. tilepro*-*-linux*)
  1473. tmake_file="${tmake_file} tilepro/t-crtstuff t-softfp-sfdf t-softfp tilepro/t-tilepro t-slibgcc-libgcc"
  1474. md_unwind_header=tilepro/linux-unwind.h
  1475. ;;
  1476. v850*-*-*)
  1477. tmake_file="${tmake_file} v850/t-v850 t-fdpbit"
  1478. ;;
  1479. vax-*-linux*)
  1480. tmake_file="$tmake_file vax/t-linux"
  1481. ;;
  1482. vax-*-netbsdelf*)
  1483. ;;
  1484. vax-*-openbsd*)
  1485. ;;
  1486. visium-*-elf*)
  1487. extra_parts="$extra_parts crtbegin.o crtend.o crti.o crtn.o"
  1488. tmake_file="visium/t-visium t-fdpbit"
  1489. ;;
  1490. xstormy16-*-elf)
  1491. tmake_file="stormy16/t-stormy16 t-fdpbit"
  1492. ;;
  1493. xtensa*-*-elf*)
  1494. tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-elf"
  1495. extra_parts="$extra_parts crti.o crtn.o"
  1496. ;;
  1497. xtensa*-*-linux*)
  1498. tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
  1499. md_unwind_header=xtensa/linux-unwind.h
  1500. ;;
  1501. xtensa*-*-uclinux*)
  1502. tmake_file="$tmake_file xtensa/t-xtensa xtensa/t-linux t-slibgcc-libgcc"
  1503. md_unwind_header=xtensa/linux-unwind.h
  1504. extra_parts="$extra_parts crtbeginS.o crtbeginT.o crtendS.o"
  1505. ;;
  1506. am33_2.0-*-linux*)
  1507. # Don't need crtbeginT.o from *-*-linux* default.
  1508. extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
  1509. tmake_file="$tmake_file t-fdpbit"
  1510. ;;
  1511. m32c-*-elf*|m32c-*-rtems*)
  1512. tmake_file="$tmake_file m32c/t-m32c"
  1513. ;;
  1514. nvptx-*)
  1515. tmake_file="$tmake_file nvptx/t-nvptx"
  1516. extra_parts="crt0.o"
  1517. ;;
  1518. *)
  1519. echo "*** Configuration ${host} not supported" 1>&2
  1520. exit 1
  1521. ;;
  1522. esac
  1523. case ${host} in
  1524. i[34567]86-*-* | x86_64-*-*)
  1525. case ${host} in
  1526. *-musl*)
  1527. tmake_file="${tmake_file} i386/t-cpuinfo-static"
  1528. ;;
  1529. *)
  1530. tmake_file="${tmake_file} i386/t-cpuinfo"
  1531. ;;
  1532. esac
  1533. ;;
  1534. esac
  1535. case ${host} in
  1536. i[34567]86-*-linux* | x86_64-*-linux* | \
  1537. i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
  1538. i[34567]86-*-gnu*)
  1539. tmake_file="${tmake_file} t-tls i386/t-linux i386/t-msabi t-slibgcc-libgcc"
  1540. if test "$libgcc_cv_cfi" = "yes"; then
  1541. tmake_file="${tmake_file} t-stack i386/t-stack-i386"
  1542. fi
  1543. ;;
  1544. esac
  1545. case ${host} in
  1546. i[34567]86-*-elfiamcu | i[34567]86-*-rtems*)
  1547. # These use soft-fp for SFmode and DFmode, not just TFmode.
  1548. ;;
  1549. i[34567]86-*-* | x86_64-*-*)
  1550. tmake_file="${tmake_file} t-softfp-tf"
  1551. tmake_file="${tmake_file} i386/${host_address}/t-softfp i386/t-softfp t-softfp"
  1552. ;;
  1553. esac
  1554. case ${host} in
  1555. i[34567]86-*-linux* | x86_64-*-linux*)
  1556. # Provide backward binary compatibility for 64bit Linux/x86.
  1557. if test "${host_address}" = 64; then
  1558. tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
  1559. fi
  1560. tm_file="${tm_file} i386/value-unwind.h"
  1561. ;;
  1562. aarch64*-*-*)
  1563. # ILP32 needs an extra header for unwinding
  1564. tm_file="${tm_file} aarch64/value-unwind.h"
  1565. ;;
  1566. esac
  1567. # The vxworks threads implementation relies on a few extra sources,
  1568. # which we arrange to add after everything else:
  1569. case ${target_thread_file} in
  1570. vxworks)
  1571. case ${host} in
  1572. *-*-vxworksae)
  1573. tmake_file="${tmake_file} t-gthr-vxworksae"
  1574. ;;
  1575. *-*-vxworks*)
  1576. tmake_file="${tmake_file} t-gthr-vxworks"
  1577. ;;
  1578. esac
  1579. esac
  1580. case ${host} in
  1581. *-*-musl*)
  1582. # The gthr weak references are unsafe with static linking
  1583. tmake_file="$tmake_file t-gthr-noweak"
  1584. ;;
  1585. esac