Skip to content
Permalink
Browse files

toolchain/gcc sync to openwrt

  • Loading branch information
zyxmon committed Jan 6, 2020
1 parent 10277e6 commit ce12603d78ada2a84f85ea0477444b2c8aae88a5
Showing with 3,604 additions and 10,385 deletions.
  1. +11 −7 toolchain/gcc/Config.in
  2. +19 −5 toolchain/gcc/Config.version
  3. +23 −11 toolchain/gcc/common.mk
  4. +4 −1 toolchain/gcc/final/Makefile
  5. +0 −15 toolchain/gcc/patches/5.4.0/100-uclibc-conf.patch
  6. +0 −64 toolchain/gcc/patches/5.4.0/110-xtensa-implement-trap-pattern.patch
  7. +0 −29 toolchain/gcc/patches/5.4.0/120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch
  8. +0 −13 toolchain/gcc/patches/5.4.0/301-missing-execinfo_h.patch
  9. +0 −160 toolchain/gcc/patches/5.4.0/370-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch
  10. +0 −11 toolchain/gcc/patches/5.4.0/380-gcc-plugin-POSIX-include-sys-select-h.patch
  11. +0 −15 toolchain/gcc/patches/5.4.0/830-arm_unbreak_armv4t.patch
  12. +0 −166 toolchain/gcc/patches/5.4.0/840-microblaze-enable-dwarf-eh-support.patch
  13. +0 −273 toolchain/gcc/patches/5.4.0/850-libstdcxx-uclibc-c99.patch
  14. +0 −56 toolchain/gcc/patches/5.4.0/860-cilk-wchar.patch
  15. +0 −290 toolchain/gcc/patches/5.4.0/870-xtensa-add-mauto-litpools-option.patch
  16. +0 −76 toolchain/gcc/patches/5.4.0/871-xtensa-reimplement-register-spilling.patch
  17. +0 −31 toolchain/gcc/patches/5.4.0/872-xtensa-use-unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch
  18. +0 −40 toolchain/gcc/patches/5.4.0/873-xtensa-fix-_Unwind_GetCFA.patch
  19. +0 −22 toolchain/gcc/patches/5.4.0/992-no-gotools.patch
  20. +0 −10 toolchain/gcc/patches/5.4.0/998-libgo-certs-dir.patch
  21. +0 −775 toolchain/gcc/patches/5.4.0/999-libffi_mips_go_closure.patch
  22. +0 −4,979 toolchain/gcc/patches/5.4.0/go-escape-analysis.patch
  23. +0 −520 toolchain/gcc/patches/5.4.0/go-escape-analysis2.patch
  24. +0 −78 toolchain/gcc/patches/5.4.0/go-escape-analysis3.patch
  25. +0 −27 toolchain/gcc/patches/5.4.0/go-escape-analysis4.patch
  26. +0 −96 toolchain/gcc/patches/5.4.0/go-escape-analysis5.patch
  27. +0 −211 toolchain/gcc/patches/5.4.0/go-escape-analysis6.patch
  28. +0 −15 toolchain/gcc/patches/5.4.0/libgo-revert-timeout-exp.patch
  29. +0 −24 toolchain/gcc/patches/5.4.0/libgo-setcontext-config.patch
  30. +0 −55 toolchain/gcc/patches/5.4.0/libgo-testsuite.patch
  31. +1 −1 toolchain/gcc/patches/{6.3.0 → 5.5.0}/001-revert_register_mode_search.patch
  32. 0 toolchain/gcc/patches/{6.3.0 → 5.5.0}/002-case_insensitive.patch
  33. +1 −1 toolchain/gcc/patches/{6.3.0 → 5.5.0}/010-documentation.patch
  34. +28 −0 toolchain/gcc/patches/5.5.0/020-no-plt-backport.patch
  35. +23 −0 toolchain/gcc/patches/5.5.0/040-fix-mips-ICE-PR-68400.patch
  36. +1,092 −0 toolchain/gcc/patches/5.5.0/050-libitm-Don-t-redefine-__always_inline-in-local_atomi.patch
  37. +46 −22 toolchain/gcc/patches/{5.4.0/904-musl-libc-config.patch → 5.5.0/200-musl_config.patch}
  38. +0 −2 toolchain/gcc/patches/{5.4.0/908-arm-musl-support.patch → 5.5.0/201-musl_arm.patch}
  39. +1 −3 toolchain/gcc/patches/{5.4.0/906-mips-musl-support.patch → 5.5.0/202-musl_mips.patch}
  40. +209 −0 toolchain/gcc/patches/5.5.0/203-musl_powerpc.patch
  41. +39 −0 toolchain/gcc/patches/5.5.0/204-musl_sh.patch
  42. +2 −6 toolchain/gcc/patches/{5.4.0/907-x86-musl-support.patch → 5.5.0/205-musl_x86.patch}
  43. +0 −2 toolchain/gcc/patches/{5.4.0/909-aarch64-musl-support.patch → 5.5.0/206-musl_aarch64.patch}
  44. +1 −3 .../patches/{5.4.0/901-fixincludes-update-for-musl-support.patch → 5.5.0/207-musl_fixincludes.patch}
  45. +3 −11 ...{5.4.0/903-libstdc++-libgfortran-gthr-workaround-for-musl.patch → 5.5.0/209-musl_libstdc++.patch}
  46. +1 −1 toolchain/gcc/patches/{6.3.0 → 5.5.0}/230-musl_libssp.patch
  47. +2 −6 ...n/gcc/patches/{5.4.0/900-libitm-fixes-for-musl-support.patch → 5.5.0/240-musl-libitm-fixes.patch}
  48. +5 −15 toolchain/gcc/patches/{5.4.0/905-add-musl-support-to-gcc.patch → 5.5.0/250-add-musl.patch}
  49. +0 −2 toolchain/gcc/patches/{5.4.0/902-unwind-fix-for-musl.patch → 5.5.0/260-musl-add-unwind-fix.patch}
  50. +24 −0 toolchain/gcc/patches/5.5.0/270-musl-add-powerpc-softfloat-fix.patch
  51. +2 −2 toolchain/gcc/patches/{6.3.0 → 5.5.0}/280-musl-disable-ifunc-by-default.patch
  52. +4 −1 toolchain/gcc/patches/{6.3.0 → 5.5.0}/300-mips_Os_cpu_rtx_cost_model.patch
  53. +1 −1 toolchain/gcc/patches/{6.3.0 → 5.5.0}/800-arm_v5te_no_ldrd_strd.patch
  54. 0 toolchain/gcc/patches/{6.3.0 → 5.5.0}/810-arm-softfloat-libgcc.patch
  55. +4 −4 toolchain/gcc/patches/{6.3.0 → 5.5.0}/820-libgcc_pic.patch
  56. 0 toolchain/gcc/patches/{6.3.0 → 5.5.0}/830-arm_unbreak_armv4t.patch
  57. 0 toolchain/gcc/patches/{6.3.0 → 5.5.0}/840-armv4_pass_fix-v4bx_to_ld.patch
  58. +2 −2 toolchain/gcc/patches/{6.3.0 → 5.5.0}/850-use_shared_libgcc.patch
  59. 0 toolchain/gcc/patches/{6.3.0 → 5.5.0}/851-libgcc_no_compat.patch
  60. +1 −1 toolchain/gcc/patches/{6.3.0 → 5.5.0}/870-ppc_no_crtsavres.patch
  61. +1 −1 toolchain/gcc/patches/{6.3.0 → 5.5.0}/880-no_java_section.patch
  62. 0 toolchain/gcc/patches/{6.3.0 → 5.5.0}/881-no_tm_section.patch
  63. 0 toolchain/gcc/patches/{6.3.0 → 5.5.0}/900-bad-mips16-crt.patch
  64. +24 −24 toolchain/gcc/patches/{6.3.0 → 5.5.0}/910-mbsd_multi.patch
  65. +4 −4 toolchain/gcc/patches/{6.3.0 → 5.5.0}/920-specs_nonfatal_getenv.patch
  66. +111 −0 toolchain/gcc/patches/5.5.0/930-fix-mips-noexecstack.patch
  67. +167 −0 toolchain/gcc/patches/5.5.0/931-fix-MIPS-softfloat-build-issue.patch
  68. +1 −1 toolchain/gcc/patches/{6.3.0 → 5.5.0}/940-no-clobber-stamp-bits.patch
  69. +16 −16 toolchain/gcc/patches/{6.3.0 → 5.5.0}/950-cpp_file_path_translation.patch
  70. +1 −1 toolchain/gcc/patches/{5.4.0/991-go1-add-libm.patch → 5.5.0/960-go_libm.patch}
  71. +11 −0 toolchain/gcc/patches/5.5.0/970-warn_bug.patch
  72. +0 −11 toolchain/gcc/patches/6.3.0/960-fix-ubsan-defref.patch
  73. +0 −507 toolchain/gcc/patches/6.3.0/962-armv5_exception_ptr.patch
  74. +0 −11 toolchain/gcc/patches/6.3.0/991-go1-add-libm.patch
  75. +0 −22 toolchain/gcc/patches/6.3.0/992-no-gotools.patch
  76. +0 −10 toolchain/gcc/patches/6.3.0/998-libgo-certs-dir.patch
  77. +0 −775 toolchain/gcc/patches/6.3.0/999-libffi_mips_go_closure.patch
  78. +0 −775 toolchain/gcc/patches/7.4.0/999-libffi_mips_go_closure.patch
  79. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/001-revert_register_mode_search.patch
  80. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/002-case_insensitive.patch
  81. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/010-documentation.patch
  82. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/110-Fix-MIPS-PR-84790.patch
  83. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/230-musl_libssp.patch
  84. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/300-mips_Os_cpu_rtx_cost_model.patch
  85. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/800-arm_v5te_no_ldrd_strd.patch
  86. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/810-arm-softfloat-libgcc.patch
  87. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/820-libgcc_pic.patch
  88. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/840-armv4_pass_fix-v4bx_to_ld.patch
  89. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/850-use_shared_libgcc.patch
  90. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/851-libgcc_no_compat.patch
  91. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/870-ppc_no_crtsavres.patch
  92. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/881-no_tm_section.patch
  93. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/900-bad-mips16-crt.patch
  94. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/910-mbsd_multi.patch
  95. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/920-specs_nonfatal_getenv.patch
  96. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/930-fix-mips-noexecstack.patch
  97. +175 −0 toolchain/gcc/patches/7.5.0/931-libffi-fix-MIPS-softfloat-build-issue.patch
  98. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/940-no-clobber-stamp-bits.patch
  99. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/950-cpp_file_path_translation.patch
  100. 0 toolchain/gcc/patches/{7.4.0 → 7.5.0}/960-gotools-fix-compilation-when-making-cross-compiler.patch
  101. +24 −0 toolchain/gcc/patches/8.3.0/002-case_insensitive.patch
  102. +35 −0 toolchain/gcc/patches/8.3.0/010-documentation.patch
  103. +30 −0 toolchain/gcc/patches/8.3.0/090-rs6000-PR-89587.patch
  104. +20 −0 toolchain/gcc/patches/8.3.0/110-Fix-MIPS-PR-84790.patch
  105. +13 −0 toolchain/gcc/patches/8.3.0/230-musl_libssp.patch
  106. +21 −0 toolchain/gcc/patches/8.3.0/300-mips_Os_cpu_rtx_cost_model.patch
  107. +11 −0 toolchain/gcc/patches/8.3.0/800-arm_v5te_no_ldrd_strd.patch
  108. +20 −17 toolchain/gcc/patches/{5.4.0 → 8.3.0}/810-arm-softfloat-libgcc.patch
  109. +44 −0 toolchain/gcc/patches/8.3.0/820-libgcc_pic.patch
  110. +28 −0 toolchain/gcc/patches/8.3.0/840-armv4_pass_fix-v4bx_to_ld.patch
  111. +54 −0 toolchain/gcc/patches/8.3.0/850-use_shared_libgcc.patch
  112. +22 −0 toolchain/gcc/patches/8.3.0/851-libgcc_no_compat.patch
  113. +11 −0 toolchain/gcc/patches/8.3.0/870-ppc_no_crtsavres.patch
  114. +11 −0 toolchain/gcc/patches/8.3.0/881-no_tm_section.patch
  115. +9 −0 toolchain/gcc/patches/8.3.0/900-bad-mips16-crt.patch
  116. +37 −46 toolchain/gcc/patches/{5.4.0 → 8.3.0}/910-mbsd_multi.patch
  117. +22 −0 toolchain/gcc/patches/8.3.0/920-specs_nonfatal_getenv.patch
  118. +3 −3 toolchain/gcc/patches/{6.3.0 → 8.3.0}/930-fix-mips-noexecstack.patch
  119. +168 −0 toolchain/gcc/patches/8.3.0/931-libffi-fix-MIPS-softfloat-build-issue.patch
  120. +67 −0 toolchain/gcc/patches/8.3.0/960-gotools-fix-compilation-when-making-cross-compiler.patch
  121. +24 −0 toolchain/gcc/patches/9.2.0/002-case_insensitive.patch
  122. +35 −0 toolchain/gcc/patches/9.2.0/010-documentation.patch
  123. +55 −0 toolchain/gcc/patches/9.2.0/100-Fix_uninitialised_use_in_mips_split_move.patch
  124. +20 −0 toolchain/gcc/patches/9.2.0/110-Fix-MIPS-PR-84790.patch
  125. +13 −0 toolchain/gcc/patches/9.2.0/230-musl_libssp.patch
  126. +21 −0 toolchain/gcc/patches/9.2.0/300-mips_Os_cpu_rtx_cost_model.patch
  127. +33 −0 toolchain/gcc/patches/9.2.0/810-arm-softfloat-libgcc.patch
  128. +44 −0 toolchain/gcc/patches/9.2.0/820-libgcc_pic.patch
  129. +28 −0 toolchain/gcc/patches/9.2.0/840-armv4_pass_fix-v4bx_to_ld.patch
  130. +54 −0 toolchain/gcc/patches/9.2.0/850-use_shared_libgcc.patch
  131. +22 −0 toolchain/gcc/patches/9.2.0/851-libgcc_no_compat.patch
  132. +11 −0 toolchain/gcc/patches/9.2.0/870-ppc_no_crtsavres.patch
  133. +11 −0 toolchain/gcc/patches/9.2.0/881-no_tm_section.patch
  134. +9 −0 toolchain/gcc/patches/9.2.0/900-bad-mips16-crt.patch
  135. +146 −0 toolchain/gcc/patches/9.2.0/910-mbsd_multi.patch
  136. +22 −0 toolchain/gcc/patches/9.2.0/920-specs_nonfatal_getenv.patch
  137. +111 −0 toolchain/gcc/patches/9.2.0/930-fix-mips-noexecstack.patch
  138. +168 −0 toolchain/gcc/patches/9.2.0/931-libffi-fix-MIPS-softfloat-build-issue.patch
  139. +67 −0 toolchain/gcc/patches/9.2.0/960-gotools-fix-compilation-when-making-cross-compiler.patch
