gcc: update to allow compiling different versions
authorW. Michael Petullo <mike@flyn.org>
Wed, 18 May 2022 22:06:25 +0000 (17:06 -0500)
committerRosen Penev <rosenp@gmail.com>
Mon, 27 Jun 2022 02:43:02 +0000 (19:43 -0700)
commite32d33a2a25778dd27ff3acfdec5926b2eb49c27
tree6e3bb8a08ebb74457caf0386c495450ee3667e7e
parent90e5bfd4f62395b8ad7dbeb95b3dfb745cd65d73
gcc: update to allow compiling different versions

This is based on the toolchain GCC, and aims to share as much of its
Makefile and patches with that definition. The package requires two
additional patches:

(1) 003-dont-choke-when-building-32bit-on-64bit.patch, which fixes the
`error: size of array 'test_real_width' is negative` error that occurs
when building a 32-bit GCC on a 64-bit host. (Search the Internet for
examples of this error appearing.)

(2) 980-add-nostdinc++.patch, which backports a fix from 11.3.0 (11.2.0
only).

Signed-off-by: W. Michael Petullo <mike@flyn.org>
(cherry picked from commit ceaa6e840e0b57c1b47c784997187044e3311d23)
88 files changed:
devel/gcc/Makefile
devel/gcc/patches/001-revert_register_mode_search.patch [deleted file]
devel/gcc/patches/002-case_insensitive.patch [deleted file]
devel/gcc/patches/002-dont-choke-when-building-32bit-on-64bit.patch [deleted file]
devel/gcc/patches/010-documentation.patch [deleted file]
devel/gcc/patches/020-disable-check-for-sys-sdt-h.patch [deleted file]
devel/gcc/patches/10.3.0/002-case_insensitive.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/003-dont-choke-when-building-32bit-on-64bit.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/010-documentation.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/110-Fix-MIPS-PR-84790.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/230-musl_libssp.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/300-mips_Os_cpu_rtx_cost_model.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/810-arm-softfloat-libgcc.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/820-libgcc_pic.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/840-armv4_pass_fix-v4bx_to_ld.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/850-use_shared_libgcc.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/851-libgcc_no_compat.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/870-ppc_no_crtsavres.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/881-no_tm_section.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/900-bad-mips16-crt.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/910-mbsd_multi.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/920-specs_nonfatal_getenv.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/930-fix-mips-noexecstack.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/931-libffi-fix-MIPS-softfloat-build-issue.patch [new file with mode: 0644]
devel/gcc/patches/10.3.0/960-gotools-fix-compilation-when-making-cross-compiler.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/001-v11.3.0-ranger-Fix-up-fold_using_range-range_of_address-PR10.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/002-case_insensitive.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/003-dont-choke-when-building-32bit-on-64bit.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/010-documentation.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/011-v12-configure-define-TARGET_LIBC_GNUSTACK-on-musl.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/110-Fix-MIPS-PR-84790.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/230-musl_libssp.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/300-mips_Os_cpu_rtx_cost_model.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/810-arm-softfloat-libgcc.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/820-libgcc_pic.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/840-armv4_pass_fix-v4bx_to_ld.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/850-use_shared_libgcc.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/851-libgcc_no_compat.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/870-ppc_no_crtsavres.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/881-no_tm_section.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/900-bad-mips16-crt.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/910-mbsd_multi.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/920-specs_nonfatal_getenv.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/931-libffi-fix-MIPS-softfloat-build-issue.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/960-gotools-fix-compilation-when-making-cross-compiler.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/970-macos_arm64-building-fix.patch [new file with mode: 0644]
devel/gcc/patches/11.2.0/980-add-nostdinc++.patch [new file with mode: 0644]
devel/gcc/patches/110-Fix-MIPS-PR-84790.patch [deleted file]
devel/gcc/patches/230-musl_libssp.patch [deleted file]
devel/gcc/patches/260-musl-add-unwind-fix.patch [deleted file]
devel/gcc/patches/300-mips_Os_cpu_rtx_cost_model.patch [deleted file]
devel/gcc/patches/8.4.0/002-case_insensitive.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/003-dont-choke-when-building-32bit-on-64bit.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/010-documentation.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/110-Fix-MIPS-PR-84790.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/230-musl_libssp.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/300-mips_Os_cpu_rtx_cost_model.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/800-arm_v5te_no_ldrd_strd.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/810-arm-softfloat-libgcc.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/820-libgcc_pic.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/840-armv4_pass_fix-v4bx_to_ld.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/850-use_shared_libgcc.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/851-libgcc_no_compat.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/870-ppc_no_crtsavres.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/881-no_tm_section.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/900-bad-mips16-crt.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/910-mbsd_multi.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/920-specs_nonfatal_getenv.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/930-fix-mips-noexecstack.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/931-libffi-fix-MIPS-softfloat-build-issue.patch [new file with mode: 0644]
devel/gcc/patches/8.4.0/960-gotools-fix-compilation-when-making-cross-compiler.patch [new file with mode: 0644]
devel/gcc/patches/800-arm_v5te_no_ldrd_strd.patch [deleted file]
devel/gcc/patches/810-arm-softfloat-libgcc.patch [deleted file]
devel/gcc/patches/820-libgcc_pic.patch [deleted file]
devel/gcc/patches/840-armv4_pass_fix-v4bx_to_ld.patch [deleted file]
devel/gcc/patches/850-use_shared_libgcc.patch [deleted file]
devel/gcc/patches/851-libgcc_no_compat.patch [deleted file]
devel/gcc/patches/870-ppc_no_crtsavres.patch [deleted file]
devel/gcc/patches/881-no_tm_section.patch [deleted file]
devel/gcc/patches/900-bad-mips16-crt.patch [deleted file]
devel/gcc/patches/910-mbsd_multi.patch [deleted file]
devel/gcc/patches/920-specs_nonfatal_getenv.patch [deleted file]
devel/gcc/patches/930-fix-mips-noexecstack.patch [deleted file]
devel/gcc/patches/931-libffi-fix-MIPS-softfloat-build-issue.patch [deleted file]
devel/gcc/patches/940-no-clobber-stamp-bits.patch [deleted file]
devel/gcc/patches/950-cpp_file_path_translation.patch [deleted file]
devel/gcc/patches/960-gotools-fix-compilation-when-making-cross-compiler.patch [deleted file]
devel/gcc/patches/970-replace-memcpy-memset.patch [deleted file]