From b31d6da0a807893893915e07e051a21af54e5761 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Sun, 7 Apr 2024 01:24:13 +0200 Subject: [PATCH] devel: gcc: align patches structure to openwrt toolchain GCC Align patches structure to openwrt toolchain GCC to make it easier to maintain them and reduce patch delta on GCC update. Signed-off-by: Christian Marangi --- devel/gcc/Makefile | 3 ++- .../10.3.0 => patches-10.x}/002-case_insensitive.patch | 0 .../003-dont-choke-when-building-32bit-on-64bit.patch | 0 .../{patches/10.3.0 => patches-10.x}/010-documentation.patch | 0 .../10.3.0 => patches-10.x}/110-Fix-MIPS-PR-84790.patch | 0 .../gcc/{patches/10.3.0 => patches-10.x}/230-musl_libssp.patch | 0 .../300-mips_Os_cpu_rtx_cost_model.patch | 0 .../10.3.0 => patches-10.x}/810-arm-softfloat-libgcc.patch | 0 .../gcc/{patches/10.3.0 => patches-10.x}/820-libgcc_pic.patch | 0 .../840-armv4_pass_fix-v4bx_to_ld.patch | 0 .../10.3.0 => patches-10.x}/850-use_shared_libgcc.patch | 0 .../10.3.0 => patches-10.x}/851-libgcc_no_compat.patch | 0 .../10.3.0 => patches-10.x}/870-ppc_no_crtsavres.patch | 0 .../{patches/10.3.0 => patches-10.x}/881-no_tm_section.patch | 0 .../{patches/10.3.0 => patches-10.x}/900-bad-mips16-crt.patch | 0 .../gcc/{patches/10.3.0 => patches-10.x}/910-mbsd_multi.patch | 0 .../10.3.0 => patches-10.x}/920-specs_nonfatal_getenv.patch | 0 .../10.3.0 => patches-10.x}/930-fix-mips-noexecstack.patch | 0 .../931-libffi-fix-MIPS-softfloat-build-issue.patch | 0 ...60-gotools-fix-compilation-when-making-cross-compiler.patch | 0 .../11.3.0 => patches-11.x}/002-case_insensitive.patch | 0 .../003-dont-choke-when-building-32bit-on-64bit.patch | 0 .../{patches/11.3.0 => patches-11.x}/010-documentation.patch | 0 ...011-v12-configure-define-TARGET_LIBC_GNUSTACK-on-musl.patch | 0 .../11.3.0 => patches-11.x}/110-Fix-MIPS-PR-84790.patch | 0 .../gcc/{patches/11.3.0 => patches-11.x}/230-musl_libssp.patch | 0 .../300-mips_Os_cpu_rtx_cost_model.patch | 0 .../11.3.0 => patches-11.x}/810-arm-softfloat-libgcc.patch | 0 .../gcc/{patches/11.3.0 => patches-11.x}/820-libgcc_pic.patch | 0 .../840-armv4_pass_fix-v4bx_to_ld.patch | 0 .../11.3.0 => patches-11.x}/850-use_shared_libgcc.patch | 0 .../11.3.0 => patches-11.x}/851-libgcc_no_compat.patch | 0 .../11.3.0 => patches-11.x}/870-ppc_no_crtsavres.patch | 0 .../{patches/11.3.0 => patches-11.x}/881-no_tm_section.patch | 0 .../{patches/11.3.0 => patches-11.x}/900-bad-mips16-crt.patch | 0 .../gcc/{patches/11.3.0 => patches-11.x}/910-mbsd_multi.patch | 0 .../11.3.0 => patches-11.x}/920-specs_nonfatal_getenv.patch | 0 .../931-libffi-fix-MIPS-softfloat-build-issue.patch | 0 ...60-gotools-fix-compilation-when-making-cross-compiler.patch | 0 .../11.3.0 => patches-11.x}/970-macos_arm64-building-fix.patch | 0 .../12.3.0 => patches-12.x}/002-case_insensitive.patch | 0 .../003-dont-choke-when-building-32bit-on-64bit.patch | 0 .../{patches/12.3.0 => patches-12.x}/010-documentation.patch | 0 .../12.3.0 => patches-12.x}/110-Fix-MIPS-PR-84790.patch | 0 .../gcc/{patches/12.3.0 => patches-12.x}/230-musl_libssp.patch | 0 .../300-mips_Os_cpu_rtx_cost_model.patch | 0 .../12.3.0 => patches-12.x}/810-arm-softfloat-libgcc.patch | 0 .../gcc/{patches/12.3.0 => patches-12.x}/820-libgcc_pic.patch | 0 .../840-armv4_pass_fix-v4bx_to_ld.patch | 0 .../12.3.0 => patches-12.x}/850-use_shared_libgcc.patch | 0 .../12.3.0 => patches-12.x}/851-libgcc_no_compat.patch | 0 .../12.3.0 => patches-12.x}/870-ppc_no_crtsavres.patch | 0 .../{patches/12.3.0 => patches-12.x}/881-no_tm_section.patch | 0 .../{patches/12.3.0 => patches-12.x}/900-bad-mips16-crt.patch | 0 .../gcc/{patches/12.3.0 => patches-12.x}/910-mbsd_multi.patch | 0 .../12.3.0 => patches-12.x}/920-specs_nonfatal_getenv.patch | 0 ...60-gotools-fix-compilation-when-making-cross-compiler.patch | 0 .../12.3.0 => patches-12.x}/970-macos_arm64-building-fix.patch | 0 .../{patches/8.4.0 => patches-8.x}/002-case_insensitive.patch | 0 .../003-dont-choke-when-building-32bit-on-64bit.patch | 0 .../gcc/{patches/8.4.0 => patches-8.x}/010-documentation.patch | 0 .../{patches/8.4.0 => patches-8.x}/110-Fix-MIPS-PR-84790.patch | 0 devel/gcc/{patches/8.4.0 => patches-8.x}/230-musl_libssp.patch | 0 .../8.4.0 => patches-8.x}/300-mips_Os_cpu_rtx_cost_model.patch | 0 .../8.4.0 => patches-8.x}/800-arm_v5te_no_ldrd_strd.patch | 0 .../8.4.0 => patches-8.x}/810-arm-softfloat-libgcc.patch | 0 devel/gcc/{patches/8.4.0 => patches-8.x}/820-libgcc_pic.patch | 0 .../8.4.0 => patches-8.x}/840-armv4_pass_fix-v4bx_to_ld.patch | 0 .../{patches/8.4.0 => patches-8.x}/850-use_shared_libgcc.patch | 0 .../{patches/8.4.0 => patches-8.x}/851-libgcc_no_compat.patch | 0 .../{patches/8.4.0 => patches-8.x}/870-ppc_no_crtsavres.patch | 0 .../gcc/{patches/8.4.0 => patches-8.x}/881-no_tm_section.patch | 0 .../{patches/8.4.0 => patches-8.x}/900-bad-mips16-crt.patch | 0 devel/gcc/{patches/8.4.0 => patches-8.x}/910-mbsd_multi.patch | 0 .../8.4.0 => patches-8.x}/920-specs_nonfatal_getenv.patch | 0 .../8.4.0 => patches-8.x}/930-fix-mips-noexecstack.patch | 0 .../931-libffi-fix-MIPS-softfloat-build-issue.patch | 0 ...60-gotools-fix-compilation-when-making-cross-compiler.patch | 0 78 files changed, 2 insertions(+), 1 deletion(-) rename devel/gcc/{patches/10.3.0 => patches-10.x}/002-case_insensitive.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/003-dont-choke-when-building-32bit-on-64bit.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/010-documentation.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/110-Fix-MIPS-PR-84790.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/230-musl_libssp.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/300-mips_Os_cpu_rtx_cost_model.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/810-arm-softfloat-libgcc.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/820-libgcc_pic.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/840-armv4_pass_fix-v4bx_to_ld.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/850-use_shared_libgcc.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/851-libgcc_no_compat.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/870-ppc_no_crtsavres.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/881-no_tm_section.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/900-bad-mips16-crt.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/910-mbsd_multi.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/920-specs_nonfatal_getenv.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/930-fix-mips-noexecstack.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/931-libffi-fix-MIPS-softfloat-build-issue.patch (100%) rename devel/gcc/{patches/10.3.0 => patches-10.x}/960-gotools-fix-compilation-when-making-cross-compiler.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/002-case_insensitive.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/003-dont-choke-when-building-32bit-on-64bit.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/010-documentation.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/011-v12-configure-define-TARGET_LIBC_GNUSTACK-on-musl.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/110-Fix-MIPS-PR-84790.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/230-musl_libssp.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/300-mips_Os_cpu_rtx_cost_model.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/810-arm-softfloat-libgcc.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/820-libgcc_pic.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/840-armv4_pass_fix-v4bx_to_ld.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/850-use_shared_libgcc.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/851-libgcc_no_compat.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/870-ppc_no_crtsavres.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/881-no_tm_section.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/900-bad-mips16-crt.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/910-mbsd_multi.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/920-specs_nonfatal_getenv.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/931-libffi-fix-MIPS-softfloat-build-issue.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/960-gotools-fix-compilation-when-making-cross-compiler.patch (100%) rename devel/gcc/{patches/11.3.0 => patches-11.x}/970-macos_arm64-building-fix.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/002-case_insensitive.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/003-dont-choke-when-building-32bit-on-64bit.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/010-documentation.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/110-Fix-MIPS-PR-84790.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/230-musl_libssp.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/300-mips_Os_cpu_rtx_cost_model.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/810-arm-softfloat-libgcc.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/820-libgcc_pic.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/840-armv4_pass_fix-v4bx_to_ld.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/850-use_shared_libgcc.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/851-libgcc_no_compat.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/870-ppc_no_crtsavres.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/881-no_tm_section.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/900-bad-mips16-crt.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/910-mbsd_multi.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/920-specs_nonfatal_getenv.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/960-gotools-fix-compilation-when-making-cross-compiler.patch (100%) rename devel/gcc/{patches/12.3.0 => patches-12.x}/970-macos_arm64-building-fix.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/002-case_insensitive.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/003-dont-choke-when-building-32bit-on-64bit.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/010-documentation.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/110-Fix-MIPS-PR-84790.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/230-musl_libssp.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/300-mips_Os_cpu_rtx_cost_model.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/800-arm_v5te_no_ldrd_strd.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/810-arm-softfloat-libgcc.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/820-libgcc_pic.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/840-armv4_pass_fix-v4bx_to_ld.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/850-use_shared_libgcc.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/851-libgcc_no_compat.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/870-ppc_no_crtsavres.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/881-no_tm_section.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/900-bad-mips16-crt.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/910-mbsd_multi.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/920-specs_nonfatal_getenv.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/930-fix-mips-noexecstack.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/931-libffi-fix-MIPS-softfloat-build-issue.patch (100%) rename devel/gcc/{patches/8.4.0 => patches-8.x}/960-gotools-fix-compilation-when-making-cross-compiler.patch (100%) diff --git a/devel/gcc/Makefile b/devel/gcc/Makefile index e45372e4f8..583ce15bc4 100644 --- a/devel/gcc/Makefile +++ b/devel/gcc/Makefile @@ -23,6 +23,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gcc GCC_VERSION:=$(call qstrip,$(CONFIG_GCC_VERSION)) PKG_VERSION:=$(firstword $(subst +, ,$(GCC_VERSION))) +GCC_MAJOR_VERSION:=$(word 1,$(subst ., ,$(PKG_VERSION))) PKG_RELEASE:=5 GCC_DIR:=$(PKG_NAME)-$(PKG_VERSION) @@ -50,7 +51,7 @@ ifeq ($(PKG_VERSION),12.3.0) PKG_HASH:=949a5d4f99e786421a93b532b22ffab5578de7321369975b91aec97adfda8c3b endif -PATCH_DIR=./patches/$(GCC_VERSION) +PATCH_DIR:=patches-$(GCC_MAJOR_VERSION).x include $(INCLUDE_DIR)/package.mk diff --git a/devel/gcc/patches/10.3.0/002-case_insensitive.patch b/devel/gcc/patches-10.x/002-case_insensitive.patch similarity index 100% rename from devel/gcc/patches/10.3.0/002-case_insensitive.patch rename to devel/gcc/patches-10.x/002-case_insensitive.patch diff --git a/devel/gcc/patches/10.3.0/003-dont-choke-when-building-32bit-on-64bit.patch b/devel/gcc/patches-10.x/003-dont-choke-when-building-32bit-on-64bit.patch similarity index 100% rename from devel/gcc/patches/10.3.0/003-dont-choke-when-building-32bit-on-64bit.patch rename to devel/gcc/patches-10.x/003-dont-choke-when-building-32bit-on-64bit.patch diff --git a/devel/gcc/patches/10.3.0/010-documentation.patch b/devel/gcc/patches-10.x/010-documentation.patch similarity index 100% rename from devel/gcc/patches/10.3.0/010-documentation.patch rename to devel/gcc/patches-10.x/010-documentation.patch diff --git a/devel/gcc/patches/10.3.0/110-Fix-MIPS-PR-84790.patch b/devel/gcc/patches-10.x/110-Fix-MIPS-PR-84790.patch similarity index 100% rename from devel/gcc/patches/10.3.0/110-Fix-MIPS-PR-84790.patch rename to devel/gcc/patches-10.x/110-Fix-MIPS-PR-84790.patch diff --git a/devel/gcc/patches/10.3.0/230-musl_libssp.patch b/devel/gcc/patches-10.x/230-musl_libssp.patch similarity index 100% rename from devel/gcc/patches/10.3.0/230-musl_libssp.patch rename to devel/gcc/patches-10.x/230-musl_libssp.patch diff --git a/devel/gcc/patches/10.3.0/300-mips_Os_cpu_rtx_cost_model.patch b/devel/gcc/patches-10.x/300-mips_Os_cpu_rtx_cost_model.patch similarity index 100% rename from devel/gcc/patches/10.3.0/300-mips_Os_cpu_rtx_cost_model.patch rename to devel/gcc/patches-10.x/300-mips_Os_cpu_rtx_cost_model.patch diff --git a/devel/gcc/patches/10.3.0/810-arm-softfloat-libgcc.patch b/devel/gcc/patches-10.x/810-arm-softfloat-libgcc.patch similarity index 100% rename from devel/gcc/patches/10.3.0/810-arm-softfloat-libgcc.patch rename to devel/gcc/patches-10.x/810-arm-softfloat-libgcc.patch diff --git a/devel/gcc/patches/10.3.0/820-libgcc_pic.patch b/devel/gcc/patches-10.x/820-libgcc_pic.patch similarity index 100% rename from devel/gcc/patches/10.3.0/820-libgcc_pic.patch rename to devel/gcc/patches-10.x/820-libgcc_pic.patch diff --git a/devel/gcc/patches/10.3.0/840-armv4_pass_fix-v4bx_to_ld.patch b/devel/gcc/patches-10.x/840-armv4_pass_fix-v4bx_to_ld.patch similarity index 100% rename from devel/gcc/patches/10.3.0/840-armv4_pass_fix-v4bx_to_ld.patch rename to devel/gcc/patches-10.x/840-armv4_pass_fix-v4bx_to_ld.patch diff --git a/devel/gcc/patches/10.3.0/850-use_shared_libgcc.patch b/devel/gcc/patches-10.x/850-use_shared_libgcc.patch similarity index 100% rename from devel/gcc/patches/10.3.0/850-use_shared_libgcc.patch rename to devel/gcc/patches-10.x/850-use_shared_libgcc.patch diff --git a/devel/gcc/patches/10.3.0/851-libgcc_no_compat.patch b/devel/gcc/patches-10.x/851-libgcc_no_compat.patch similarity index 100% rename from devel/gcc/patches/10.3.0/851-libgcc_no_compat.patch rename to devel/gcc/patches-10.x/851-libgcc_no_compat.patch diff --git a/devel/gcc/patches/10.3.0/870-ppc_no_crtsavres.patch b/devel/gcc/patches-10.x/870-ppc_no_crtsavres.patch similarity index 100% rename from devel/gcc/patches/10.3.0/870-ppc_no_crtsavres.patch rename to devel/gcc/patches-10.x/870-ppc_no_crtsavres.patch diff --git a/devel/gcc/patches/10.3.0/881-no_tm_section.patch b/devel/gcc/patches-10.x/881-no_tm_section.patch similarity index 100% rename from devel/gcc/patches/10.3.0/881-no_tm_section.patch rename to devel/gcc/patches-10.x/881-no_tm_section.patch diff --git a/devel/gcc/patches/10.3.0/900-bad-mips16-crt.patch b/devel/gcc/patches-10.x/900-bad-mips16-crt.patch similarity index 100% rename from devel/gcc/patches/10.3.0/900-bad-mips16-crt.patch rename to devel/gcc/patches-10.x/900-bad-mips16-crt.patch diff --git a/devel/gcc/patches/10.3.0/910-mbsd_multi.patch b/devel/gcc/patches-10.x/910-mbsd_multi.patch similarity index 100% rename from devel/gcc/patches/10.3.0/910-mbsd_multi.patch rename to devel/gcc/patches-10.x/910-mbsd_multi.patch diff --git a/devel/gcc/patches/10.3.0/920-specs_nonfatal_getenv.patch b/devel/gcc/patches-10.x/920-specs_nonfatal_getenv.patch similarity index 100% rename from devel/gcc/patches/10.3.0/920-specs_nonfatal_getenv.patch rename to devel/gcc/patches-10.x/920-specs_nonfatal_getenv.patch diff --git a/devel/gcc/patches/10.3.0/930-fix-mips-noexecstack.patch b/devel/gcc/patches-10.x/930-fix-mips-noexecstack.patch similarity index 100% rename from devel/gcc/patches/10.3.0/930-fix-mips-noexecstack.patch rename to devel/gcc/patches-10.x/930-fix-mips-noexecstack.patch diff --git a/devel/gcc/patches/10.3.0/931-libffi-fix-MIPS-softfloat-build-issue.patch b/devel/gcc/patches-10.x/931-libffi-fix-MIPS-softfloat-build-issue.patch similarity index 100% rename from devel/gcc/patches/10.3.0/931-libffi-fix-MIPS-softfloat-build-issue.patch rename to devel/gcc/patches-10.x/931-libffi-fix-MIPS-softfloat-build-issue.patch diff --git a/devel/gcc/patches/10.3.0/960-gotools-fix-compilation-when-making-cross-compiler.patch b/devel/gcc/patches-10.x/960-gotools-fix-compilation-when-making-cross-compiler.patch similarity index 100% rename from devel/gcc/patches/10.3.0/960-gotools-fix-compilation-when-making-cross-compiler.patch rename to devel/gcc/patches-10.x/960-gotools-fix-compilation-when-making-cross-compiler.patch diff --git a/devel/gcc/patches/11.3.0/002-case_insensitive.patch b/devel/gcc/patches-11.x/002-case_insensitive.patch similarity index 100% rename from devel/gcc/patches/11.3.0/002-case_insensitive.patch rename to devel/gcc/patches-11.x/002-case_insensitive.patch diff --git a/devel/gcc/patches/11.3.0/003-dont-choke-when-building-32bit-on-64bit.patch b/devel/gcc/patches-11.x/003-dont-choke-when-building-32bit-on-64bit.patch similarity index 100% rename from devel/gcc/patches/11.3.0/003-dont-choke-when-building-32bit-on-64bit.patch rename to devel/gcc/patches-11.x/003-dont-choke-when-building-32bit-on-64bit.patch diff --git a/devel/gcc/patches/11.3.0/010-documentation.patch b/devel/gcc/patches-11.x/010-documentation.patch similarity index 100% rename from devel/gcc/patches/11.3.0/010-documentation.patch rename to devel/gcc/patches-11.x/010-documentation.patch diff --git a/devel/gcc/patches/11.3.0/011-v12-configure-define-TARGET_LIBC_GNUSTACK-on-musl.patch b/devel/gcc/patches-11.x/011-v12-configure-define-TARGET_LIBC_GNUSTACK-on-musl.patch similarity index 100% rename from devel/gcc/patches/11.3.0/011-v12-configure-define-TARGET_LIBC_GNUSTACK-on-musl.patch rename to devel/gcc/patches-11.x/011-v12-configure-define-TARGET_LIBC_GNUSTACK-on-musl.patch diff --git a/devel/gcc/patches/11.3.0/110-Fix-MIPS-PR-84790.patch b/devel/gcc/patches-11.x/110-Fix-MIPS-PR-84790.patch similarity index 100% rename from devel/gcc/patches/11.3.0/110-Fix-MIPS-PR-84790.patch rename to devel/gcc/patches-11.x/110-Fix-MIPS-PR-84790.patch diff --git a/devel/gcc/patches/11.3.0/230-musl_libssp.patch b/devel/gcc/patches-11.x/230-musl_libssp.patch similarity index 100% rename from devel/gcc/patches/11.3.0/230-musl_libssp.patch rename to devel/gcc/patches-11.x/230-musl_libssp.patch diff --git a/devel/gcc/patches/11.3.0/300-mips_Os_cpu_rtx_cost_model.patch b/devel/gcc/patches-11.x/300-mips_Os_cpu_rtx_cost_model.patch similarity index 100% rename from devel/gcc/patches/11.3.0/300-mips_Os_cpu_rtx_cost_model.patch rename to devel/gcc/patches-11.x/300-mips_Os_cpu_rtx_cost_model.patch diff --git a/devel/gcc/patches/11.3.0/810-arm-softfloat-libgcc.patch b/devel/gcc/patches-11.x/810-arm-softfloat-libgcc.patch similarity index 100% rename from devel/gcc/patches/11.3.0/810-arm-softfloat-libgcc.patch rename to devel/gcc/patches-11.x/810-arm-softfloat-libgcc.patch diff --git a/devel/gcc/patches/11.3.0/820-libgcc_pic.patch b/devel/gcc/patches-11.x/820-libgcc_pic.patch similarity index 100% rename from devel/gcc/patches/11.3.0/820-libgcc_pic.patch rename to devel/gcc/patches-11.x/820-libgcc_pic.patch diff --git a/devel/gcc/patches/11.3.0/840-armv4_pass_fix-v4bx_to_ld.patch b/devel/gcc/patches-11.x/840-armv4_pass_fix-v4bx_to_ld.patch similarity index 100% rename from devel/gcc/patches/11.3.0/840-armv4_pass_fix-v4bx_to_ld.patch rename to devel/gcc/patches-11.x/840-armv4_pass_fix-v4bx_to_ld.patch diff --git a/devel/gcc/patches/11.3.0/850-use_shared_libgcc.patch b/devel/gcc/patches-11.x/850-use_shared_libgcc.patch similarity index 100% rename from devel/gcc/patches/11.3.0/850-use_shared_libgcc.patch rename to devel/gcc/patches-11.x/850-use_shared_libgcc.patch diff --git a/devel/gcc/patches/11.3.0/851-libgcc_no_compat.patch b/devel/gcc/patches-11.x/851-libgcc_no_compat.patch similarity index 100% rename from devel/gcc/patches/11.3.0/851-libgcc_no_compat.patch rename to devel/gcc/patches-11.x/851-libgcc_no_compat.patch diff --git a/devel/gcc/patches/11.3.0/870-ppc_no_crtsavres.patch b/devel/gcc/patches-11.x/870-ppc_no_crtsavres.patch similarity index 100% rename from devel/gcc/patches/11.3.0/870-ppc_no_crtsavres.patch rename to devel/gcc/patches-11.x/870-ppc_no_crtsavres.patch diff --git a/devel/gcc/patches/11.3.0/881-no_tm_section.patch b/devel/gcc/patches-11.x/881-no_tm_section.patch similarity index 100% rename from devel/gcc/patches/11.3.0/881-no_tm_section.patch rename to devel/gcc/patches-11.x/881-no_tm_section.patch diff --git a/devel/gcc/patches/11.3.0/900-bad-mips16-crt.patch b/devel/gcc/patches-11.x/900-bad-mips16-crt.patch similarity index 100% rename from devel/gcc/patches/11.3.0/900-bad-mips16-crt.patch rename to devel/gcc/patches-11.x/900-bad-mips16-crt.patch diff --git a/devel/gcc/patches/11.3.0/910-mbsd_multi.patch b/devel/gcc/patches-11.x/910-mbsd_multi.patch similarity index 100% rename from devel/gcc/patches/11.3.0/910-mbsd_multi.patch rename to devel/gcc/patches-11.x/910-mbsd_multi.patch diff --git a/devel/gcc/patches/11.3.0/920-specs_nonfatal_getenv.patch b/devel/gcc/patches-11.x/920-specs_nonfatal_getenv.patch similarity index 100% rename from devel/gcc/patches/11.3.0/920-specs_nonfatal_getenv.patch rename to devel/gcc/patches-11.x/920-specs_nonfatal_getenv.patch diff --git a/devel/gcc/patches/11.3.0/931-libffi-fix-MIPS-softfloat-build-issue.patch b/devel/gcc/patches-11.x/931-libffi-fix-MIPS-softfloat-build-issue.patch similarity index 100% rename from devel/gcc/patches/11.3.0/931-libffi-fix-MIPS-softfloat-build-issue.patch rename to devel/gcc/patches-11.x/931-libffi-fix-MIPS-softfloat-build-issue.patch diff --git a/devel/gcc/patches/11.3.0/960-gotools-fix-compilation-when-making-cross-compiler.patch b/devel/gcc/patches-11.x/960-gotools-fix-compilation-when-making-cross-compiler.patch similarity index 100% rename from devel/gcc/patches/11.3.0/960-gotools-fix-compilation-when-making-cross-compiler.patch rename to devel/gcc/patches-11.x/960-gotools-fix-compilation-when-making-cross-compiler.patch diff --git a/devel/gcc/patches/11.3.0/970-macos_arm64-building-fix.patch b/devel/gcc/patches-11.x/970-macos_arm64-building-fix.patch similarity index 100% rename from devel/gcc/patches/11.3.0/970-macos_arm64-building-fix.patch rename to devel/gcc/patches-11.x/970-macos_arm64-building-fix.patch diff --git a/devel/gcc/patches/12.3.0/002-case_insensitive.patch b/devel/gcc/patches-12.x/002-case_insensitive.patch similarity index 100% rename from devel/gcc/patches/12.3.0/002-case_insensitive.patch rename to devel/gcc/patches-12.x/002-case_insensitive.patch diff --git a/devel/gcc/patches/12.3.0/003-dont-choke-when-building-32bit-on-64bit.patch b/devel/gcc/patches-12.x/003-dont-choke-when-building-32bit-on-64bit.patch similarity index 100% rename from devel/gcc/patches/12.3.0/003-dont-choke-when-building-32bit-on-64bit.patch rename to devel/gcc/patches-12.x/003-dont-choke-when-building-32bit-on-64bit.patch diff --git a/devel/gcc/patches/12.3.0/010-documentation.patch b/devel/gcc/patches-12.x/010-documentation.patch similarity index 100% rename from devel/gcc/patches/12.3.0/010-documentation.patch rename to devel/gcc/patches-12.x/010-documentation.patch diff --git a/devel/gcc/patches/12.3.0/110-Fix-MIPS-PR-84790.patch b/devel/gcc/patches-12.x/110-Fix-MIPS-PR-84790.patch similarity index 100% rename from devel/gcc/patches/12.3.0/110-Fix-MIPS-PR-84790.patch rename to devel/gcc/patches-12.x/110-Fix-MIPS-PR-84790.patch diff --git a/devel/gcc/patches/12.3.0/230-musl_libssp.patch b/devel/gcc/patches-12.x/230-musl_libssp.patch similarity index 100% rename from devel/gcc/patches/12.3.0/230-musl_libssp.patch rename to devel/gcc/patches-12.x/230-musl_libssp.patch diff --git a/devel/gcc/patches/12.3.0/300-mips_Os_cpu_rtx_cost_model.patch b/devel/gcc/patches-12.x/300-mips_Os_cpu_rtx_cost_model.patch similarity index 100% rename from devel/gcc/patches/12.3.0/300-mips_Os_cpu_rtx_cost_model.patch rename to devel/gcc/patches-12.x/300-mips_Os_cpu_rtx_cost_model.patch diff --git a/devel/gcc/patches/12.3.0/810-arm-softfloat-libgcc.patch b/devel/gcc/patches-12.x/810-arm-softfloat-libgcc.patch similarity index 100% rename from devel/gcc/patches/12.3.0/810-arm-softfloat-libgcc.patch rename to devel/gcc/patches-12.x/810-arm-softfloat-libgcc.patch diff --git a/devel/gcc/patches/12.3.0/820-libgcc_pic.patch b/devel/gcc/patches-12.x/820-libgcc_pic.patch similarity index 100% rename from devel/gcc/patches/12.3.0/820-libgcc_pic.patch rename to devel/gcc/patches-12.x/820-libgcc_pic.patch diff --git a/devel/gcc/patches/12.3.0/840-armv4_pass_fix-v4bx_to_ld.patch b/devel/gcc/patches-12.x/840-armv4_pass_fix-v4bx_to_ld.patch similarity index 100% rename from devel/gcc/patches/12.3.0/840-armv4_pass_fix-v4bx_to_ld.patch rename to devel/gcc/patches-12.x/840-armv4_pass_fix-v4bx_to_ld.patch diff --git a/devel/gcc/patches/12.3.0/850-use_shared_libgcc.patch b/devel/gcc/patches-12.x/850-use_shared_libgcc.patch similarity index 100% rename from devel/gcc/patches/12.3.0/850-use_shared_libgcc.patch rename to devel/gcc/patches-12.x/850-use_shared_libgcc.patch diff --git a/devel/gcc/patches/12.3.0/851-libgcc_no_compat.patch b/devel/gcc/patches-12.x/851-libgcc_no_compat.patch similarity index 100% rename from devel/gcc/patches/12.3.0/851-libgcc_no_compat.patch rename to devel/gcc/patches-12.x/851-libgcc_no_compat.patch diff --git a/devel/gcc/patches/12.3.0/870-ppc_no_crtsavres.patch b/devel/gcc/patches-12.x/870-ppc_no_crtsavres.patch similarity index 100% rename from devel/gcc/patches/12.3.0/870-ppc_no_crtsavres.patch rename to devel/gcc/patches-12.x/870-ppc_no_crtsavres.patch diff --git a/devel/gcc/patches/12.3.0/881-no_tm_section.patch b/devel/gcc/patches-12.x/881-no_tm_section.patch similarity index 100% rename from devel/gcc/patches/12.3.0/881-no_tm_section.patch rename to devel/gcc/patches-12.x/881-no_tm_section.patch diff --git a/devel/gcc/patches/12.3.0/900-bad-mips16-crt.patch b/devel/gcc/patches-12.x/900-bad-mips16-crt.patch similarity index 100% rename from devel/gcc/patches/12.3.0/900-bad-mips16-crt.patch rename to devel/gcc/patches-12.x/900-bad-mips16-crt.patch diff --git a/devel/gcc/patches/12.3.0/910-mbsd_multi.patch b/devel/gcc/patches-12.x/910-mbsd_multi.patch similarity index 100% rename from devel/gcc/patches/12.3.0/910-mbsd_multi.patch rename to devel/gcc/patches-12.x/910-mbsd_multi.patch diff --git a/devel/gcc/patches/12.3.0/920-specs_nonfatal_getenv.patch b/devel/gcc/patches-12.x/920-specs_nonfatal_getenv.patch similarity index 100% rename from devel/gcc/patches/12.3.0/920-specs_nonfatal_getenv.patch rename to devel/gcc/patches-12.x/920-specs_nonfatal_getenv.patch diff --git a/devel/gcc/patches/12.3.0/960-gotools-fix-compilation-when-making-cross-compiler.patch b/devel/gcc/patches-12.x/960-gotools-fix-compilation-when-making-cross-compiler.patch similarity index 100% rename from devel/gcc/patches/12.3.0/960-gotools-fix-compilation-when-making-cross-compiler.patch rename to devel/gcc/patches-12.x/960-gotools-fix-compilation-when-making-cross-compiler.patch diff --git a/devel/gcc/patches/12.3.0/970-macos_arm64-building-fix.patch b/devel/gcc/patches-12.x/970-macos_arm64-building-fix.patch similarity index 100% rename from devel/gcc/patches/12.3.0/970-macos_arm64-building-fix.patch rename to devel/gcc/patches-12.x/970-macos_arm64-building-fix.patch diff --git a/devel/gcc/patches/8.4.0/002-case_insensitive.patch b/devel/gcc/patches-8.x/002-case_insensitive.patch similarity index 100% rename from devel/gcc/patches/8.4.0/002-case_insensitive.patch rename to devel/gcc/patches-8.x/002-case_insensitive.patch diff --git a/devel/gcc/patches/8.4.0/003-dont-choke-when-building-32bit-on-64bit.patch b/devel/gcc/patches-8.x/003-dont-choke-when-building-32bit-on-64bit.patch similarity index 100% rename from devel/gcc/patches/8.4.0/003-dont-choke-when-building-32bit-on-64bit.patch rename to devel/gcc/patches-8.x/003-dont-choke-when-building-32bit-on-64bit.patch diff --git a/devel/gcc/patches/8.4.0/010-documentation.patch b/devel/gcc/patches-8.x/010-documentation.patch similarity index 100% rename from devel/gcc/patches/8.4.0/010-documentation.patch rename to devel/gcc/patches-8.x/010-documentation.patch diff --git a/devel/gcc/patches/8.4.0/110-Fix-MIPS-PR-84790.patch b/devel/gcc/patches-8.x/110-Fix-MIPS-PR-84790.patch similarity index 100% rename from devel/gcc/patches/8.4.0/110-Fix-MIPS-PR-84790.patch rename to devel/gcc/patches-8.x/110-Fix-MIPS-PR-84790.patch diff --git a/devel/gcc/patches/8.4.0/230-musl_libssp.patch b/devel/gcc/patches-8.x/230-musl_libssp.patch similarity index 100% rename from devel/gcc/patches/8.4.0/230-musl_libssp.patch rename to devel/gcc/patches-8.x/230-musl_libssp.patch diff --git a/devel/gcc/patches/8.4.0/300-mips_Os_cpu_rtx_cost_model.patch b/devel/gcc/patches-8.x/300-mips_Os_cpu_rtx_cost_model.patch similarity index 100% rename from devel/gcc/patches/8.4.0/300-mips_Os_cpu_rtx_cost_model.patch rename to devel/gcc/patches-8.x/300-mips_Os_cpu_rtx_cost_model.patch diff --git a/devel/gcc/patches/8.4.0/800-arm_v5te_no_ldrd_strd.patch b/devel/gcc/patches-8.x/800-arm_v5te_no_ldrd_strd.patch similarity index 100% rename from devel/gcc/patches/8.4.0/800-arm_v5te_no_ldrd_strd.patch rename to devel/gcc/patches-8.x/800-arm_v5te_no_ldrd_strd.patch diff --git a/devel/gcc/patches/8.4.0/810-arm-softfloat-libgcc.patch b/devel/gcc/patches-8.x/810-arm-softfloat-libgcc.patch similarity index 100% rename from devel/gcc/patches/8.4.0/810-arm-softfloat-libgcc.patch rename to devel/gcc/patches-8.x/810-arm-softfloat-libgcc.patch diff --git a/devel/gcc/patches/8.4.0/820-libgcc_pic.patch b/devel/gcc/patches-8.x/820-libgcc_pic.patch similarity index 100% rename from devel/gcc/patches/8.4.0/820-libgcc_pic.patch rename to devel/gcc/patches-8.x/820-libgcc_pic.patch diff --git a/devel/gcc/patches/8.4.0/840-armv4_pass_fix-v4bx_to_ld.patch b/devel/gcc/patches-8.x/840-armv4_pass_fix-v4bx_to_ld.patch similarity index 100% rename from devel/gcc/patches/8.4.0/840-armv4_pass_fix-v4bx_to_ld.patch rename to devel/gcc/patches-8.x/840-armv4_pass_fix-v4bx_to_ld.patch diff --git a/devel/gcc/patches/8.4.0/850-use_shared_libgcc.patch b/devel/gcc/patches-8.x/850-use_shared_libgcc.patch similarity index 100% rename from devel/gcc/patches/8.4.0/850-use_shared_libgcc.patch rename to devel/gcc/patches-8.x/850-use_shared_libgcc.patch diff --git a/devel/gcc/patches/8.4.0/851-libgcc_no_compat.patch b/devel/gcc/patches-8.x/851-libgcc_no_compat.patch similarity index 100% rename from devel/gcc/patches/8.4.0/851-libgcc_no_compat.patch rename to devel/gcc/patches-8.x/851-libgcc_no_compat.patch diff --git a/devel/gcc/patches/8.4.0/870-ppc_no_crtsavres.patch b/devel/gcc/patches-8.x/870-ppc_no_crtsavres.patch similarity index 100% rename from devel/gcc/patches/8.4.0/870-ppc_no_crtsavres.patch rename to devel/gcc/patches-8.x/870-ppc_no_crtsavres.patch diff --git a/devel/gcc/patches/8.4.0/881-no_tm_section.patch b/devel/gcc/patches-8.x/881-no_tm_section.patch similarity index 100% rename from devel/gcc/patches/8.4.0/881-no_tm_section.patch rename to devel/gcc/patches-8.x/881-no_tm_section.patch diff --git a/devel/gcc/patches/8.4.0/900-bad-mips16-crt.patch b/devel/gcc/patches-8.x/900-bad-mips16-crt.patch similarity index 100% rename from devel/gcc/patches/8.4.0/900-bad-mips16-crt.patch rename to devel/gcc/patches-8.x/900-bad-mips16-crt.patch diff --git a/devel/gcc/patches/8.4.0/910-mbsd_multi.patch b/devel/gcc/patches-8.x/910-mbsd_multi.patch similarity index 100% rename from devel/gcc/patches/8.4.0/910-mbsd_multi.patch rename to devel/gcc/patches-8.x/910-mbsd_multi.patch diff --git a/devel/gcc/patches/8.4.0/920-specs_nonfatal_getenv.patch b/devel/gcc/patches-8.x/920-specs_nonfatal_getenv.patch similarity index 100% rename from devel/gcc/patches/8.4.0/920-specs_nonfatal_getenv.patch rename to devel/gcc/patches-8.x/920-specs_nonfatal_getenv.patch diff --git a/devel/gcc/patches/8.4.0/930-fix-mips-noexecstack.patch b/devel/gcc/patches-8.x/930-fix-mips-noexecstack.patch similarity index 100% rename from devel/gcc/patches/8.4.0/930-fix-mips-noexecstack.patch rename to devel/gcc/patches-8.x/930-fix-mips-noexecstack.patch diff --git a/devel/gcc/patches/8.4.0/931-libffi-fix-MIPS-softfloat-build-issue.patch b/devel/gcc/patches-8.x/931-libffi-fix-MIPS-softfloat-build-issue.patch similarity index 100% rename from devel/gcc/patches/8.4.0/931-libffi-fix-MIPS-softfloat-build-issue.patch rename to devel/gcc/patches-8.x/931-libffi-fix-MIPS-softfloat-build-issue.patch diff --git a/devel/gcc/patches/8.4.0/960-gotools-fix-compilation-when-making-cross-compiler.patch b/devel/gcc/patches-8.x/960-gotools-fix-compilation-when-making-cross-compiler.patch similarity index 100% rename from devel/gcc/patches/8.4.0/960-gotools-fix-compilation-when-making-cross-compiler.patch rename to devel/gcc/patches-8.x/960-gotools-fix-compilation-when-making-cross-compiler.patch