0003-shbitrot.diff 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. diff --git a/config.sub b/config.sub
  2. index b83660a..b81ad9a 100755
  3. --- a/config.sub
  4. +++ b/config.sub
  5. @@ -277,7 +277,7 @@ case $basic_machine in
  6. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  7. | pyramid \
  8. | score \
  9. - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  10. + | sh | sh[1234] | sh[24]a | sh[23]e | sh[1234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  11. | sh64 | sh64le \
  12. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  13. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  14. @@ -358,7 +358,7 @@ case $basic_machine in
  15. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  16. | pyramid-* \
  17. | romp-* | rs6000-* \
  18. - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  19. + | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[1234]eb-* | sheb-* | shbe-* \
  20. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  21. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  22. | sparclite-* \
  23. @@ -1127,7 +1127,7 @@ case $basic_machine in
  24. we32k)
  25. basic_machine=we32k-att
  26. ;;
  27. - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  28. + sh[1234] | sh[24]a | sh[1234]eb | sh[1234]le | sh[23]ele)
  29. basic_machine=sh-unknown
  30. ;;
  31. sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  32. diff --git a/gcc/config.gcc b/gcc/config.gcc
  33. index 25136b7..3779369 100644
  34. --- a/gcc/config.gcc
  35. +++ b/gcc/config.gcc
  36. @@ -1967,7 +1967,7 @@ score-*-elf)
  37. ;;
  38. sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
  39. sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
  40. - sh-*-linux* | sh[346lbe]*-*-linux* | \
  41. + sh-*-linux* | sh[12346lbe]*-*-linux* | \
  42. sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
  43. sh64-*-netbsd* | sh64l*-*-netbsd*)
  44. tmake_file="${tmake_file} sh/t-sh sh/t-elf"
  45. @@ -2911,7 +2911,7 @@ case "${target}" in
  46. esac
  47. ;;
  48. - sh[123456ble]-*-* | sh-*-*)
  49. + sh[123456ble]*-*-* | sh-*-*)
  50. supported_defaults="cpu"
  51. case "`echo $with_cpu | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz- | sed s/sh/m/`" in
  52. "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu )
  53. diff --git a/gcc/configure b/gcc/configure
  54. index a248d39..c12f091 100755
  55. --- a/gcc/configure
  56. +++ b/gcc/configure
  57. @@ -14564,7 +14564,7 @@ foo: .long 25
  58. tls_first_minor=14
  59. tls_as_opt="-m64 -Aesame --fatal-warnings"
  60. ;;
  61. - sh-*-* | sh[34]-*-*)
  62. + sh-*-* | sh[123456789lbe]*-*-*)
  63. conftest_s='
  64. .section ".tdata","awT",@progbits
  65. foo: .long 25
  66. diff --git a/gcc/configure.ac b/gcc/configure.ac
  67. index b6c394c..1414f9e 100644
  68. --- a/gcc/configure.ac
  69. +++ b/gcc/configure.ac
  70. @@ -2538,7 +2538,7 @@ foo: .long 25
  71. tls_first_minor=14
  72. tls_as_opt="-m64 -Aesame --fatal-warnings"
  73. ;;
  74. - sh-*-* | sh[34]-*-*)
  75. + sh-*-* | sh[123456789lbe]*-*-*)
  76. conftest_s='
  77. .section ".tdata","awT",@progbits
  78. foo: .long 25