aboutsummaryrefslogtreecommitdiff
path: root/packages/gcc/13.1.0/0008-Support-picolibc-targets.patch
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2023-04-26 21:56:28 +1200
committerChris Packham <judge.packham@gmail.com>2023-05-14 10:35:14 +1200
commitf00a45eba69f38352366af1786d52d53d6979c77 (patch)
treeb6aa8fbebd726232defd043d710e02cb4fe9daf7 /packages/gcc/13.1.0/0008-Support-picolibc-targets.patch
parent8e55ab0607c01fc8a443bdac41c2d947db8830fb (diff)
downloadcrosstool-ng-f00a45eba69f38352366af1786d52d53d6979c77.tar.gz
crosstool-ng-f00a45eba69f38352366af1786d52d53d6979c77.tar.bz2
crosstool-ng-f00a45eba69f38352366af1786d52d53d6979c77.zip
gcc: Add 13.1.0
Add gcc 13.1.0 with rebased patches against the new version. https://gcc.gnu.org/pipermail/gcc-announce/2023/000175.html https://gcc.gnu.org/gcc-13/changes.html https://gcc.gnu.org/gcc-13/porting_to.html Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'packages/gcc/13.1.0/0008-Support-picolibc-targets.patch')
-rw-r--r--packages/gcc/13.1.0/0008-Support-picolibc-targets.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/gcc/13.1.0/0008-Support-picolibc-targets.patch b/packages/gcc/13.1.0/0008-Support-picolibc-targets.patch
new file mode 100644
index 00000000..0f8cc2f9
--- /dev/null
+++ b/packages/gcc/13.1.0/0008-Support-picolibc-targets.patch
@@ -0,0 +1,33 @@
+From c9c22fe9ce182e48282e2bf0a8830381d3c55dd4 Mon Sep 17 00:00:00 2001
+From: Keith Packard <keithp@keithp.com>
+Date: Sun, 12 Feb 2023 14:23:32 -0800
+Subject: [PATCH] Support picolibc targets
+
+Match *-picolibc-* and select picolibc as the default C library, plus continuing to use
+the newlib-based logic for other configuration items.
+
+Signed-off-by: Keith Packard <keithp@keithp.com>
+---
+ gcc/config.gcc | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+--- a/gcc/config.gcc
++++ b/gcc/config.gcc
+@@ -1116,6 +1116,17 @@
+ ;;
+ esac
+ ;;
++*-picolibc-*)
++ # __cxa_atexit is provided.
++ default_use_cxa_atexit=yes
++ use_gcc_stdint=wrap
++ default_libc=LIBC_PICOLIBC
++ case "${with_newlib}-${with_headers}" in
++ no-no) use_gcc_stdint=provide ;;
++ *) ;;
++ esac
++ ;;
++
+ *-*-elf|arc*-*-elf*)
+ # Assume that newlib is being used and so __cxa_atexit is provided.
+ default_use_cxa_atexit=yes