@@ -2,19 +2,23 @@

choice
prompt "GCC compiler Version" if TOOLCHAINOPTS
default GCC_USE_VERSION_7_4_0
default GCC_USE_VERSION_8
help
Select the version of gcc you wish to use.

config GCC_USE_VERSION_5_4_0
bool "gcc 5.4.0"
config GCC_USE_VERSION_5
bool "gcc 5.x"
depends on !arc

config GCC_USE_VERSION_6_3_0
bool "gcc 6.3.0"
config GCC_USE_VERSION_7
bool "gcc 7.x"
depends on !arc

config GCC_USE_VERSION_7_4_0
bool "gcc 7.4.0"
config GCC_USE_VERSION_8
bool "gcc 8.x"

config GCC_USE_VERSION_9
bool "gcc 9.x"
endchoice

config GCC_USE_GRAPHITE
@@ -1,9 +1,23 @@
config GCC_VERSION_7_4_0
default y if !TOOLCHAINOPTS
config GCC_VERSION_5
default y if GCC_USE_VERSION_5
bool

config GCC_VERSION_7
default y if GCC_USE_VERSION_7
bool

config GCC_VERSION_9
default y if GCC_USE_VERSION_9
bool

config GCC_VERSION
string
default "5.4.0" if GCC_USE_VERSION_5_4_0
default "6.3.0" if GCC_USE_VERSION_6_3_0
default "7.4.0" if GCC_USE_VERSION_7_4_0
default "5.5.0" if GCC_VERSION_5
default "7.5.0" if GCC_VERSION_7
default "9.2.0" if GCC_VERSION_9
default "8.3.0"

