gcc.lm32 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. diff -Nur gcc-4.5.4.orig/gcc/config/linux.h gcc-4.5.4/gcc/config/linux.h
  2. --- gcc-4.5.4.orig/gcc/config/linux.h 2009-04-09 17:00:19.000000000 +0200
  3. +++ gcc-4.5.4/gcc/config/linux.h 2019-10-30 05:54:06.757623089 +0100
  4. @@ -129,9 +129,9 @@
  5. /* Determine whether the entire c99 runtime
  6. is present in the runtime library. */
  7. -#define TARGET_C99_FUNCTIONS (OPTION_GLIBC)
  8. +#define TARGET_C99_FUNCTIONS 1
  9. /* Whether we have sincos that follows the GNU extension. */
  10. -#define TARGET_HAS_SINCOS (OPTION_GLIBC)
  11. +#define TARGET_HAS_SINCOS 1
  12. #define TARGET_POSIX_IO
  13. diff -Nur gcc-4.5.4.orig/gcc/config/lm32/uclinux-elf.h gcc-4.5.4/gcc/config/lm32/uclinux-elf.h
  14. --- gcc-4.5.4.orig/gcc/config/lm32/uclinux-elf.h 2009-11-11 17:43:06.000000000 +0100
  15. +++ gcc-4.5.4/gcc/config/lm32/uclinux-elf.h 2019-10-30 05:19:16.775704264 +0100
  16. @@ -80,6 +80,3 @@
  17. #define LINK_GCC_C_SEQUENCE_SPEC \
  18. "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
  19. -#undef CC1_SPEC
  20. -#define CC1_SPEC "%{G*} %{!fno-PIC:-fPIC}"
  21. -
  22. diff -Nur gcc-4.5.4.orig/gcc/config/t-linux gcc-4.5.4/gcc/config/t-linux
  23. --- gcc-4.5.4.orig/gcc/config/t-linux 2009-04-21 21:03:23.000000000 +0200
  24. +++ gcc-4.5.4/gcc/config/t-linux 2019-10-30 05:19:24.584204609 +0100
  25. @@ -18,9 +18,9 @@
  26. # <http://www.gnu.org/licenses/>.
  27. # Compile crtbeginS.o and crtendS.o with pic.
  28. -CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
  29. +CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS)
  30. # Compile libgcc2.a with pic.
  31. -TARGET_LIBGCC2_CFLAGS = -fPIC
  32. +TARGET_LIBGCC2_CFLAGS =
  33. # Override t-slibgcc-elf-ver to export some libgcc symbols with
  34. # the symbol versions that glibc used.
  35. diff -Nur gcc-4.5.4.orig/gcc/config.gcc gcc-4.5.4/gcc/config.gcc
  36. --- gcc-4.5.4.orig/gcc/config.gcc 2012-06-04 11:55:35.000000000 +0200
  37. +++ gcc-4.5.4/gcc/config.gcc 2019-10-30 05:19:24.596205378 +0100
  38. @@ -1528,7 +1528,7 @@
  39. tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp soft-fp/t-softfp"
  40. tmake_file="${tmake_file} t-rtems"
  41. ;;
  42. -lm32-*-uclinux*)
  43. +lm32-*-*linux*)
  44. tm_file="dbxelf.h elfos.h ${tm_file} linux.h lm32/uclinux-elf.h"
  45. tmake_file="${tmake_file} lm32/t-lm32 lm32/t-fprules-softfp soft-fp/t-softfp"
  46. ;;
  47. diff -Nur gcc-4.5.4.orig/libgcc/config/lm32/_ashlsi3.S gcc-4.5.4/libgcc/config/lm32/_ashlsi3.S
  48. --- gcc-4.5.4.orig/libgcc/config/lm32/_ashlsi3.S 2009-11-11 17:43:06.000000000 +0100
  49. +++ gcc-4.5.4/libgcc/config/lm32/_ashlsi3.S 2019-10-30 05:18:56.782423164 +0100
  50. @@ -30,6 +30,10 @@
  51. .global __ashlsi3
  52. .type __ashlsi3,@function
  53. + .global __ashlsi3_0
  54. + .hidden __ashlsi3_0
  55. + .type __ashlsi3_0,@function
  56. +
  57. .align 4
  58. __ashlsi3:
  59. /* Only use 5 LSBs, as that's all the h/w shifter uses. */
  60. @@ -111,4 +115,4 @@
  61. __ashlsi3_0:
  62. ret
  63. -
  64. \ No newline at end of file
  65. +
  66. diff -Nur gcc-4.5.4.orig/libgcc/config/lm32/_ashrsi3.S gcc-4.5.4/libgcc/config/lm32/_ashrsi3.S
  67. --- gcc-4.5.4.orig/libgcc/config/lm32/_ashrsi3.S 2009-11-11 17:43:06.000000000 +0100
  68. +++ gcc-4.5.4/libgcc/config/lm32/_ashrsi3.S 2019-10-30 05:18:56.782423164 +0100
  69. @@ -27,6 +27,10 @@
  70. .global __ashrsi3
  71. .type __ashrsi3,@function
  72. +
  73. + .global __ashrsi3_0
  74. + .hidden __ashrsi3_0
  75. + .type __ashrsi3_0,@function
  76. __ashrsi3:
  77. /* Only use 5 LSBs, as that's all the h/w shifter uses. */
  78. @@ -107,4 +111,4 @@
  79. sri r1, r1, 1
  80. __ashrsi3_0:
  81. ret
  82. -
  83. \ No newline at end of file
  84. +
  85. diff -Nur gcc-4.5.4.orig/libgcc/config/lm32/_lshrsi3.S gcc-4.5.4/libgcc/config/lm32/_lshrsi3.S
  86. --- gcc-4.5.4.orig/libgcc/config/lm32/_lshrsi3.S 2009-11-11 17:43:06.000000000 +0100
  87. +++ gcc-4.5.4/libgcc/config/lm32/_lshrsi3.S 2019-10-30 05:18:56.782423164 +0100
  88. @@ -28,6 +28,10 @@
  89. .global __lshrsi3
  90. .type __lshrsi3,@function
  91. + .global __lshrsi3_0
  92. + .hidden __lshrsi3_0
  93. + .type __lshrsi3_0,@function
  94. +
  95. __lshrsi3:
  96. /* Only use 5 LSBs, as that's all the h/w shifter uses. */
  97. andi r2, r2, 0x1f
  98. diff -Nur gcc-4.5.4.orig/libgcc/config.host gcc-4.5.4/libgcc/config.host
  99. --- gcc-4.5.4.orig/libgcc/config.host 2011-08-24 20:03:50.000000000 +0200
  100. +++ gcc-4.5.4/libgcc/config.host 2019-10-30 05:19:24.600205629 +0100
  101. @@ -363,9 +363,9 @@
  102. extra_parts="crtbegin.o crtend.o crti.o crtn.o"
  103. tmake_file="lm32/t-lm32 lm32/t-elf t-softfp"
  104. ;;
  105. -lm32-*-uclinux*)
  106. +lm32-*-*linux*)
  107. extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o"
  108. - tmake_file="lm32/t-lm32 lm32/t-uclinux t-softfp"
  109. + tmake_file="lm32/t-lm32 t-softfp"
  110. ;;
  111. m32r-*-elf*|m32r-*-rtems*)
  112. ;;