gcc: Upgrade GCC to 15 release
PATCH 1/1 gcc: Upgrade GCC to 15 release
* Nios2 has been removed and aarch64/ilp32 is deprecated
* Default C dialect is switched to C23
* {0} initializer in C or C++ for unions no longer guarantees clearing of the whole union
* Compile speed improvements with LTO
* Vectorizer can support loops with early exists but it is limited to loops with fixed vector lengths
This is major release of gcc, the changes are noted [1]
[1] https://gcc.gnu.org/gcc-15/changes.html
---
meta/conf/distro/include/maintainers.inc | 2 +-
meta/conf/distro/include/tcmode-default.inc | 2 +-
.../gcc/{gcc-14.2.inc => gcc-15.1.inc} | 16 +-
...ian_14.2.bb => gcc-cross-canadian_15.1.bb} | 0
.../{gcc-cross_14.2.bb => gcc-cross_15.1.bb} | 0
...-crosssdk_14.2.bb => gcc-crosssdk_15.1.bb} | 0
...cc-runtime_14.2.bb => gcc-runtime_15.1.bb} | 0
...itizers_14.2.bb => gcc-sanitizers_15.1.bb} | 0
...{gcc-source_14.2.bb => gcc-source_15.1.bb} | 0
...0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch | 10 +-
.../0002-gcc-poison-system-directories.patch | 80 ++-
.../gcc/gcc/0003-64-bit-multilib-hack.patch | 12 +-
...R_BUILD-in-a-couple-of-places-to-avo.patch | 10 +-
...ts.h-in-B-instead-of-S-and-t-oe-in-B.patch | 16 +-
.../gcc/gcc/0006-cpp-honor-sysroot.patch | 10 +-
...AMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch | 62 +-
.../gcc/gcc/0008-libtool.patch | 6 +-
...s-fix-v4bx-to-linker-to-support-EABI.patch | 6 +-
...-config-files-from-B-instead-of-usin.patch | 14 +-
...1-aarch64-Fix-include-paths-when-S-B.patch | 20 +-
...ir-from-.la-which-usually-points-to-.patch | 6 +-
...e-target-gcc-headers-can-be-included.patch | 18 +-
...t-directory-during-relink-if-inst_pr.patch | 6 +-
...-fix-libcc1-s-install-path-and-rpath.patch | 6 +-
...le-sysroot-support-for-nativesdk-gcc.patch | 34 +-
...sroot-gcc-version-specific-dirs-with.patch | 8 +-
...d-to-link-commandline-for-musl-targe.patch | 8 +-
...Re-introduce-spe-commandline-options.patch | 6 +-
...as-for-__cpu_indicator_init-instead-.patch | 8 +-
...s-Do-not-use-__LINE__-for-maintainin.patch | 8 +-
...omic-Do-not-enforce-march-on-aarch64.patch | 8 +-
.../0023-Fix-install-path-of-linux64.h.patch | 6 +-
...ardcoded-build-paths-into-ppc-libgcc.patch | 2 +-
...025-gcc-testsuite-tweaks-for-mips-OE.patch | 118 ++--
...te-include-paths-on-musl-instead-of-.patch | 36 ++
...ix-c-tweak-for-Wrange-loop-construct.patch | 114 ----
...ch-to-fix-data-relocation-to-ENDBR-s.patch | 447 --------------
...undef-_TIME_BITS-in-solaris-procmaps.patch | 62 --
...4fffe3fc82a710bea66ad651720d71c938b8.patch | 549 ------------------
.../gcc/{gcc_14.2.bb => gcc_15.1.bb} | 0
...initial_14.2.bb => libgcc-initial_15.1.bb} | 0
.../gcc/{libgcc_14.2.bb => libgcc_15.1.bb} | 0
...ibgfortran_14.2.bb => libgfortran_15.1.bb} | 0
43 files changed, 275 insertions(+), 1441 deletions(-)
rename meta/recipes-devtools/gcc/{gcc-14.2.inc => gcc-15.1.inc} (88%)
rename meta/recipes-devtools/gcc/{gcc-cross-canadian_14.2.bb => gcc-cross-canadian_15.1.bb} (100%)
rename meta/recipes-devtools/gcc/{gcc-cross_14.2.bb => gcc-cross_15.1.bb} (100%)
rename meta/recipes-devtools/gcc/{gcc-crosssdk_14.2.bb => gcc-crosssdk_15.1.bb} (100%)
rename meta/recipes-devtools/gcc/{gcc-runtime_14.2.bb => gcc-runtime_15.1.bb} (100%)
rename meta/recipes-devtools/gcc/{gcc-sanitizers_14.2.bb => gcc-sanitizers_15.1.bb} (100%)
rename meta/recipes-devtools/gcc/{gcc-source_14.2.bb => gcc-source_15.1.bb} (100%)
create mode 100644 meta/recipes-devtools/gcc/gcc/0026-Append-GCC-private-include-paths-on-musl-instead-of-.patch
delete mode 100644 meta/recipes-devtools/gcc/gcc/0026-gcc-Fix-c-tweak-for-Wrange-loop-construct.patch
delete mode 100644 meta/recipes-devtools/gcc/gcc/0027-gcc-backport-patch-to-fix-data-relocation-to-ENDBR-s.patch
delete mode 100644 meta/recipes-devtools/gcc/gcc/0028-libsanitizer-undef-_TIME_BITS-in-solaris-procmaps.patch
delete mode 100644 meta/recipes-devtools/gcc/gcc/gcc.git-ab884fffe3fc82a710bea66ad651720d71c938b8.patch
rename meta/recipes-devtools/gcc/{gcc_14.2.bb => gcc_15.1.bb} (100%)
rename meta/recipes-devtools/gcc/{libgcc-initial_14.2.bb => libgcc-initial_15.1.bb} (100%)
rename meta/recipes-devtools/gcc/{libgcc_14.2.bb => libgcc_15.1.bb} (100%)
rename meta/recipes-devtools/gcc/{libgfortran_14.2.bb => libgfortran_15.1.bb} (100%)meta/conf/distro/include/maintainers.inc +1 -1
@@ -201,7 +201,7 @@ RECIPE_MAINTAINER:pn-gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} = "Khem Raj <r RECIPE_MAINTAINER:pn-gcc-crosssdk-${SDK_SYS} = "Khem Raj <[email protected]>" RECIPE_MAINTAINER:pn-gcc-runtime = "Khem Raj <[email protected]>" RECIPE_MAINTAINER:pn-gcc-sanitizers = "Khem Raj <[email protected]>" -RECIPE_MAINTAINER:pn-gcc-source-14.2.0 = "Khem Raj <[email protected]>" +RECIPE_MAINTAINER:pn-gcc-source-15.1.0 = "Khem Raj <[email protected]>" RECIPE_MAINTAINER:pn-gconf = "Ross Burton <[email protected]>" RECIPE_MAINTAINER:pn-gcr = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-gdb = "Khem Raj <[email protected]>"
meta/conf/distro/include/tcmode-default.inc +1 -1
@@ -9,7 +9,7 @@ PREFERRED_PROVIDER_virtual/nativesdk-cross-binutils ?= "binutils-crosssdk-${SDK_ # Default libc config PREFERRED_PROVIDER_virtual/gettext ??= "gettext" -GCCVERSION ?= "14.%" +GCCVERSION ?= "15.%" SDKGCCVERSION ?= "${GCCVERSION}" GLIBCVERSION ?= "2.41%" RUSTVERSION ?= "1.85.1%"
meta/recipes-devtools/gcc/gcc-15.1.inc renamed from meta/recipes-devtools/gcc/gcc-14.2.inc +7 -9
@@ -2,11 +2,11 @@ require gcc-common.inc # Third digit in PV should be incremented after a minor release -PV = "14.2.0" +PV = "15.1.0" # BINV should be incremented to a revision after a minor gcc release -BINV = "14.2.0" +BINV = "15.1.0" FILESEXTRAPATHS =. "${FILE_DIRNAME}/gcc:${FILE_DIRNAME}/gcc/backport:"
@@ -31,16 +31,17 @@ LIC_FILES_CHKSUM = "\ #SRC_URI[sha256sum] = "41bf7be5dc029112a9df625266e7de030ffc36ff3638f270b180ae8c91fe6449" # from snapshot -#RELEASE ?= "14-20240504" +#RELEASE ?= "15-20250420" +#RELEASE ?= "15.1.0-RC-20250418" #BASEURI ?= "https://gcc.gnu.org/pub/gcc/snapshots/${RELEASE}/gcc-${RELEASE}.tar.xz" #SOURCEDIR ?= "gcc-${RELEASE}" -#SRC_URI[sha256sum] = "34ac232bbf31e0cd5752fd344c2cf55719aaaad2ca0096593e01c97a3d5e274e" +#SRC_URI[sha256sum] = "fe18624317c6c662977eea8b5a506ec6c132fc11c7a8d53e2f6d21b139b0af3c" # official release RELEASE ?= "${PV}" BASEURI ?= "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.xz" SOURCEDIR ?= "gcc-${PV}" -SRC_URI[sha256sum] = "a7b39bc69cbf9e25826c5a60ab26477001f7c08d85cec04bc0e29cabed6f3cc9" +SRC_URI[sha256sum] = "e2b09ec21660f01fecffb715e0120265216943f038d0e48a9868713e54f06cea" SRC_URI = "${BASEURI} \ file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
@@ -68,10 +69,7 @@ SRC_URI = "${BASEURI} \ file://0023-Fix-install-path-of-linux64.h.patch \ file://0024-Avoid-hardcoded-build-paths-into-ppc-libgcc.patch \ file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \ - file://0026-gcc-Fix-c-tweak-for-Wrange-loop-construct.patch \ - file://0027-gcc-backport-patch-to-fix-data-relocation-to-ENDBR-s.patch \ - file://gcc.git-ab884fffe3fc82a710bea66ad651720d71c938b8.patch \ - file://0028-libsanitizer-undef-_TIME_BITS-in-solaris-procmaps.patch \ + file://0026-Append-GCC-private-include-paths-on-musl-instead-of-.patch \ " S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/${SOURCEDIR}"
meta/recipes-devtools/gcc/gcc-cross-canadian_15.1.bb renamed from meta/recipes-devtools/gcc/gcc-cross-canadian_14.2.bb +0 -0
meta/recipes-devtools/gcc/gcc-cross_15.1.bb renamed from meta/recipes-devtools/gcc/gcc-cross_14.2.bb +0 -0
meta/recipes-devtools/gcc/gcc-crosssdk_15.1.bb renamed from meta/recipes-devtools/gcc/gcc-crosssdk_14.2.bb +0 -0
meta/recipes-devtools/gcc/gcc-runtime_15.1.bb renamed from meta/recipes-devtools/gcc/gcc-runtime_14.2.bb +0 -0
meta/recipes-devtools/gcc/gcc-sanitizers_15.1.bb renamed from meta/recipes-devtools/gcc/gcc-sanitizers_14.2.bb +0 -0
meta/recipes-devtools/gcc/gcc-source_15.1.bb renamed from meta/recipes-devtools/gcc/gcc-source_14.2.bb +0 -0
meta/recipes-devtools/gcc/gcc/0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch +5 -5
@@ -1,4 +1,4 @@ -From 5f2881333e6ba6eb055f590982c2a2eb3fcbee2c Mon Sep 17 00:00:00 2001 +From 39e350db0c76bee17f5ea61de83510ddc6816916 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Fri, 29 Mar 2013 08:37:11 +0400 Subject: [PATCH] gcc-4.3.1: ARCH_FLAGS_FOR_TARGET
@@ -12,10 +12,10 @@ Upstream-Status: Inappropriate [embedded specific] 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure -index 3b0abeb8b2e..2590471a021 100755 +index bf574efd1d8..24457b3248b 100755 --- a/configure +++ b/configure -@@ -10467,7 +10467,7 @@ fi +@@ -11512,7 +11512,7 @@ fi # for target_alias and gcc doesn't manage it consistently. target_configargs="--cache-file=./config.cache ${target_configargs}"
@@ -25,10 +25,10 @@ index 3b0abeb8b2e..2590471a021 100755 *" newlib "*) case " $target_configargs " in diff --git a/configure.ac b/configure.ac -index 042681c27be..0d9b39c541a 100644 +index 3e120b027e9..0030af1a464 100644 --- a/configure.ac +++ b/configure.ac -@@ -3539,7 +3539,7 @@ fi +@@ -3739,7 +3739,7 @@ fi # for target_alias and gcc doesn't manage it consistently. target_configargs="--cache-file=./config.cache ${target_configargs}"
meta/recipes-devtools/gcc/gcc/0002-gcc-poison-system-directories.patch +39 -41
197 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc/0003-64-bit-multilib-hack.patch +6 -6
@@ -1,4 +1,4 @@ -From 33f9c4e4f0a5c2af8ab12612c28ba218ae491587 Mon Sep 17 00:00:00 2001 +From becb6f733f6e1f97f0ec42c11345ccbcf41103d0 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Fri, 29 Mar 2013 09:10:06 +0400 Subject: [PATCH] 64-bit multilib hack
@@ -38,7 +38,7 @@ Signed-off-by: Mark Hatle <[email protected]> 6 files changed, 15 insertions(+), 42 deletions(-) diff --git a/gcc/config/aarch64/t-aarch64-linux b/gcc/config/aarch64/t-aarch64-linux -index 3f7b786ecbb..a6c1c92fc7f 100644 +index 70e36b3299e..4267c32763c 100644 --- a/gcc/config/aarch64/t-aarch64-linux +++ b/gcc/config/aarch64/t-aarch64-linux @@ -21,8 +21,8 @@
@@ -55,7 +55,7 @@ index 3f7b786ecbb..a6c1c92fc7f 100644 -MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu_ilp32) +#MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu_ilp32) diff --git a/gcc/config/arc/t-multilib-linux b/gcc/config/arc/t-multilib-linux -index 07bc77ba34a..f7e2e3919cf 100644 +index e72687260eb..f701fa9e201 100644 --- a/gcc/config/arc/t-multilib-linux +++ b/gcc/config/arc/t-multilib-linux @@ -16,9 +16,9 @@
@@ -71,7 +71,7 @@ index 07bc77ba34a..f7e2e3919cf 100644 # Aliases: MULTILIB_MATCHES += mcpu?arc700=mA7 diff --git a/gcc/config/i386/t-linux64 b/gcc/config/i386/t-linux64 -index f9edc289e57..047d8e4aff9 100644 +index 64a4a20e64f..2666e731dd6 100644 --- a/gcc/config/i386/t-linux64 +++ b/gcc/config/i386/t-linux64 @@ -32,7 +32,5 @@
@@ -85,7 +85,7 @@ index f9edc289e57..047d8e4aff9 100644 +MULTILIB_DIRNAMES = . . +MULTILIB_OSDIRNAMES = ../$(shell basename $(base_libdir)) ../$(shell basename $(base_libdir)) diff --git a/gcc/config/mips/t-linux64 b/gcc/config/mips/t-linux64 -index e4e2f5eaedb..c503974de37 100644 +index 34a84461ebb..431a6b5183f 100644 --- a/gcc/config/mips/t-linux64 +++ b/gcc/config/mips/t-linux64 @@ -17,29 +17,5 @@
@@ -134,7 +134,7 @@ index a6f64f88d25..0e21db58f7d 100644 -MULTIARCH_DIRNAME := $(call if_multiarch,$(firstword $(subst -, ,$(target)))-linux-gnu) +#MULTIARCH_DIRNAME := $(call if_multiarch,$(firstword $(subst -, ,$(target)))-linux-gnu) diff --git a/gcc/config/rs6000/t-linux64 b/gcc/config/rs6000/t-linux64 -index 248b5891e36..379689561a7 100644 +index f56b47c268e..c408c32d8f4 100644 --- a/gcc/config/rs6000/t-linux64 +++ b/gcc/config/rs6000/t-linux64 @@ -26,10 +26,9 @@
meta/recipes-devtools/gcc/gcc/0004-Pass-CXXFLAGS_FOR_BUILD-in-a-couple-of-places-to-avo.patch +5 -5
@@ -1,4 +1,4 @@ -From 40c537352e085df2157cf907da6d694266ab74fe Mon Sep 17 00:00:00 2001 +From fde5f38cfe95dbcf07c23627a176e85a3774c319 Mon Sep 17 00:00:00 2001 From: Richard Purdie <[email protected]> Date: Thu, 28 Oct 2021 11:33:40 +0100 Subject: [PATCH] Pass CXXFLAGS_FOR_BUILD in a couple of places to avoid these
@@ -23,7 +23,7 @@ Signed-off-by: Khem Raj <[email protected]> 2 files changed, 4 insertions(+) diff --git a/Makefile.in b/Makefile.in -index db4fa6c6260..dee862be8a5 100644 +index b1ed67d3d4f..4d7f45455a3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -179,6 +179,7 @@ BUILD_EXPORTS = \
@@ -34,7 +34,7 @@ index db4fa6c6260..dee862be8a5 100644 LDFLAGS="$(LDFLAGS_FOR_BUILD)" # This is the list of directories to built for the host system. -@@ -211,6 +212,7 @@ HOST_EXPORTS = \ +@@ -212,6 +213,7 @@ HOST_EXPORTS = \ CPP_FOR_BUILD="$(CPP_FOR_BUILD)"; export CPP_FOR_BUILD; \ CPPFLAGS_FOR_BUILD="$(CPPFLAGS_FOR_BUILD)"; export CPPFLAGS_FOR_BUILD; \ CXX_FOR_BUILD="$(CXX_FOR_BUILD)"; export CXX_FOR_BUILD; \
@@ -43,7 +43,7 @@ index db4fa6c6260..dee862be8a5 100644 DSYMUTIL="$(DSYMUTIL)"; export DSYMUTIL; \ LD="$(LD)"; export LD; \ diff --git a/Makefile.tpl b/Makefile.tpl -index 1d5813cd569..ff0fae53b0c 100644 +index 7dccf91ed8e..7cb61bf63ea 100644 --- a/Makefile.tpl +++ b/Makefile.tpl @@ -182,6 +182,7 @@ BUILD_EXPORTS = \
@@ -54,7 +54,7 @@ index 1d5813cd569..ff0fae53b0c 100644 LDFLAGS="$(LDFLAGS_FOR_BUILD)" # This is the list of directories to built for the host system. -@@ -214,6 +215,7 @@ HOST_EXPORTS = \ +@@ -215,6 +216,7 @@ HOST_EXPORTS = \ CPP_FOR_BUILD="$(CPP_FOR_BUILD)"; export CPP_FOR_BUILD; \ CPPFLAGS_FOR_BUILD="$(CPPFLAGS_FOR_BUILD)"; export CPPFLAGS_FOR_BUILD; \ CXX_FOR_BUILD="$(CXX_FOR_BUILD)"; export CXX_FOR_BUILD; \
meta/recipes-devtools/gcc/gcc/0005-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch +8 -8
@@ -1,4 +1,4 @@ -From d145dd6dec6863aa303503643b2d3ed470936dd0 Mon Sep 17 00:00:00 2001 +From 6c0bda3eb2f446a1cc484560e9f2ffd50632f5c2 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Fri, 29 Mar 2013 09:17:25 +0400 Subject: [PATCH] Use the defaults.h in ${B} instead of ${S}, and t-oe in ${B}
@@ -26,10 +26,10 @@ Signed-off-by: Hongxu Jia <[email protected]> 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/Makefile.in b/gcc/Makefile.in -index a74761b7ab3..956437df95b 100644 +index 55b4cd7dbed..5546e259a20 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in -@@ -590,7 +590,7 @@ TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@ +@@ -596,7 +596,7 @@ TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@ TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@ xmake_file=@xmake_file@
@@ -39,10 +39,10 @@ index a74761b7ab3..956437df95b 100644 TM_MULTILIB_CONFIG=@TM_MULTILIB_CONFIG@ TM_MULTILIB_EXCEPTIONS_CONFIG=@TM_MULTILIB_EXCEPTIONS_CONFIG@ diff --git a/gcc/configure b/gcc/configure -index d3fa80408f4..f2706f94062 100755 +index 0f4a5d52c30..a2a8761055c 100755 --- a/gcc/configure +++ b/gcc/configure -@@ -15161,8 +15161,8 @@ for f in $tm_file; do +@@ -15106,8 +15106,8 @@ for f in $tm_file; do tm_include_list="${tm_include_list} $f" ;; defaults.h )
@@ -54,10 +54,10 @@ index d3fa80408f4..f2706f94062 100755 * ) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" diff --git a/gcc/configure.ac b/gcc/configure.ac -index 2760b6c540c..3f972dea24f 100644 +index b0e3615e5aa..58ad9dc01fe 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac -@@ -2390,8 +2390,8 @@ for f in $tm_file; do +@@ -2426,8 +2426,8 @@ for f in $tm_file; do tm_include_list="${tm_include_list} $f" ;; defaults.h )
@@ -69,7 +69,7 @@ index 2760b6c540c..3f972dea24f 100644 * ) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" diff --git a/gcc/mkconfig.sh b/gcc/mkconfig.sh -index 1b015b70b38..145af56745e 100644 +index e02466b4416..0ea1a0c9ca6 100644 --- a/gcc/mkconfig.sh +++ b/gcc/mkconfig.sh @@ -77,7 +77,7 @@ if [ -n "$HEADERS" ]; then
meta/recipes-devtools/gcc/gcc/0006-cpp-honor-sysroot.patch +5 -5
@@ -1,4 +1,4 @@ -From 429711e243bbda4d662d687c1a6fea24fcb34827 Mon Sep 17 00:00:00 2001 +From 466af3c3ea187047bcb07d482d94fa15a1d29072 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Fri, 29 Mar 2013 09:22:00 +0400 Subject: [PATCH] cpp: honor sysroot.
@@ -26,10 +26,10 @@ Signed-off-by: Khem Raj <[email protected]> 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/cp/lang-specs.h b/gcc/cp/lang-specs.h -index 7a7f5ff0ab5..fb3d88cdb11 100644 +index a67ce4c22a5..ce07a1c4b1d 100644 --- a/gcc/cp/lang-specs.h +++ b/gcc/cp/lang-specs.h -@@ -116,7 +116,7 @@ along with GCC; see the file COPYING3. If not see +@@ -122,7 +122,7 @@ along with GCC; see the file COPYING3. If not see {".ii", "@c++-cpp-output", 0, 0, 0}, {"@c++-cpp-output", "%{!E:%{!M:%{!MM:"
@@ -39,10 +39,10 @@ index 7a7f5ff0ab5..fb3d88cdb11 100644 " %{fmodule-only:%{!S:-o %g.s%V}}" " %{!fmodule-only:%{!fmodule-header*:%(invoke_as)}}}" diff --git a/gcc/gcc.cc b/gcc/gcc.cc -index 343e4915097..e3e9374d1cc 100644 +index 79d4920a047..c1488865b8b 100644 --- a/gcc/gcc.cc +++ b/gcc/gcc.cc -@@ -1487,7 +1487,7 @@ static const struct compiler default_compilers[] = +@@ -1497,7 +1497,7 @@ static const struct compiler default_compilers[] = %W{o*:--output-pch %w%*}}%{!S:%V}}}}}}}}", 0, 0, 0}, {".i", "@cpp-output", 0, 0, 0}, {"@cpp-output",
meta/recipes-devtools/gcc/gcc/0007-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch +22 -40
186 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc/0008-libtool.patch +3 -3
@@ -1,4 +1,4 @@ -From 462e2111804490fcdbb9fd87a86b1e7ac1805803 Mon Sep 17 00:00:00 2001 +From 195aa5c28f0c1557e3f7db80d5d13f36085b2e8d Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Fri, 29 Mar 2013 09:29:11 +0400 Subject: [PATCH] libtool
@@ -22,10 +22,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 4 insertions(+) diff --git a/ltmain.sh b/ltmain.sh -index 70990740b6c..ee938056bef 100644 +index 1a710177fb2..e8474602b0b 100644 --- a/ltmain.sh +++ b/ltmain.sh -@@ -6359,6 +6359,10 @@ func_mode_link () +@@ -6381,6 +6381,10 @@ func_mode_link () func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1"
meta/recipes-devtools/gcc/gcc/0009-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch +3 -3
@@ -1,4 +1,4 @@ -From 702550757997de7013c96047dbc07791e5ff1d32 Mon Sep 17 00:00:00 2001 +From 186c8e5e90a640fd525fd29496f95b9127d81a83 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Fri, 29 Mar 2013 09:30:32 +0400 Subject: [PATCH] gcc: armv4: pass fix-v4bx to linker to support EABI.
@@ -18,10 +18,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/config/arm/linux-eabi.h b/gcc/config/arm/linux-eabi.h -index 335cb4c3607..1d5235075cb 100644 +index 76893197773..12c334463c6 100644 --- a/gcc/config/arm/linux-eabi.h +++ b/gcc/config/arm/linux-eabi.h -@@ -88,10 +88,14 @@ +@@ -91,10 +91,14 @@ #define MUSL_DYNAMIC_LINKER \ SYSTEMLIBS_DIR "ld-musl-arm" MUSL_DYNAMIC_LINKER_E "%{mfloat-abi=hard:hf}%{mfdpic:-fdpic}.so.1"
meta/recipes-devtools/gcc/gcc/0010-Use-the-multilib-config-files-from-B-instead-of-usin.patch +7 -7
@@ -1,4 +1,4 @@ -From 818edee70eb8c5471a9d2924dd50f7cdd9774c12 Mon Sep 17 00:00:00 2001 +From 7f016af1a83d594d4410dbe5d89687116f1381ca Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Fri, 29 Mar 2013 09:33:04 +0400 Subject: [PATCH] Use the multilib config files from ${B} instead of using the
@@ -18,10 +18,10 @@ Upstream-Status: Inappropriate [configuration] 2 files changed, 36 insertions(+), 8 deletions(-) diff --git a/gcc/configure b/gcc/configure -index f2706f94062..135c557b595 100755 +index a2a8761055c..a5a028f39c3 100755 --- a/gcc/configure +++ b/gcc/configure -@@ -15141,10 +15141,20 @@ done +@@ -15086,10 +15086,20 @@ done tmake_file_= for f in ${tmake_file} do
@@ -46,7 +46,7 @@ index f2706f94062..135c557b595 100755 done tmake_file="${tmake_file_}${omp_device_property_tmake_file}" -@@ -15155,6 +15165,10 @@ tm_file_list="options.h" +@@ -15100,6 +15110,10 @@ tm_file_list="options.h" tm_include_list="options.h insn-constants.h" for f in $tm_file; do case $f in
@@ -58,10 +58,10 @@ index f2706f94062..135c557b595 100755 f=`echo $f | sed 's/^..//'` tm_file_list="${tm_file_list} $f" diff --git a/gcc/configure.ac b/gcc/configure.ac -index 3f972dea24f..cbf8fea3ca1 100644 +index 58ad9dc01fe..36ed7153398 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac -@@ -2370,10 +2370,20 @@ done +@@ -2406,10 +2406,20 @@ done tmake_file_= for f in ${tmake_file} do
@@ -86,7 +86,7 @@ index 3f972dea24f..cbf8fea3ca1 100644 done tmake_file="${tmake_file_}${omp_device_property_tmake_file}" -@@ -2384,6 +2394,10 @@ tm_file_list="options.h" +@@ -2420,6 +2430,10 @@ tm_file_list="options.h" tm_include_list="options.h insn-constants.h" for f in $tm_file; do case $f in
meta/recipes-devtools/gcc/gcc/0011-aarch64-Fix-include-paths-when-S-B.patch +10 -10
@@ -1,4 +1,4 @@ -From 875975598d5a1000b8c8ad7596178d0a64f9e0cb Mon Sep 17 00:00:00 2001 +From 14aaaf080c5814bf3945b784cdd6ef6c88b31ab4 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 31 Jan 2023 22:03:38 -0800 Subject: [PATCH] aarch64: Fix include paths when S != B
@@ -28,10 +28,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h -index 4fa1dfc7906..63c9a832d1c 100644 +index e8bd8c73c12..6ea05b64601 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h -@@ -170,9 +170,9 @@ enum class aarch64_feature : unsigned char { +@@ -163,9 +163,9 @@ enum class aarch64_feature : unsigned char { #define DEF_AARCH64_ISA_MODE(IDENT) IDENT, #define AARCH64_OPT_EXTENSION(A, IDENT, C, D, E, F) IDENT, #define AARCH64_ARCH(A, B, IDENT, D, E) IDENT,
@@ -44,7 +44,7 @@ index 4fa1dfc7906..63c9a832d1c 100644 }; /* Define unique flags for each of the above. */ -@@ -182,16 +182,16 @@ enum class aarch64_feature : unsigned char { +@@ -175,16 +175,16 @@ enum class aarch64_feature : unsigned char { #define DEF_AARCH64_ISA_MODE(IDENT) HANDLE (IDENT) #define AARCH64_OPT_EXTENSION(A, IDENT, C, D, E, F) HANDLE (IDENT) #define AARCH64_ARCH(A, B, IDENT, D, E) HANDLE (IDENT)
@@ -56,12 +56,12 @@ index 4fa1dfc7906..63c9a832d1c 100644 +#include "config/aarch64/aarch64-arches.def" #undef HANDLE - constexpr auto AARCH64_FL_SM_STATE = AARCH64_FL_SM_ON | AARCH64_FL_SM_OFF; - - constexpr unsigned int AARCH64_NUM_ISA_MODES = (0 - #define DEF_AARCH64_ISA_MODE(IDENT) + 1 + /* Define aarch64_isa_mode masks. */ + #define DEF_AARCH64_ISA_MODE(IDENT) \ + constexpr auto AARCH64_ISA_MODE_##IDENT ATTRIBUTE_UNUSED \ + = aarch64_isa_mode (1) << int (aarch64_feature::IDENT); -#include "aarch64-isa-modes.def" +#include "config/aarch64/aarch64-isa-modes.def" - ); + #undef HANDLE - /* The mask of all ISA modes. */ + constexpr auto AARCH64_FL_SM_STATE ATTRIBUTE_UNUSED
meta/recipes-devtools/gcc/gcc/0012-Avoid-using-libdir-from-.la-which-usually-points-to-.patch +3 -3
@@ -1,4 +1,4 @@ -From b38add903c7f701e5b79dd7d93fb7dc61d8252c7 Mon Sep 17 00:00:00 2001 +From dec5104517546c0bac5256c0ff6da5304bd5ba7f Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Fri, 20 Feb 2015 09:39:38 +0000 Subject: [PATCH] Avoid using libdir from .la which usually points to a host
@@ -13,10 +13,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 3 insertions(+) diff --git a/ltmain.sh b/ltmain.sh -index ee938056bef..9ebc7e3d1e0 100644 +index e8474602b0b..ef93f977a52 100644 --- a/ltmain.sh +++ b/ltmain.sh -@@ -5628,6 +5628,9 @@ func_mode_link () +@@ -5650,6 +5650,9 @@ func_mode_link () absdir="$abs_ladir" libdir="$abs_ladir" else
meta/recipes-devtools/gcc/gcc/0013-Ensure-target-gcc-headers-can-be-included.patch +9 -9
@@ -1,4 +1,4 @@ -From 304299aef8b1ae1f89a0fabbceed0d48091b569b Mon Sep 17 00:00:00 2001 +From 611a11294861f6a643c43de02127a4b86f19c1a1 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Fri, 20 Feb 2015 10:25:11 +0000 Subject: [PATCH] Ensure target gcc headers can be included
@@ -25,10 +25,10 @@ Signed-off-by: Khem Raj <[email protected]> 4 files changed, 22 insertions(+) diff --git a/gcc/Makefile.in b/gcc/Makefile.in -index 956437df95b..6a009c696e9 100644 +index 5546e259a20..944d0a6680a 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in -@@ -671,6 +671,7 @@ libexecdir = @libexecdir@ +@@ -680,6 +680,7 @@ libexecdir = @libexecdir@ # Directory in which the compiler finds libraries etc. libsubdir = $(libdir)/gcc/$(real_target_noncanonical)/$(version)$(accel_dir_suffix)
@@ -36,7 +36,7 @@ index 956437df95b..6a009c696e9 100644 # Directory in which the compiler finds executables libexecsubdir = $(libexecdir)/gcc/$(real_target_noncanonical)/$(version)$(accel_dir_suffix) # Directory in which all plugin resources are installed -@@ -3199,6 +3200,7 @@ CFLAGS-intl.o += -DLOCALEDIR=\"$(localedir)\" +@@ -3397,6 +3398,7 @@ CFLAGS-intl.o += -DLOCALEDIR=\"$(localedir)\" PREPROCESSOR_DEFINES = \ -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
@@ -45,7 +45,7 @@ index 956437df95b..6a009c696e9 100644 -DGPLUSPLUS_INCLUDE_DIR=\"$(gcc_gxx_include_dir)\" \ -DGPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT=$(gcc_gxx_include_dir_add_sysroot) \ diff --git a/gcc/config/linux.h b/gcc/config/linux.h -index e36f32bf59e..c6aada42eb7 100644 +index c79d4902f85..640def63c27 100644 --- a/gcc/config/linux.h +++ b/gcc/config/linux.h @@ -157,6 +157,13 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
@@ -71,10 +71,10 @@ index e36f32bf59e..c6aada42eb7 100644 { GCC_INCLUDE_DIR, "GCC", 0, 1, 0, 0 }, \ { 0, 0, 0, 0, 0, 0 } \ diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h -index 8fda952e69c..247acec9d8e 100644 +index 3eb6c814ced..d534b9d2295 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h -@@ -986,6 +986,13 @@ ncrtn.o%s" +@@ -987,6 +987,13 @@ ncrtn.o%s" #define INCLUDE_DEFAULTS_MUSL_TOOL #endif
@@ -88,7 +88,7 @@ index 8fda952e69c..247acec9d8e 100644 #ifdef NATIVE_SYSTEM_HEADER_DIR #define INCLUDE_DEFAULTS_MUSL_NATIVE \ { NATIVE_SYSTEM_HEADER_DIR, 0, 0, 0, 1, 2 }, \ -@@ -1012,6 +1019,7 @@ ncrtn.o%s" +@@ -1013,6 +1020,7 @@ ncrtn.o%s" INCLUDE_DEFAULTS_MUSL_PREFIX \ INCLUDE_DEFAULTS_MUSL_CROSS \ INCLUDE_DEFAULTS_MUSL_TOOL \
@@ -97,7 +97,7 @@ index 8fda952e69c..247acec9d8e 100644 { GCC_INCLUDE_DIR, "GCC", 0, 1, 0, 0 }, \ { 0, 0, 0, 0, 0, 0 } \ diff --git a/gcc/cppdefault.cc b/gcc/cppdefault.cc -index f82b4badad7..98bd66f95c6 100644 +index f98c39c53ec..db1e517fadc 100644 --- a/gcc/cppdefault.cc +++ b/gcc/cppdefault.cc @@ -64,6 +64,10 @@ const struct default_include cpp_include_defaults[]
meta/recipes-devtools/gcc/gcc/0014-Don-t-search-host-directory-during-relink-if-inst_pr.patch +3 -3
@@ -1,4 +1,4 @@ -From a32cbf0d1c036e6435469898829f96a02c5993a8 Mon Sep 17 00:00:00 2001 +From e772dabb70136d6465f0c53e1885493a79c1ef06 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 3 Mar 2015 08:21:19 +0000 Subject: [PATCH] Don't search host directory during "relink" if $inst_prefix
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ltmain.sh b/ltmain.sh -index 9ebc7e3d1e0..7ea79fa8be6 100644 +index ef93f977a52..2ae16bf5d63 100644 --- a/ltmain.sh +++ b/ltmain.sh -@@ -6004,12 +6004,13 @@ func_mode_link () +@@ -6026,12 +6026,13 @@ func_mode_link () fi else # We cannot seem to hardcode it, guess we'll fake it.
meta/recipes-devtools/gcc/gcc/0015-libcc1-fix-libcc1-s-install-path-and-rpath.patch +3 -3
@@ -1,4 +1,4 @@ -From 6721497a3b4b575e5f9eae785dd4eca0f87b4a5b Mon Sep 17 00:00:00 2001 +From f19001f705006be28e724db5f3d7487afdd09630 Mon Sep 17 00:00:00 2001 From: Robert Yang <[email protected]> Date: Sun, 5 Jul 2015 20:25:18 -0700 Subject: [PATCH] libcc1: fix libcc1's install path and rpath
@@ -20,7 +20,7 @@ Signed-off-by: Robert Yang <[email protected]> 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libcc1/Makefile.am b/libcc1/Makefile.am -index b592bc8645f..97e2b615fb7 100644 +index f79e48a9aa2..bd8390946a2 100644 --- a/libcc1/Makefile.am +++ b/libcc1/Makefile.am @@ -40,8 +40,8 @@ libiberty = $(if $(wildcard $(libiberty_noasan)),$(Wc)$(libiberty_noasan), \
@@ -35,7 +35,7 @@ index b592bc8645f..97e2b615fb7 100644 if ENABLE_PLUGIN plugin_LTLIBRARIES = libcc1plugin.la libcp1plugin.la diff --git a/libcc1/Makefile.in b/libcc1/Makefile.in -index f8f590d71e9..56462492045 100644 +index 9d56a8323b0..4deb08d8b34 100644 --- a/libcc1/Makefile.in +++ b/libcc1/Makefile.in @@ -396,8 +396,8 @@ libiberty = $(if $(wildcard $(libiberty_noasan)),$(Wc)$(libiberty_noasan), \
meta/recipes-devtools/gcc/gcc/0016-handle-sysroot-support-for-nativesdk-gcc.patch +17 -17
@@ -1,4 +1,4 @@ -From 3f5ac862051e1c77dcca3e63a912f43d66ccdb6f Mon Sep 17 00:00:00 2001 +From 855fe25ef956429ad03726282516c901526861fc Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 7 Dec 2015 23:39:54 +0000 Subject: [PATCH] handle sysroot support for nativesdk-gcc
@@ -46,10 +46,10 @@ Signed-off-by: Mark Hatle <[email protected]> 8 files changed, 95 insertions(+), 73 deletions(-) diff --git a/gcc/c-family/c-opts.cc b/gcc/c-family/c-opts.cc -index f4dced8d826..911aeb68d2d 100644 +index d43b3aef102..b157ad37483 100644 --- a/gcc/c-family/c-opts.cc +++ b/gcc/c-family/c-opts.cc -@@ -1542,8 +1542,8 @@ add_prefixed_path (const char *suffix, incpath_kind chain) +@@ -1610,8 +1610,8 @@ add_prefixed_path (const char *suffix, incpath_kind chain) size_t prefix_len, suffix_len; suffix_len = strlen (suffix);
@@ -61,7 +61,7 @@ index f4dced8d826..911aeb68d2d 100644 path = (char *) xmalloc (prefix_len + suffix_len + 1); memcpy (path, prefix, prefix_len); diff --git a/gcc/config/linux.h b/gcc/config/linux.h -index c6aada42eb7..79ff13184d3 100644 +index 640def63c27..0f937abe729 100644 --- a/gcc/config/linux.h +++ b/gcc/config/linux.h @@ -121,53 +121,53 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
@@ -139,10 +139,10 @@ index c6aada42eb7..79ff13184d3 100644 } #endif diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h -index 247acec9d8e..5526bf050b8 100644 +index d534b9d2295..c5257425705 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h -@@ -950,53 +950,53 @@ ncrtn.o%s" +@@ -951,53 +951,53 @@ ncrtn.o%s" /* Include order changes for musl, same as in generic linux.h. */ #if DEFAULT_LIBC == LIBC_MUSL #define INCLUDE_DEFAULTS_MUSL_GPP \
@@ -207,7 +207,7 @@ index 247acec9d8e..5526bf050b8 100644 #else #define INCLUDE_DEFAULTS_MUSL_NATIVE #endif -@@ -1021,7 +1021,7 @@ ncrtn.o%s" +@@ -1022,7 +1022,7 @@ ncrtn.o%s" INCLUDE_DEFAULTS_MUSL_TOOL \ INCLUDE_DEFAULTS_MUSL_SUBDIR_TARGET \ INCLUDE_DEFAULTS_MUSL_NATIVE \
@@ -217,7 +217,7 @@ index 247acec9d8e..5526bf050b8 100644 } #endif diff --git a/gcc/cppdefault.cc b/gcc/cppdefault.cc -index 98bd66f95c6..742a4e56d5b 100644 +index db1e517fadc..8867e8bb341 100644 --- a/gcc/cppdefault.cc +++ b/gcc/cppdefault.cc @@ -35,6 +35,30 @@
@@ -347,7 +347,7 @@ index 98bd66f95c6..742a4e56d5b 100644 /* This value is set by cpp_relocated at runtime */ const char *gcc_exec_prefix; diff --git a/gcc/cppdefault.h b/gcc/cppdefault.h -index e9b9264caff..168144b84b8 100644 +index e033af78280..0af197df7b2 100644 --- a/gcc/cppdefault.h +++ b/gcc/cppdefault.h @@ -33,7 +33,8 @@
@@ -382,10 +382,10 @@ index e9b9264caff..168144b84b8 100644 subdirectory of the actual installation. */ extern const char *gcc_exec_prefix; diff --git a/gcc/gcc.cc b/gcc/gcc.cc -index e3e9374d1cc..b080609341b 100644 +index c1488865b8b..007c91780f6 100644 --- a/gcc/gcc.cc +++ b/gcc/gcc.cc -@@ -259,6 +259,8 @@ FILE *report_times_to_file = NULL; +@@ -265,6 +265,8 @@ FILE *report_times_to_file = NULL; #endif static const char *target_system_root = DEFAULT_TARGET_SYSTEM_ROOT;
@@ -394,7 +394,7 @@ index e3e9374d1cc..b080609341b 100644 /* Nonzero means pass the updated target_system_root to the compiler. */ static int target_system_root_changed; -@@ -591,6 +593,7 @@ or with constant text in a single argument. +@@ -598,6 +600,7 @@ or with constant text in a single argument. %G process LIBGCC_SPEC as a spec. %R Output the concatenation of target_system_root and target_sysroot_suffix.
@@ -402,7 +402,7 @@ index e3e9374d1cc..b080609341b 100644 %S process STARTFILE_SPEC as a spec. A capital S is actually used here. %E process ENDFILE_SPEC as a spec. A capital E is actually used here. %C process CPP_SPEC as a spec. -@@ -1638,10 +1641,10 @@ static const char *gcc_libexec_prefix; +@@ -1648,10 +1651,10 @@ static const char *gcc_libexec_prefix; gcc_exec_prefix is set because, in that case, we know where the compiler has been installed, and use paths relative to that location instead. */
@@ -417,7 +417,7 @@ index e3e9374d1cc..b080609341b 100644 /* For native compilers, these are well-known paths containing components that may be provided by the system. For cross -@@ -1649,9 +1652,9 @@ static const char *const standard_startfile_prefix = STANDARD_STARTFILE_PREFIX; +@@ -1659,9 +1662,9 @@ static const char *const standard_startfile_prefix = STANDARD_STARTFILE_PREFIX; static const char *md_exec_prefix = MD_EXEC_PREFIX; static const char *md_startfile_prefix = MD_STARTFILE_PREFIX; static const char *md_startfile_prefix_1 = MD_STARTFILE_PREFIX_1;
@@ -429,7 +429,7 @@ index e3e9374d1cc..b080609341b 100644 = STANDARD_STARTFILE_PREFIX_2; /* A relative path to be used in finding the location of tools -@@ -6796,6 +6799,11 @@ do_spec_1 (const char *spec, int inswitch, const char *soft_matched_part) +@@ -6837,6 +6840,11 @@ do_spec_1 (const char *spec, int inswitch, const char *soft_matched_part) } break;
@@ -442,7 +442,7 @@ index e3e9374d1cc..b080609341b 100644 value = do_spec_1 (startfile_spec, 0, NULL); if (value != 0) diff --git a/gcc/incpath.cc b/gcc/incpath.cc -index e572d98ab17..2cb2b586e4a 100644 +index 2cdbebc4c50..b61a9d1b2fc 100644 --- a/gcc/incpath.cc +++ b/gcc/incpath.cc @@ -135,7 +135,7 @@ add_standard_paths (const char *sysroot, const char *iprefix,
@@ -489,7 +489,7 @@ index e572d98ab17..2cb2b586e4a 100644 str = update_path (ostr, p->component); free (ostr); diff --git a/gcc/prefix.cc b/gcc/prefix.cc -index 6a98e856855..c403b2da7a3 100644 +index 0c79d60a6c8..27c79f09be4 100644 --- a/gcc/prefix.cc +++ b/gcc/prefix.cc @@ -73,7 +73,9 @@ License along with GCC; see the file COPYING3. If not see
meta/recipes-devtools/gcc/gcc/0017-Search-target-sysroot-gcc-version-specific-dirs-with.patch +4 -4
@@ -1,4 +1,4 @@ -From b2d95de58356c242abfe35467c2366d4e4b842ce Mon Sep 17 00:00:00 2001 +From a81407037281db31020f21edf43e42d62dfee565 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 7 Dec 2015 23:41:45 +0000 Subject: [PATCH] Search target sysroot gcc version specific dirs with
@@ -52,10 +52,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/gcc/gcc.cc b/gcc/gcc.cc -index b080609341b..1a1ca05064e 100644 +index 007c91780f6..22eb17bc099 100644 --- a/gcc/gcc.cc +++ b/gcc/gcc.cc -@@ -2823,7 +2823,7 @@ for_each_path (const struct path_prefix *paths, +@@ -2837,7 +2837,7 @@ for_each_path (const struct path_prefix *paths, if (path == NULL) { len = paths->max_len + extra_space + 1;
@@ -64,7 +64,7 @@ index b080609341b..1a1ca05064e 100644 path = XNEWVEC (char, len); } -@@ -2835,6 +2835,33 @@ for_each_path (const struct path_prefix *paths, +@@ -2849,6 +2849,33 @@ for_each_path (const struct path_prefix *paths, /* Look first in MACHINE/VERSION subdirectory. */ if (!skip_multi_dir) {
meta/recipes-devtools/gcc/gcc/0018-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch +4 -4
@@ -1,4 +1,4 @@ -From e420858f23a1fe58e840bd5ae21cb5a964b27f0b Mon Sep 17 00:00:00 2001 +From 78ae0152bc829d68c1b73e79675c9d2c3593fba7 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Tue, 27 Jun 2017 18:10:54 -0700 Subject: [PATCH] Add ssp_nonshared to link commandline for musl targets
@@ -23,7 +23,7 @@ Signed-off-by: Khem Raj <[email protected]> 3 files changed, 27 insertions(+) diff --git a/gcc/config/linux.h b/gcc/config/linux.h -index 79ff13184d3..19f552e8c7d 100644 +index 0f937abe729..88e59d1f78c 100644 --- a/gcc/config/linux.h +++ b/gcc/config/linux.h @@ -195,6 +195,13 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
@@ -41,7 +41,7 @@ index 79ff13184d3..19f552e8c7d 100644 #if (DEFAULT_LIBC == LIBC_UCLIBC) && defined (SINGLE_LIBC) /* uClinux */ diff --git a/gcc/config/rs6000/linux.h b/gcc/config/rs6000/linux.h -index 5f6cede558a..900993b6da4 100644 +index 6c4480b70c4..89ae8267482 100644 --- a/gcc/config/rs6000/linux.h +++ b/gcc/config/rs6000/linux.h @@ -102,6 +102,16 @@
@@ -62,7 +62,7 @@ index 5f6cede558a..900993b6da4 100644 #define LINK_OS_LINUX_SPEC LINK_OS_LINUX_EMUL " %{!shared: %{!static: \ %{!static-pie: \ diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h -index a11ae7643b7..2abde270813 100644 +index 8de5eb8bb49..4eb5cc2c7cf 100644 --- a/gcc/config/rs6000/linux64.h +++ b/gcc/config/rs6000/linux64.h @@ -373,6 +373,16 @@ extern int dot_symbols;
meta/recipes-devtools/gcc/gcc/0019-Re-introduce-spe-commandline-options.patch +3 -3
@@ -1,4 +1,4 @@ -From edc8f1cee2c9c4a441032fa22d0272b41b829dc6 Mon Sep 17 00:00:00 2001 +From 45fa660da59ac4ec305ff5945881fabd904a5039 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 6 Jun 2018 12:10:22 -0700 Subject: [PATCH] Re-introduce spe commandline options
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 13 insertions(+) diff --git a/gcc/config/rs6000/rs6000.opt b/gcc/config/rs6000/rs6000.opt -index e8ca70340df..5c8545d4f1b 100644 +index 88cf16ca581..fc283ccc934 100644 --- a/gcc/config/rs6000/rs6000.opt +++ b/gcc/config/rs6000/rs6000.opt -@@ -344,6 +344,19 @@ mdebug= +@@ -348,6 +348,19 @@ mdebug= Target RejectNegative Joined -mdebug= Enable debug output.
meta/recipes-devtools/gcc/gcc/0020-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch +4 -4
@@ -1,4 +1,4 @@ -From 83a61604293c6f7a131bccaf7454e69eeed301fd Mon Sep 17 00:00:00 2001 +From aa62fafac284ee19434889b733c0d24ca96d75b1 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy <[email protected]> Date: Sat, 24 Oct 2015 20:09:53 +0000 Subject: [PATCH] libgcc_s: Use alias for __cpu_indicator_init instead of
@@ -39,10 +39,10 @@ Signed-off-by: Khem Raj <[email protected]> 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/config/i386/i386-expand.cc b/gcc/config/i386/i386-expand.cc -index 51efe6fdd7d..a8ee883a74d 100644 +index 36f71eb4a97..53628f7da3d 100644 --- a/gcc/config/i386/i386-expand.cc +++ b/gcc/config/i386/i386-expand.cc -@@ -13087,10 +13087,10 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget, +@@ -13643,10 +13643,10 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget, { case IX86_BUILTIN_CPU_INIT: {
@@ -56,7 +56,7 @@ index 51efe6fdd7d..a8ee883a74d 100644 return expand_expr (call_expr, target, mode, EXPAND_NORMAL); } diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c -index 0bd6dffe17e..ef4acb175a4 100644 +index 2484dc839bf..e980030ef23 100644 --- a/libgcc/config/i386/cpuinfo.c +++ b/libgcc/config/i386/cpuinfo.c @@ -63,7 +63,7 @@ __cpu_indicator_init (void)
meta/recipes-devtools/gcc/gcc/0021-gentypes-genmodes-Do-not-use-__LINE__-for-maintainin.patch +4 -4
@@ -1,4 +1,4 @@ -From 33eb17881ca90cff733070c5b630501fb0a8bd58 Mon Sep 17 00:00:00 2001 +From 56163decbd4470bd0bc5e96c42280d4dd99a8e6d Mon Sep 17 00:00:00 2001 From: Richard Purdie <[email protected]> Date: Tue, 10 Mar 2020 08:26:53 -0700 Subject: [PATCH] gentypes/genmodes: Do not use __LINE__ for maintaining
@@ -17,7 +17,7 @@ Signed-off-by: Khem Raj <[email protected]> 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/gcc/gengtype.cc b/gcc/gengtype.cc -index c0ecbe8558b..9f8ab7146c0 100644 +index 6a3621c96cd..3f6c36dcff5 100644 --- a/gcc/gengtype.cc +++ b/gcc/gengtype.cc @@ -1005,7 +1005,7 @@ create_field_at (pair_p next, type_p type, const char *name, options_p opt,
@@ -38,7 +38,7 @@ index c0ecbe8558b..9f8ab7146c0 100644 /* Reverse a linked list of 'struct pair's in place. */ pair_p -@@ -5232,7 +5232,7 @@ main (int argc, char **argv) +@@ -5238,7 +5238,7 @@ main (int argc, char **argv) /* These types are set up with #define or else outside of where we can see them. We should initialize them before calling read_input_list. */
@@ -48,7 +48,7 @@ index c0ecbe8558b..9f8ab7146c0 100644 POS_HERE (do_scalar_typedef ("CUMULATIVE_ARGS", &pos)); POS_HERE (do_scalar_typedef ("REAL_VALUE_TYPE", &pos)); diff --git a/gcc/genmodes.cc b/gcc/genmodes.cc -index eb3f9e2f0c1..5425635cb22 100644 +index 7af79720189..3bdb82ef8bf 100644 --- a/gcc/genmodes.cc +++ b/gcc/genmodes.cc @@ -441,7 +441,7 @@ complete_all_modes (void)
meta/recipes-devtools/gcc/gcc/0022-libatomic-Do-not-enforce-march-on-aarch64.patch +4 -4
@@ -1,4 +1,4 @@ -From 6ebeb70ce2e78a84295f4e392602ae3c4026783a Mon Sep 17 00:00:00 2001 +From 61e0fcb278b01bbda61bed3306e36f17f4d48068 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 13 May 2020 15:10:38 -0700 Subject: [PATCH] libatomic: Do not enforce march on aarch64
@@ -17,10 +17,10 @@ Signed-off-by: Khem Raj <[email protected]> 2 files changed, 2 deletions(-) diff --git a/libatomic/Makefile.am b/libatomic/Makefile.am -index 980677f3533..26188917946 100644 +index 0f1a7156084..255fe448e63 100644 --- a/libatomic/Makefile.am +++ b/libatomic/Makefile.am -@@ -130,7 +130,6 @@ libatomic_la_LIBADD = $(foreach s,$(SIZES),$(addsuffix _$(s)_.lo,$(SIZEOBJS))) +@@ -128,7 +128,6 @@ libatomic_la_LIBADD = $(foreach s,$(SIZES),$(addsuffix _$(s)_.lo,$(SIZEOBJS))) ## On a target-specific basis, include alternates to be selected by IFUNC. if HAVE_IFUNC if ARCH_AARCH64_LINUX
@@ -29,7 +29,7 @@ index 980677f3533..26188917946 100644 endif diff --git a/libatomic/Makefile.in b/libatomic/Makefile.in -index d9d529bc502..47dacef9e01 100644 +index 9798e7c09e9..3b3027eb77d 100644 --- a/libatomic/Makefile.in +++ b/libatomic/Makefile.in @@ -452,7 +452,6 @@ M_SRC = $(firstword $(filter %/$(M_FILE), $(all_c_files)))
meta/recipes-devtools/gcc/gcc/0023-Fix-install-path-of-linux64.h.patch +3 -3
@@ -1,4 +1,4 @@ -From aecde58d433123e8fb76ca2c56a0632d7b104b83 Mon Sep 17 00:00:00 2001 +From eb4538ff91a8b0a1c5b228d61e67aaadb4842c01 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan <[email protected]> Date: Wed, 22 Dec 2021 12:49:25 +0100 Subject: [PATCH] Fix install path of linux64.h
@@ -17,10 +17,10 @@ Signed-off-by: Khem Raj <[email protected]> 1 file changed, 2 insertions(+) diff --git a/gcc/Makefile.in b/gcc/Makefile.in -index 6a009c696e9..da54dd42adf 100644 +index 944d0a6680a..4cea9b20af5 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in -@@ -3900,6 +3900,8 @@ install-plugin: installdirs lang.install-plugin s-header-vars install-gengtype +@@ -4115,6 +4115,8 @@ install-plugin: installdirs lang.install-plugin s-header-vars install-gengtype | "$(srcdir)"/config/* | "$(srcdir)"/common/config/* \ | "$(srcdir)"/c-family/* | "$(srcdir)"/*.def ) \ base=`echo "$$path" | sed -e "s|$$srcdirstrip/||"`;; \
meta/recipes-devtools/gcc/gcc/0024-Avoid-hardcoded-build-paths-into-ppc-libgcc.patch +1 -1
@@ -1,4 +1,4 @@ -From 483baf290597eed2ac01c7974f1b567c95503da5 Mon Sep 17 00:00:00 2001 +From 496670a1281c2171ec2cdcd74ae2844695000bc9 Mon Sep 17 00:00:00 2001 From: Richard Purdie <[email protected]> Date: Sat, 20 Aug 2022 09:04:14 -0700 Subject: [PATCH] Avoid hardcoded build paths into ppc libgcc
meta/recipes-devtools/gcc/gcc/0025-gcc-testsuite-tweaks-for-mips-OE.patch +55 -63
187 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc/0026-Append-GCC-private-include-paths-on-musl-instead-of-.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 4119058c917967a159b7d352c9d5863997d60cf3 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 5 Jun 2024 22:56:12 -0700 +Subject: [PATCH] Append GCC private include paths on musl instead of + prepending + +Musl does not need gcc private compiler headers, therefore use them +after standard system header search paths. + +This fixes packages like python builds to detect the musl systems +correclty, as it looks for musl specific stuff in stdarg.h system +header, which is wrongly picked from gcc private headers in OE + +Upstream-Status: Submitted [https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115368] +Signed-off-by: Khem Raj <[email protected]> +--- + gcc/gcc.cc | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/gcc/gcc.cc b/gcc/gcc.cc +index 22eb17bc099..c9369fefc53 100644 +--- a/gcc/gcc.cc ++++ b/gcc/gcc.cc +@@ -6620,7 +6620,11 @@ do_spec_1 (const char *spec, int inswitch, const char *soft_matched_part) + + if (gcc_exec_prefix) + { +- do_spec_1 ("-iprefix", 1, NULL); ++ if (OPTION_MUSL) ++ do_spec_1 ("-idirafter", 1, NULL); ++ else ++ do_spec_1 ("-iprefix", 1, NULL); ++ + /* Make this a separate argument. */ + do_spec_1 (" ", 0, NULL); + do_spec_1 (gcc_exec_prefix, 1, NULL);
meta/recipes-devtools/gcc/gcc/0026-gcc-Fix-c-tweak-for-Wrange-loop-construct.patch deleted +0 -114
114 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc/0027-gcc-backport-patch-to-fix-data-relocation-to-ENDBR-s.patch deleted +0 -447
447 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc/0028-libsanitizer-undef-_TIME_BITS-in-solaris-procmaps.patch deleted +0 -62
62 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc/gcc.git-ab884fffe3fc82a710bea66ad651720d71c938b8.patch deleted +0 -549
549 lines not on this page · raw message
meta/recipes-devtools/gcc/gcc_15.1.bb renamed from meta/recipes-devtools/gcc/gcc_14.2.bb +0 -0
meta/recipes-devtools/gcc/libgcc-initial_15.1.bb renamed from meta/recipes-devtools/gcc/libgcc-initial_14.2.bb +0 -0
meta/recipes-devtools/gcc/libgcc_15.1.bb renamed from meta/recipes-devtools/gcc/libgcc_14.2.bb +0 -0
meta/recipes-devtools/gcc/libgfortran_15.1.bb renamed from meta/recipes-devtools/gcc/libgfortran_14.2.bb +0 -0
Quoted 9 lines · Khem Raj via lists.openembedded.org
* Nios2 has been removed and aarch64/ilp32 is deprecated
* Default C dialect is switched to C23
* {0} initializer in C or C++ for unions no longer guarantees clearing of the whole union
* Compile speed improvements with LTO
* Vectorizer can support loops with early exists but it is limited to loops
with fixed vector lengths
Quoted 5 lines
This is major release of gcc, the changes are noted [1]
[1] https://gcc.gnu.org/gcc-15/changes.html
Signed-off-by Khem Raj <[email protected]>
I did run this through testing and unfortunately there do seem to be some issues:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/1472
In particular:
harfbuzz:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/2/builds/1478
https://autobuilder.yoctoproject.org/valkyrie/#/builders/16/builds/1465
selftest:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/1428
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/1531
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/1377
reproducible/selftest-ed:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/37/builds/1505
Cheers,
Richard
Quoted 21 lines · Richard Purdie
Quoted 9 lines · Khem Raj via lists.openembedded.org
* Nios2 has been removed and aarch64/ilp32 is deprecated
* Default C dialect is switched to C23
* {0} initializer in C or C++ for unions no longer guarantees clearing of the whole union
* Compile speed improvements with LTO
* Vectorizer can support loops with early exists but it is limited to loops
with fixed vector lengthsQuoted 5 lines
This is major release of gcc, the changes are noted [1]
[1] https://gcc.gnu.org/gcc-15/changes.html
Signed-off-by Khem Raj <[email protected]>I did run this through testing and unfortunately there do seem to be some issues:
Quoted 8 lines
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/1472
In particular:
harfbuzz:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/2/builds/1478
https://autobuilder.yoctoproject.org/valkyrie/#/builders/16/builds/1465
I think this needs fixing harfbuzz
Quoted 6 lines
selftest:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/1428
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/1531
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/1377
I have sent v3, which should fix the baremetal cross-gcc failure.
Quoted 3 lines
reproducible/selftest-ed:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/37/builds/1505
this is running a selftest which is building code which is using bool needs fixing for gcc-15
Quoted 4 lines
Cheers,
Richard