config GCC_USE_IREMAP
bool
default y if ( GCC_USE_VERSION_5 || GCC_USE_VERSION_7 )
default n
@@ -28,18 +28,20 @@ GCC_DIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_URL:=@GNU/gcc/gcc-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz

ifeq ($(PKG_VERSION),5.4.0)
PKG_HASH:=608df76dec2d34de6558249d8af4cbee21eceddbcb580d666f7a5a583ca3303a
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
ifeq ($(PKG_VERSION),5.5.0)
PKG_HASH:=530cea139d82fe542b358961130c69cfde8b3d14556370b65823d2f91f0ced87
endif

ifeq ($(PKG_VERSION),6.3.0)
PKG_HASH:=f06ae7f3f790fbf0f018f6d40e844451e6bc3b7bc96e128e63b09825c1f8b29f
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
ifeq ($(PKG_VERSION),7.5.0)
PKG_HASH:=b81946e7f01f90528a1f7352ab08cc602b9ccc05d4e44da4bd501c5a189ee661
endif

ifeq ($(PKG_VERSION),7.4.0)
PKG_HASH:=eddde28d04f334aec1604456e536416549e9b1aa137fc69204e65eb0c009fe51
ifeq ($(PKG_VERSION),8.3.0)
PKG_HASH:=64baadfe6cc0f4947a84cb12d7f0dfaf45bb58b7e92461639596c21e02d97d2c
endif

