aboutsummaryrefslogtreecommitdiff
path: root/packages/gcc/15.1.0/0007-Add-newlib-and-picolibc-as-default-C-library-choices.patch
diff options
context:
space:
mode:
authorHans-Christian Noren Egtvedt <egtvedt@samfundet.no>2025-04-25 18:19:37 +0200
committerChris Packham <judge.packham@gmail.com>2025-05-05 08:53:07 +1200
commita0a10f58e57b631f07dc79d51fb6ac295ad727da (patch)
tree8798015c8ff9f7aeb12c192936f64504fae0f6d8 /packages/gcc/15.1.0/0007-Add-newlib-and-picolibc-as-default-C-library-choices.patch
parentb49e4c689c4dc8e9c8da5b8f56d7ddf59e485d3b (diff)
downloadcrosstool-ng-a0a10f58e57b631f07dc79d51fb6ac295ad727da.tar.gz
crosstool-ng-a0a10f58e57b631f07dc79d51fb6ac295ad727da.tar.bz2
crosstool-ng-a0a10f58e57b631f07dc79d51fb6ac295ad727da.zip
gcc: Add 15.1.0
https://gcc.gnu.org/pipermail/gcc-announce/2025/000185.html See upstream changes at https://gcc.gnu.org/gcc-15/changes.html Add the new version clean up the patches. Remove GCC 14 patches applied to GCC 15. Signed-off-by: Hans-Christian Noren Egtvedt <egtvedt@samfundet.no>
Diffstat (limited to 'packages/gcc/15.1.0/0007-Add-newlib-and-picolibc-as-default-C-library-choices.patch')
-rw-r--r--packages/gcc/15.1.0/0007-Add-newlib-and-picolibc-as-default-C-library-choices.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/packages/gcc/15.1.0/0007-Add-newlib-and-picolibc-as-default-C-library-choices.patch b/packages/gcc/15.1.0/0007-Add-newlib-and-picolibc-as-default-C-library-choices.patch
new file mode 100644
index 00000000..2f839fad
--- /dev/null
+++ b/packages/gcc/15.1.0/0007-Add-newlib-and-picolibc-as-default-C-library-choices.patch
@@ -0,0 +1,37 @@
+From be5d482de0099012288e617af0583772fac21714 Mon Sep 17 00:00:00 2001
+From: Keith Packard <keithp@keithp.com>
+Date: Tue, 23 Aug 2022 22:12:06 -0700
+Subject: [PATCH] Add newlib and picolibc as default C library choices
+
+Signed-off-by: Keith Packard <keithp@keithp.com>
+---
+ gcc/config.gcc | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+--- a/gcc/config.gcc
++++ b/gcc/config.gcc
+@@ -694,7 +694,7 @@ case ${target} in
+ esac
+
+ # Common C libraries.
+-tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4"
++tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4 LIBC_NEWLIB=5 LIBC_PICOLIBC=6"
+
+ default_libc=""
+
+@@ -6178,6 +6178,15 @@ bionic)
+ musl)
+ default_libc=LIBC_MUSL
+ ;;
++newlib)
++ # Newlib configurations don't set the DEFAULT_LIBC variable, so
++ # avoid changing those by allowing --with-default-libc=newlib but
++ # not actually setting the DEFAULT_LIBC variable.
++ default_libc=
++ ;;
++picolibc)
++ default_libc=LIBC_PICOLIBC
++ ;;
+ "")
+ ;;
+ *)