configure.host 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. # Mapping of configurations into GDB host definitions. This is
  2. # invoked from the autoconf generated configure script.
  3. # This file sets the following shell variables:
  4. # gdb_host_cpu generic name of host's CPU
  5. # gdb_host name of GDB host definition to use
  6. # gdb_host_float_format host's float floatformat, or 0
  7. # gdb_host_double_format host's double floatformat, or 0
  8. # gdb_host_long_double_format host's long double floatformat, or 0
  9. # gdb_host_obs host-specific .o files to include
  10. # Map host cpu into the config cpu subdirectory name.
  11. # The default is $host_cpu.
  12. case $host in
  13. *-*-irix* | \
  14. *-*-solaris2.[01] | *-*-solaris2.[2-9]* | *-*-solaris2.10* | \
  15. alpha*-*-osf* | \
  16. alpha*-*-freebsd* | \
  17. alpha*-*-kfreebsd*-gnu | \
  18. arm*-*-netbsdaout* | \
  19. hppa*-*-hiux* | \
  20. i[34567]86-ncr-* | \
  21. i[34567]86-*-dgux* | \
  22. i[34567]86-*-lynxos* | \
  23. i[34567]86-*-netbsdaout* | \
  24. i[34567]86-*-openbsd[0-2].* | i[34567]86-*-openbsd3.[0-3] | \
  25. i[34567]86-*-sco3.2v5* | \
  26. i[34567]86-*-sco3.2v4* | \
  27. i[34567]86-*-sco* | \
  28. i[34567]86-*-sysv4.2* | \
  29. i[34567]86-*-sysv4* | \
  30. i[34567]86-*-sysv5* | \
  31. i[34567]86-*-unixware2* | \
  32. i[34567]86-*-unixware* | \
  33. i[34567]86-*-sysv* | \
  34. i[34567]86-*-isc* | \
  35. m68*-*-netbsdaout* | \
  36. sparc-*-netbsdaout* | \
  37. rs6000-*-lynxos* | \
  38. vax-*-bsd* | \
  39. vax-*-netbsdaout* | \
  40. vax-*-ultrix* | \
  41. hppa*-*-hpux* | \
  42. ia64-*-hpux* | \
  43. null)
  44. echo "*** Configuration $host is obsolete." >&2
  45. echo "*** Support has been REMOVED." >&2
  46. exit 1
  47. ;;
  48. esac
  49. case "${host_cpu}" in
  50. aarch64*) gdb_host_cpu=aarch64 ;;
  51. alpha*) gdb_host_cpu=alpha ;;
  52. arc*) gdb_host_cpu=arc ;;
  53. arm*) gdb_host_cpu=arm ;;
  54. hppa*) gdb_host_cpu=pa ;;
  55. i[34567]86*) gdb_host_cpu=i386 ;;
  56. loongarch*) gdb_host_cpu=loongarch ;;
  57. m68*) gdb_host_cpu=m68k ;;
  58. mips*) gdb_host_cpu=mips ;;
  59. powerpc* | rs6000) gdb_host_cpu=powerpc ;;
  60. sparcv9 | sparc64) gdb_host_cpu=sparc ;;
  61. s390*) gdb_host_cpu=s390 ;;
  62. sh*) gdb_host_cpu=sh ;;
  63. tilegx*) gdb_host_cpu=tilegx ;;
  64. x86_64*) gdb_host_cpu=i386 ;;
  65. m32r*) gdb_host_cpu=m32r ;;
  66. xtensa*) gdb_host_cpu=xtensa ;;
  67. *) gdb_host_cpu=$host_cpu ;;
  68. esac
  69. # map host info into gdb names.
  70. case "${host}" in
  71. *-*-darwin*) gdb_host=darwin ;;
  72. aarch64*-*-linux*) gdb_host=linux ;;
  73. aarch64*-*-freebsd*) gdb_host=fbsd ;;
  74. alpha*-*-linux*) gdb_host=alpha-linux ;;
  75. alpha*-*-netbsdaout* | alpha*-*-knetbsdaout*-gnu)
  76. gdb_host=nbsd ;;
  77. alpha*-*-openbsd*) gdb_host=nbsd ;;
  78. arc*-*-linux*) gdb_host=linux ;;
  79. arm*-*-freebsd*) gdb_host=fbsd ;;
  80. arm*-*-linux*) gdb_host=linux ;;
  81. arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
  82. gdb_host=nbsdelf ;;
  83. arm*-*-openbsd*) gdb_host=nbsdelf ;;
  84. hppa*-*-linux*) gdb_host=linux ;;
  85. hppa*-*-netbsd*) gdb_host=nbsd ;;
  86. hppa*-*-openbsd*) gdb_host=obsd ;;
  87. i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
  88. gdb_host=fbsd ;;
  89. i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
  90. gdb_host=nbsdelf ;;
  91. i[34567]86-*-go32*) gdb_host=go32 ;;
  92. i[34567]86-*-mingw32*) gdb_host=mingw
  93. gdb_host_obs=mingw-hdep.o
  94. ;;
  95. i[34567]86-*-msdosdjgpp*) gdb_host=go32 ;;
  96. i[34567]86-*-linux*) gdb_host=linux ;;
  97. i[34567]86-*-gnu*) gdb_host=i386gnu ;;
  98. i[3456]86-*-nto*) gdb_host=nto ;;
  99. i[34567]86-*-openbsd*) gdb_host=obsd ;;
  100. i[34567]86-*-solaris2* | x86_64-*-solaris2*)
  101. gdb_host=sol2 ;;
  102. i[34567]86-*-cygwin*) gdb_host=cygwin ;;
  103. ia64-*-linux*) gdb_host=linux ;;
  104. loongarch*-linux*) gdb_host=linux ;;
  105. m68*-*-linux*) gdb_host=linux ;;
  106. m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
  107. gdb_host=nbsdelf ;;
  108. m68*-*-openbsd*) gdb_host=obsd ;;
  109. m88*-*-openbsd*) gdb_host=obsd ;;
  110. mips*-*-linux*) gdb_host=linux ;;
  111. mips*-*-netbsdaout* | mips*-*-knetbsd*-gnu)
  112. gdb_host=nbsd ;;
  113. mips*-*-freebsd*) gdb_host=fbsd ;;
  114. mips64*-*-openbsd*) gdb_host=obsd64 ;;
  115. or1k-*-linux*) gdb_host=linux ;;
  116. powerpc-*-aix* | rs6000-*-* | powerpc64-*-aix*)
  117. gdb_host=aix ;;
  118. powerpc*-*-freebsd*) gdb_host=fbsd ;;
  119. powerpc-*-netbsdaout* | powerpc-*-knetbsd*-gnu)
  120. gdb_host=nbsd ;;
  121. powerpc-*-openbsd*) gdb_host=obsd ;;
  122. powerpc64*-*-linux*) gdb_host=ppc64-linux ;;
  123. powerpc*-*-linux*) gdb_host=linux ;;
  124. riscv*-*-freebsd*) gdb_host=fbsd ;;
  125. riscv*-*-linux*) gdb_host=linux ;;
  126. s390*-*-linux*) gdb_host=linux ;;
  127. sh*-*-netbsd* | sh*-*-knetbsd*-gnu)
  128. gdb_host=nbsd ;;
  129. sh*-*-openbsd*) gdb_host=nbsd ;;
  130. sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
  131. gdb_host=fbsd ;;
  132. sparc-*-linux*) gdb_host=linux ;;
  133. sparc64-*-linux*) gdb_host=linux64 ;;
  134. sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
  135. gdb_host=nbsdelf ;;
  136. sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
  137. gdb_host=nbsd64 ;;
  138. sparc-*-openbsd*) gdb_host=nbsdelf ;;
  139. sparc64-*-openbsd*) gdb_host=obsd64 ;;
  140. sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*)
  141. gdb_host=sol2
  142. ;;
  143. tilegx-*-linux*) gdb_host=linux ;;
  144. vax-*-netbsd* | vax-*-knetbsd*-gnu)
  145. gdb_host=nbsdelf ;;
  146. vax-*-openbsd*) gdb_host=obsd ;;
  147. x86_64-*-linux*) gdb_host=linux64 ;;
  148. x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
  149. gdb_host=fbsd64 ;;
  150. x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
  151. gdb_host=nbsd64 ;;
  152. x86_64-*-openbsd*) gdb_host=obsd64 ;;
  153. x86_64-*-mingw*) gdb_host=mingw64
  154. gdb_host_obs=mingw-hdep.o
  155. ;;
  156. x86_64-*-cygwin*) gdb_host=cygwin64 ;;
  157. m32r*-*-linux*) gdb_host=linux ;;
  158. xtensa*-*-linux*) gdb_host=linux ;;
  159. esac
  160. # Map the host/cpu onto the floatformat correspondong to C's "float",
  161. # "double" and "long double" types.
  162. case "${host}" in
  163. i[34567]86-*-*|x86_64-*-*)
  164. gdb_host_float_format="&floatformat_ieee_single_little"
  165. gdb_host_double_format="&floatformat_ieee_double_little"
  166. gdb_host_long_double_format="&floatformat_i387_ext"
  167. ;;
  168. hppa*-*-linux*)
  169. gdb_host_float_format="&floatformat_ieee_single_big"
  170. gdb_host_double_format="&floatformat_ieee_double_big"
  171. gdb_host_long_double_format="&floatformat_ieee_double_big"
  172. ;;
  173. m68*-*-*)
  174. gdb_host_float_format="&floatformat_ieee_single_big"
  175. gdb_host_double_format="&floatformat_ieee_double_big"
  176. gdb_host_long_double_format="&floatformat_m68881_ext"
  177. ;;
  178. *)
  179. gdb_host_float_format=0
  180. gdb_host_double_format=0
  181. gdb_host_long_double_format=0
  182. ;;
  183. esac