ifeq ($(PKG_VERSION),9.2.0)
PKG_HASH:=ea6ef08f121239da5695f76c9b33637a118dcf63e24164422231917fa61fb206
endif

PATCH_DIR=../patches/$(GCC_VERSION)
@@ -87,7 +89,7 @@ endif

GCC_CONFIGURE:= \
SHELL="$(BASH)" \
$(if $(shell gcc --version 2>&1 | grep LLVM), \
$(if $(shell gcc --version 2>&1 | grep -E "Apple.(LLVM|clang)"), \
CFLAGS="-O2 -fbracket-depth=512 -pipe" \
CXXFLAGS="-O2 -fbracket-depth=512 -pipe" \
) \
@@ -111,6 +113,7 @@ GCC_CONFIGURE:= \
$(call qstrip,$(CONFIG_EXTRA_GCC_CONFIG_OPTIONS)) \
$(if $(CONFIG_mips64)$(CONFIG_mips64el),--with-arch=mips64 \
--with-abi=$(call qstrip,$(CONFIG_MIPS64_ABI))) \
$(if $(CONFIG_arc),--with-cpu=$(CONFIG_CPU_TYPE)) \
--with-gmp=$(TOPDIR)/staging_dir/host \
--with-mpfr=$(TOPDIR)/staging_dir/host \
--with-mpc=$(TOPDIR)/staging_dir/host \
@@ -162,11 +165,20 @@ ifneq ($(GCC_ARCH),)
GCC_CONFIGURE+= --with-arch=$(GCC_ARCH)
endif

ifneq ($(CONFIG_SOFT_FLOAT),y)
ifeq ($(CONFIG_arm),y)
ifeq ($(CONFIG_arm),y)
GCC_CONFIGURE+= \
--with-cpu=$(word 1, $(subst +," ,$(CONFIG_CPU_TYPE)))

ifneq ($(CONFIG_SOFT_FLOAT),y)
GCC_CONFIGURE+= \
--with-fpu=$(word 2, $(subst +, ",$(CONFIG_CPU_TYPE))) \
--with-float=hard
endif

# Do not let TARGET_CFLAGS get poisoned by extra CPU optimization flags
# that do not belong here. The cpu,fpu type should be specified via
# --with-cpu and --with-fpu for ARM and not CFLAGS.
TARGET_CFLAGS:=$(filter-out -m%,$(call qstrip,$(TARGET_CFLAGS)))
endif

ifeq ($(CONFIG_TARGET_x86)$(CONFIG_USE_GLIBC)$(CONFIG_INSTALL_GCCGO),yyy)
@@ -4,14 +4,17 @@ include ../common.mk

GCC_CONFIGURE += \
--with-headers=$(TOOLCHAIN_DIR)/include \
--disable-libsanitizer \
--enable-languages=$(TARGET_LANGUAGES) \
--enable-shared \
--enable-threads \
--with-slibdir=$(TOOLCHAIN_DIR)/lib \
--enable-lto \
--with-libelf=$(TOPDIR)/staging_dir/host

ifndef CONFIG_USE_GLIBC
GCC_CONFIGURE += --disable-libsanitizer
endif

ifdef CONFIG_USE_MUSL
GCC_MAKE += gcc_cv_libc_provides_ssp=yes
endif

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit ce12603

Please sign in to comment.
You can’t perform that action at this time.