Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] gcc: update to 13.2.0.
@ 2023-08-09  0:09 oreo639
  2023-08-26 21:48 ` leahneukirchen
                   ` (57 more replies)
  0 siblings, 58 replies; 59+ messages in thread
From: oreo639 @ 2023-08-09  0:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

There is a new pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 39574 bytes --]

From 4648e3d7d4d83859627d9041fc3b1f887d8f4b29 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 1/6] binutils: update to 2.41.

---
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     |  6 +--
 2 files changed, 3 insertions(+), 56 deletions(-)
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 441e435539044..1204883f71ebd 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=2
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
 makedepends="zlib-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 subpackages="binutils-doc"
 if [ "$CHROOT_READY" ]; then

From c5d2cb7ff51083475f45e5a2a33ebe78b3805fe9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 2/6] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  21 +-
 8 files changed, 304 insertions(+), 274 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index ddb0e8ab87091..396c93e39036c 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -61,7 +61,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.36 perl-5.36.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -866,8 +866,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1726,6 +1726,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 34a3fa62d31b5..0352613c47980 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,13 +3,13 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=3
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
@@ -23,10 +23,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 
 nopie=yes
@@ -189,6 +189,7 @@ pre_configure() {
 
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -675,7 +676,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove usr/lib/lib*san_preinit.o
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From 5af3b39b318126960e0a85dd6799ecb76be65561 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 3/6] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 437ba8489f1e2c91b8c691b9f65e250adf0deef5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 4/6] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From fbaabe79988ef356f48a8607bd987c501835bb0f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 5/6] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From 77fdd792e1b8c3858a8408e3d17397cd7beedf89 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 6/6] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..80750e17c742d 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,15 +3,15 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
 makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
@ 2023-08-26 21:48 ` leahneukirchen
  2023-09-10 22:36 ` [PR REVIEW] " tornaria
                   ` (56 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: leahneukirchen @ 2023-08-26 21:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 211 bytes --]

New comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1694507890

Comment:
We should use some gmp mirror, the devs probably block GitHub.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR REVIEW] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
  2023-08-26 21:48 ` leahneukirchen
@ 2023-09-10 22:36 ` tornaria
  2023-09-10 22:39 ` tornaria
                   ` (55 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: tornaria @ 2023-09-10 22:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 215 bytes --]

New review comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#discussion_r1320875587

Comment:
Maybe also update mpfr to 4.2.1 (#45725) and isl to 0.26 (#45951)?

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
  2023-08-26 21:48 ` leahneukirchen
  2023-09-10 22:36 ` [PR REVIEW] " tornaria
@ 2023-09-10 22:39 ` tornaria
  2023-09-11  0:51 ` [PR REVIEW] " oreo639
                   ` (54 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: tornaria @ 2023-09-10 22:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 288 bytes --]

New comment by tornaria on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1712959543

Comment:
> We should use some gmp mirror, the devs probably block GitHub.

This works for the main gmp template: `${GNU_SITE}/gmp/gmp-${version}.tar.xz`

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR REVIEW] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (2 preceding siblings ...)
  2023-09-10 22:39 ` tornaria
@ 2023-09-11  0:51 ` oreo639
  2023-09-11 12:57 ` leahneukirchen
                   ` (53 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-09-11  0:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 205 bytes --]

New review comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#discussion_r1320901517

Comment:
isl 0.25+ requires c++17 whereas gcc compiles with c++11.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR REVIEW] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (3 preceding siblings ...)
  2023-09-11  0:51 ` [PR REVIEW] " oreo639
@ 2023-09-11 12:57 ` leahneukirchen
  2023-09-11 15:51 ` oreo639
                   ` (52 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: leahneukirchen @ 2023-09-11 12:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 184 bytes --]

New review comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#discussion_r1321511121

Comment:
Is anyone really using gcc<7?

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR REVIEW] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (4 preceding siblings ...)
  2023-09-11 12:57 ` leahneukirchen
@ 2023-09-11 15:51 ` oreo639
  2023-12-07 17:53 ` metaleap
                   ` (51 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-09-11 15:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 258 bytes --]

New review comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#discussion_r1321756345

Comment:
The issue is that gcc uses -std=c++11 and isl gets compiled through gcc's makefile so the flag gets passed on.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (5 preceding siblings ...)
  2023-09-11 15:51 ` oreo639
@ 2023-12-07 17:53 ` metaleap
  2023-12-07 18:54 ` oreo639
                   ` (50 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: metaleap @ 2023-12-07 17:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 203 bytes --]

New comment by metaleap on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1845842269

Comment:
Uh... "voting" for this one won't do jack, I guess... :grin:

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (6 preceding siblings ...)
  2023-12-07 17:53 ` metaleap
@ 2023-12-07 18:54 ` oreo639
  2023-12-07 18:54 ` oreo639
                   ` (49 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-07 18:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 172 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1845929389

Comment:
It is waiting on the glibc PR.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (7 preceding siblings ...)
  2023-12-07 18:54 ` oreo639
@ 2023-12-07 18:54 ` oreo639
  2023-12-07 18:54 ` oreo639
                   ` (48 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-07 18:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 184 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1845929389

Comment:
It is waiting on reviews for the glibc PR.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (8 preceding siblings ...)
  2023-12-07 18:54 ` oreo639
@ 2023-12-07 18:54 ` oreo639
  2023-12-07 18:55 ` oreo639
                   ` (47 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-07 18:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 172 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1845929389

Comment:
It is waiting on the glibc PR.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (9 preceding siblings ...)
  2023-12-07 18:54 ` oreo639
@ 2023-12-07 18:55 ` oreo639
  2023-12-07 18:55 ` oreo639
                   ` (46 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-07 18:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 227 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1845929389

Comment:
It is waiting on the glibc PR: https://github.com/void-linux/void-packages/pull/45501

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (10 preceding siblings ...)
  2023-12-07 18:55 ` oreo639
@ 2023-12-07 18:55 ` oreo639
  2023-12-26 21:54 ` oreo639
                   ` (45 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-07 18:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1845929389

Comment:
It is still waiting on the glibc PR: https://github.com/void-linux/void-packages/pull/45501

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (11 preceding siblings ...)
  2023-12-07 18:55 ` oreo639
@ 2023-12-26 21:54 ` oreo639
  2023-12-26 22:10 ` [PR PATCH] [Updated] " oreo639
                   ` (44 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-26 21:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 247 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1845929389

Comment:
~~It is still waiting on the glibc PR: https://github.com/void-linux/void-packages/pull/45501~~ Now done.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (12 preceding siblings ...)
  2023-12-26 21:54 ` oreo639
@ 2023-12-26 22:10 ` oreo639
  2023-12-27  4:15 ` oreo639
                   ` (43 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-26 22:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 44208 bytes --]

From b2428f73e51856069901ff0792b625624db65db0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 1/6] binutils: update to 2.41.

---
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     |  6 +--
 2 files changed, 3 insertions(+), 56 deletions(-)
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..cda87c11ab63e 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
 makedepends="zlib-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"

From 2bfa4b9ae2fa44356cdab78ff57a98eeae111daf Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 2/6] gcc: update to 13.2.0.

---
 common/build-style/python-module.sh           |  96 +++++
 .../environment/build-style/python-module.sh  |   2 +
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  30 +-
 10 files changed, 408 insertions(+), 277 deletions(-)
 create mode 100644 common/build-style/python-module.sh
 create mode 100644 common/environment/build-style/python-module.sh
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/build-style/python-module.sh b/common/build-style/python-module.sh
new file mode 100644
index 0000000000000..b80801a672472
--- /dev/null
+++ b/common/build-style/python-module.sh
@@ -0,0 +1,96 @@
+#
+# This helper is for templates installing python modules.
+#
+
+do_build() {
+	: ${python_versions:="2.7 $py3_ver"}
+	local pyver= tmp_cflags="$CFLAGS" tmp_ldflags="$LDFLAGS"
+
+	for pyver in $python_versions; do
+		if [ -n "$CROSS_BUILD" ]; then
+			CFLAGS="$tmp_cflags"
+			LDFLAGS="$tmp_ldflags"
+			ADDENV=
+
+			PYPREFIX="$XBPS_CROSS_BASE"
+			CFLAGS+=" -I${XBPS_CROSS_BASE}/include/python${pyver} -I${XBPS_CROSS_BASE}/usr/include"
+			LDFLAGS+=" -L${XBPS_CROSS_BASE}/lib/python${pyver} -L${XBPS_CROSS_BASE}/usr/lib"
+			CC="${XBPS_CROSS_TRIPLET}-gcc -pthread $CFLAGS $LDFLAGS"
+			LDSHARED="${CC} -shared $LDFLAGS"
+			case $pyver in
+			3.*)
+				for f in ${XBPS_CROSS_BASE}/${py3_lib}/_sysconfigdata_*; do
+					f=${f##*/}
+					_PYTHON_SYSCONFIGDATA_NAME=${f%.py}
+				done
+				ADDENV+=" PYTHONPATH=${XBPS_CROSS_BASE}/${py3_lib}"
+				ADDENV+=" _PYTHON_SYSCONFIGDATA_NAME="$_PYTHON_SYSCONFIGDATA_NAME""
+			esac
+			env CC="$CC" LDSHARED="$LDSHARED" $ADDENV \
+				PYPREFIX="$PYPREFIX" CFLAGS="$CFLAGS" \
+				LDFLAGS="$LDFLAGS" python${pyver} setup.py \
+					build --build-base=build-${pyver} ${make_build_args}
+		else
+			python${pyver} setup.py build --build-base=build-${pyver} ${make_build_args}
+		fi
+	done
+}
+
+do_check() {
+	: ${python_versions:="2.7 $py3_ver"}
+
+	for pyver in $python_versions; do
+		ln -s build-${pyver} build
+		if [ -z "$make_check_target" ]; then
+			if ! python${pyver} setup.py --help test >/dev/null 2>&1; then
+				msg_warn "No command 'test' defined by setup.py for python${pyver}.\n"
+				rm build
+				return 0
+			fi
+		fi
+
+		${make_check_pre} python${pyver} setup.py ${make_check_target:-test} ${make_check_args}
+		rm build
+	done
+}
+
+do_install() {
+	: ${python_versions:="2.7 $py3_ver"}
+	local pyver=
+
+	for pyver in $python_versions; do
+		if [ -n "$CROSS_BUILD" ]; then
+			ADDENV=
+			PYPREFIX="$XBPS_CROSS_BASE"
+			CFLAGS+=" -I${XBPS_CROSS_BASE}/include/python${pyver} -I${XBPS_CROSS_BASE}/usr/include"
+			LDFLAGS+=" -L${XBPS_CROSS_BASE}/lib/python${pyver} -L${XBPS_CROSS_BASE}/usr/lib"
+			CC="${XBPS_CROSS_TRIPLET}-gcc -pthread $CFLAGS $LDFLAGS"
+			LDSHARED="${CC} -shared $LDFLAGS"
+			case $pyver in
+			3.*)
+				for f in ${XBPS_CROSS_BASE}/${py3_lib}/_sysconfigdata_*; do
+					f=${f##*/}
+					_PYTHON_SYSCONFIGDATA_NAME=${f%.py}
+				done
+				ADDENV+=" PYTHONPATH=${XBPS_CROSS_BASE}/${py3_lib}"
+				ADDENV+=" _PYTHON_SYSCONFIGDATA_NAME="$_PYTHON_SYSCONFIGDATA_NAME""
+			esac
+			env CC="$CC" LDSHARED="$LDSHARED" $ADDENV \
+				PYPREFIX="$PYPREFIX" CFLAGS="$CFLAGS" \
+				LDFLAGS="$LDFLAGS" python${pyver} setup.py \
+					build --build-base=build-${pyver} \
+					install --prefix=/usr --root=${DESTDIR} ${make_install_args}
+		else
+			python${pyver} setup.py build --build-base=build-${pyver} \
+				install --prefix=/usr --root=${DESTDIR} ${make_install_args}
+		fi
+
+		# Rename unversioned scripts to avoid name conflicts.
+		if [ -d ${DESTDIR}/usr/bin ]; then
+			find ${DESTDIR}/usr/bin -type f ! -name "*[[:digit:]]" | while IFS= read -r f _; do
+				mv "${f}" "${f}${pyver%.*}"
+				echo "[python-module] Unversioned script renamed to '${f#$DESTDIR}${pyver%.*}'"
+			done
+		fi
+	done
+}
diff --git a/common/environment/build-style/python-module.sh b/common/environment/build-style/python-module.sh
new file mode 100644
index 0000000000000..d6b6502e44fd2
--- /dev/null
+++ b/common/environment/build-style/python-module.sh
@@ -0,0 +1,2 @@
+lib32disabled=yes
+makedepends+=" python python3"
diff --git a/common/shlibs b/common/shlibs
index 6463e020bb473..9efb30f8064bc 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -61,7 +61,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -853,8 +853,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1686,6 +1686,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 34a3fa62d31b5..8083027f511bf 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=3
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/download/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -187,8 +187,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -675,7 +679,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove usr/lib/lib*san_preinit.o
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From feb56aa2888eba3b37d4a40bbcbc9acf594c252c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 3/6] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From a3035d42a15d9c965deb395f87bd1b113664959b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 4/6] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From d804a79932a60f5e7ceea69d24009779277ba6ad Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 5/6] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From dc434dfb6f6ffbb305ae2beff0501e8e2e7e01bf Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 6/6] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..80750e17c742d 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,15 +3,15 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
 makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (13 preceding siblings ...)
  2023-12-26 22:10 ` [PR PATCH] [Updated] " oreo639
@ 2023-12-27  4:15 ` oreo639
  2023-12-27  4:16 ` oreo639
                   ` (42 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-27  4:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 66662 bytes --]

From b2428f73e51856069901ff0792b625624db65db0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/17] binutils: update to 2.41.

---
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     |  6 +--
 2 files changed, 3 insertions(+), 56 deletions(-)
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..cda87c11ab63e 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
 makedepends="zlib-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"

From 4b1190c3e37e4bf00067df5d333d44ac924bbd88 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/17] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ++++++++
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  30 +-
 9 files changed, 452 insertions(+), 277 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 6463e020bb473..9efb30f8064bc 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -61,7 +61,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -853,8 +853,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1686,6 +1686,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
new file mode 100644
index 0000000000000..f9dfee0621553
--- /dev/null
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -0,0 +1,142 @@
+From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
+From: Fangrui Song <i@maskray.me>
+Date: Fri, 28 Apr 2023 09:59:17 -0700
+Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
+
+From Florian Weimer's D144073
+
+> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
+>
+> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
+
+Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
+newer glibc.
+
+For older glibc, msan will not know that an uninstrumented crypt_r call
+initializes `data`, so there is a risk for false positives. However, with some
+codebase survey, I think crypt_r uses are very few and the call sites typically
+have a `memset(&data, 0, sizeof(data));` anyway.
+
+Fix https://github.com/google/sanitizers/issues/1365
+Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
+
+Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
+
+Differential Revision: https://reviews.llvm.org/D149403
+---
+ .../sanitizer_common_interceptors.inc         | 37 -------------------
+ .../sanitizer_platform_interceptors.h         |  2 -
+ .../sanitizer_platform_limits_posix.cpp       |  8 ----
+ .../sanitizer_platform_limits_posix.h         |  1 -
+ .../TestCases/Linux/crypt_r.cpp               | 36 ------------------
+ .../TestCases/Posix/crypt.cpp                 | 32 ----------------
+ 6 files changed, 116 deletions(-)
+ delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
+ delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
+
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+index b30c91f06cfeb0..490a8b12d8b17d 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
++++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
+@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
+ #define INIT_GETRANDOM
+ #endif
+ 
+-#if SANITIZER_INTERCEPT_CRYPT
+-INTERCEPTOR(char *, crypt, char *key, char *salt) {
+-  void *ctx;
+-  COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
+-  char *res = REAL(crypt)(key, salt);
+-  if (res != nullptr)
+-    COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
+-  return res;
+-}
+-#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
+-#else
+-#define INIT_CRYPT
+-#endif
+-
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
+-  void *ctx;
+-  COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
+-  char *res = REAL(crypt_r)(key, salt, data);
+-  if (res != nullptr) {
+-    COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
+-                                   __sanitizer::struct_crypt_data_sz);
+-    COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
+-  }
+-  return res;
+-}
+-#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
+-#else
+-#define INIT_CRYPT_R
+-#endif
+-
+ #if SANITIZER_INTERCEPT_GETENTROPY
+ INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
+   void *ctx;
+@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
+   INIT_GETUSERSHELL;
+   INIT_SL_INIT;
+   INIT_GETRANDOM;
+-  INIT_CRYPT;
+-  INIT_CRYPT_R;
+   INIT_GETENTROPY;
+   INIT_QSORT;
+   INIT_QSORT_R;
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+index eb39fabfd59839..c82ab5c2105621 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
+@@ -569,8 +569,6 @@
+ #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
+ #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
+ #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
+-#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
+-#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
+ 
+ #define SANITIZER_INTERCEPT_GETRANDOM \
+   ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+index a04eed7aa5a6e3..6d61d276d77e35 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
+ 
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
+   unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
+ #endif // SANITIZER_GLIBC
+ 
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
+ #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
+index e6f298c26e1fb6..58244c9944a03a 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
+@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
+ extern unsigned struct_mq_attr_sz;
+ extern unsigned struct_timex_sz;
+ extern unsigned struct_statvfs_sz;
+-extern unsigned struct_crypt_data_sz;
+ #endif  // SANITIZER_LINUX && !SANITIZER_ANDROID
+ 
+ struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 34a3fa62d31b5..8083027f511bf 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=3
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/download/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -187,8 +187,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -675,7 +679,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove usr/lib/lib*san_preinit.o
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From df70394161677a13116d7b497849691484a375c0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 03/17] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From d4cbf79aa7b108824f9c6fb4bcbefb34745a58eb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 04/17] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From c701eeea7529318f1f3cc31e97bf6fbd728d2a6f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 05/17] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From e2ce8b800375a9b08d864204472e4d9375c83a4c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 06/17] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..80750e17c742d 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,15 +3,15 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
 makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel

From 785e5cdaac0507bc99271be5442d7c4977c60830 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 18:16:29 -0800
Subject: [PATCH 07/17] cross-aarch64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 690e27b8adc15..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=6
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 4e627c1570fca1feb37b423b28eade9527599d40 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 18:16:30 -0800
Subject: [PATCH 08/17] cross-arm-linux-gnueabi: rebuild for gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index 7cf232218eedb..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=6
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From a906ec2cd0811308e264b8b75b73a02f569945cb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 18:16:30 -0800
Subject: [PATCH 09/17] cross-arm-linux-gnueabihf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 6cd9d50f7f459..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=6
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 2edeb3a00106c7e852c6065b90f3c29c92db0444 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 18:16:30 -0800
Subject: [PATCH 10/17] cross-armv7l-linux-gnueabihf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index e50363fcb4f75..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=6
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From b42d785ff03cd93bc4083136bc4af7b94757e0f2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 18:16:30 -0800
Subject: [PATCH 11/17] cross-i686-pc-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c6b5319ac5d78..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=6
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 7f7df7bc2c1ca074ffe6f4f279693b08c6eed9a4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 18:16:31 -0800
Subject: [PATCH 12/17] cross-powerpc-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 31578760f17e5..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=6
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From af749d8014d94187f40c7822a116b22b77764ee3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 18:16:31 -0800
Subject: [PATCH 13/17] cross-powerpc64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index cdbd1e26f725d..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=6
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 6f30470a1ac1dc9f8063ad2cf7af9ea36e63e019 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 18:16:31 -0800
Subject: [PATCH 14/17] cross-powerpc64le-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 82dc196a247d5..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=6
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 254eeaeb733194455d80598a09c2e659782824d2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 18:16:32 -0800
Subject: [PATCH 15/17] cross-powerpcle-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 7576278738d95..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=6
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 8f795bc206994640e0a0f5cf69255183cacde5df Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 18:16:32 -0800
Subject: [PATCH 16/17] cross-riscv64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index 5cd6da69c32e8..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=4
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 2a6287b9f137b4fc9336a8b7c8b0348cb60de615 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 18:16:32 -0800
Subject: [PATCH 17/17] cross-x86_64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index 7eabe1625b23e..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=6
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (14 preceding siblings ...)
  2023-12-27  4:15 ` oreo639
@ 2023-12-27  4:16 ` oreo639
  2023-12-27  4:17 ` oreo639
                   ` (41 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-27  4:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 66662 bytes --]

From e9a167926640bd7235020a8a16976991b5f514b0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/17] binutils: update to 2.41.

---
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     |  6 +--
 2 files changed, 3 insertions(+), 56 deletions(-)
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..cda87c11ab63e 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
 makedepends="zlib-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"

From 680527c5368f16f6a06e4f634a9757b8209f2094 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/17] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ++++++++
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  30 +-
 9 files changed, 452 insertions(+), 277 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 6463e020bb473..9efb30f8064bc 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -61,7 +61,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -853,8 +853,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1686,6 +1686,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
new file mode 100644
index 0000000000000..f9dfee0621553
--- /dev/null
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -0,0 +1,142 @@
+From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
+From: Fangrui Song <i@maskray.me>
+Date: Fri, 28 Apr 2023 09:59:17 -0700
+Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
+
+From Florian Weimer's D144073
+
+> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
+>
+> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
+
+Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
+newer glibc.
+
+For older glibc, msan will not know that an uninstrumented crypt_r call
+initializes `data`, so there is a risk for false positives. However, with some
+codebase survey, I think crypt_r uses are very few and the call sites typically
+have a `memset(&data, 0, sizeof(data));` anyway.
+
+Fix https://github.com/google/sanitizers/issues/1365
+Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
+
+Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
+
+Differential Revision: https://reviews.llvm.org/D149403
+---
+ .../sanitizer_common_interceptors.inc         | 37 -------------------
+ .../sanitizer_platform_interceptors.h         |  2 -
+ .../sanitizer_platform_limits_posix.cpp       |  8 ----
+ .../sanitizer_platform_limits_posix.h         |  1 -
+ .../TestCases/Linux/crypt_r.cpp               | 36 ------------------
+ .../TestCases/Posix/crypt.cpp                 | 32 ----------------
+ 6 files changed, 116 deletions(-)
+ delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
+ delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
+
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+index b30c91f06cfeb0..490a8b12d8b17d 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
++++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
+@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
+ #define INIT_GETRANDOM
+ #endif
+ 
+-#if SANITIZER_INTERCEPT_CRYPT
+-INTERCEPTOR(char *, crypt, char *key, char *salt) {
+-  void *ctx;
+-  COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
+-  char *res = REAL(crypt)(key, salt);
+-  if (res != nullptr)
+-    COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
+-  return res;
+-}
+-#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
+-#else
+-#define INIT_CRYPT
+-#endif
+-
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
+-  void *ctx;
+-  COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
+-  char *res = REAL(crypt_r)(key, salt, data);
+-  if (res != nullptr) {
+-    COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
+-                                   __sanitizer::struct_crypt_data_sz);
+-    COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
+-  }
+-  return res;
+-}
+-#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
+-#else
+-#define INIT_CRYPT_R
+-#endif
+-
+ #if SANITIZER_INTERCEPT_GETENTROPY
+ INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
+   void *ctx;
+@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
+   INIT_GETUSERSHELL;
+   INIT_SL_INIT;
+   INIT_GETRANDOM;
+-  INIT_CRYPT;
+-  INIT_CRYPT_R;
+   INIT_GETENTROPY;
+   INIT_QSORT;
+   INIT_QSORT_R;
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+index eb39fabfd59839..c82ab5c2105621 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
+@@ -569,8 +569,6 @@
+ #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
+ #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
+ #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
+-#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
+-#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
+ 
+ #define SANITIZER_INTERCEPT_GETRANDOM \
+   ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+index a04eed7aa5a6e3..6d61d276d77e35 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
+ 
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
+   unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
+ #endif // SANITIZER_GLIBC
+ 
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
+ #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
+index e6f298c26e1fb6..58244c9944a03a 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
+@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
+ extern unsigned struct_mq_attr_sz;
+ extern unsigned struct_timex_sz;
+ extern unsigned struct_statvfs_sz;
+-extern unsigned struct_crypt_data_sz;
+ #endif  // SANITIZER_LINUX && !SANITIZER_ANDROID
+ 
+ struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 34a3fa62d31b5..8083027f511bf 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=3
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/download/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -187,8 +187,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -675,7 +679,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove usr/lib/lib*san_preinit.o
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From e3af749a2ffec7df37c6201e0b0401ecca6ec6fa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 03/17] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From b119f0cfcccdf6790e46fe1dcd4b7b83b2fa5875 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 04/17] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From bd8b6caf34a1f6751ca40858d018265ed5418129 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 05/17] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From 476698fee65f33ebf298bf417ca99c9ef55defb7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 06/17] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..80750e17c742d 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,15 +3,15 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
 makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel

From 0d776180334c739096e5adff4e2818467c57e085 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:16:09 -0800
Subject: [PATCH 07/17] cross-aarch64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 66b55176ce0fb5017e0e284d858da1b0a6efeac0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:16:09 -0800
Subject: [PATCH 08/17] cross-arm-linux-gnueabi: rebuild for gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From c3bfeef81d7a1df1a627c6ed52a96f1f103b8405 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:16:09 -0800
Subject: [PATCH 09/17] cross-arm-linux-gnueabihf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From efd88799720f5597df36427af4747157a52a7289 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:16:09 -0800
Subject: [PATCH 10/17] cross-armv7l-linux-gnueabihf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 07ae44052bddb541ebeb42a74cedbef47fb4a91b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:16:09 -0800
Subject: [PATCH 11/17] cross-i686-pc-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From fa434e398b054e8d87da78467bf9096f364dd4a0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:16:09 -0800
Subject: [PATCH 12/17] cross-powerpc-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 8a3f297461b78fd1866f4c68028c322b6941cbb6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:16:09 -0800
Subject: [PATCH 13/17] cross-powerpc64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 75ff02466728617032fd2a4038995983558cf348 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:16:09 -0800
Subject: [PATCH 14/17] cross-powerpc64le-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 24a1e5f718237161a5b08ab6756bd43bb796bc34 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:16:09 -0800
Subject: [PATCH 15/17] cross-powerpcle-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 805af0bb91f35b99aec3d68f46a2052b7100ba22 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:16:10 -0800
Subject: [PATCH 16/17] cross-riscv64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 9df982c094df7c6655c1a2636d8b32fa10ac2a05 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:16:10 -0800
Subject: [PATCH 17/17] cross-x86_64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (15 preceding siblings ...)
  2023-12-27  4:16 ` oreo639
@ 2023-12-27  4:17 ` oreo639
  2023-12-27  8:51 ` [PR REVIEW] " averyterrel
                   ` (40 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-27  4:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 92537 bytes --]

From e9a167926640bd7235020a8a16976991b5f514b0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/32] binutils: update to 2.41.

---
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     |  6 +--
 2 files changed, 3 insertions(+), 56 deletions(-)
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..cda87c11ab63e 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
 makedepends="zlib-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"

From 680527c5368f16f6a06e4f634a9757b8209f2094 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/32] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ++++++++
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  30 +-
 9 files changed, 452 insertions(+), 277 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 6463e020bb473..9efb30f8064bc 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -61,7 +61,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -853,8 +853,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1686,6 +1686,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
new file mode 100644
index 0000000000000..f9dfee0621553
--- /dev/null
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -0,0 +1,142 @@
+From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
+From: Fangrui Song <i@maskray.me>
+Date: Fri, 28 Apr 2023 09:59:17 -0700
+Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
+
+From Florian Weimer's D144073
+
+> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
+>
+> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
+
+Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
+newer glibc.
+
+For older glibc, msan will not know that an uninstrumented crypt_r call
+initializes `data`, so there is a risk for false positives. However, with some
+codebase survey, I think crypt_r uses are very few and the call sites typically
+have a `memset(&data, 0, sizeof(data));` anyway.
+
+Fix https://github.com/google/sanitizers/issues/1365
+Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
+
+Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
+
+Differential Revision: https://reviews.llvm.org/D149403
+---
+ .../sanitizer_common_interceptors.inc         | 37 -------------------
+ .../sanitizer_platform_interceptors.h         |  2 -
+ .../sanitizer_platform_limits_posix.cpp       |  8 ----
+ .../sanitizer_platform_limits_posix.h         |  1 -
+ .../TestCases/Linux/crypt_r.cpp               | 36 ------------------
+ .../TestCases/Posix/crypt.cpp                 | 32 ----------------
+ 6 files changed, 116 deletions(-)
+ delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
+ delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
+
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+index b30c91f06cfeb0..490a8b12d8b17d 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
++++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
+@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
+ #define INIT_GETRANDOM
+ #endif
+ 
+-#if SANITIZER_INTERCEPT_CRYPT
+-INTERCEPTOR(char *, crypt, char *key, char *salt) {
+-  void *ctx;
+-  COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
+-  char *res = REAL(crypt)(key, salt);
+-  if (res != nullptr)
+-    COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
+-  return res;
+-}
+-#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
+-#else
+-#define INIT_CRYPT
+-#endif
+-
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
+-  void *ctx;
+-  COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
+-  char *res = REAL(crypt_r)(key, salt, data);
+-  if (res != nullptr) {
+-    COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
+-                                   __sanitizer::struct_crypt_data_sz);
+-    COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
+-  }
+-  return res;
+-}
+-#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
+-#else
+-#define INIT_CRYPT_R
+-#endif
+-
+ #if SANITIZER_INTERCEPT_GETENTROPY
+ INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
+   void *ctx;
+@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
+   INIT_GETUSERSHELL;
+   INIT_SL_INIT;
+   INIT_GETRANDOM;
+-  INIT_CRYPT;
+-  INIT_CRYPT_R;
+   INIT_GETENTROPY;
+   INIT_QSORT;
+   INIT_QSORT_R;
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+index eb39fabfd59839..c82ab5c2105621 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
+@@ -569,8 +569,6 @@
+ #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
+ #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
+ #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
+-#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
+-#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
+ 
+ #define SANITIZER_INTERCEPT_GETRANDOM \
+   ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+index a04eed7aa5a6e3..6d61d276d77e35 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
+ 
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
+   unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
+ #endif // SANITIZER_GLIBC
+ 
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
+ #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
+index e6f298c26e1fb6..58244c9944a03a 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
+@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
+ extern unsigned struct_mq_attr_sz;
+ extern unsigned struct_timex_sz;
+ extern unsigned struct_statvfs_sz;
+-extern unsigned struct_crypt_data_sz;
+ #endif  // SANITIZER_LINUX && !SANITIZER_ANDROID
+ 
+ struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 34a3fa62d31b5..8083027f511bf 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=3
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/download/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -187,8 +187,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -675,7 +679,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove usr/lib/lib*san_preinit.o
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From e3af749a2ffec7df37c6201e0b0401ecca6ec6fa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 03/32] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From b119f0cfcccdf6790e46fe1dcd4b7b83b2fa5875 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 04/32] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From bd8b6caf34a1f6751ca40858d018265ed5418129 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 05/32] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From 476698fee65f33ebf298bf417ca99c9ef55defb7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 06/32] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..80750e17c742d 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,15 +3,15 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
 makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel

From 29f7719b56b5078df99dc5dbced1cfe064af4ae0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:21 -0800
Subject: [PATCH 07/32] cross-aarch64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 72377e5ce46ae7e97742b26743d3221a2c641c1b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:21 -0800
Subject: [PATCH 08/32] cross-aarch64-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 0e85490397a9301e07fb5bce0e6cf81566e42176 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:21 -0800
Subject: [PATCH 09/32] cross-arm-linux-gnueabi: rebuild for gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From f13d338df223a1d2528dc82605f01d2912daeaa4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:22 -0800
Subject: [PATCH 10/32] cross-arm-linux-gnueabihf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From f76dd592de24174358ca6c180e30de68e3479d7b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:22 -0800
Subject: [PATCH 11/32] cross-arm-linux-musleabi: rebuild for gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 1420bd22e072253ca02fc472730c24b7c13f644d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:22 -0800
Subject: [PATCH 12/32] cross-arm-linux-musleabihf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 97d611b787518cf5b355c4fbd07af1cc1d3d8096 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:22 -0800
Subject: [PATCH 13/32] cross-armv7l-linux-gnueabihf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 5261f59183d53b7a0aa51e4ecc6a2a377e4d1569 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:23 -0800
Subject: [PATCH 14/32] cross-armv7l-linux-musleabihf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 3fb327ab614974a9abbbd690294572b257a0a0aa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:23 -0800
Subject: [PATCH 15/32] cross-i686-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 33d4e6317bc70e704dd29a214c86ff7746b274a7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:23 -0800
Subject: [PATCH 16/32] cross-i686-pc-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From a1289f63d1e09afea72bd85980ac2c4833765f6e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:23 -0800
Subject: [PATCH 17/32] cross-mips-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 9330d59c6fd8df73944541d8d03a2ef9a3634c90 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:23 -0800
Subject: [PATCH 18/32] cross-mips-linux-muslhf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From f6938a76f7db77a1c4e21b908fb34ffef04cc938 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:24 -0800
Subject: [PATCH 19/32] cross-mipsel-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 8ff4a6e7ff2d1ee1b1844964af0d8dec74c4ffb2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:24 -0800
Subject: [PATCH 20/32] cross-mipsel-linux-muslhf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 812ebac4b7418d19f60cd92a8194533fd893a435 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:24 -0800
Subject: [PATCH 21/32] cross-powerpc-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 1dfd200357da96144b1b1df1e196c95c8cbb983e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:24 -0800
Subject: [PATCH 22/32] cross-powerpc-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 42680e63dd7a7e72c6aa7cf565ef77e4ce9605d8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:25 -0800
Subject: [PATCH 23/32] cross-powerpc64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 350ad143a87739b28fedd9f5b7598d328e28bf30 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:25 -0800
Subject: [PATCH 24/32] cross-powerpc64-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From cfd0c9ae1e937365809287902dcc8fcd4b694a76 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:25 -0800
Subject: [PATCH 25/32] cross-powerpc64le-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 83073505a8b0b1dc83f399d1e751f7b12da90352 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:25 -0800
Subject: [PATCH 26/32] cross-powerpc64le-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From c7822f897117bdd61461531219eec6d839c485e0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:26 -0800
Subject: [PATCH 27/32] cross-powerpcle-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 563378d163d28968a9d7ad9a48715d456f8d1373 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:26 -0800
Subject: [PATCH 28/32] cross-powerpcle-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 2d4fed4ea6df7193f63f4fbf7497dd7e2d68304b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:26 -0800
Subject: [PATCH 29/32] cross-riscv64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 1ab358eca649fc0fc88db474e117c95b5e5e0186 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:26 -0800
Subject: [PATCH 30/32] cross-riscv64-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 54a24ce554e573ae348029ecaf3c9058a8c6099a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:26 -0800
Subject: [PATCH 31/32] cross-x86_64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From aac28616f6af8a825a5b9d8a56809b7056381198 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:27 -0800
Subject: [PATCH 32/32] cross-x86_64-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR REVIEW] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (16 preceding siblings ...)
  2023-12-27  4:17 ` oreo639
@ 2023-12-27  8:51 ` averyterrel
  2023-12-27  9:05 ` [PR PATCH] [Updated] " oreo639
                   ` (39 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: averyterrel @ 2023-12-27  8:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 203 bytes --]

New review comment by averyterrel on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#discussion_r1436854475

Comment:
`${GNU_SITE}/download` should just be `${GNU_SITE}`

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (17 preceding siblings ...)
  2023-12-27  8:51 ` [PR REVIEW] " averyterrel
@ 2023-12-27  9:05 ` oreo639
  2023-12-27  9:05 ` [PR REVIEW] " oreo639
                   ` (38 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-27  9:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 92528 bytes --]

From e9a167926640bd7235020a8a16976991b5f514b0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/32] binutils: update to 2.41.

---
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     |  6 +--
 2 files changed, 3 insertions(+), 56 deletions(-)
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..cda87c11ab63e 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
 makedepends="zlib-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"

From 1ae5a2d0e8f5a57b46073a4a17773446beee4f07 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/32] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ++++++++
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  30 +-
 9 files changed, 452 insertions(+), 277 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 6463e020bb473..9efb30f8064bc 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -61,7 +61,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -853,8 +853,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1686,6 +1686,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
new file mode 100644
index 0000000000000..f9dfee0621553
--- /dev/null
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -0,0 +1,142 @@
+From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
+From: Fangrui Song <i@maskray.me>
+Date: Fri, 28 Apr 2023 09:59:17 -0700
+Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
+
+From Florian Weimer's D144073
+
+> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
+>
+> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
+
+Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
+newer glibc.
+
+For older glibc, msan will not know that an uninstrumented crypt_r call
+initializes `data`, so there is a risk for false positives. However, with some
+codebase survey, I think crypt_r uses are very few and the call sites typically
+have a `memset(&data, 0, sizeof(data));` anyway.
+
+Fix https://github.com/google/sanitizers/issues/1365
+Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
+
+Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
+
+Differential Revision: https://reviews.llvm.org/D149403
+---
+ .../sanitizer_common_interceptors.inc         | 37 -------------------
+ .../sanitizer_platform_interceptors.h         |  2 -
+ .../sanitizer_platform_limits_posix.cpp       |  8 ----
+ .../sanitizer_platform_limits_posix.h         |  1 -
+ .../TestCases/Linux/crypt_r.cpp               | 36 ------------------
+ .../TestCases/Posix/crypt.cpp                 | 32 ----------------
+ 6 files changed, 116 deletions(-)
+ delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
+ delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
+
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+index b30c91f06cfeb0..490a8b12d8b17d 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
++++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
+@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
+ #define INIT_GETRANDOM
+ #endif
+ 
+-#if SANITIZER_INTERCEPT_CRYPT
+-INTERCEPTOR(char *, crypt, char *key, char *salt) {
+-  void *ctx;
+-  COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
+-  char *res = REAL(crypt)(key, salt);
+-  if (res != nullptr)
+-    COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
+-  return res;
+-}
+-#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
+-#else
+-#define INIT_CRYPT
+-#endif
+-
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
+-  void *ctx;
+-  COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
+-  char *res = REAL(crypt_r)(key, salt, data);
+-  if (res != nullptr) {
+-    COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
+-                                   __sanitizer::struct_crypt_data_sz);
+-    COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
+-  }
+-  return res;
+-}
+-#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
+-#else
+-#define INIT_CRYPT_R
+-#endif
+-
+ #if SANITIZER_INTERCEPT_GETENTROPY
+ INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
+   void *ctx;
+@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
+   INIT_GETUSERSHELL;
+   INIT_SL_INIT;
+   INIT_GETRANDOM;
+-  INIT_CRYPT;
+-  INIT_CRYPT_R;
+   INIT_GETENTROPY;
+   INIT_QSORT;
+   INIT_QSORT_R;
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+index eb39fabfd59839..c82ab5c2105621 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
+@@ -569,8 +569,6 @@
+ #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
+ #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
+ #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
+-#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
+-#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
+ 
+ #define SANITIZER_INTERCEPT_GETRANDOM \
+   ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+index a04eed7aa5a6e3..6d61d276d77e35 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
+ 
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
+   unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
+ #endif // SANITIZER_GLIBC
+ 
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
+ #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
+index e6f298c26e1fb6..58244c9944a03a 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
+@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
+ extern unsigned struct_mq_attr_sz;
+ extern unsigned struct_timex_sz;
+ extern unsigned struct_statvfs_sz;
+-extern unsigned struct_crypt_data_sz;
+ #endif  // SANITIZER_LINUX && !SANITIZER_ANDROID
+ 
+ struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 34a3fa62d31b5..d8f17dce9ffb5 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=3
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -187,8 +187,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -675,7 +679,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove usr/lib/lib*san_preinit.o
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From cbe8178da3f8d9d4e0121842ad0917f11aee3e0d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 03/32] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 63d3d86cd2b13ccd72c290872f24720f60c800af Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 04/32] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From 4b85fea423b34d42c3a8d2da00b8cbb49c34efc4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 05/32] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From 4ee9d9c964968063d62102d15c57e9dbf699f94b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 06/32] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..80750e17c742d 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,15 +3,15 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
 makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel

From 93a2c46e308bae825070ac3616a36b251d9abe7d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:21 -0800
Subject: [PATCH 07/32] cross-aarch64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From f00d6f3034ef9df1a5d6172dceed56ec4401397a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:21 -0800
Subject: [PATCH 08/32] cross-aarch64-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 30fc7cb5c50e66b760c102a4071981868c2f8b8a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:21 -0800
Subject: [PATCH 09/32] cross-arm-linux-gnueabi: rebuild for gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 7a30876fae1d77a7722519377e2d644464566011 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:22 -0800
Subject: [PATCH 10/32] cross-arm-linux-gnueabihf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 77704ef9f06f1d10e4dab20b76187c3fa93bda48 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:22 -0800
Subject: [PATCH 11/32] cross-arm-linux-musleabi: rebuild for gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From e58c3d4b112705ffcbb38833444e62fc72e052f7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:22 -0800
Subject: [PATCH 12/32] cross-arm-linux-musleabihf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From bd4f7824d21a3b25bbde150c2d3d41fbaf99011a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:22 -0800
Subject: [PATCH 13/32] cross-armv7l-linux-gnueabihf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 314904b9ace2bee901c82b3fa6c553c64e1841ff Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:23 -0800
Subject: [PATCH 14/32] cross-armv7l-linux-musleabihf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From bf2abb492aa5fd738ec1dcff47af41a9fc532ac2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:23 -0800
Subject: [PATCH 15/32] cross-i686-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 332674030788d50fa2da50ac4d667c39c9d1cb1d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:23 -0800
Subject: [PATCH 16/32] cross-i686-pc-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 3d5eb0b5d68d69a9e1bcf427bb0b00d3ff3366b3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:23 -0800
Subject: [PATCH 17/32] cross-mips-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 1bf2d356536bbfba152b715a1d0cfa84fd3a4b99 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:23 -0800
Subject: [PATCH 18/32] cross-mips-linux-muslhf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From d841ba8fad970a9d378ed5502606dbae2f85ad48 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:24 -0800
Subject: [PATCH 19/32] cross-mipsel-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From c084e2a1612fd8075a39651e0b57ca83aabccf46 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:24 -0800
Subject: [PATCH 20/32] cross-mipsel-linux-muslhf: rebuild for gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 852c3897ed34658c28476cb7c36bca82f37d5f34 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:24 -0800
Subject: [PATCH 21/32] cross-powerpc-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 8811aa2bee077e20f9c842bc929151f00e25778b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:24 -0800
Subject: [PATCH 22/32] cross-powerpc-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From acf5767be8a7038ecb8c72b1caeaee0bdadf872d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:25 -0800
Subject: [PATCH 23/32] cross-powerpc64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 5c1b05de72c6f546a73cd91c22b6bf9e478acb2c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:25 -0800
Subject: [PATCH 24/32] cross-powerpc64-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From b1ae6e3b3f4293dae12f02e8d65cf04f5079c6cd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:25 -0800
Subject: [PATCH 25/32] cross-powerpc64le-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From ab5f63256d27ca6d6ecb4ddfc2a059b497ca600e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:25 -0800
Subject: [PATCH 26/32] cross-powerpc64le-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From d586db99c636336bdd9e03f74c386133a122539c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:26 -0800
Subject: [PATCH 27/32] cross-powerpcle-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From d498c3b59a19417f31c62c66398e61021acdba22 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:26 -0800
Subject: [PATCH 28/32] cross-powerpcle-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 4b452901fdd5585b56cf78e59e0b8a390343812c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:26 -0800
Subject: [PATCH 29/32] cross-riscv64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 78c5e380a8f387a0791f9c12c7d979d66f6cdcb4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:26 -0800
Subject: [PATCH 30/32] cross-riscv64-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From b75bd7f4896c0406f155b99afc1e4c6e47bcf815 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:26 -0800
Subject: [PATCH 31/32] cross-x86_64-linux-gnu: rebuild for gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 2c7bbe1879e17d75732aa6fa3f245d7987274c49 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 26 Dec 2023 20:17:27 -0800
Subject: [PATCH 32/32] cross-x86_64-linux-musl: rebuild for gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR REVIEW] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (18 preceding siblings ...)
  2023-12-27  9:05 ` [PR PATCH] [Updated] " oreo639
@ 2023-12-27  9:05 ` oreo639
  2023-12-27 10:56 ` oreo639
                   ` (37 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-27  9:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 216 bytes --]

New review comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#discussion_r1436863464

Comment:
Thanks, I didn't notice sine the old source was still in my hostdir.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR REVIEW] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (19 preceding siblings ...)
  2023-12-27  9:05 ` [PR REVIEW] " oreo639
@ 2023-12-27 10:56 ` oreo639
  2023-12-28  2:51 ` simvux
                   ` (36 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-27 10:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

New review comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#discussion_r1436863464

Comment:
Thanks, I didn't notice since the old source was still in my hostdir.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (20 preceding siblings ...)
  2023-12-27 10:56 ` oreo639
@ 2023-12-28  2:51 ` simvux
  2023-12-28  3:21 ` oreo639
                   ` (35 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: simvux @ 2023-12-28  2:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 695 bytes --]

New comment by simvux on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1870774867

Comment:
Out of curiosity, what is the process for updating a core package like this? 

It seems that we're bumping the revision for packages to force them to re-build with the new gcc/glibc version. However; how do we know which packages should be rebuilt and which shouldn't? 
Or are we using some sort of script that automatically bumps the revision for anything that depends on a specified package? 

After merge, will there still be packages that are built against the old glibc version but at runtime will link against the new installed glibc version? 

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (21 preceding siblings ...)
  2023-12-28  2:51 ` simvux
@ 2023-12-28  3:21 ` oreo639
  2023-12-28  3:21 ` oreo639
                   ` (34 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-28  3:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 612 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1870786276

Comment:
> It seems that we're bumping the revision for packages to force them to re-build with the new gcc/glibc version. However; how do we know which packages should be rebuilt and which shouldn't?

The libtool and mk-configure hard code gcc paths so they need to be rebuilt for a new gcc.

> After merge, will there still be packages that are built against the old glibc version but at runtime will link against the new installed glibc version?

Yes, that is by design.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (22 preceding siblings ...)
  2023-12-28  3:21 ` oreo639
@ 2023-12-28  3:21 ` oreo639
  2023-12-28  3:21 ` oreo639
                   ` (33 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-28  3:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1870786276

Comment:
> It seems that we're bumping the revision for packages to force them to re-build with the new gcc/glibc version. However; how do we know which packages should be rebuilt and which shouldn't?

libtool and mk-configure hard code gcc paths so they need to be rebuilt for a new gcc.

> After merge, will there still be packages that are built against the old glibc version but at runtime will link against the new installed glibc version?

Yes, that is by design.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (23 preceding siblings ...)
  2023-12-28  3:21 ` oreo639
@ 2023-12-28  3:21 ` oreo639
  2023-12-28  3:22 ` oreo639
                   ` (32 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-28  3:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 616 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1870786276

Comment:
> It seems that we're bumping the revision for packages to force them to re-build with the new gcc/glibc version. However; how do we know which packages should be rebuilt and which shouldn't?

libtool and mk-configure hard code gcc paths and other information so they need to be rebuilt.

> After merge, will there still be packages that are built against the old glibc version but at runtime will link against the new installed glibc version?

Yes, that is by design.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (24 preceding siblings ...)
  2023-12-28  3:21 ` oreo639
@ 2023-12-28  3:22 ` oreo639
  2023-12-28  3:23 ` oreo639
                   ` (31 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-28  3:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 649 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1870786276

Comment:
> It seems that we're bumping the revision for packages to force them to re-build with the new gcc/glibc version. However; how do we know which packages should be rebuilt and which shouldn't?

libtool and mk-configure hard code gcc paths and other information so they need to be rebuilt.

> After merge, will there still be packages that are built against the old glibc version but at runtime will link against the new installed glibc version?

Yes, that is by design. (although this is gcc not glibc)

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (25 preceding siblings ...)
  2023-12-28  3:22 ` oreo639
@ 2023-12-28  3:23 ` oreo639
  2023-12-28  3:30 ` [PR PATCH] [Updated] " oreo639
                   ` (30 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-28  3:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 650 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1870786276

Comment:
> It seems that we're bumping the revision for packages to force them to re-build with the new gcc/glibc version. However; how do we know which packages should be rebuilt and which shouldn't?

libtool and mk-configure hard code gcc paths and other information so they need to be rebuilt.

> After merge, will there still be packages that are built against the old glibc version but at runtime will link against the new installed glibc version?

Yes, that is by design. (although this is gcc, not glibc)

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (26 preceding siblings ...)
  2023-12-28  3:23 ` oreo639
@ 2023-12-28  3:30 ` oreo639
  2023-12-28  3:32 ` oreo639
                   ` (29 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-28  3:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 92476 bytes --]

From 148f36c718fa0038d2e00ae176498b1b1fa36b39 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/32] binutils: update to 2.41.

---
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     |  6 +--
 2 files changed, 3 insertions(+), 56 deletions(-)
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..cda87c11ab63e 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
 makedepends="zlib-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"

From fc8f119f4243704c9f99ddfdcff7c8c712f920cd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/32] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch | 142 ++++++++
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  30 +-
 9 files changed, 452 insertions(+), 277 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 6463e020bb473..9efb30f8064bc 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -61,7 +61,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -853,8 +853,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1686,6 +1686,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
new file mode 100644
index 0000000000000..f9dfee0621553
--- /dev/null
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -0,0 +1,142 @@
+From d7bead833631486e337e541e692d9b4a1ca14edd Mon Sep 17 00:00:00 2001
+From: Fangrui Song <i@maskray.me>
+Date: Fri, 28 Apr 2023 09:59:17 -0700
+Subject: [PATCH] [sanitizer] Remove crypt and crypt_r interceptors
+
+From Florian Weimer's D144073
+
+> On GNU/Linux (glibc), the crypt and crypt_r functions are not part of the main shared object (libc.so.6), but libcrypt (with multiple possible sonames). The sanitizer libraries do not depend on libcrypt, so it can happen that during sanitizer library initialization, no real implementation will be found because the crypt, crypt_r functions are not present in the process image (yet). If its interceptors are called nevertheless, this results in a call through a null pointer when the sanitizer library attempts to forward the call to the real implementation.
+>
+> Many distributions have already switched to libxcrypt, a library that is separate from glibc and that can be build with sanitizers directly (avoiding the need for interceptors). This patch disables building the interceptor for glibc targets.
+
+Let's remove crypt and crypt_r interceptors (D68431) to fix issues with
+newer glibc.
+
+For older glibc, msan will not know that an uninstrumented crypt_r call
+initializes `data`, so there is a risk for false positives. However, with some
+codebase survey, I think crypt_r uses are very few and the call sites typically
+have a `memset(&data, 0, sizeof(data));` anyway.
+
+Fix https://github.com/google/sanitizers/issues/1365
+Related: https://bugzilla.redhat.com/show_bug.cgi?id=2169432
+
+Reviewed By: #sanitizers, fweimer, thesamesam, vitalybuka
+
+Differential Revision: https://reviews.llvm.org/D149403
+---
+ .../sanitizer_common_interceptors.inc         | 37 -------------------
+ .../sanitizer_platform_interceptors.h         |  2 -
+ .../sanitizer_platform_limits_posix.cpp       |  8 ----
+ .../sanitizer_platform_limits_posix.h         |  1 -
+ .../TestCases/Linux/crypt_r.cpp               | 36 ------------------
+ .../TestCases/Posix/crypt.cpp                 | 32 ----------------
+ 6 files changed, 116 deletions(-)
+ delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
+ delete mode 100644 compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp
+
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
+index b30c91f06cfeb0..490a8b12d8b17d 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
++++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc
+@@ -10086,41 +10086,6 @@ INTERCEPTOR(SSIZE_T, getrandom, void *buf, SIZE_T buflen, unsigned int flags) {
+ #define INIT_GETRANDOM
+ #endif
+ 
+-#if SANITIZER_INTERCEPT_CRYPT
+-INTERCEPTOR(char *, crypt, char *key, char *salt) {
+-  void *ctx;
+-  COMMON_INTERCEPTOR_ENTER(ctx, crypt, key, salt);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
+-  char *res = REAL(crypt)(key, salt);
+-  if (res != nullptr)
+-    COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
+-  return res;
+-}
+-#define INIT_CRYPT COMMON_INTERCEPT_FUNCTION(crypt);
+-#else
+-#define INIT_CRYPT
+-#endif
+-
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-INTERCEPTOR(char *, crypt_r, char *key, char *salt, void *data) {
+-  void *ctx;
+-  COMMON_INTERCEPTOR_ENTER(ctx, crypt_r, key, salt, data);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, key, internal_strlen(key) + 1);
+-  COMMON_INTERCEPTOR_READ_RANGE(ctx, salt, internal_strlen(salt) + 1);
+-  char *res = REAL(crypt_r)(key, salt, data);
+-  if (res != nullptr) {
+-    COMMON_INTERCEPTOR_WRITE_RANGE(ctx, data,
+-                                   __sanitizer::struct_crypt_data_sz);
+-    COMMON_INTERCEPTOR_INITIALIZE_RANGE(res, internal_strlen(res) + 1);
+-  }
+-  return res;
+-}
+-#define INIT_CRYPT_R COMMON_INTERCEPT_FUNCTION(crypt_r);
+-#else
+-#define INIT_CRYPT_R
+-#endif
+-
+ #if SANITIZER_INTERCEPT_GETENTROPY
+ INTERCEPTOR(int, getentropy, void *buf, SIZE_T buflen) {
+   void *ctx;
+@@ -10698,8 +10663,6 @@ static void InitializeCommonInterceptors() {
+   INIT_GETUSERSHELL;
+   INIT_SL_INIT;
+   INIT_GETRANDOM;
+-  INIT_CRYPT;
+-  INIT_CRYPT_R;
+   INIT_GETENTROPY;
+   INIT_QSORT;
+   INIT_QSORT_R;
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
+index eb39fabfd59839..c82ab5c2105621 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_interceptors.h
+@@ -569,8 +569,6 @@
+ #define SANITIZER_INTERCEPT_FDEVNAME SI_FREEBSD
+ #define SANITIZER_INTERCEPT_GETUSERSHELL (SI_POSIX && !SI_ANDROID)
+ #define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
+-#define SANITIZER_INTERCEPT_CRYPT (SI_POSIX && !SI_ANDROID)
+-#define SANITIZER_INTERCEPT_CRYPT_R (SI_LINUX && !SI_ANDROID)
+ 
+ #define SANITIZER_INTERCEPT_GETRANDOM \
+   ((SI_LINUX && __GLIBC_PREREQ(2, 25)) || SI_FREEBSD)
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+index a04eed7aa5a6e3..6d61d276d77e35 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
+ 
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
+   unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
+ #endif // SANITIZER_GLIBC
+ 
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
+ #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
+index e6f298c26e1fb6..58244c9944a03a 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
++++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
+@@ -309,7 +309,6 @@ extern unsigned struct_msqid_ds_sz;
+ extern unsigned struct_mq_attr_sz;
+ extern unsigned struct_timex_sz;
+ extern unsigned struct_statvfs_sz;
+-extern unsigned struct_crypt_data_sz;
+ #endif  // SANITIZER_LINUX && !SANITIZER_ANDROID
+ 
+ struct __sanitizer_iovec {
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index 34a3fa62d31b5..d8f17dce9ffb5 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=3
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -187,8 +187,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -675,7 +679,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove usr/lib/lib*san_preinit.o
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From 2c521e835988f2291e422a0cf133177207e13b47 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 03/32] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 2bda43adee06b702cb35b5003e600ac8a0f7f1ab Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 04/32] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From ca62f00c10857e1d92ec05e19e01df4fde6567b1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 05/32] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From 5b141b1bd04e7fa796ea29cf91f52fa3a98bf58e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 06/32] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..80750e17c742d 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,15 +3,15 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
 makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel

From 1942893186bd14382e66ef97b3945cfb7d5b0a91 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 07/32] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From b814241885aa06389f901c3a868cc5b6d75a96e7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 08/32] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 84f8cc6e4864bc2360a19762e17fdfa21e36af08 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 09/32] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 60e033ebe2d01915d1f56b670dd75ebf65d00196 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 10/32] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From b9c36fd48b4e0e520aad1d16e3117f314df1053a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 11/32] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From af65dfaf61e0e7112299cd6ac9734c7c78e3acd8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 12/32] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 21f76287d81a9d007ab0fa37c4ff74079d3eca83 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 13/32] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 16705c99bef701d1c6e8d38937ed2cf7e22902a5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 14/32] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 9bb817859f78f35aa2799ccd3d47d916e536dcd6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 15/32] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From e6414d889fc9058933c1a75f79350b467b9e7fdb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 16/32] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From d76358dbc2c895fa05f0c05ed95919f18041ad42 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 17/32] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From e7059cf14144e0b8bc4e80fdd4a5b91294e7781b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 18/32] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 3e9f568992142b776cd0362d5e1d5ab0d7d08eb8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 19/32] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 48b92d1b44df3bbfd4cfa52fcaf9e73693f58bf1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 20/32] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 404a6f13ee5c83ca8eb0eb8cf9563c4d163815a9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 21/32] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 15c372b62fc896312a17257c798076bc50b02786 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 22/32] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 111d0b4b1347c851b4a702fef8feed1e2c46dad2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 23/32] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 2403cad671d92ed55ccc6551208aa0e713720f79 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 24/32] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 63f3eafbdab2b44931494901e2e425c6918fd2aa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 25/32] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 588455c209278deb9b864f198e01207c3c1e7dba Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 26/32] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From fef67a82ac5361fc05b9ba2fbd2103bf61e8515f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 27/32] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From db29b971b7cf0acb6cdc29f8d6035a54ac5ca313 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 28/32] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 419e63f17826f1f28743efb6da3c4f5e61df323f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 29/32] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From c0e8e663c62a538f18e1200e22969879c09d1b5a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 30/32] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 69be375f0e5232e7b2381d8d0a3dc48e4b0a7d49 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 31/32] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From adc5956d3b5e78bc1f77e5f6e66015486a8bb51f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 32/32] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (27 preceding siblings ...)
  2023-12-28  3:30 ` [PR PATCH] [Updated] " oreo639
@ 2023-12-28  3:32 ` oreo639
  2023-12-29  1:27 ` [PR PATCH] [Updated] " oreo639
                   ` (28 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-28  3:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 757 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1870786276

Comment:
> It seems that we're bumping the revision for packages to force them to re-build with the new gcc/glibc version. However; how do we know which packages should be rebuilt and which shouldn't?

libtool and mk-configure hard code gcc paths and other information so they need to be rebuilt.

> After merge, will there still be packages that are built against the old glibc version but at runtime will link against the new installed glibc version?

Yes, that is by design. (although this is gcc, not glibc)

The reason the glibc stuff had to be rebuilt was because libcrypt.so.1 was no longer provided by glibc.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (28 preceding siblings ...)
  2023-12-28  3:32 ` oreo639
@ 2023-12-29  1:27 ` oreo639
  2024-01-10 16:12 ` dataCobra
                   ` (27 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2023-12-29  1:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 94288 bytes --]

From ebaa9f4ec270c8d0d517c1be5ba338d95eeb6233 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/32] binutils: update to 2.41.

---
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     |  6 +--
 2 files changed, 3 insertions(+), 56 deletions(-)
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..cda87c11ab63e 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
 makedepends="zlib-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"

From 6fcee5d6d1b12ca041fc2cde7bf6bc07cbf7c940 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/32] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch | 125 -------
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  30 +-
 10 files changed, 328 insertions(+), 414 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
 delete mode 100644 srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch

diff --git a/common/shlibs b/common/shlibs
index 6463e020bb473..9efb30f8064bc 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -61,7 +61,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -853,8 +853,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1686,6 +1686,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
deleted file mode 100644
index 2091ca69a401c..0000000000000
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ /dev/null
@@ -1,125 +0,0 @@
---- a/libstdc++-v3/python/libstdcxx/v6/printers.py
-+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
-@@ -1198,7 +1198,7 @@
- 
-     def __init__ (self, typename, val):
-         self.typename = strip_versioned_namespace(typename)
--        self.typename = re.sub('^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-+        self.typename = re.sub(r'^std::experimental::fundamentals_v\d::', 'std::experimental::', self.typename, 1)
-         self.val = val
-         self.contained_type = None
-         contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
-@@ -1246,7 +1246,7 @@
-     def __init__ (self, typename, val):
-         valtype = self._recognize (val.type.template_argument(0))
-         typename = strip_versioned_namespace(typename)
--        self.typename = re.sub('^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-+        self.typename = re.sub(r'^std::(experimental::|)(fundamentals_v\d::|)(.*)', r'std::\1\3<%s>' % valtype, typename, 1)
-         payload = val['_M_payload']
-         if self.typename.startswith('std::experimental'):
-             engaged = val['_M_engaged']
-diff '--color=auto' -Naur a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
---- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py	2022-08-19 08:09:55.524700157 +0000
-+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py	2023-12-09 21:06:42.544909771 +0000
-@@ -148,7 +148,7 @@
-         self.methods = [self._method_dict[m] for m in self._method_dict]
- 
-     def match(self, class_type, method_name):
--        if not re.match('^std::(__\d+::)?array<.*>$', class_type.tag):
-+        if not re.match(r'^std::(__\d+::)?array<.*>$', class_type.tag):
-             return None
-         method = self._method_dict.get(method_name)
-         if method is None or not method.enabled:
-@@ -265,7 +265,7 @@
-         self.methods = [self._method_dict[m] for m in self._method_dict]
- 
-     def match(self, class_type, method_name):
--        if not re.match('^std::(__\d+::)?deque<.*>$', class_type.tag):
-+        if not re.match(r'^std::(__\d+::)?deque<.*>$', class_type.tag):
-             return None
-         method = self._method_dict.get(method_name)
-         if method is None or not method.enabled:
-@@ -309,7 +309,7 @@
-         self.methods = [self._method_dict[m] for m in self._method_dict]
- 
-     def match(self, class_type, method_name):
--        if not re.match('^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-+        if not re.match(r'^std::(__\d+::)?forward_list<.*>$', class_type.tag):
-             return None
-         method = self._method_dict.get(method_name)
-         if method is None or not method.enabled:
-@@ -390,7 +390,7 @@
-         self.methods = [self._method_dict[m] for m in self._method_dict]
- 
-     def match(self, class_type, method_name):
--        if not re.match('^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-+        if not re.match(r'^std::(__\d+::)?(__cxx11::)?list<.*>$', class_type.tag):
-             return None
-         method = self._method_dict.get(method_name)
-         if method is None or not method.enabled:
-@@ -505,7 +505,7 @@
-         self.methods = [self._method_dict[m] for m in self._method_dict]
- 
-     def match(self, class_type, method_name):
--        if not re.match('^std::(__\d+::)?vector<.*>$', class_type.tag):
-+        if not re.match(r'^std::(__\d+::)?vector<.*>$', class_type.tag):
-             return None
-         method = self._method_dict.get(method_name)
-         if method is None or not method.enabled:
-@@ -554,7 +554,7 @@
-         self.methods = [self._method_dict[m] for m in self._method_dict]
- 
-     def match(self, class_type, method_name):
--        if not re.match('^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-+        if not re.match(r'^std::(__\d+::)?%s<.*>$' % self._name, class_type.tag):
-             return None
-         method = self._method_dict.get(method_name)
-         if method is None or not method.enabled:
-@@ -587,9 +587,9 @@
-     def __call__(self, obj):
-         impl_type = obj.dereference().type.fields()[0].type.tag
-         # Check for new implementations first:
--        if re.match('^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-+        if re.match(r'^std::(__\d+::)?__uniq_ptr_(data|impl)<.*>$', impl_type):
-             tuple_member = obj['_M_t']['_M_t']
--        elif re.match('^std::(__\d+::)?tuple<.*>$', impl_type):
-+        elif re.match(r'^std::(__\d+::)?tuple<.*>$', impl_type):
-             tuple_member = obj['_M_t']
-         else:
-             return None
-@@ -651,7 +651,7 @@
-         self.methods = [self._method_dict[m] for m in self._method_dict]
- 
-     def match(self, class_type, method_name):
--        if not re.match('^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-+        if not re.match(r'^std::(__\d+::)?unique_ptr<.*>$', class_type.tag):
-             return None
-         method = self._method_dict.get(method_name)
-         if method is None or not method.enabled:
-@@ -720,7 +720,7 @@
- 
-     def __call__(self, obj, index):
-         # Check bounds if _elem_type is an array of known bound
--        m = re.match('.*\[(\d+)]$', str(self._elem_type))
-+        m = re.match(r'.*\[(\d+)]$', str(self._elem_type))
-         if m and index >= int(m.group(1)):
-             raise IndexError('shared_ptr<%s> index "%d" should not be >= %d.' %
-                              (self._elem_type, int(index), int(m.group(1))))
-@@ -769,7 +769,7 @@
-         self.methods = [self._method_dict[m] for m in self._method_dict]
- 
-     def match(self, class_type, method_name):
--        if not re.match('^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-+        if not re.match(r'^std::(__\d+::)?shared_ptr<.*>$', class_type.tag):
-             return None
-         method = self._method_dict.get(method_name)
-         if method is None or not method.enabled:
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..d8f17dce9ffb5 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -187,8 +187,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -675,7 +679,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove usr/lib/lib*san_preinit.o
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From 7818f124a84d504794b325f6cdb366dac0ea29d0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 03/32] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 4800c538021771872d2aa7851b8dee81d68f52c8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 04/32] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From 16c1c0c60e05bd0a3bc55829b3c891cab6d553f4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 05/32] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From ab41417d50b402f149742e7c140bbf19d1eb3f76 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 06/32] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..80750e17c742d 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,15 +3,15 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
 makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel

From 245998e8efcc8b4e79d58b66d026e2b4ccb94344 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 07/32] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 96c22810480a68d8a575a5d6020cb0bc7d4ac95e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 08/32] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 885324902f5af9b9a9f40e47567ff7ac959c619a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 09/32] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From c66ed8bd91827bde0e7afd8904fe56734e41f288 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 10/32] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 4c979da73d007cfaecae9d83e01b0072a9e9b8a0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 11/32] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From ba258795e72be737cd13bbea11bb90afbf0ba38a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 12/32] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From a3c876953f7ed6c796eaca941220e86e7c22f28e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 13/32] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 8a5f2ed4898168e8531ad5b06c85fd80f2715baf Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 14/32] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 16a0047257054ab94b0813b9bb023ac27f3bff77 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 15/32] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From b3592269bbdbc24c29d55b19dde982b5f03735b6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 16/32] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 9af0f87be984a789a1b9c4714ff776053e0c1a6b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 17/32] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 8f783aa062dea9e7fcd245888a368c18326884d7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 18/32] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 6164befe4a47d07636f47904452070d6b1b0e061 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 19/32] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 9e951415933e574adc2a6f647119f5cf69c8729a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 20/32] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 28a9a7b6d35d1ca9c91a8bd1ddb549289489f22c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 21/32] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 54a737d2b151d4f12da67f2e3a22105b6db44052 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 22/32] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 3f9c5f3611f062e364b5b722ccc72b184c33ae3b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 23/32] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 114f08a9ae679bb8a4aca844dd80911f7ce54ef9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 24/32] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From e27895fe87dbb83234ead536d08e4eac3fdaeb26 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 25/32] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From fdafb54e4fa7013a0d3c82e29172943515800614 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 26/32] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 950cab6b79646196fed86b7c5a1c5e346b38cc78 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 27/32] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 9851b18ce2b0837a5c313f34b30f548faf667c46 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 28/32] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 48cb9bb087ae482c39ec1974b2f7a97fa16210bc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 29/32] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From caa8bb6183682aac85b5b46c796044f625479216 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 30/32] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 45918b3afb158983040e1b5801ed33b8b0389447 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 31/32] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 4dcd50bf54fbafb99689f2553b6c7c0bd8eef5b7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 32/32] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (29 preceding siblings ...)
  2023-12-29  1:27 ` [PR PATCH] [Updated] " oreo639
@ 2024-01-10 16:12 ` dataCobra
  2024-01-11  0:45 ` 22h49
                   ` (26 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: dataCobra @ 2024-01-10 16:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 274 bytes --]

New comment by dataCobra on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1885159206

Comment:
Hey,

is there any way one can assist you with this?

I'm not familiar with gcc but maybe there are other ways to support you.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (30 preceding siblings ...)
  2024-01-10 16:12 ` dataCobra
@ 2024-01-11  0:45 ` 22h49
  2024-01-16 14:39 ` [PR PATCH] [Updated] " oreo639
                   ` (25 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: 22h49 @ 2024-01-11  0:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

New comment by 22h49 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1885998444

Comment:
Hi, I second the commenter above me

I'm also willing to help if there's any help needed, have experience with void templates.

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (31 preceding siblings ...)
  2024-01-11  0:45 ` 22h49
@ 2024-01-16 14:39 ` oreo639
  2024-01-16 14:40 ` oreo639
                   ` (24 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-16 14:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 88994 bytes --]

From 45cb74c421b3bbdeeb6518479759190b8196d81c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/32] binutils: update to 2.41.

---
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     |  6 +--
 2 files changed, 3 insertions(+), 56 deletions(-)
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..cda87c11ab63e 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
 makedepends="zlib-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"

From 87613ae1aaa67b015baa17704a09d08b634824de Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/32] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  30 +-
 10 files changed, 337 insertions(+), 298 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 27fa3b59ca68d..dcaa9ce42499d 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -62,7 +62,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -854,8 +854,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1687,6 +1687,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..d8f17dce9ffb5 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -187,8 +187,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -675,7 +679,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove usr/lib/lib*san_preinit.o
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From 5f57470e576d7b3ce3a506d3c829f531ac046381 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 03/32] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 5d5d3d06e404867641491007c9b93e288b868339 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 04/32] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From c1f091630e6268b9cf8d1a61c43bff372a632880 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 05/32] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From 9b01290c0928d24bc1924632aaac3233a8dec558 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 06/32] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..80750e17c742d 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,15 +3,15 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
 makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel

From 90ad20302def151ed8875bb0f56f67558df0cd7c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 07/32] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From a7f04f8e9619870d973aa4f3e494459aec7d62ad Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 08/32] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 04161f4c36304afa4c605de177e70e5d594772cd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 09/32] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 2f7439891a6f8adb3147bec97e6f653144988ab1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 10/32] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From a33ded96e60946322e0a328e5e832b34836fd3d3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 11/32] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From f2fa23cd0bd8ccd28ca1ef5e6596a3068833e9ad Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 12/32] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From d04ff370dca311d6abe4a8ee2d748ccfdaa4d0c1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 13/32] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From d9d58ef33984e5fa6cb03a8691239c486d4fa149 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 14/32] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From d7df198b6096a6ddee81939547378e225c9e5f7d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 15/32] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 55a9ebe4ff66b28c4860c8930adeaa8efeb8325c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 16/32] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From e443a1079f78d118d2b159133d0ac5d1bc23bcbd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 17/32] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 2aed8d1ab32c9b8e49bba3cd880ef2e700dbb471 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 18/32] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 2327d44966c098d7b00f40e22dc3ac5e7be10be9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 19/32] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 669a76a917310ec9d7b9f4bb207344db8428e08f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 20/32] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From e8a9c777f04101579d807a21930662f9a23f5ee7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 21/32] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 36df3841984b602e091191838a40f9ce031c62af Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 22/32] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 45365baab2c3d92c485aa1dc708f1c8c049364d7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 23/32] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From faeb26fb47ef6b492fe619e0da2299598197e121 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 24/32] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 9cef57bfeffe9720ad6d3779e6be00f70210dabd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 25/32] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 6bae11a15d07a61d86865340db168e473688a313 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 26/32] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 92c67f1711429b55bbea118ff3469f6a20dce916 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 27/32] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 25d91a6979fd9f64aaf6299a0087ed15915f1428 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 28/32] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From bec0e9c2acad48cc40aa449dfc8814eafdd99855 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 29/32] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From dcdeb1a8e69946a73396a6b056c40b8cf605e4cd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 30/32] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 02163d720dc3755cdda4497277e92e142fc4fce0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 31/32] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From fa53122f92fd9a81e4670796f492975d269a9bae Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 32/32] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (32 preceding siblings ...)
  2024-01-16 14:39 ` [PR PATCH] [Updated] " oreo639
@ 2024-01-16 14:40 ` oreo639
  2024-01-17 18:21 ` Calandracas606
                   ` (23 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-16 14:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 88994 bytes --]

From 779cb173ed33f57f4baac87915e120af14802e78 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/32] binutils: update to 2.41.

---
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     |  6 +--
 2 files changed, 3 insertions(+), 56 deletions(-)
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..cda87c11ab63e 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
 makedepends="zlib-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"

From e429e15dfc3124e13382fa2a701c2fb85b82cc5e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/32] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  30 +-
 10 files changed, 337 insertions(+), 298 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index d3e2fafb0e0f4..18d9f748fbf4b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -62,7 +62,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -854,8 +854,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1687,6 +1687,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..d8f17dce9ffb5 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -187,8 +187,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -675,7 +679,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove usr/lib/lib*san_preinit.o
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From 863fb6cc8ab467610c44c39615ded81dfd5a2063 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 03/32] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 707a6fd3b51a888e9c209c90ed1fbe4ec10ae521 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 04/32] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From 978b69566febdeae0eec133ddf7a96b6cdf28d54 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 05/32] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From 26fad34368cde88386308e590ebc78e001e01032 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 06/32] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..80750e17c742d 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,15 +3,15 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
 makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel

From b2474d0ef3c4f14960481d034c0ed897ec5cf1cd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 07/32] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 8ffbd3551bfeb438a31fd6fd97c2686d388833e6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 08/32] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 03f2d5844fbf05eb3c94c7bb99d2b92c4b8ea13e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 09/32] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 1fbef70ce7b5cf5c246984ee93c5d7c4f0872491 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 10/32] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 0020142364b479659fdd9747818d38488365586b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 11/32] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 164e1139664aa1a997f309d8d4338574750ebe2d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 12/32] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 111c6169a9f0dbbc3569b35002d397af314572df Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 13/32] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From e8ba5f9977ff726a2b81011f35244d516f7f5df9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 14/32] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From c64f4a889da873c7379c37bdec28923331a3b125 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 15/32] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 5172c1125e24e945845362145316f5599a72b273 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 16/32] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 04dae295a30413eb6cdaa1e7a83ff91ab6014228 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 17/32] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 289dcf7aad605f70d7156d23c2f45e9e95c834a3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 18/32] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From cd1284969307cf135f024eb20c993a465f802e4b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 19/32] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 7a9f41b5879153bdb3d257fbf583b5127cfcdb51 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 20/32] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From c07701df7eed88ac29cfb3ab197fbe1492d0e136 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 21/32] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From a5199bb73bdd48efbe31e9bba77bcd499aee079d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 22/32] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From e173e37ceddefb8226671f09906c90b03052d781 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 23/32] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 801852b89ccf04015245fe650560daf29c608ecc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 24/32] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From f3357ac33f393714cf32642b135ec29ca27a057a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 25/32] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 119a0dffc5657c025c7bf9c8cdf65a4bddaa9c8d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 26/32] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 1822f411924efea2187b1cdbd590fc1dae55033d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 27/32] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From ef045a5a355f919036861983f74a8cd706572785 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 28/32] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From c030ee76aa8f15f6c40264309856c2eafdf805e7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 29/32] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 923f19432a373371fd48c5fb472bce7678468177 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 30/32] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From a2bc4bd365d547a85cbe5479213504ad538cc801 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 31/32] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 57dac62d118211215c86dfc2ca18953e2335dc4b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 32/32] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (33 preceding siblings ...)
  2024-01-16 14:40 ` oreo639
@ 2024-01-17 18:21 ` Calandracas606
  2024-01-17 18:48 ` Calandracas606
                   ` (22 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: Calandracas606 @ 2024-01-17 18:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 686 bytes --]

New comment by Calandracas606 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1896371502

Comment:
Trying to build cross-armv7l-linux-gnueabihf on x86_64-musl and getting a linker error.

```
/builddir/cross-armv7l-linux-gnueabihf-0.36/build_root/usr/bin/../lib/gcc/armv7l-linux-gnueabihf/13.2.0/../../../../armv7l-linux-gnueabihf/bin/ld: cannot find -lstdc++: No such file or directory
/builddir/cross-armv7l-linux-gnueabihf-0.36/build_root/usr/bin/../lib/gcc/armv7l-linux-gnueabihf/13.2.0/../../../../armv7l-linux-gnueabihf/bin/ld: cannot find -lgcc_s: No such file or directory
```

is a source bootstrap of masterdir needed? 

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (34 preceding siblings ...)
  2024-01-17 18:21 ` Calandracas606
@ 2024-01-17 18:48 ` Calandracas606
  2024-01-17 23:07 ` oreo639
                   ` (21 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: Calandracas606 @ 2024-01-17 18:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 797 bytes --]

New comment by Calandracas606 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1896371502

Comment:
Trying to build cross-armv7l-linux-gnueabihf on x86_64-musl and getting a linker error.

```
/builddir/cross-armv7l-linux-gnueabihf-0.36/build_root/usr/bin/../lib/gcc/armv7l-linux-gnueabihf/13.2.0/../../../../armv7l-linux-gnueabihf/bin/ld: cannot find -lstdc++: No such file or directory
/builddir/cross-armv7l-linux-gnueabihf-0.36/build_root/usr/bin/../lib/gcc/armv7l-linux-gnueabihf/13.2.0/../../../../armv7l-linux-gnueabihf/bin/ld: cannot find -lgcc_s: No such file or directory
```

is a source bootstrap of masterdir needed? 

Edit: nevermind. Was able to build after building gcc with -N, zapping masterdir, then binary-bootstrapping

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (35 preceding siblings ...)
  2024-01-17 18:48 ` Calandracas606
@ 2024-01-17 23:07 ` oreo639
  2024-01-17 23:31 ` oreo639
                   ` (20 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-17 23:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 509 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1897343231

Comment:
> Trying to build cross-armv7l-linux-gnueabihf on x86_64-musl and getting a linker error

cross compilers cannot be built in a masterdir where cross compilers are currently installed (xbps-src doesn't uninstall the cross compilers).

You should be able to just use
```
./xbps-src -m masterdir-cross binary-bootstrap
./xbps-src -m masterdir-cross pkg <pkg>
```

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (36 preceding siblings ...)
  2024-01-17 23:07 ` oreo639
@ 2024-01-17 23:31 ` oreo639
  2024-01-18  7:43 ` [PR PATCH] [Updated] " oreo639
                   ` (19 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-17 23:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 592 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1897343231

Comment:
> Trying to build cross-armv7l-linux-gnueabihf on x86_64-musl and getting a linker error

cross compilers cannot be built in a masterdir where cross compilers are currently installed (xbps-src doesn't uninstall the cross compilers).

You should be able to just use
```
./xbps-src -m masterdir-cross binary-bootstrap
./xbps-src -m masterdir-cross pkg <pkg>
```
Or, as you did, delete the masterdir and binary-bootstrap. (`-N` isn't necessary)

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (37 preceding siblings ...)
  2024-01-17 23:31 ` oreo639
@ 2024-01-18  7:43 ` oreo639
  2024-01-19  1:46 ` oreo639
                   ` (18 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-18  7:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 96424 bytes --]

From 039a09a22982aaa557facf9c25db0659edee4fdf Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/36] binutils: update to 2.41.

---
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     |  6 +--
 2 files changed, 3 insertions(+), 56 deletions(-)
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..cda87c11ab63e 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,7 +1,7 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
 makedepends="zlib-devel"
@@ -10,7 +10,7 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"

From 7e449c00c1b3aad166d45dc71cae979ec859ac70 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/36] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  30 +-
 10 files changed, 337 insertions(+), 298 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 9e6d29c73341e..4c2ad55720bc0 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -62,7 +62,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -851,8 +851,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1668,6 +1668,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..d8f17dce9ffb5 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -187,8 +187,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -675,7 +679,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove usr/lib/lib*san_preinit.o
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From 37e37323cd1d2e311445a115462c9cd00305be41 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 03/36] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 2635cd3807b91ce0ff21bc1b9fc50e8ab7ac13b9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 04/36] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From d7c1c0f569f6a69f5d126db2daeef766cde549d5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 05/36] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From d123133474d425806b9e4606cd515fd3e7601c7c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 06/36] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..80750e17c742d 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,15 +3,15 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
 makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel

From c2cb8d089fba0ad205961127968d40f1f48fa09d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 07/36] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From dc8ba0f023774b809be8ff2b11f5cbe4cddd7a0e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 08/36] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From e79e46b416b01e0892274e858587f6a7a045ac2a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 09/36] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 1ab0f667bd9f470874292952af65dbd7c55be378 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 10/36] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 7a5fe838dabd0db8eaff7a3289bc8384167c48ac Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 11/36] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 6ebac223cb37cced496bcdc412f027f39a447c04 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 12/36] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From e07b12de329d1a9065c26d8e896601987fcf3a78 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 13/36] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From c7c4f03db5f534920c6b3e84d5d0a3c4f8d2d7cc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 14/36] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 70309bed0daa025b11ac5be9ec18b9b1589c97d7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 15/36] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 5de35643de7fe1c95c5bf520da7fef7dc8987759 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 16/36] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 1861c66f08434604f2460951808337472f3e3003 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 17/36] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From d9c605219faa50ac89d2384c580c9198d1ebd1b0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 18/36] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From fd9abefc09640ddb49cb51b0c2909570605a039e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 19/36] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From d91966e7bd3257abd6caf617cad409a9dec2d952 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 20/36] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 3b004255e045a500e08fc6950c84844e9f072d0d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 21/36] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 3117c7b1aedbe98464a765a1c92819b0466e18a0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 22/36] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 27a68ade9faec2128ed48af1d177a4034cdaff9f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 23/36] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 08c2d5d384b5110dd83030b57ef3ae8b7f7c0919 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 24/36] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From d77eff260ab211040687e00592b911ac43815190 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 25/36] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 686427f843acf2aad02715339b235320f5ebd687 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 26/36] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From c9870046d5ba441c1e2cb2639e88301a166aa20a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 27/36] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From b956079d88239b1308914eee842a9fca4789cc4d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 28/36] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 90bf9da622381cf355287ab644534fb3f9436d53 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 29/36] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 9d067f8b89d99bcacc4a6dc438c20648342f5dda Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 30/36] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 0088f17376fdfd3d44ec4af1fa80d0f2da0e3c3b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 31/36] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 61c77f7f093cb23b509d716f60f917d7ca759f8e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 32/36] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From a8fbfd33f48fe705223e816d3e81afc6a6c4f914 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:20:55 -0800
Subject: [PATCH 33/36] linux6.5: update kernel config for gcc 13

---
 srcpkgs/linux6.5/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.5/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.5/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.5/files/arm64-dotconfig b/srcpkgs/linux6.5/files/arm64-dotconfig
index 91fc7c82735b7..d271aaade90f7 100644
--- a/srcpkgs/linux6.5/files/arm64-dotconfig
+++ b/srcpkgs/linux6.5/files/arm64-dotconfig
@@ -12728,6 +12728,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/i386-dotconfig b/srcpkgs/linux6.5/files/i386-dotconfig
index f0a06fee9a72c..402ad2a1f2b14 100644
--- a/srcpkgs/linux6.5/files/i386-dotconfig
+++ b/srcpkgs/linux6.5/files/i386-dotconfig
@@ -10544,6 +10544,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/x86_64-dotconfig b/srcpkgs/linux6.5/files/x86_64-dotconfig
index b94da2cff144d..8ff2011aedd57 100644
--- a/srcpkgs/linux6.5/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.5/files/x86_64-dotconfig
@@ -10899,6 +10899,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 41f96ff5f8182b5ec275a60435d8d06cb53e186e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:25 -0800
Subject: [PATCH 34/36] linux6.6: update kernel config for gcc 13

---
 srcpkgs/linux6.6/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.6/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.6/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.6/files/arm64-dotconfig b/srcpkgs/linux6.6/files/arm64-dotconfig
index 688a0dba94a1d..93b8ad6d2d835 100644
--- a/srcpkgs/linux6.6/files/arm64-dotconfig
+++ b/srcpkgs/linux6.6/files/arm64-dotconfig
@@ -12816,6 +12816,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/i386-dotconfig b/srcpkgs/linux6.6/files/i386-dotconfig
index f42b6646a248b..f79bca8495140 100644
--- a/srcpkgs/linux6.6/files/i386-dotconfig
+++ b/srcpkgs/linux6.6/files/i386-dotconfig
@@ -10567,6 +10567,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/x86_64-dotconfig b/srcpkgs/linux6.6/files/x86_64-dotconfig
index 02fe6de8db0de..f59f673ea0028 100644
--- a/srcpkgs/linux6.6/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.6/files/x86_64-dotconfig
@@ -10973,6 +10973,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 9665b6337a8b156d5ccd94c3ad6028a1f7b3ee2c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:45 -0800
Subject: [PATCH 35/36] linux6.7: update kernel config for gcc 13

---
 srcpkgs/linux6.7/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.7/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.7/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.7/files/arm64-dotconfig b/srcpkgs/linux6.7/files/arm64-dotconfig
index 8a36aac1c8470..72e239cf7cdd8 100644
--- a/srcpkgs/linux6.7/files/arm64-dotconfig
+++ b/srcpkgs/linux6.7/files/arm64-dotconfig
@@ -12908,6 +12908,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/i386-dotconfig b/srcpkgs/linux6.7/files/i386-dotconfig
index 56130f5467465..99ae443987037 100644
--- a/srcpkgs/linux6.7/files/i386-dotconfig
+++ b/srcpkgs/linux6.7/files/i386-dotconfig
@@ -10647,6 +10647,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/x86_64-dotconfig b/srcpkgs/linux6.7/files/x86_64-dotconfig
index f25d1f64fa9d7..2f051fc9ac256 100644
--- a/srcpkgs/linux6.7/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.7/files/x86_64-dotconfig
@@ -11055,6 +11055,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 0935bb1c2b5f86f7eb62ac621b064036b43c081e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 20:14:02 -0800
Subject: [PATCH 36/36] rdfind: fix build for gcc 13

---
 ...f698dd680931b5c2f05688319290bdf0d930.patch | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch

diff --git a/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
new file mode 100644
index 0000000000000..627d8267aa8bd
--- /dev/null
+++ b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
@@ -0,0 +1,21 @@
+From f6c3f698dd680931b5c2f05688319290bdf0d930 Mon Sep 17 00:00:00 2001
+From: Paul Dreik <rdfind@pauldreik.se>
+Date: Fri, 16 Jun 2023 08:19:29 +0200
+Subject: [PATCH] add missing include <cstdint>
+
+---
+ Fileinfo.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Fileinfo.hh b/Fileinfo.hh
+index 3ffb837..23ed54e 100644
+--- a/Fileinfo.hh
++++ b/Fileinfo.hh
+@@ -8,6 +8,7 @@
+ #define Fileinfo_hh
+ 
+ #include <array>
++#include <cstdint>
+ #include <string>
+ 
+ // os specific headers

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (38 preceding siblings ...)
  2024-01-18  7:43 ` [PR PATCH] [Updated] " oreo639
@ 2024-01-19  1:46 ` oreo639
  2024-01-19  1:47 ` oreo639
                   ` (17 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-19  1:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 469 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1899503601

Comment:
> Hey,
> 
> is there any way one can assist you with this?

Sorry for the late response, feel free to report any issues you notice with the package.

I am running through compiling the all of the base ISO packages atm to test for regressions in the gcc 13 package. (I just noticed one relating to fortran and libquadmath)

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (39 preceding siblings ...)
  2024-01-19  1:46 ` oreo639
@ 2024-01-19  1:47 ` oreo639
  2024-01-19  1:47 ` oreo639
                   ` (16 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-19  1:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 514 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1899503601

Comment:
> Hey,
> 
> is there any way one can assist you with this?

Sorry for the late response, feel free to report any issues you notice with the package.

I am running through compiling the all of the base ISO packages atm to test for regressions in the gcc 13 package. (I just noticed one relating to fortran with libquadmath not getting pulled in automatically anymore)

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (40 preceding siblings ...)
  2024-01-19  1:47 ` oreo639
@ 2024-01-19  1:47 ` oreo639
  2024-01-22  4:44 ` [PR PATCH] [Updated] " oreo639
                   ` (15 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-19  1:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 529 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1899503601

Comment:
> Hey,
> 
> is there any way one can assist you with this?

Sorry for the late response, feel free to report any issues you notice with the package.

I am running through compiling the all of the base ISO packages atm to test for regressions in the gcc 13 package. (I just noticed one relating to fortran with libquadmath not getting pulled in by libgfortran automatically anymore)

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (41 preceding siblings ...)
  2024-01-19  1:47 ` oreo639
@ 2024-01-22  4:44 ` oreo639
  2024-01-22  5:44 ` oreo639
                   ` (14 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-22  4:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 100769 bytes --]

From 38c9c8d39fa04b64f623880cc9950ce2d5fb4481 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/36] binutils: update to 2.41.

---
 common/shlibs                                 |  3 ++
 srcpkgs/binutils-libs                         |  1 +
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     | 28 +++++++---
 4 files changed, 24 insertions(+), 61 deletions(-)
 create mode 120000 srcpkgs/binutils-libs
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/common/shlibs b/common/shlibs
index 9e6d29c73341e..765df5bddab6f 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -72,6 +72,9 @@ libmpfr.so.6 mpfr-4.0.0_1
 libppl.so.14 ppl-1.2_1
 libppl_c.so.4 ppl-0.11_1
 libstdc++.so.6 libstdc++-4.4.0_1
+libsframe.so.1 binutils-libs-2.41_1
+libctf-nobfd.so.0 binutils-libs-2.41_1
+libctf.so.0 binutils-libs-2.41_1
 libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libtinfo.so.6 ncurses-libtinfo-libs-6.2_2
diff --git a/srcpkgs/binutils-libs b/srcpkgs/binutils-libs
new file mode 120000
index 0000000000000..695eb82eae648
--- /dev/null
+++ b/srcpkgs/binutils-libs
@@ -0,0 +1 @@
+binutils
\ No newline at end of file
diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..12fa2f498ab57 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
-makedepends="zlib-devel"
+makedepends="zlib-devel libzstd-devel"
 short_desc="GNU binary utilities"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"
@@ -22,7 +22,7 @@ if [ "$CHROOT_READY" ]; then
 	makedepends+=" elfutils-devel"
 	checkdepends="bc"
 	depends="binutils-doc"
-	subpackages+=" libiberty-devel binutils-devel"
+	subpackages+=" libiberty-devel binutils-devel binutils-libs"
 fi
 
 _get_triplet() {
@@ -138,9 +138,9 @@ do_install() {
 		# Remove these symlinks, they are not ABI stable.
 		# Programs should compile static to the .a file.
 		rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
-		echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libbfd.a -lsframe -liberty -lzstd -lz )" \
 			>${DESTDIR}/usr/lib/libbfd.so
-		echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libopcodes.a -lbfd )" \
 			>${DESTDIR}/usr/lib/libopcodes.so
 
 		# Install PIC version of libiberty.a
@@ -157,14 +157,26 @@ do_install() {
 	done
 }
 
+binutils-libs_package() {
+	short_desc+=" - shared libraries"
+	pkg_install() {
+		vmove "usr/lib/libctf-nobfd.so.*"
+		vmove "usr/lib/libctf.so.*"
+		vmove "usr/lib/libsframe.so.*"
+	}
+}
+
 binutils-devel_package() {
-	depends="zlib-devel libiberty-devel"
+	depends="binutils-libs zlib-devel libzstd-devel libiberty-devel"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.a"
 		vmove "usr/lib/libbfd.so"
 		vmove "usr/lib/libopcodes.so"
+		vmove "usr/lib/libctf-nobfd.so"
+		vmove "usr/lib/libctf.so"
+		vmove "usr/lib/libsframe.so"
 	}
 }
 

From 5934dc3bc3a285d35d9cf9454ca89a4ccc42071c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/36] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  55 +--
 10 files changed, 354 insertions(+), 306 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 765df5bddab6f..ae065da4c001d 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -62,7 +62,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -854,8 +854,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1671,6 +1671,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..4bddc0c1bf9c0 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -36,6 +36,7 @@ replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
  libssp>=0 libssp-devel>=0"
 
 _have_gccgo=yes
+_have_libquadmath=no
 
 # MIPS is untested and does not have go in crosstoolchains
 # 32-bit PowerPC seems weirdly broken since the 10.x release
@@ -45,6 +46,10 @@ case "$XBPS_TARGET_MACHINE" in
 	mips*-musl|ppc*) _have_gccgo=no ;;
 esac
 
+case "$XBPS_TARGET_MACHINE" in
+	i686*|x86_64*|ppc64le) _have_libquadmath=yes ;;
+esac
+
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="tar texinfo perl flex"
 else
@@ -85,6 +90,10 @@ fi
 if [ "$CHROOT_READY" ]; then
 	subpackages+=" gcc-fortran libgfortran-devel libgfortran"
 	subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		subpackages+=" libquadmath libquadmath-devel"
+	fi
 fi
 
 if [ "$_have_gccgo" = "yes" ]; then
@@ -136,12 +145,8 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*)
-		subpackages+=" libquadmath libquadmath-devel"
 		subpackages+=" libvtv libvtv-devel"
 		;;
-	ppc64le)
-		subpackages+=" libquadmath libquadmath-devel"
-		;;
 esac
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;;
@@ -187,8 +192,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -385,10 +394,9 @@ do_install() {
 		vman ${FILESDIR}/${f}.1
 	done
 
-	case "$XBPS_TARGET_MACHINE" in
-		i686*|x86_64*|ppc64le) ;;
-		*) rm -f ${DESTDIR}/usr/share/info/libquadmath.info;;
-	esac
+	if [ "$_have_libquadmath" != "yes"]; then
+		rm -f ${DESTDIR}/usr/share/info/libquadmath.info
+	fi
 }
 
 gcc-ada_package() {
@@ -502,6 +510,11 @@ libada_package() {
 libgfortran-devel_package() {
 	depends="libgfortran>=${_minorver}"
 	short_desc+=" - Fortran library - development files"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		depends+=" libquadmath-devel"
+	fi
+
 	pkg_install() {
 		vmove usr/lib/libgfortran.spec
 		vmove usr/lib/libgfortran.a
@@ -675,7 +688,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove "usr/lib/lib*san_preinit.o"
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From fb262f86347266751a2345bffa01ca959ca23daf Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 03/36] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 4a0441860586a6b7e3f5ec171d5042ae2c21c7e4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 04/36] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From 45393ca4c6190a3d41fde0e495ead234aba6ce6f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 05/36] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From 5113bbf618d70961ae74db2ab47830ced954e3d7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 06/36] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..6af5541e1db5c 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,18 +3,18 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel
+makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
  glibc-32bit glibc-devel-32bit"
 
 depends="

From 527fdd1069a6628fe967d90fa1e6eb0dd63ee126 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 07/36] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 5360c3994dea3458e5a3759db70cd688f42edb94 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 08/36] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 5d966b7964227f439f233fe07f71007dd2a4bdab Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 09/36] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From dd702259a09fa4a66a12657b0134c10975626fb0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 10/36] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From e30e5d74d12b02d8c972a7cecabe895b379382d6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 11/36] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 8b0b7dda63c250d4cb8aeedd14886762bef88642 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 12/36] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From c9a73b0e730135ac912d57b8cb11f0cfd2bdae3a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 13/36] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From f91c32ae3ebbf6955ff5316caf38f1fdc590370a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 14/36] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From e27c196ea70a0471e1b39a80d1e03e58ef2c79e7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 15/36] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 87ee3f5a30e7f0162e304fa5cc74f6bbb5c5cbae Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 16/36] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 10061037a8ade6d70e88862b80c0c79620c90d78 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 17/36] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 98cb4a20d905cec6e011030f7b105fca84ba8e4a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 18/36] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From e2d909d7603362e516c565f8adc970798aff6261 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 19/36] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 5b3989a62adea53f70efe84811221331bac7bee8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 20/36] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From fe91a77e1719817e60ebac83ef1635a5f21fbab7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 21/36] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From f25cb6f98e65e18e722178d2f5f19817b2577e5a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 22/36] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 19ff410c0aa2120ddd3d60e3fc035254ede66cd1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 23/36] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 1c789c3b853c4ee08759284dff094bc96ac9b3f3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 24/36] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 69702928494e29385621cc415c88f235f38db2f7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 25/36] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 7b895fca29a8bea209832d4415d6db438be94029 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 26/36] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From a23e969c25373c9007769865edddad4410da7fbc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 27/36] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From c1756861c5d71650f042e32bbb25c433989ed12a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 28/36] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From d00129392282016dd94775d763c57c8ff8e66760 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 29/36] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From f4245cf93170a0f945385ac7b288d55abb64f267 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 30/36] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 1d85c1804e57891c0cc9fbbc60a5bf74a0b9dea6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 31/36] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 2447a1de52b08caaa4929a29ade2dc5f46c9f891 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 32/36] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 4a3d386d6a06cc71ef22b916fa02c785b046d62d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:20:55 -0800
Subject: [PATCH 33/36] linux6.5: update kernel config for gcc 13

---
 srcpkgs/linux6.5/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.5/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.5/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.5/files/arm64-dotconfig b/srcpkgs/linux6.5/files/arm64-dotconfig
index 91fc7c82735b7..d271aaade90f7 100644
--- a/srcpkgs/linux6.5/files/arm64-dotconfig
+++ b/srcpkgs/linux6.5/files/arm64-dotconfig
@@ -12728,6 +12728,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/i386-dotconfig b/srcpkgs/linux6.5/files/i386-dotconfig
index f0a06fee9a72c..402ad2a1f2b14 100644
--- a/srcpkgs/linux6.5/files/i386-dotconfig
+++ b/srcpkgs/linux6.5/files/i386-dotconfig
@@ -10544,6 +10544,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/x86_64-dotconfig b/srcpkgs/linux6.5/files/x86_64-dotconfig
index b94da2cff144d..8ff2011aedd57 100644
--- a/srcpkgs/linux6.5/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.5/files/x86_64-dotconfig
@@ -10899,6 +10899,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 66e584cce8984732ce01350ec4e45b8af29535d4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:25 -0800
Subject: [PATCH 34/36] linux6.6: update kernel config for gcc 13

---
 srcpkgs/linux6.6/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.6/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.6/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.6/files/arm64-dotconfig b/srcpkgs/linux6.6/files/arm64-dotconfig
index 688a0dba94a1d..93b8ad6d2d835 100644
--- a/srcpkgs/linux6.6/files/arm64-dotconfig
+++ b/srcpkgs/linux6.6/files/arm64-dotconfig
@@ -12816,6 +12816,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/i386-dotconfig b/srcpkgs/linux6.6/files/i386-dotconfig
index f42b6646a248b..f79bca8495140 100644
--- a/srcpkgs/linux6.6/files/i386-dotconfig
+++ b/srcpkgs/linux6.6/files/i386-dotconfig
@@ -10567,6 +10567,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/x86_64-dotconfig b/srcpkgs/linux6.6/files/x86_64-dotconfig
index 02fe6de8db0de..f59f673ea0028 100644
--- a/srcpkgs/linux6.6/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.6/files/x86_64-dotconfig
@@ -10973,6 +10973,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From a4a40645deb9bee2bcc7e7453631b0628f4467d6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:45 -0800
Subject: [PATCH 35/36] linux6.7: update kernel config for gcc 13

---
 srcpkgs/linux6.7/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.7/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.7/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.7/files/arm64-dotconfig b/srcpkgs/linux6.7/files/arm64-dotconfig
index 8a36aac1c8470..72e239cf7cdd8 100644
--- a/srcpkgs/linux6.7/files/arm64-dotconfig
+++ b/srcpkgs/linux6.7/files/arm64-dotconfig
@@ -12908,6 +12908,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/i386-dotconfig b/srcpkgs/linux6.7/files/i386-dotconfig
index 56130f5467465..99ae443987037 100644
--- a/srcpkgs/linux6.7/files/i386-dotconfig
+++ b/srcpkgs/linux6.7/files/i386-dotconfig
@@ -10647,6 +10647,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/x86_64-dotconfig b/srcpkgs/linux6.7/files/x86_64-dotconfig
index f25d1f64fa9d7..2f051fc9ac256 100644
--- a/srcpkgs/linux6.7/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.7/files/x86_64-dotconfig
@@ -11055,6 +11055,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 5e51c93b4e8f9d49b1837c0efea4977eac64047d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 20:14:02 -0800
Subject: [PATCH 36/36] rdfind: fix build for gcc 13

---
 ...f698dd680931b5c2f05688319290bdf0d930.patch | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch

diff --git a/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
new file mode 100644
index 0000000000000..627d8267aa8bd
--- /dev/null
+++ b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
@@ -0,0 +1,21 @@
+From f6c3f698dd680931b5c2f05688319290bdf0d930 Mon Sep 17 00:00:00 2001
+From: Paul Dreik <rdfind@pauldreik.se>
+Date: Fri, 16 Jun 2023 08:19:29 +0200
+Subject: [PATCH] add missing include <cstdint>
+
+---
+ Fileinfo.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Fileinfo.hh b/Fileinfo.hh
+index 3ffb837..23ed54e 100644
+--- a/Fileinfo.hh
++++ b/Fileinfo.hh
+@@ -8,6 +8,7 @@
+ #define Fileinfo_hh
+ 
+ #include <array>
++#include <cstdint>
+ #include <string>
+ 
+ // os specific headers

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (42 preceding siblings ...)
  2024-01-22  4:44 ` [PR PATCH] [Updated] " oreo639
@ 2024-01-22  5:44 ` oreo639
  2024-01-22  5:56 ` oreo639
                   ` (13 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-22  5:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 100733 bytes --]

From 628ab7b1269eac6b5eab1096cfbf22d569b13b8b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/36] binutils: update to 2.41.

---
 common/shlibs                                 |  3 ++
 srcpkgs/binutils-libs                         |  1 +
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     | 27 +++++++---
 4 files changed, 23 insertions(+), 61 deletions(-)
 create mode 120000 srcpkgs/binutils-libs
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/common/shlibs b/common/shlibs
index 9e6d29c73341e..a8757a0565b1f 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -72,6 +72,9 @@ libmpfr.so.6 mpfr-4.0.0_1
 libppl.so.14 ppl-1.2_1
 libppl_c.so.4 ppl-0.11_1
 libstdc++.so.6 libstdc++-4.4.0_1
+libsframe.so.1 binutils-libs-2.41_1
+libctf-nobfd.so.0 binutils-libs-2.41_1
+libctf.so.0 binutils-2.41_1
 libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libtinfo.so.6 ncurses-libtinfo-libs-6.2_2
diff --git a/srcpkgs/binutils-libs b/srcpkgs/binutils-libs
new file mode 120000
index 0000000000000..695eb82eae648
--- /dev/null
+++ b/srcpkgs/binutils-libs
@@ -0,0 +1 @@
+binutils
\ No newline at end of file
diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..2f61a7c057609 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
-makedepends="zlib-devel"
+makedepends="zlib-devel libzstd-devel"
 short_desc="GNU binary utilities"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"
@@ -22,7 +22,7 @@ if [ "$CHROOT_READY" ]; then
 	makedepends+=" elfutils-devel"
 	checkdepends="bc"
 	depends="binutils-doc"
-	subpackages+=" libiberty-devel binutils-devel"
+	subpackages+=" libiberty-devel binutils-devel binutils-libs"
 fi
 
 _get_triplet() {
@@ -138,9 +138,9 @@ do_install() {
 		# Remove these symlinks, they are not ABI stable.
 		# Programs should compile static to the .a file.
 		rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
-		echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libbfd.a -lsframe -liberty -lzstd -lz )" \
 			>${DESTDIR}/usr/lib/libbfd.so
-		echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libopcodes.a -lbfd )" \
 			>${DESTDIR}/usr/lib/libopcodes.so
 
 		# Install PIC version of libiberty.a
@@ -157,14 +157,25 @@ do_install() {
 	done
 }
 
+binutils-libs_package() {
+	short_desc+=" - shared libraries"
+	pkg_install() {
+		vmove "usr/lib/libctf-nobfd.so.*"
+		vmove "usr/lib/libsframe.so.*"
+	}
+}
+
 binutils-devel_package() {
-	depends="zlib-devel libiberty-devel"
+	depends="binutils-libs zlib-devel libzstd-devel libiberty-devel"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.a"
 		vmove "usr/lib/libbfd.so"
 		vmove "usr/lib/libopcodes.so"
+		vmove "usr/lib/libctf-nobfd.so"
+		vmove "usr/lib/libctf.so"
+		vmove "usr/lib/libsframe.so"
 	}
 }
 

From d652cdca3dda15edd8dacf1c7f95e56b86e8dbb6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/36] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  55 +--
 10 files changed, 354 insertions(+), 306 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index a8757a0565b1f..8ed074f3eb87b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -62,7 +62,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -854,8 +854,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1671,6 +1671,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..4bddc0c1bf9c0 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -36,6 +36,7 @@ replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
  libssp>=0 libssp-devel>=0"
 
 _have_gccgo=yes
+_have_libquadmath=no
 
 # MIPS is untested and does not have go in crosstoolchains
 # 32-bit PowerPC seems weirdly broken since the 10.x release
@@ -45,6 +46,10 @@ case "$XBPS_TARGET_MACHINE" in
 	mips*-musl|ppc*) _have_gccgo=no ;;
 esac
 
+case "$XBPS_TARGET_MACHINE" in
+	i686*|x86_64*|ppc64le) _have_libquadmath=yes ;;
+esac
+
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="tar texinfo perl flex"
 else
@@ -85,6 +90,10 @@ fi
 if [ "$CHROOT_READY" ]; then
 	subpackages+=" gcc-fortran libgfortran-devel libgfortran"
 	subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		subpackages+=" libquadmath libquadmath-devel"
+	fi
 fi
 
 if [ "$_have_gccgo" = "yes" ]; then
@@ -136,12 +145,8 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*)
-		subpackages+=" libquadmath libquadmath-devel"
 		subpackages+=" libvtv libvtv-devel"
 		;;
-	ppc64le)
-		subpackages+=" libquadmath libquadmath-devel"
-		;;
 esac
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;;
@@ -187,8 +192,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -385,10 +394,9 @@ do_install() {
 		vman ${FILESDIR}/${f}.1
 	done
 
-	case "$XBPS_TARGET_MACHINE" in
-		i686*|x86_64*|ppc64le) ;;
-		*) rm -f ${DESTDIR}/usr/share/info/libquadmath.info;;
-	esac
+	if [ "$_have_libquadmath" != "yes"]; then
+		rm -f ${DESTDIR}/usr/share/info/libquadmath.info
+	fi
 }
 
 gcc-ada_package() {
@@ -502,6 +510,11 @@ libada_package() {
 libgfortran-devel_package() {
 	depends="libgfortran>=${_minorver}"
 	short_desc+=" - Fortran library - development files"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		depends+=" libquadmath-devel"
+	fi
+
 	pkg_install() {
 		vmove usr/lib/libgfortran.spec
 		vmove usr/lib/libgfortran.a
@@ -675,7 +688,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove "usr/lib/lib*san_preinit.o"
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From 43cbfdce157165f5c6be04ae33f36715fbe8a49f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 03/36] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From c5cfd32db5b0becf4f9c92bb1b04d7e2805de5d7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 04/36] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From e6f02f45baaae50c528cd4076823adcd8b25ae4f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 05/36] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From cb93c3134c3a39fff8a0a7d73ccfe9c52a8596eb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 06/36] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..6af5541e1db5c 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,18 +3,18 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel
+makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
  glibc-32bit glibc-devel-32bit"
 
 depends="

From 25fa92aae13f6c0d1352481b4a60a904f107166a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 07/36] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From b05a29de8f443991996e03850cf443564d628a61 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 08/36] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From c836c4b487f90bac89130b517f6a0af6aa20320b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 09/36] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 9c2ee7d23a66e53bc503d57c576fc4e87c63e772 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 10/36] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 0cf661f1436c6d098d5c9e2a0a3da18964c82cfb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 11/36] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From b0f3846e4356cd48066e697f5b167a183d919829 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 12/36] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From dbc26e947c0b2e154e784adeb7415959c4095080 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 13/36] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 47db43c551443add23e7f1d47692afc20cb70a3f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 14/36] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From c370899280ecdf8d82bfd04e07860c535842f938 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 15/36] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From bf9bf904eb07a99c6a846077ee563d1c7d7e25f7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 16/36] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 212e50383b13c3d3424ec007a52b60e728010530 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 17/36] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 37e98a78c3e5c7ed4406473b608e290716834c7e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 18/36] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 818a6c81949ab5d4e2706372db0e728281d2d83a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 19/36] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 75e0305b2c8356cabd89a405f3cbefe4e0442d1e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 20/36] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From e38ff22af316d3fde3d23054ec56d61af64b7914 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 21/36] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 9b16ef9b4ec77108b0074559d2351d4f8921bcf0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 22/36] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 36c1d6a5d12e8fbc9128a55e5ef7055b2e51fb2e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 23/36] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 8243856cea71cae5055e8bac25a0e07aaba8a591 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 24/36] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 84d98156ca53160568bebd37da5bffe700376ec2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 25/36] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 039feaf2ff448b6a6df6667044274ac98c093ca1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 26/36] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From d424648e75d5b3ddeb064b38a8bc8d720f284b17 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 27/36] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 87b9bdf13f9cc5f3a39c05c8bcb08d7850179819 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 28/36] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 7147ca73592232af5f2f497f52076a083daae18c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 29/36] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 16ad69cb326ddab38def140d9e98b57023260868 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 30/36] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 9b52434a35cb029dc0bd49058b45ed78bd2306de Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 31/36] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 1961912073b344cc35d6fecf1a14b87464f301b0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 32/36] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From c6e57a325a38534ba216c0035e9d14d9fcb3e730 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:20:55 -0800
Subject: [PATCH 33/36] linux6.5: update kernel config for gcc 13

---
 srcpkgs/linux6.5/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.5/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.5/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.5/files/arm64-dotconfig b/srcpkgs/linux6.5/files/arm64-dotconfig
index 91fc7c82735b7..d271aaade90f7 100644
--- a/srcpkgs/linux6.5/files/arm64-dotconfig
+++ b/srcpkgs/linux6.5/files/arm64-dotconfig
@@ -12728,6 +12728,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/i386-dotconfig b/srcpkgs/linux6.5/files/i386-dotconfig
index f0a06fee9a72c..402ad2a1f2b14 100644
--- a/srcpkgs/linux6.5/files/i386-dotconfig
+++ b/srcpkgs/linux6.5/files/i386-dotconfig
@@ -10544,6 +10544,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/x86_64-dotconfig b/srcpkgs/linux6.5/files/x86_64-dotconfig
index b94da2cff144d..8ff2011aedd57 100644
--- a/srcpkgs/linux6.5/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.5/files/x86_64-dotconfig
@@ -10899,6 +10899,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From aaf6ef56d6760a96f8269d0765b369d28357e891 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:25 -0800
Subject: [PATCH 34/36] linux6.6: update kernel config for gcc 13

---
 srcpkgs/linux6.6/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.6/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.6/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.6/files/arm64-dotconfig b/srcpkgs/linux6.6/files/arm64-dotconfig
index 688a0dba94a1d..93b8ad6d2d835 100644
--- a/srcpkgs/linux6.6/files/arm64-dotconfig
+++ b/srcpkgs/linux6.6/files/arm64-dotconfig
@@ -12816,6 +12816,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/i386-dotconfig b/srcpkgs/linux6.6/files/i386-dotconfig
index f42b6646a248b..f79bca8495140 100644
--- a/srcpkgs/linux6.6/files/i386-dotconfig
+++ b/srcpkgs/linux6.6/files/i386-dotconfig
@@ -10567,6 +10567,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/x86_64-dotconfig b/srcpkgs/linux6.6/files/x86_64-dotconfig
index 02fe6de8db0de..f59f673ea0028 100644
--- a/srcpkgs/linux6.6/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.6/files/x86_64-dotconfig
@@ -10973,6 +10973,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 4378c9f3bc2b1f26ee874f47fe087143d442c00e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:45 -0800
Subject: [PATCH 35/36] linux6.7: update kernel config for gcc 13

---
 srcpkgs/linux6.7/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.7/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.7/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.7/files/arm64-dotconfig b/srcpkgs/linux6.7/files/arm64-dotconfig
index 8a36aac1c8470..72e239cf7cdd8 100644
--- a/srcpkgs/linux6.7/files/arm64-dotconfig
+++ b/srcpkgs/linux6.7/files/arm64-dotconfig
@@ -12908,6 +12908,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/i386-dotconfig b/srcpkgs/linux6.7/files/i386-dotconfig
index 56130f5467465..99ae443987037 100644
--- a/srcpkgs/linux6.7/files/i386-dotconfig
+++ b/srcpkgs/linux6.7/files/i386-dotconfig
@@ -10647,6 +10647,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/x86_64-dotconfig b/srcpkgs/linux6.7/files/x86_64-dotconfig
index f25d1f64fa9d7..2f051fc9ac256 100644
--- a/srcpkgs/linux6.7/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.7/files/x86_64-dotconfig
@@ -11055,6 +11055,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From e3edae47abe0a01b0eac60318a0e47a28ed2a079 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 20:14:02 -0800
Subject: [PATCH 36/36] rdfind: fix build for gcc 13

---
 ...f698dd680931b5c2f05688319290bdf0d930.patch | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch

diff --git a/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
new file mode 100644
index 0000000000000..627d8267aa8bd
--- /dev/null
+++ b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
@@ -0,0 +1,21 @@
+From f6c3f698dd680931b5c2f05688319290bdf0d930 Mon Sep 17 00:00:00 2001
+From: Paul Dreik <rdfind@pauldreik.se>
+Date: Fri, 16 Jun 2023 08:19:29 +0200
+Subject: [PATCH] add missing include <cstdint>
+
+---
+ Fileinfo.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Fileinfo.hh b/Fileinfo.hh
+index 3ffb837..23ed54e 100644
+--- a/Fileinfo.hh
++++ b/Fileinfo.hh
+@@ -8,6 +8,7 @@
+ #define Fileinfo_hh
+ 
+ #include <array>
++#include <cstdint>
+ #include <string>
+ 
+ // os specific headers

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (43 preceding siblings ...)
  2024-01-22  5:44 ` oreo639
@ 2024-01-22  5:56 ` oreo639
  2024-01-22 21:41 ` oreo639
                   ` (12 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-22  5:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 100731 bytes --]

From 005b2ad1d0f523404ba9d8168ef1103697509aa8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/36] binutils: update to 2.41.

---
 common/shlibs                                 |  3 ++
 srcpkgs/binutils-libs                         |  1 +
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     | 29 ++++++----
 4 files changed, 22 insertions(+), 64 deletions(-)
 create mode 120000 srcpkgs/binutils-libs
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/common/shlibs b/common/shlibs
index 9e6d29c73341e..765df5bddab6f 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -72,6 +72,9 @@ libmpfr.so.6 mpfr-4.0.0_1
 libppl.so.14 ppl-1.2_1
 libppl_c.so.4 ppl-0.11_1
 libstdc++.so.6 libstdc++-4.4.0_1
+libsframe.so.1 binutils-libs-2.41_1
+libctf-nobfd.so.0 binutils-libs-2.41_1
+libctf.so.0 binutils-libs-2.41_1
 libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libtinfo.so.6 ncurses-libtinfo-libs-6.2_2
diff --git a/srcpkgs/binutils-libs b/srcpkgs/binutils-libs
new file mode 120000
index 0000000000000..695eb82eae648
--- /dev/null
+++ b/srcpkgs/binutils-libs
@@ -0,0 +1 @@
+binutils
\ No newline at end of file
diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..382684c150532 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
-makedepends="zlib-devel"
+makedepends="zlib-devel libzstd-devel"
 short_desc="GNU binary utilities"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"
@@ -21,8 +21,8 @@ if [ "$CHROOT_READY" ]; then
 	hostmakedepends+=" flex perl texinfo"
 	makedepends+=" elfutils-devel"
 	checkdepends="bc"
-	depends="binutils-doc"
-	subpackages+=" libiberty-devel binutils-devel"
+	depends="binutils-doc binutils-libs"
+	subpackages+=" libiberty-devel binutils-libs binutils-devel"
 fi
 
 _get_triplet() {
@@ -138,9 +138,9 @@ do_install() {
 		# Remove these symlinks, they are not ABI stable.
 		# Programs should compile static to the .a file.
 		rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
-		echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libbfd.a -lsframe -liberty -lzstd -lz )" \
 			>${DESTDIR}/usr/lib/libbfd.so
-		echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libopcodes.a -lbfd )" \
 			>${DESTDIR}/usr/lib/libopcodes.so
 
 		# Install PIC version of libiberty.a
@@ -158,13 +158,20 @@ do_install() {
 }
 
 binutils-devel_package() {
-	depends="zlib-devel libiberty-devel"
+	depends="binutils-libs zlib-devel libzstd-devel libiberty-devel"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.a"
-		vmove "usr/lib/libbfd.so"
-		vmove "usr/lib/libopcodes.so"
+		vmove "usr/lib/*.so"
+	}
+}
+
+binutils-libs_package() {
+	short_desc+=" - shared libraries"
+	pkg_install() {
+		vmove "usr/lib/lib*-${version}.so"
+		vmove "usr/lib/*.so.*"
 	}
 }
 

From 182d0e8f87927c0306c8e411fcb9b3c49c4ba753 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/36] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  55 +--
 10 files changed, 354 insertions(+), 306 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 765df5bddab6f..ae065da4c001d 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -62,7 +62,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -854,8 +854,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1671,6 +1671,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..4bddc0c1bf9c0 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -36,6 +36,7 @@ replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
  libssp>=0 libssp-devel>=0"
 
 _have_gccgo=yes
+_have_libquadmath=no
 
 # MIPS is untested and does not have go in crosstoolchains
 # 32-bit PowerPC seems weirdly broken since the 10.x release
@@ -45,6 +46,10 @@ case "$XBPS_TARGET_MACHINE" in
 	mips*-musl|ppc*) _have_gccgo=no ;;
 esac
 
+case "$XBPS_TARGET_MACHINE" in
+	i686*|x86_64*|ppc64le) _have_libquadmath=yes ;;
+esac
+
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="tar texinfo perl flex"
 else
@@ -85,6 +90,10 @@ fi
 if [ "$CHROOT_READY" ]; then
 	subpackages+=" gcc-fortran libgfortran-devel libgfortran"
 	subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		subpackages+=" libquadmath libquadmath-devel"
+	fi
 fi
 
 if [ "$_have_gccgo" = "yes" ]; then
@@ -136,12 +145,8 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*)
-		subpackages+=" libquadmath libquadmath-devel"
 		subpackages+=" libvtv libvtv-devel"
 		;;
-	ppc64le)
-		subpackages+=" libquadmath libquadmath-devel"
-		;;
 esac
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;;
@@ -187,8 +192,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -385,10 +394,9 @@ do_install() {
 		vman ${FILESDIR}/${f}.1
 	done
 
-	case "$XBPS_TARGET_MACHINE" in
-		i686*|x86_64*|ppc64le) ;;
-		*) rm -f ${DESTDIR}/usr/share/info/libquadmath.info;;
-	esac
+	if [ "$_have_libquadmath" != "yes"]; then
+		rm -f ${DESTDIR}/usr/share/info/libquadmath.info
+	fi
 }
 
 gcc-ada_package() {
@@ -502,6 +510,11 @@ libada_package() {
 libgfortran-devel_package() {
 	depends="libgfortran>=${_minorver}"
 	short_desc+=" - Fortran library - development files"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		depends+=" libquadmath-devel"
+	fi
+
 	pkg_install() {
 		vmove usr/lib/libgfortran.spec
 		vmove usr/lib/libgfortran.a
@@ -675,7 +688,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove "usr/lib/lib*san_preinit.o"
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From d51d2c64ea18b97fe53bb95e164a6ffebcae325e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 03/36] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 5dd3c0c47f49d2d93df00bacc6c55d552e41ae24 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 04/36] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From 587b0b505338d23a31cad4002175fc37e1057b18 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 05/36] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From a1069038857acb596c63b739a96529d3d50848f2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 06/36] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..6af5541e1db5c 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,18 +3,18 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel
+makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
  glibc-32bit glibc-devel-32bit"
 
 depends="

From 3339c549dc39d616ed581a01d49ec06a96c3c424 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 07/36] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 198c0bb7e295af63f9f7d893e22d6ae8e4e7b3a5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 08/36] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 22ab7cd9a70d1556dbb0f0dd4a5b866e074defb5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 09/36] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 27af725443c0f18d265cf9c2f8eb1dd407659555 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 10/36] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 69ae7638d42e7613b320c203482baa01bd08491b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 11/36] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From c45bbd40c0e14f5324c95be8efb4c4b9111cb62e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 12/36] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 2c6f6a235282786ad1cd0cd6e29265cc91f24e1d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 13/36] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 1c238d89af0c03ac503d4109d25685abe10ba43f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 14/36] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 5ea07f35f69abf694c2357115cbff9c300edf71c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 15/36] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From a97506e4a7ad4e7de6663257ff07b4bba84379bc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 16/36] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 4bf6dc232d483b10c673b455e6b551972d8d1043 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 17/36] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From c18a63d1f9eb2c485e5ad0c98f9c2297c15a4470 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 18/36] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From b4ad81d6764332ca271285a54b22448459568b5a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 19/36] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 4e85e3b4e556c3316e11640ab008f03769f8afc0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 20/36] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 29ca9a63373700cd4037f953715eba3c011e6a60 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 21/36] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From d60638f214b57ce389f38cc9487bd7107d64200e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 22/36] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 4b53562adae3620e8e6815901d0cf97165dfcf95 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 23/36] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From a488a48a5e6f7107954f39d95d7c3d15bf844518 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 24/36] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 6cca947f83036eeefa05858792595b52dd00bba0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 25/36] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 9b9baf2c2ee2cab1bff15f264b74e291c5a5314f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 26/36] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 1be98cda4a05c6043da8ede1bff2cecde833d14d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 27/36] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 048473e78a1c5a47adc4f5ff8aa7db0a610702a9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 28/36] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From a68c58d6fea327d7cce4fc32a75c53e35f5c1eb1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 29/36] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 14e40c0d71d71e429509313cee3552233f24ae4c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 30/36] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From f0a18eac761c7d88a0c37a937580b12829a61434 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 31/36] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 5f284c6f6db7b67186114b3a3a57b79c172c7f7d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 32/36] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 45c0525e33d7f26f81edf24a1a49c052f7e3dbb7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:20:55 -0800
Subject: [PATCH 33/36] linux6.5: update kernel config for gcc 13

---
 srcpkgs/linux6.5/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.5/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.5/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.5/files/arm64-dotconfig b/srcpkgs/linux6.5/files/arm64-dotconfig
index 91fc7c82735b7..d271aaade90f7 100644
--- a/srcpkgs/linux6.5/files/arm64-dotconfig
+++ b/srcpkgs/linux6.5/files/arm64-dotconfig
@@ -12728,6 +12728,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/i386-dotconfig b/srcpkgs/linux6.5/files/i386-dotconfig
index f0a06fee9a72c..402ad2a1f2b14 100644
--- a/srcpkgs/linux6.5/files/i386-dotconfig
+++ b/srcpkgs/linux6.5/files/i386-dotconfig
@@ -10544,6 +10544,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/x86_64-dotconfig b/srcpkgs/linux6.5/files/x86_64-dotconfig
index b94da2cff144d..8ff2011aedd57 100644
--- a/srcpkgs/linux6.5/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.5/files/x86_64-dotconfig
@@ -10899,6 +10899,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 91fde5b73ad2f6fa0a1e4388860f7e1772440c34 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:25 -0800
Subject: [PATCH 34/36] linux6.6: update kernel config for gcc 13

---
 srcpkgs/linux6.6/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.6/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.6/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.6/files/arm64-dotconfig b/srcpkgs/linux6.6/files/arm64-dotconfig
index 688a0dba94a1d..93b8ad6d2d835 100644
--- a/srcpkgs/linux6.6/files/arm64-dotconfig
+++ b/srcpkgs/linux6.6/files/arm64-dotconfig
@@ -12816,6 +12816,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/i386-dotconfig b/srcpkgs/linux6.6/files/i386-dotconfig
index f42b6646a248b..f79bca8495140 100644
--- a/srcpkgs/linux6.6/files/i386-dotconfig
+++ b/srcpkgs/linux6.6/files/i386-dotconfig
@@ -10567,6 +10567,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/x86_64-dotconfig b/srcpkgs/linux6.6/files/x86_64-dotconfig
index 02fe6de8db0de..f59f673ea0028 100644
--- a/srcpkgs/linux6.6/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.6/files/x86_64-dotconfig
@@ -10973,6 +10973,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From f9056f565d6b17741a2caff621a0a369db9213c5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:45 -0800
Subject: [PATCH 35/36] linux6.7: update kernel config for gcc 13

---
 srcpkgs/linux6.7/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.7/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.7/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.7/files/arm64-dotconfig b/srcpkgs/linux6.7/files/arm64-dotconfig
index 8a36aac1c8470..72e239cf7cdd8 100644
--- a/srcpkgs/linux6.7/files/arm64-dotconfig
+++ b/srcpkgs/linux6.7/files/arm64-dotconfig
@@ -12908,6 +12908,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/i386-dotconfig b/srcpkgs/linux6.7/files/i386-dotconfig
index 56130f5467465..99ae443987037 100644
--- a/srcpkgs/linux6.7/files/i386-dotconfig
+++ b/srcpkgs/linux6.7/files/i386-dotconfig
@@ -10647,6 +10647,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/x86_64-dotconfig b/srcpkgs/linux6.7/files/x86_64-dotconfig
index f25d1f64fa9d7..2f051fc9ac256 100644
--- a/srcpkgs/linux6.7/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.7/files/x86_64-dotconfig
@@ -11055,6 +11055,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From c0958c9da2562fc6102e5f72aff75c238bb43c7d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 20:14:02 -0800
Subject: [PATCH 36/36] rdfind: fix build for gcc 13

---
 ...f698dd680931b5c2f05688319290bdf0d930.patch | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch

diff --git a/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
new file mode 100644
index 0000000000000..627d8267aa8bd
--- /dev/null
+++ b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
@@ -0,0 +1,21 @@
+From f6c3f698dd680931b5c2f05688319290bdf0d930 Mon Sep 17 00:00:00 2001
+From: Paul Dreik <rdfind@pauldreik.se>
+Date: Fri, 16 Jun 2023 08:19:29 +0200
+Subject: [PATCH] add missing include <cstdint>
+
+---
+ Fileinfo.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Fileinfo.hh b/Fileinfo.hh
+index 3ffb837..23ed54e 100644
+--- a/Fileinfo.hh
++++ b/Fileinfo.hh
+@@ -8,6 +8,7 @@
+ #define Fileinfo_hh
+ 
+ #include <array>
++#include <cstdint>
+ #include <string>
+ 
+ // os specific headers

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (44 preceding siblings ...)
  2024-01-22  5:56 ` oreo639
@ 2024-01-22 21:41 ` oreo639
  2024-01-22 21:46 ` oreo639
                   ` (11 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-22 21:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 103653 bytes --]

From 71742ed5ada6592627f555011555f39b29de1bf5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/37] binutils: update to 2.41.

---
 common/shlibs                                 |  3 ++
 srcpkgs/binutils-libs                         |  1 +
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     | 29 ++++++----
 4 files changed, 22 insertions(+), 64 deletions(-)
 create mode 120000 srcpkgs/binutils-libs
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/common/shlibs b/common/shlibs
index 9e6d29c73341e..765df5bddab6f 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -72,6 +72,9 @@ libmpfr.so.6 mpfr-4.0.0_1
 libppl.so.14 ppl-1.2_1
 libppl_c.so.4 ppl-0.11_1
 libstdc++.so.6 libstdc++-4.4.0_1
+libsframe.so.1 binutils-libs-2.41_1
+libctf-nobfd.so.0 binutils-libs-2.41_1
+libctf.so.0 binutils-libs-2.41_1
 libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libtinfo.so.6 ncurses-libtinfo-libs-6.2_2
diff --git a/srcpkgs/binutils-libs b/srcpkgs/binutils-libs
new file mode 120000
index 0000000000000..695eb82eae648
--- /dev/null
+++ b/srcpkgs/binutils-libs
@@ -0,0 +1 @@
+binutils
\ No newline at end of file
diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..382684c150532 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
-makedepends="zlib-devel"
+makedepends="zlib-devel libzstd-devel"
 short_desc="GNU binary utilities"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"
@@ -21,8 +21,8 @@ if [ "$CHROOT_READY" ]; then
 	hostmakedepends+=" flex perl texinfo"
 	makedepends+=" elfutils-devel"
 	checkdepends="bc"
-	depends="binutils-doc"
-	subpackages+=" libiberty-devel binutils-devel"
+	depends="binutils-doc binutils-libs"
+	subpackages+=" libiberty-devel binutils-libs binutils-devel"
 fi
 
 _get_triplet() {
@@ -138,9 +138,9 @@ do_install() {
 		# Remove these symlinks, they are not ABI stable.
 		# Programs should compile static to the .a file.
 		rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
-		echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libbfd.a -lsframe -liberty -lzstd -lz )" \
 			>${DESTDIR}/usr/lib/libbfd.so
-		echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libopcodes.a -lbfd )" \
 			>${DESTDIR}/usr/lib/libopcodes.so
 
 		# Install PIC version of libiberty.a
@@ -158,13 +158,20 @@ do_install() {
 }
 
 binutils-devel_package() {
-	depends="zlib-devel libiberty-devel"
+	depends="binutils-libs zlib-devel libzstd-devel libiberty-devel"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.a"
-		vmove "usr/lib/libbfd.so"
-		vmove "usr/lib/libopcodes.so"
+		vmove "usr/lib/*.so"
+	}
+}
+
+binutils-libs_package() {
+	short_desc+=" - shared libraries"
+	pkg_install() {
+		vmove "usr/lib/lib*-${version}.so"
+		vmove "usr/lib/*.so.*"
 	}
 }
 

From 33035bfe1b77062c72343ac3f49461899e4231a2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/37] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  55 +--
 10 files changed, 354 insertions(+), 306 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 765df5bddab6f..ae065da4c001d 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -62,7 +62,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -854,8 +854,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1671,6 +1671,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..4bddc0c1bf9c0 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -36,6 +36,7 @@ replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
  libssp>=0 libssp-devel>=0"
 
 _have_gccgo=yes
+_have_libquadmath=no
 
 # MIPS is untested and does not have go in crosstoolchains
 # 32-bit PowerPC seems weirdly broken since the 10.x release
@@ -45,6 +46,10 @@ case "$XBPS_TARGET_MACHINE" in
 	mips*-musl|ppc*) _have_gccgo=no ;;
 esac
 
+case "$XBPS_TARGET_MACHINE" in
+	i686*|x86_64*|ppc64le) _have_libquadmath=yes ;;
+esac
+
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="tar texinfo perl flex"
 else
@@ -85,6 +90,10 @@ fi
 if [ "$CHROOT_READY" ]; then
 	subpackages+=" gcc-fortran libgfortran-devel libgfortran"
 	subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		subpackages+=" libquadmath libquadmath-devel"
+	fi
 fi
 
 if [ "$_have_gccgo" = "yes" ]; then
@@ -136,12 +145,8 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*)
-		subpackages+=" libquadmath libquadmath-devel"
 		subpackages+=" libvtv libvtv-devel"
 		;;
-	ppc64le)
-		subpackages+=" libquadmath libquadmath-devel"
-		;;
 esac
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;;
@@ -187,8 +192,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -385,10 +394,9 @@ do_install() {
 		vman ${FILESDIR}/${f}.1
 	done
 
-	case "$XBPS_TARGET_MACHINE" in
-		i686*|x86_64*|ppc64le) ;;
-		*) rm -f ${DESTDIR}/usr/share/info/libquadmath.info;;
-	esac
+	if [ "$_have_libquadmath" != "yes"]; then
+		rm -f ${DESTDIR}/usr/share/info/libquadmath.info
+	fi
 }
 
 gcc-ada_package() {
@@ -502,6 +510,11 @@ libada_package() {
 libgfortran-devel_package() {
 	depends="libgfortran>=${_minorver}"
 	short_desc+=" - Fortran library - development files"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		depends+=" libquadmath-devel"
+	fi
+
 	pkg_install() {
 		vmove usr/lib/libgfortran.spec
 		vmove usr/lib/libgfortran.a
@@ -675,7 +688,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove "usr/lib/lib*san_preinit.o"
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From c33bd26e0172d7a4dfcf8efbc63982e9568f155a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 22 Jan 2024 13:30:57 -0800
Subject: [PATCH 03/37] musl: remove legacy-compat basename declaration

Necessary for compiling with C23.
---
 srcpkgs/musl/patches/c23-basename.patch | 44 +++++++++++++++++++++++++
 srcpkgs/musl/template                   |  2 +-
 2 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/musl/patches/c23-basename.patch

diff --git a/srcpkgs/musl/patches/c23-basename.patch b/srcpkgs/musl/patches/c23-basename.patch
new file mode 100644
index 0000000000000..8f95a27d0ef56
--- /dev/null
+++ b/srcpkgs/musl/patches/c23-basename.patch
@@ -0,0 +1,44 @@
+From 725e17ed6dff4d0cd22487bb64470881e86a92e7 Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Mon, 6 Nov 2023 08:26:19 -0500
+Subject: [PATCH] remove non-prototype declaration of basename from string.h
+
+commit 37bb3cce4598c19288628e675eaf1cda6e96958f suppressed the
+declaration for C++, where it is wrongly interpreted as declaring the
+function as taking no arguments. with C23 removing non-prototype
+declarations, that problem is now also relevant to C.
+
+the non-prototype declaration for basename originates with commit
+06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500, where it was designed to
+avoid conflicts with programs which declare basename with the GNU
+signature taking const char *. that change was probably misguided, as
+it represents not only misaligned expectations with the caller, but
+also undefined behavior (calling a function that's been declared with
+the wrong type).
+
+we could opt to fix the declaration, but since glibc, with the
+gratuitously incompatible GNU-basename function, seems to be the only
+implementation that declares it in string.h, it seems better to just
+remove the declaration. this provides some warning if applications are
+being built expecting the GNU behavior but not getting it. if we
+declared it here, it would only produce a warning if the caller also
+declares it themselves (rare) or if the caller attempts to pass a
+const-qualified pointer.
+---
+ include/string.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/include/string.h b/include/string.h
+index db73d2a9..83e2b946 100644
+--- a/include/string.h
++++ b/include/string.h
+@@ -95,9 +95,6 @@ char *strchrnul(const char *, int);
+ char *strcasestr(const char *, const char *);
+ void *memrchr(const void *, int, size_t);
+ void *mempcpy(void *, const void *, size_t);
+-#ifndef __cplusplus
+-char *basename();
+-#endif
+ #endif
+ 
+ #ifdef __cplusplus
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 9838f9ad9e613..8c3be7d76e8a1 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
 pkgname=musl
 reverts="1.2.0_1"
 version=1.1.24
-revision=19
+revision=20
 archs="*-musl"
 bootstrap=yes
 build_style=gnu-configure

From 2a261a0c256deb3d71838d6b5c59196c0b624694 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 04/37] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 1e89de84866f1e2a98d3786586a9b1cb9b29aa99 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 05/37] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From 7c1e3aaed010e2ee1edd77fb93b9ae282b46440b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 06/37] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From 6fc3fc3f257191efb2906501d995b6f3d973a514 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 07/37] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..6af5541e1db5c 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,18 +3,18 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel
+makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
  glibc-32bit glibc-devel-32bit"
 
 depends="

From c62b41b75fc2409f7adf69dd548bbe36f7562125 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 08/37] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From df9f536492cfdfc21b2688a24528a9cc464852fe Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 09/37] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 20db0d85604e2ca573a65cca45c443a20b45c01d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 10/37] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 792a94be2d6ea91056e4fe3549673baacf67d262 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 11/37] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 7e369a5987ddb02c60d295fc9339c447512ddf48 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 12/37] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From b4e0caf3589ad9fa628a5ee7f32d31e05ff7f93f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 13/37] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From a23e9e032be92e9e5faf86fd5d5cdeadb8779e75 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 14/37] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 94929cf1a03f892c286c1d979d95d283584647d6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 15/37] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 3ac6d99f618932b202e07b35efd60c0dbbda6e5e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 16/37] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 3e1352723180635eaaa16bb81e8d4989c9cfdf00 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 17/37] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From ca4fe7448397ee10eaa4750cdfaa0959c6204b4a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 18/37] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 0e72e649017f8f2a2ea89b24b768b9e07d715e71 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 19/37] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 4efa18f7ef9bfb5e3ec066efe131eed7a3fe301c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 20/37] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From d88087f51f3acd341e15f66e969296bc24106b22 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 21/37] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 82a201db5cfd9c59247217fa543e4473deefabaa Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 22/37] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From c8bb29b44ba8d284c1deb6166f01bc65492c14df Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 23/37] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From c85c02bd18e3e7e9dd73875b690055b15d5c2bf1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 24/37] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 5e2d89d0945623da69e69b4dcb512b95be25894d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 25/37] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From be4f565190e5e4c9a2f7ce2350cdb4555a997838 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 26/37] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 4fc071ac80b3ab649683786f10ce8920de6ed1d0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 27/37] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 46927b19bdbf6225781ffd3388b6ed97542c70ac Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 28/37] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 48229bbc6b1d3d21df5b1026210e7a4f001cb394 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 29/37] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 34c903f1c55cc6ceaff955d060251d203ff1533a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 30/37] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 7ddda323d5cb77c9fe7bedd346da45c35434c4cd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 31/37] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 4690e1e2087c296e4b6fde59691247eb06ce103a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 32/37] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 9d5bf7bca9bb8434ce888fa8e9ee1ada84f9bf7a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 33/37] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From fc02844a567933bf75c2069b0aed04b1a4cb2259 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:20:55 -0800
Subject: [PATCH 34/37] linux6.5: update kernel config for gcc 13

---
 srcpkgs/linux6.5/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.5/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.5/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.5/files/arm64-dotconfig b/srcpkgs/linux6.5/files/arm64-dotconfig
index 91fc7c82735b7..d271aaade90f7 100644
--- a/srcpkgs/linux6.5/files/arm64-dotconfig
+++ b/srcpkgs/linux6.5/files/arm64-dotconfig
@@ -12728,6 +12728,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/i386-dotconfig b/srcpkgs/linux6.5/files/i386-dotconfig
index f0a06fee9a72c..402ad2a1f2b14 100644
--- a/srcpkgs/linux6.5/files/i386-dotconfig
+++ b/srcpkgs/linux6.5/files/i386-dotconfig
@@ -10544,6 +10544,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/x86_64-dotconfig b/srcpkgs/linux6.5/files/x86_64-dotconfig
index b94da2cff144d..8ff2011aedd57 100644
--- a/srcpkgs/linux6.5/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.5/files/x86_64-dotconfig
@@ -10899,6 +10899,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 91fe9749a9a850effd341feeeef43a9e6f13c4b3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:25 -0800
Subject: [PATCH 35/37] linux6.6: update kernel config for gcc 13

---
 srcpkgs/linux6.6/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.6/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.6/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.6/files/arm64-dotconfig b/srcpkgs/linux6.6/files/arm64-dotconfig
index 688a0dba94a1d..93b8ad6d2d835 100644
--- a/srcpkgs/linux6.6/files/arm64-dotconfig
+++ b/srcpkgs/linux6.6/files/arm64-dotconfig
@@ -12816,6 +12816,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/i386-dotconfig b/srcpkgs/linux6.6/files/i386-dotconfig
index f42b6646a248b..f79bca8495140 100644
--- a/srcpkgs/linux6.6/files/i386-dotconfig
+++ b/srcpkgs/linux6.6/files/i386-dotconfig
@@ -10567,6 +10567,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/x86_64-dotconfig b/srcpkgs/linux6.6/files/x86_64-dotconfig
index 02fe6de8db0de..f59f673ea0028 100644
--- a/srcpkgs/linux6.6/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.6/files/x86_64-dotconfig
@@ -10973,6 +10973,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 250bfc6871f6f355e68c674fd4d1a302d2bcde33 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:45 -0800
Subject: [PATCH 36/37] linux6.7: update kernel config for gcc 13

---
 srcpkgs/linux6.7/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.7/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.7/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.7/files/arm64-dotconfig b/srcpkgs/linux6.7/files/arm64-dotconfig
index 8a36aac1c8470..72e239cf7cdd8 100644
--- a/srcpkgs/linux6.7/files/arm64-dotconfig
+++ b/srcpkgs/linux6.7/files/arm64-dotconfig
@@ -12908,6 +12908,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/i386-dotconfig b/srcpkgs/linux6.7/files/i386-dotconfig
index 56130f5467465..99ae443987037 100644
--- a/srcpkgs/linux6.7/files/i386-dotconfig
+++ b/srcpkgs/linux6.7/files/i386-dotconfig
@@ -10647,6 +10647,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/x86_64-dotconfig b/srcpkgs/linux6.7/files/x86_64-dotconfig
index f25d1f64fa9d7..2f051fc9ac256 100644
--- a/srcpkgs/linux6.7/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.7/files/x86_64-dotconfig
@@ -11055,6 +11055,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 935b993c5938433de9e05fcf95cd76fbc586b549 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 20:14:02 -0800
Subject: [PATCH 37/37] rdfind: fix build for gcc 13

---
 ...f698dd680931b5c2f05688319290bdf0d930.patch | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch

diff --git a/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
new file mode 100644
index 0000000000000..627d8267aa8bd
--- /dev/null
+++ b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
@@ -0,0 +1,21 @@
+From f6c3f698dd680931b5c2f05688319290bdf0d930 Mon Sep 17 00:00:00 2001
+From: Paul Dreik <rdfind@pauldreik.se>
+Date: Fri, 16 Jun 2023 08:19:29 +0200
+Subject: [PATCH] add missing include <cstdint>
+
+---
+ Fileinfo.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Fileinfo.hh b/Fileinfo.hh
+index 3ffb837..23ed54e 100644
+--- a/Fileinfo.hh
++++ b/Fileinfo.hh
+@@ -8,6 +8,7 @@
+ #define Fileinfo_hh
+ 
+ #include <array>
++#include <cstdint>
+ #include <string>
+ 
+ // os specific headers

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (45 preceding siblings ...)
  2024-01-22 21:41 ` oreo639
@ 2024-01-22 21:46 ` oreo639
  2024-01-22 21:55 ` oreo639
                   ` (10 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-22 21:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 103898 bytes --]

From 71742ed5ada6592627f555011555f39b29de1bf5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/37] binutils: update to 2.41.

---
 common/shlibs                                 |  3 ++
 srcpkgs/binutils-libs                         |  1 +
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     | 29 ++++++----
 4 files changed, 22 insertions(+), 64 deletions(-)
 create mode 120000 srcpkgs/binutils-libs
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/common/shlibs b/common/shlibs
index 9e6d29c73341e..765df5bddab6f 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -72,6 +72,9 @@ libmpfr.so.6 mpfr-4.0.0_1
 libppl.so.14 ppl-1.2_1
 libppl_c.so.4 ppl-0.11_1
 libstdc++.so.6 libstdc++-4.4.0_1
+libsframe.so.1 binutils-libs-2.41_1
+libctf-nobfd.so.0 binutils-libs-2.41_1
+libctf.so.0 binutils-libs-2.41_1
 libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libtinfo.so.6 ncurses-libtinfo-libs-6.2_2
diff --git a/srcpkgs/binutils-libs b/srcpkgs/binutils-libs
new file mode 120000
index 0000000000000..695eb82eae648
--- /dev/null
+++ b/srcpkgs/binutils-libs
@@ -0,0 +1 @@
+binutils
\ No newline at end of file
diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..382684c150532 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
-makedepends="zlib-devel"
+makedepends="zlib-devel libzstd-devel"
 short_desc="GNU binary utilities"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"
@@ -21,8 +21,8 @@ if [ "$CHROOT_READY" ]; then
 	hostmakedepends+=" flex perl texinfo"
 	makedepends+=" elfutils-devel"
 	checkdepends="bc"
-	depends="binutils-doc"
-	subpackages+=" libiberty-devel binutils-devel"
+	depends="binutils-doc binutils-libs"
+	subpackages+=" libiberty-devel binutils-libs binutils-devel"
 fi
 
 _get_triplet() {
@@ -138,9 +138,9 @@ do_install() {
 		# Remove these symlinks, they are not ABI stable.
 		# Programs should compile static to the .a file.
 		rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
-		echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libbfd.a -lsframe -liberty -lzstd -lz )" \
 			>${DESTDIR}/usr/lib/libbfd.so
-		echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libopcodes.a -lbfd )" \
 			>${DESTDIR}/usr/lib/libopcodes.so
 
 		# Install PIC version of libiberty.a
@@ -158,13 +158,20 @@ do_install() {
 }
 
 binutils-devel_package() {
-	depends="zlib-devel libiberty-devel"
+	depends="binutils-libs zlib-devel libzstd-devel libiberty-devel"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.a"
-		vmove "usr/lib/libbfd.so"
-		vmove "usr/lib/libopcodes.so"
+		vmove "usr/lib/*.so"
+	}
+}
+
+binutils-libs_package() {
+	short_desc+=" - shared libraries"
+	pkg_install() {
+		vmove "usr/lib/lib*-${version}.so"
+		vmove "usr/lib/*.so.*"
 	}
 }
 

From 33035bfe1b77062c72343ac3f49461899e4231a2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/37] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  55 +--
 10 files changed, 354 insertions(+), 306 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 765df5bddab6f..ae065da4c001d 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -62,7 +62,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -854,8 +854,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1671,6 +1671,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..4bddc0c1bf9c0 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -36,6 +36,7 @@ replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
  libssp>=0 libssp-devel>=0"
 
 _have_gccgo=yes
+_have_libquadmath=no
 
 # MIPS is untested and does not have go in crosstoolchains
 # 32-bit PowerPC seems weirdly broken since the 10.x release
@@ -45,6 +46,10 @@ case "$XBPS_TARGET_MACHINE" in
 	mips*-musl|ppc*) _have_gccgo=no ;;
 esac
 
+case "$XBPS_TARGET_MACHINE" in
+	i686*|x86_64*|ppc64le) _have_libquadmath=yes ;;
+esac
+
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="tar texinfo perl flex"
 else
@@ -85,6 +90,10 @@ fi
 if [ "$CHROOT_READY" ]; then
 	subpackages+=" gcc-fortran libgfortran-devel libgfortran"
 	subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		subpackages+=" libquadmath libquadmath-devel"
+	fi
 fi
 
 if [ "$_have_gccgo" = "yes" ]; then
@@ -136,12 +145,8 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*)
-		subpackages+=" libquadmath libquadmath-devel"
 		subpackages+=" libvtv libvtv-devel"
 		;;
-	ppc64le)
-		subpackages+=" libquadmath libquadmath-devel"
-		;;
 esac
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;;
@@ -187,8 +192,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -385,10 +394,9 @@ do_install() {
 		vman ${FILESDIR}/${f}.1
 	done
 
-	case "$XBPS_TARGET_MACHINE" in
-		i686*|x86_64*|ppc64le) ;;
-		*) rm -f ${DESTDIR}/usr/share/info/libquadmath.info;;
-	esac
+	if [ "$_have_libquadmath" != "yes"]; then
+		rm -f ${DESTDIR}/usr/share/info/libquadmath.info
+	fi
 }
 
 gcc-ada_package() {
@@ -502,6 +510,11 @@ libada_package() {
 libgfortran-devel_package() {
 	depends="libgfortran>=${_minorver}"
 	short_desc+=" - Fortran library - development files"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		depends+=" libquadmath-devel"
+	fi
+
 	pkg_install() {
 		vmove usr/lib/libgfortran.spec
 		vmove usr/lib/libgfortran.a
@@ -675,7 +688,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove "usr/lib/lib*san_preinit.o"
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From b79df63439be50dcae2db5d18d2519af09ca6bfd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 22 Jan 2024 13:30:57 -0800
Subject: [PATCH 03/37] musl: remove compat basename declaration

This declaration was added to musl to silence warnings for applications that
expect basename() in string.h using pre-ansi style declarations.

In C23, just like in C++, function declarations with no arguments are treated
as having no arguments, instead of having unspecified arguments.
---
 srcpkgs/musl/patches/c23-basename.patch | 44 +++++++++++++++++++++++++
 srcpkgs/musl/template                   |  2 +-
 2 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/musl/patches/c23-basename.patch

diff --git a/srcpkgs/musl/patches/c23-basename.patch b/srcpkgs/musl/patches/c23-basename.patch
new file mode 100644
index 0000000000000..8f95a27d0ef56
--- /dev/null
+++ b/srcpkgs/musl/patches/c23-basename.patch
@@ -0,0 +1,44 @@
+From 725e17ed6dff4d0cd22487bb64470881e86a92e7 Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Mon, 6 Nov 2023 08:26:19 -0500
+Subject: [PATCH] remove non-prototype declaration of basename from string.h
+
+commit 37bb3cce4598c19288628e675eaf1cda6e96958f suppressed the
+declaration for C++, where it is wrongly interpreted as declaring the
+function as taking no arguments. with C23 removing non-prototype
+declarations, that problem is now also relevant to C.
+
+the non-prototype declaration for basename originates with commit
+06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500, where it was designed to
+avoid conflicts with programs which declare basename with the GNU
+signature taking const char *. that change was probably misguided, as
+it represents not only misaligned expectations with the caller, but
+also undefined behavior (calling a function that's been declared with
+the wrong type).
+
+we could opt to fix the declaration, but since glibc, with the
+gratuitously incompatible GNU-basename function, seems to be the only
+implementation that declares it in string.h, it seems better to just
+remove the declaration. this provides some warning if applications are
+being built expecting the GNU behavior but not getting it. if we
+declared it here, it would only produce a warning if the caller also
+declares it themselves (rare) or if the caller attempts to pass a
+const-qualified pointer.
+---
+ include/string.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/include/string.h b/include/string.h
+index db73d2a9..83e2b946 100644
+--- a/include/string.h
++++ b/include/string.h
+@@ -95,9 +95,6 @@ char *strchrnul(const char *, int);
+ char *strcasestr(const char *, const char *);
+ void *memrchr(const void *, int, size_t);
+ void *mempcpy(void *, const void *, size_t);
+-#ifndef __cplusplus
+-char *basename();
+-#endif
+ #endif
+ 
+ #ifdef __cplusplus
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 9838f9ad9e613..8c3be7d76e8a1 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
 pkgname=musl
 reverts="1.2.0_1"
 version=1.1.24
-revision=19
+revision=20
 archs="*-musl"
 bootstrap=yes
 build_style=gnu-configure

From 9a9d374eda97e25dada95b47c92c30907690b718 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 04/37] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 72834a0560ec764e507d9693b04a181814cb70c4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 05/37] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From 753fd02cf5942a5a2b5fc333bc277c6569603572 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 06/37] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From ab6d76f74b8d5ae58a675edfbdb0c57f26fe4669 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 07/37] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..6af5541e1db5c 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,18 +3,18 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel
+makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
  glibc-32bit glibc-devel-32bit"
 
 depends="

From 6d889cd2099cb5653fd5ebb64f64c5e39d4cee3f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 08/37] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From d46d4febd192945c39c1768dc482e2532b9bea22 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 09/37] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From bce1da55492b263a24fcb80e33c15db483a7d95d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 10/37] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From bd4127f9a18effd6cc3d2ccefc6a09dfa6504a02 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 11/37] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 61ee4337007957bb3827717259166a58ad03e754 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 12/37] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 29ed1df1226d86dcd99c3885a010f9c709d17abe Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 13/37] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 7f3b226028482635151ef3759fa557c8e2e2d6b4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 14/37] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 1c1f29b1a53a15b32d19e100b168bbb0170c5551 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 15/37] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 749cd4957dc16fbe6cf3929b8f2fa984100fc9c7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 16/37] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 5334bc99c2d8ba06f3ce466e4c8e9f7927e624d9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 17/37] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 026c47fc3a761f2e11f5b0cf87cb35ca1cec33b2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 18/37] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 0f326657f99fdf3a682a49e6343f5cee409aa43a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 19/37] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From f43258fbffd566c663d365c9c60a6fd8339dc8cb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 20/37] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From bb58dfd208ea9d47d3a8cd00804323f0e61f1dc9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 21/37] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 3e314bb4c7496a0f3966dacd6b2a9691c3e31046 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 22/37] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 7ac9f849b9665a418bf1f47a1d52e564e5cad546 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 23/37] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 1d7623ee692ef6cd6127dd27f332ca3234969b1d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 24/37] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 5c549a528245543c19ea66311b16eccf520fed0a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 25/37] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 459c7f114506a54dd25c00843fc1d154af674db5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 26/37] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 65fe3a92d293192fd3e839c60c12adb252f13df1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 27/37] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From fa189783664077a5c8416f10073c2020db951b8d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 28/37] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From ffa6dda24235e291be0c12f488c39847ef79945c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 29/37] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 5ecd0f26f6aa1950fca6a75a49889b0218a9a45b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 30/37] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From cf6e659ee0896acbe6d6998b7946c75d99ebc2bc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 31/37] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From f48b71a68900619376089a7ba72d26ef4763744b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 32/37] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From c3027bd914c70526e8fb4d1807f28d1fe58d6cab Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 33/37] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 7e69a77e6e7e3c15f02313a0a120dde62471d528 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:20:55 -0800
Subject: [PATCH 34/37] linux6.5: update kernel config for gcc 13

---
 srcpkgs/linux6.5/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.5/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.5/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.5/files/arm64-dotconfig b/srcpkgs/linux6.5/files/arm64-dotconfig
index 91fc7c82735b7..d271aaade90f7 100644
--- a/srcpkgs/linux6.5/files/arm64-dotconfig
+++ b/srcpkgs/linux6.5/files/arm64-dotconfig
@@ -12728,6 +12728,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/i386-dotconfig b/srcpkgs/linux6.5/files/i386-dotconfig
index f0a06fee9a72c..402ad2a1f2b14 100644
--- a/srcpkgs/linux6.5/files/i386-dotconfig
+++ b/srcpkgs/linux6.5/files/i386-dotconfig
@@ -10544,6 +10544,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/x86_64-dotconfig b/srcpkgs/linux6.5/files/x86_64-dotconfig
index b94da2cff144d..8ff2011aedd57 100644
--- a/srcpkgs/linux6.5/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.5/files/x86_64-dotconfig
@@ -10899,6 +10899,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From a1525a6d585cf70b4464161dbf5b57a7491f0e4b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:25 -0800
Subject: [PATCH 35/37] linux6.6: update kernel config for gcc 13

---
 srcpkgs/linux6.6/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.6/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.6/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.6/files/arm64-dotconfig b/srcpkgs/linux6.6/files/arm64-dotconfig
index 688a0dba94a1d..93b8ad6d2d835 100644
--- a/srcpkgs/linux6.6/files/arm64-dotconfig
+++ b/srcpkgs/linux6.6/files/arm64-dotconfig
@@ -12816,6 +12816,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/i386-dotconfig b/srcpkgs/linux6.6/files/i386-dotconfig
index f42b6646a248b..f79bca8495140 100644
--- a/srcpkgs/linux6.6/files/i386-dotconfig
+++ b/srcpkgs/linux6.6/files/i386-dotconfig
@@ -10567,6 +10567,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/x86_64-dotconfig b/srcpkgs/linux6.6/files/x86_64-dotconfig
index 02fe6de8db0de..f59f673ea0028 100644
--- a/srcpkgs/linux6.6/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.6/files/x86_64-dotconfig
@@ -10973,6 +10973,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From a8e1e460b131108ac54e9ecf34364ca4ce51ad74 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:45 -0800
Subject: [PATCH 36/37] linux6.7: update kernel config for gcc 13

---
 srcpkgs/linux6.7/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.7/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.7/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.7/files/arm64-dotconfig b/srcpkgs/linux6.7/files/arm64-dotconfig
index 8a36aac1c8470..72e239cf7cdd8 100644
--- a/srcpkgs/linux6.7/files/arm64-dotconfig
+++ b/srcpkgs/linux6.7/files/arm64-dotconfig
@@ -12908,6 +12908,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/i386-dotconfig b/srcpkgs/linux6.7/files/i386-dotconfig
index 56130f5467465..99ae443987037 100644
--- a/srcpkgs/linux6.7/files/i386-dotconfig
+++ b/srcpkgs/linux6.7/files/i386-dotconfig
@@ -10647,6 +10647,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/x86_64-dotconfig b/srcpkgs/linux6.7/files/x86_64-dotconfig
index f25d1f64fa9d7..2f051fc9ac256 100644
--- a/srcpkgs/linux6.7/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.7/files/x86_64-dotconfig
@@ -11055,6 +11055,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 7d5b6ccce9caf2b9af10a8bca8456c5083383ff7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 20:14:02 -0800
Subject: [PATCH 37/37] rdfind: fix build for gcc 13

---
 ...f698dd680931b5c2f05688319290bdf0d930.patch | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch

diff --git a/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
new file mode 100644
index 0000000000000..627d8267aa8bd
--- /dev/null
+++ b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
@@ -0,0 +1,21 @@
+From f6c3f698dd680931b5c2f05688319290bdf0d930 Mon Sep 17 00:00:00 2001
+From: Paul Dreik <rdfind@pauldreik.se>
+Date: Fri, 16 Jun 2023 08:19:29 +0200
+Subject: [PATCH] add missing include <cstdint>
+
+---
+ Fileinfo.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Fileinfo.hh b/Fileinfo.hh
+index 3ffb837..23ed54e 100644
+--- a/Fileinfo.hh
++++ b/Fileinfo.hh
+@@ -8,6 +8,7 @@
+ #define Fileinfo_hh
+ 
+ #include <array>
++#include <cstdint>
+ #include <string>
+ 
+ // os specific headers

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (46 preceding siblings ...)
  2024-01-22 21:46 ` oreo639
@ 2024-01-22 21:55 ` oreo639
  2024-01-22 21:56 ` oreo639
                   ` (9 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-22 21:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 104034 bytes --]

From 71742ed5ada6592627f555011555f39b29de1bf5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/37] binutils: update to 2.41.

---
 common/shlibs                                 |  3 ++
 srcpkgs/binutils-libs                         |  1 +
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     | 29 ++++++----
 4 files changed, 22 insertions(+), 64 deletions(-)
 create mode 120000 srcpkgs/binutils-libs
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/common/shlibs b/common/shlibs
index 9e6d29c73341e..765df5bddab6f 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -72,6 +72,9 @@ libmpfr.so.6 mpfr-4.0.0_1
 libppl.so.14 ppl-1.2_1
 libppl_c.so.4 ppl-0.11_1
 libstdc++.so.6 libstdc++-4.4.0_1
+libsframe.so.1 binutils-libs-2.41_1
+libctf-nobfd.so.0 binutils-libs-2.41_1
+libctf.so.0 binutils-libs-2.41_1
 libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libtinfo.so.6 ncurses-libtinfo-libs-6.2_2
diff --git a/srcpkgs/binutils-libs b/srcpkgs/binutils-libs
new file mode 120000
index 0000000000000..695eb82eae648
--- /dev/null
+++ b/srcpkgs/binutils-libs
@@ -0,0 +1 @@
+binutils
\ No newline at end of file
diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..382684c150532 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
-makedepends="zlib-devel"
+makedepends="zlib-devel libzstd-devel"
 short_desc="GNU binary utilities"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"
@@ -21,8 +21,8 @@ if [ "$CHROOT_READY" ]; then
 	hostmakedepends+=" flex perl texinfo"
 	makedepends+=" elfutils-devel"
 	checkdepends="bc"
-	depends="binutils-doc"
-	subpackages+=" libiberty-devel binutils-devel"
+	depends="binutils-doc binutils-libs"
+	subpackages+=" libiberty-devel binutils-libs binutils-devel"
 fi
 
 _get_triplet() {
@@ -138,9 +138,9 @@ do_install() {
 		# Remove these symlinks, they are not ABI stable.
 		# Programs should compile static to the .a file.
 		rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
-		echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libbfd.a -lsframe -liberty -lzstd -lz )" \
 			>${DESTDIR}/usr/lib/libbfd.so
-		echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libopcodes.a -lbfd )" \
 			>${DESTDIR}/usr/lib/libopcodes.so
 
 		# Install PIC version of libiberty.a
@@ -158,13 +158,20 @@ do_install() {
 }
 
 binutils-devel_package() {
-	depends="zlib-devel libiberty-devel"
+	depends="binutils-libs zlib-devel libzstd-devel libiberty-devel"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.a"
-		vmove "usr/lib/libbfd.so"
-		vmove "usr/lib/libopcodes.so"
+		vmove "usr/lib/*.so"
+	}
+}
+
+binutils-libs_package() {
+	short_desc+=" - shared libraries"
+	pkg_install() {
+		vmove "usr/lib/lib*-${version}.so"
+		vmove "usr/lib/*.so.*"
 	}
 }
 

From 33035bfe1b77062c72343ac3f49461899e4231a2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/37] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  55 +--
 10 files changed, 354 insertions(+), 306 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 765df5bddab6f..ae065da4c001d 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -62,7 +62,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -854,8 +854,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1671,6 +1671,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..4bddc0c1bf9c0 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -36,6 +36,7 @@ replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
  libssp>=0 libssp-devel>=0"
 
 _have_gccgo=yes
+_have_libquadmath=no
 
 # MIPS is untested and does not have go in crosstoolchains
 # 32-bit PowerPC seems weirdly broken since the 10.x release
@@ -45,6 +46,10 @@ case "$XBPS_TARGET_MACHINE" in
 	mips*-musl|ppc*) _have_gccgo=no ;;
 esac
 
+case "$XBPS_TARGET_MACHINE" in
+	i686*|x86_64*|ppc64le) _have_libquadmath=yes ;;
+esac
+
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="tar texinfo perl flex"
 else
@@ -85,6 +90,10 @@ fi
 if [ "$CHROOT_READY" ]; then
 	subpackages+=" gcc-fortran libgfortran-devel libgfortran"
 	subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		subpackages+=" libquadmath libquadmath-devel"
+	fi
 fi
 
 if [ "$_have_gccgo" = "yes" ]; then
@@ -136,12 +145,8 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*)
-		subpackages+=" libquadmath libquadmath-devel"
 		subpackages+=" libvtv libvtv-devel"
 		;;
-	ppc64le)
-		subpackages+=" libquadmath libquadmath-devel"
-		;;
 esac
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;;
@@ -187,8 +192,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -385,10 +394,9 @@ do_install() {
 		vman ${FILESDIR}/${f}.1
 	done
 
-	case "$XBPS_TARGET_MACHINE" in
-		i686*|x86_64*|ppc64le) ;;
-		*) rm -f ${DESTDIR}/usr/share/info/libquadmath.info;;
-	esac
+	if [ "$_have_libquadmath" != "yes"]; then
+		rm -f ${DESTDIR}/usr/share/info/libquadmath.info
+	fi
 }
 
 gcc-ada_package() {
@@ -502,6 +510,11 @@ libada_package() {
 libgfortran-devel_package() {
 	depends="libgfortran>=${_minorver}"
 	short_desc+=" - Fortran library - development files"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		depends+=" libquadmath-devel"
+	fi
+
 	pkg_install() {
 		vmove usr/lib/libgfortran.spec
 		vmove usr/lib/libgfortran.a
@@ -675,7 +688,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove "usr/lib/lib*san_preinit.o"
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From ad0f139596478a6ffea044ebb148e4669290ca08 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 22 Jan 2024 13:30:57 -0800
Subject: [PATCH 03/37] musl: remove compat basename declaration

This declaration was added to musl to silence warnings for applications that
expect basename() in string.h.

Pre-ansi style declarations were used to avoid causing warnings due to
incompatibile declarations of basename().

In C23, just like in C++, function declarations with no arguments are treated
as having no arguments, instead of having unspecified arguments. As such,
this creates a conflicting declaration in C23.
---
 srcpkgs/musl/patches/c23-basename.patch | 44 +++++++++++++++++++++++++
 srcpkgs/musl/template                   |  2 +-
 2 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/musl/patches/c23-basename.patch

diff --git a/srcpkgs/musl/patches/c23-basename.patch b/srcpkgs/musl/patches/c23-basename.patch
new file mode 100644
index 0000000000000..8f95a27d0ef56
--- /dev/null
+++ b/srcpkgs/musl/patches/c23-basename.patch
@@ -0,0 +1,44 @@
+From 725e17ed6dff4d0cd22487bb64470881e86a92e7 Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Mon, 6 Nov 2023 08:26:19 -0500
+Subject: [PATCH] remove non-prototype declaration of basename from string.h
+
+commit 37bb3cce4598c19288628e675eaf1cda6e96958f suppressed the
+declaration for C++, where it is wrongly interpreted as declaring the
+function as taking no arguments. with C23 removing non-prototype
+declarations, that problem is now also relevant to C.
+
+the non-prototype declaration for basename originates with commit
+06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500, where it was designed to
+avoid conflicts with programs which declare basename with the GNU
+signature taking const char *. that change was probably misguided, as
+it represents not only misaligned expectations with the caller, but
+also undefined behavior (calling a function that's been declared with
+the wrong type).
+
+we could opt to fix the declaration, but since glibc, with the
+gratuitously incompatible GNU-basename function, seems to be the only
+implementation that declares it in string.h, it seems better to just
+remove the declaration. this provides some warning if applications are
+being built expecting the GNU behavior but not getting it. if we
+declared it here, it would only produce a warning if the caller also
+declares it themselves (rare) or if the caller attempts to pass a
+const-qualified pointer.
+---
+ include/string.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/include/string.h b/include/string.h
+index db73d2a9..83e2b946 100644
+--- a/include/string.h
++++ b/include/string.h
+@@ -95,9 +95,6 @@ char *strchrnul(const char *, int);
+ char *strcasestr(const char *, const char *);
+ void *memrchr(const void *, int, size_t);
+ void *mempcpy(void *, const void *, size_t);
+-#ifndef __cplusplus
+-char *basename();
+-#endif
+ #endif
+ 
+ #ifdef __cplusplus
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 9838f9ad9e613..8c3be7d76e8a1 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
 pkgname=musl
 reverts="1.2.0_1"
 version=1.1.24
-revision=19
+revision=20
 archs="*-musl"
 bootstrap=yes
 build_style=gnu-configure

From 4ec897967e729da2f536a625a34f4735da34dd50 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 04/37] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 8167cb8c24ccff1b977773a115cb44dc553e8cdb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 05/37] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From d69cc606d985145821b25e9b38bc00103e203f52 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 06/37] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From a24b5780a298ac0fca0d9aeab3be048aaadecb8d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 07/37] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..6af5541e1db5c 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,18 +3,18 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel
+makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
  glibc-32bit glibc-devel-32bit"
 
 depends="

From 0a6caf189cb8e64ac1104383ae53ad63cf2edcc7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 08/37] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 05a9df79aa548ea0a114e3a48da60f2c17f1c0b7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 09/37] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 563bd81da51f2721e478f1b6e05c97e586bc919c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 10/37] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 6ebdec4f19bb746c7d43a63d8acd2353963e4a4a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 11/37] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From e909a13528d2b7bc852a66b83c296053ee86e422 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 12/37] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From ccb6e441792e09f8dd447507dca97624b40dd5ea Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 13/37] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 60eece0627cf408314622f9e86572c45e61266c4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 14/37] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From c84508cb987fc1cda89eeded691f849b2e4a428b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 15/37] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 791771b4a73d264a2cd35a637cf3465081459571 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 16/37] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 02133eae064df88c285c5597edf100f1093deb6c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 17/37] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From eb5fa3fc4f976f7cbcdf5bbd5078385ab979631b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 18/37] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 4355c7a997ce1e87b24ce003b6b6c3f973919249 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 19/37] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From dc88ecd45943a058f3f26a54618be0d8779c92ca Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 20/37] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From c424ead47511223372106b7c28425138e0e8582d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 21/37] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 6a266c4200cdc7599de60b84ee003abeb61a3004 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 22/37] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 27b73f3e52d706cf5a231deafe7a1fdfb49d35c1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 23/37] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 693878b1aa5b9fe3ff1b97435da57f9fcdc022b3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 24/37] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 4c92c359f065beccdba1ec28de4be74334dde37b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 25/37] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From cacb8eb398fbcd7008a5ea9985cd0be295d015a6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 26/37] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From fbecde5f64649785d809adac5baf21101a8924b5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 27/37] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 9315ff997af31153fee903b2596247358441507f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 28/37] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 1929670b11804a690a543e30b95005ae9821bdb4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 29/37] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From f16c6ee4bc235c1b7cbcdc559da889cf9b1c9e24 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 30/37] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From b9220e1ab0e8c26900c6fbd3fadbf6ff776ced1f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 31/37] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 42c2f421d73190fedefe59ad4ab3a01e4a9558f6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 32/37] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 2a2b5434632cba74c556fca3aad1abd871cb3ece Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 33/37] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 6a596dbd7bc5ab83588ee4e0de67f18d623fdd6a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:20:55 -0800
Subject: [PATCH 34/37] linux6.5: update kernel config for gcc 13

---
 srcpkgs/linux6.5/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.5/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.5/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.5/files/arm64-dotconfig b/srcpkgs/linux6.5/files/arm64-dotconfig
index 91fc7c82735b7..d271aaade90f7 100644
--- a/srcpkgs/linux6.5/files/arm64-dotconfig
+++ b/srcpkgs/linux6.5/files/arm64-dotconfig
@@ -12728,6 +12728,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/i386-dotconfig b/srcpkgs/linux6.5/files/i386-dotconfig
index f0a06fee9a72c..402ad2a1f2b14 100644
--- a/srcpkgs/linux6.5/files/i386-dotconfig
+++ b/srcpkgs/linux6.5/files/i386-dotconfig
@@ -10544,6 +10544,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/x86_64-dotconfig b/srcpkgs/linux6.5/files/x86_64-dotconfig
index b94da2cff144d..8ff2011aedd57 100644
--- a/srcpkgs/linux6.5/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.5/files/x86_64-dotconfig
@@ -10899,6 +10899,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From c2e58b77e447bcb894886676c31ed65751d0c0b8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:25 -0800
Subject: [PATCH 35/37] linux6.6: update kernel config for gcc 13

---
 srcpkgs/linux6.6/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.6/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.6/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.6/files/arm64-dotconfig b/srcpkgs/linux6.6/files/arm64-dotconfig
index 688a0dba94a1d..93b8ad6d2d835 100644
--- a/srcpkgs/linux6.6/files/arm64-dotconfig
+++ b/srcpkgs/linux6.6/files/arm64-dotconfig
@@ -12816,6 +12816,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/i386-dotconfig b/srcpkgs/linux6.6/files/i386-dotconfig
index f42b6646a248b..f79bca8495140 100644
--- a/srcpkgs/linux6.6/files/i386-dotconfig
+++ b/srcpkgs/linux6.6/files/i386-dotconfig
@@ -10567,6 +10567,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/x86_64-dotconfig b/srcpkgs/linux6.6/files/x86_64-dotconfig
index 02fe6de8db0de..f59f673ea0028 100644
--- a/srcpkgs/linux6.6/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.6/files/x86_64-dotconfig
@@ -10973,6 +10973,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From ec8f973814167ec3d38b6a029b61964c6e27b896 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:45 -0800
Subject: [PATCH 36/37] linux6.7: update kernel config for gcc 13

---
 srcpkgs/linux6.7/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.7/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.7/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.7/files/arm64-dotconfig b/srcpkgs/linux6.7/files/arm64-dotconfig
index 8a36aac1c8470..72e239cf7cdd8 100644
--- a/srcpkgs/linux6.7/files/arm64-dotconfig
+++ b/srcpkgs/linux6.7/files/arm64-dotconfig
@@ -12908,6 +12908,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/i386-dotconfig b/srcpkgs/linux6.7/files/i386-dotconfig
index 56130f5467465..99ae443987037 100644
--- a/srcpkgs/linux6.7/files/i386-dotconfig
+++ b/srcpkgs/linux6.7/files/i386-dotconfig
@@ -10647,6 +10647,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/x86_64-dotconfig b/srcpkgs/linux6.7/files/x86_64-dotconfig
index f25d1f64fa9d7..2f051fc9ac256 100644
--- a/srcpkgs/linux6.7/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.7/files/x86_64-dotconfig
@@ -11055,6 +11055,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From f85f29fb64be122bb92173b897c4fd437d8912c1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 20:14:02 -0800
Subject: [PATCH 37/37] rdfind: fix build for gcc 13

---
 ...f698dd680931b5c2f05688319290bdf0d930.patch | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch

diff --git a/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
new file mode 100644
index 0000000000000..627d8267aa8bd
--- /dev/null
+++ b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
@@ -0,0 +1,21 @@
+From f6c3f698dd680931b5c2f05688319290bdf0d930 Mon Sep 17 00:00:00 2001
+From: Paul Dreik <rdfind@pauldreik.se>
+Date: Fri, 16 Jun 2023 08:19:29 +0200
+Subject: [PATCH] add missing include <cstdint>
+
+---
+ Fileinfo.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Fileinfo.hh b/Fileinfo.hh
+index 3ffb837..23ed54e 100644
+--- a/Fileinfo.hh
++++ b/Fileinfo.hh
+@@ -8,6 +8,7 @@
+ #define Fileinfo_hh
+ 
+ #include <array>
++#include <cstdint>
+ #include <string>
+ 
+ // os specific headers

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (47 preceding siblings ...)
  2024-01-22 21:55 ` oreo639
@ 2024-01-22 21:56 ` oreo639
  2024-01-24 21:09 ` oreo639
                   ` (8 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-22 21:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 104030 bytes --]

From 71742ed5ada6592627f555011555f39b29de1bf5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/37] binutils: update to 2.41.

---
 common/shlibs                                 |  3 ++
 srcpkgs/binutils-libs                         |  1 +
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     | 29 ++++++----
 4 files changed, 22 insertions(+), 64 deletions(-)
 create mode 120000 srcpkgs/binutils-libs
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/common/shlibs b/common/shlibs
index 9e6d29c73341e..765df5bddab6f 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -72,6 +72,9 @@ libmpfr.so.6 mpfr-4.0.0_1
 libppl.so.14 ppl-1.2_1
 libppl_c.so.4 ppl-0.11_1
 libstdc++.so.6 libstdc++-4.4.0_1
+libsframe.so.1 binutils-libs-2.41_1
+libctf-nobfd.so.0 binutils-libs-2.41_1
+libctf.so.0 binutils-libs-2.41_1
 libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libtinfo.so.6 ncurses-libtinfo-libs-6.2_2
diff --git a/srcpkgs/binutils-libs b/srcpkgs/binutils-libs
new file mode 120000
index 0000000000000..695eb82eae648
--- /dev/null
+++ b/srcpkgs/binutils-libs
@@ -0,0 +1 @@
+binutils
\ No newline at end of file
diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..382684c150532 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
-makedepends="zlib-devel"
+makedepends="zlib-devel libzstd-devel"
 short_desc="GNU binary utilities"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"
@@ -21,8 +21,8 @@ if [ "$CHROOT_READY" ]; then
 	hostmakedepends+=" flex perl texinfo"
 	makedepends+=" elfutils-devel"
 	checkdepends="bc"
-	depends="binutils-doc"
-	subpackages+=" libiberty-devel binutils-devel"
+	depends="binutils-doc binutils-libs"
+	subpackages+=" libiberty-devel binutils-libs binutils-devel"
 fi
 
 _get_triplet() {
@@ -138,9 +138,9 @@ do_install() {
 		# Remove these symlinks, they are not ABI stable.
 		# Programs should compile static to the .a file.
 		rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
-		echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libbfd.a -lsframe -liberty -lzstd -lz )" \
 			>${DESTDIR}/usr/lib/libbfd.so
-		echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libopcodes.a -lbfd )" \
 			>${DESTDIR}/usr/lib/libopcodes.so
 
 		# Install PIC version of libiberty.a
@@ -158,13 +158,20 @@ do_install() {
 }
 
 binutils-devel_package() {
-	depends="zlib-devel libiberty-devel"
+	depends="binutils-libs zlib-devel libzstd-devel libiberty-devel"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.a"
-		vmove "usr/lib/libbfd.so"
-		vmove "usr/lib/libopcodes.so"
+		vmove "usr/lib/*.so"
+	}
+}
+
+binutils-libs_package() {
+	short_desc+=" - shared libraries"
+	pkg_install() {
+		vmove "usr/lib/lib*-${version}.so"
+		vmove "usr/lib/*.so.*"
 	}
 }
 

From 33035bfe1b77062c72343ac3f49461899e4231a2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/37] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  55 +--
 10 files changed, 354 insertions(+), 306 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 765df5bddab6f..ae065da4c001d 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -62,7 +62,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -854,8 +854,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1671,6 +1671,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..4bddc0c1bf9c0 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -36,6 +36,7 @@ replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
  libssp>=0 libssp-devel>=0"
 
 _have_gccgo=yes
+_have_libquadmath=no
 
 # MIPS is untested and does not have go in crosstoolchains
 # 32-bit PowerPC seems weirdly broken since the 10.x release
@@ -45,6 +46,10 @@ case "$XBPS_TARGET_MACHINE" in
 	mips*-musl|ppc*) _have_gccgo=no ;;
 esac
 
+case "$XBPS_TARGET_MACHINE" in
+	i686*|x86_64*|ppc64le) _have_libquadmath=yes ;;
+esac
+
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="tar texinfo perl flex"
 else
@@ -85,6 +90,10 @@ fi
 if [ "$CHROOT_READY" ]; then
 	subpackages+=" gcc-fortran libgfortran-devel libgfortran"
 	subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		subpackages+=" libquadmath libquadmath-devel"
+	fi
 fi
 
 if [ "$_have_gccgo" = "yes" ]; then
@@ -136,12 +145,8 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*)
-		subpackages+=" libquadmath libquadmath-devel"
 		subpackages+=" libvtv libvtv-devel"
 		;;
-	ppc64le)
-		subpackages+=" libquadmath libquadmath-devel"
-		;;
 esac
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;;
@@ -187,8 +192,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -385,10 +394,9 @@ do_install() {
 		vman ${FILESDIR}/${f}.1
 	done
 
-	case "$XBPS_TARGET_MACHINE" in
-		i686*|x86_64*|ppc64le) ;;
-		*) rm -f ${DESTDIR}/usr/share/info/libquadmath.info;;
-	esac
+	if [ "$_have_libquadmath" != "yes"]; then
+		rm -f ${DESTDIR}/usr/share/info/libquadmath.info
+	fi
 }
 
 gcc-ada_package() {
@@ -502,6 +510,11 @@ libada_package() {
 libgfortran-devel_package() {
 	depends="libgfortran>=${_minorver}"
 	short_desc+=" - Fortran library - development files"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		depends+=" libquadmath-devel"
+	fi
+
 	pkg_install() {
 		vmove usr/lib/libgfortran.spec
 		vmove usr/lib/libgfortran.a
@@ -675,7 +688,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove "usr/lib/lib*san_preinit.o"
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From 9d9ecc7f500536123d0839e4def311454a2133d5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 22 Jan 2024 13:30:57 -0800
Subject: [PATCH 03/37] musl: remove compat basename declaration

This declaration was added to musl to avoid warnings for applications that
expect basename() in string.h.

Pre-ansi style declarations were used to avoid causing errors due to
incompatibile declarations of basename().

In C23, just like in C++, function declarations with no arguments are treated
as having no arguments, instead of having unspecified arguments. As such,
this creates a conflicting declaration in C23.
---
 srcpkgs/musl/patches/c23-basename.patch | 44 +++++++++++++++++++++++++
 srcpkgs/musl/template                   |  2 +-
 2 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/musl/patches/c23-basename.patch

diff --git a/srcpkgs/musl/patches/c23-basename.patch b/srcpkgs/musl/patches/c23-basename.patch
new file mode 100644
index 0000000000000..8f95a27d0ef56
--- /dev/null
+++ b/srcpkgs/musl/patches/c23-basename.patch
@@ -0,0 +1,44 @@
+From 725e17ed6dff4d0cd22487bb64470881e86a92e7 Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Mon, 6 Nov 2023 08:26:19 -0500
+Subject: [PATCH] remove non-prototype declaration of basename from string.h
+
+commit 37bb3cce4598c19288628e675eaf1cda6e96958f suppressed the
+declaration for C++, where it is wrongly interpreted as declaring the
+function as taking no arguments. with C23 removing non-prototype
+declarations, that problem is now also relevant to C.
+
+the non-prototype declaration for basename originates with commit
+06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500, where it was designed to
+avoid conflicts with programs which declare basename with the GNU
+signature taking const char *. that change was probably misguided, as
+it represents not only misaligned expectations with the caller, but
+also undefined behavior (calling a function that's been declared with
+the wrong type).
+
+we could opt to fix the declaration, but since glibc, with the
+gratuitously incompatible GNU-basename function, seems to be the only
+implementation that declares it in string.h, it seems better to just
+remove the declaration. this provides some warning if applications are
+being built expecting the GNU behavior but not getting it. if we
+declared it here, it would only produce a warning if the caller also
+declares it themselves (rare) or if the caller attempts to pass a
+const-qualified pointer.
+---
+ include/string.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/include/string.h b/include/string.h
+index db73d2a9..83e2b946 100644
+--- a/include/string.h
++++ b/include/string.h
+@@ -95,9 +95,6 @@ char *strchrnul(const char *, int);
+ char *strcasestr(const char *, const char *);
+ void *memrchr(const void *, int, size_t);
+ void *mempcpy(void *, const void *, size_t);
+-#ifndef __cplusplus
+-char *basename();
+-#endif
+ #endif
+ 
+ #ifdef __cplusplus
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 9838f9ad9e613..8c3be7d76e8a1 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
 pkgname=musl
 reverts="1.2.0_1"
 version=1.1.24
-revision=19
+revision=20
 archs="*-musl"
 bootstrap=yes
 build_style=gnu-configure

From 15d9e71e925b06c8902870c598f928c9255aea21 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 04/37] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 96d22ba0caa671732f376d0f6933ccf17d4173db Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 05/37] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From b3d6f528f1830fdd989ef3d043f36f19465603d2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 06/37] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From 8938f9a4d777c2b240a26c10282705d5a013ef83 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 07/37] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..6af5541e1db5c 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,18 +3,18 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel
+makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
  glibc-32bit glibc-devel-32bit"
 
 depends="

From 121b56c382911626c5237fb75526e1dd43feeac1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 08/37] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From fc6ec1a01b0f3e4fcaa9c6001eac60d660a38423 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 09/37] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From a993b6c5f689c523af680b84ee899de729b333f2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 10/37] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From f5c342d0edd8aa29d8b97a4cf724f877c2e68d5b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 11/37] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From a889e7a71c79d647471b76444601dde32668b5d6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 12/37] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 77b6e1b83f09ea8c5bbdee1db729d202598646e3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 13/37] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From d016a4b88205977eb75b848e18a67023ca9a1d67 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 14/37] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 5064f35a6e8baf943b8de12c8593cb099abff8c2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 15/37] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From fa6681118dcf465c2328d3eb20b490df798ccdc3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 16/37] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 0d0dc9a24e6ec54502122a560866bdd1fef6562a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 17/37] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 5a14a4857f722c193bc19b8e27809b43f7e6a3ce Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 18/37] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From b3c0d32b7e5e7b56db7651ceabdf671eaadd8225 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 19/37] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From b0b6ca56882dbc5a5fa966bcc3c9edb323a8a6af Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 20/37] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 3e786a13842b61f35fb8368afa062a73b57c2a3b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 21/37] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 1616e1cb9685cfdbf38e86ffd4fe0fc4739f84cf Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 22/37] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 67bc1de71edc2af20c60d4c93e1878ee45b368d8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 23/37] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 31c71686b367d4f269a4c7b9e37aed061fb70fb2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 24/37] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From a44156c7fe5af39d818bea83f71929b7a2ca56ba Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 25/37] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From e9532a28f14868374591d5ddb2c7b6b3e80721f6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 26/37] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 42a5a7a653e081fde7d43f2baf5f2913ce244989 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 27/37] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 74fd572eb999d1111dc0260f9a27e59fd95636a8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 28/37] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 3a494ad632e6f8e85ed87bfffe14324504fe45d1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 29/37] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 3643c615da68fad66ce83e3cf7c38d407cb5f4fe Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 30/37] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From cccc381bfcc57a7a45e0b93b5f82f8d2ae8a3c1d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 31/37] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 17e18f741f8299a24c035eb7992cd427cf99e51e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 32/37] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 57f0145f3dbac9025f82e0b1a5fb2434e4c7b75e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 33/37] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From fcb4334e8656a68968fde1906da6ecb3af5ff25a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:20:55 -0800
Subject: [PATCH 34/37] linux6.5: update kernel config for gcc 13

---
 srcpkgs/linux6.5/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.5/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.5/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.5/files/arm64-dotconfig b/srcpkgs/linux6.5/files/arm64-dotconfig
index 91fc7c82735b7..d271aaade90f7 100644
--- a/srcpkgs/linux6.5/files/arm64-dotconfig
+++ b/srcpkgs/linux6.5/files/arm64-dotconfig
@@ -12728,6 +12728,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/i386-dotconfig b/srcpkgs/linux6.5/files/i386-dotconfig
index f0a06fee9a72c..402ad2a1f2b14 100644
--- a/srcpkgs/linux6.5/files/i386-dotconfig
+++ b/srcpkgs/linux6.5/files/i386-dotconfig
@@ -10544,6 +10544,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.5/files/x86_64-dotconfig b/srcpkgs/linux6.5/files/x86_64-dotconfig
index b94da2cff144d..8ff2011aedd57 100644
--- a/srcpkgs/linux6.5/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.5/files/x86_64-dotconfig
@@ -10899,6 +10899,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From b7b1d2a20c947178d1382a4b876b012024702591 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:25 -0800
Subject: [PATCH 35/37] linux6.6: update kernel config for gcc 13

---
 srcpkgs/linux6.6/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.6/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.6/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.6/files/arm64-dotconfig b/srcpkgs/linux6.6/files/arm64-dotconfig
index 688a0dba94a1d..93b8ad6d2d835 100644
--- a/srcpkgs/linux6.6/files/arm64-dotconfig
+++ b/srcpkgs/linux6.6/files/arm64-dotconfig
@@ -12816,6 +12816,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/i386-dotconfig b/srcpkgs/linux6.6/files/i386-dotconfig
index f42b6646a248b..f79bca8495140 100644
--- a/srcpkgs/linux6.6/files/i386-dotconfig
+++ b/srcpkgs/linux6.6/files/i386-dotconfig
@@ -10567,6 +10567,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/x86_64-dotconfig b/srcpkgs/linux6.6/files/x86_64-dotconfig
index 02fe6de8db0de..f59f673ea0028 100644
--- a/srcpkgs/linux6.6/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.6/files/x86_64-dotconfig
@@ -10973,6 +10973,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From b9697f09f8a27fedd5b0f5e21de42297c73f6236 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:45 -0800
Subject: [PATCH 36/37] linux6.7: update kernel config for gcc 13

---
 srcpkgs/linux6.7/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.7/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.7/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.7/files/arm64-dotconfig b/srcpkgs/linux6.7/files/arm64-dotconfig
index 8a36aac1c8470..72e239cf7cdd8 100644
--- a/srcpkgs/linux6.7/files/arm64-dotconfig
+++ b/srcpkgs/linux6.7/files/arm64-dotconfig
@@ -12908,6 +12908,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/i386-dotconfig b/srcpkgs/linux6.7/files/i386-dotconfig
index 56130f5467465..99ae443987037 100644
--- a/srcpkgs/linux6.7/files/i386-dotconfig
+++ b/srcpkgs/linux6.7/files/i386-dotconfig
@@ -10647,6 +10647,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/x86_64-dotconfig b/srcpkgs/linux6.7/files/x86_64-dotconfig
index f25d1f64fa9d7..2f051fc9ac256 100644
--- a/srcpkgs/linux6.7/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.7/files/x86_64-dotconfig
@@ -11055,6 +11055,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 61e52bb313cb20d837ad182b01ad90190d9ebafc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 20:14:02 -0800
Subject: [PATCH 37/37] rdfind: fix build for gcc 13

---
 ...f698dd680931b5c2f05688319290bdf0d930.patch | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch

diff --git a/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
new file mode 100644
index 0000000000000..627d8267aa8bd
--- /dev/null
+++ b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
@@ -0,0 +1,21 @@
+From f6c3f698dd680931b5c2f05688319290bdf0d930 Mon Sep 17 00:00:00 2001
+From: Paul Dreik <rdfind@pauldreik.se>
+Date: Fri, 16 Jun 2023 08:19:29 +0200
+Subject: [PATCH] add missing include <cstdint>
+
+---
+ Fileinfo.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Fileinfo.hh b/Fileinfo.hh
+index 3ffb837..23ed54e 100644
+--- a/Fileinfo.hh
++++ b/Fileinfo.hh
+@@ -8,6 +8,7 @@
+ #define Fileinfo_hh
+ 
+ #include <array>
++#include <cstdint>
+ #include <string>
+ 
+ // os specific headers

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (48 preceding siblings ...)
  2024-01-22 21:56 ` oreo639
@ 2024-01-24 21:09 ` oreo639
  2024-01-25 14:00 ` leahneukirchen
                   ` (7 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-24 21:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 105164 bytes --]

From 8948437407dab5508e1c2b7fd5e5ff51f228bd56 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/38] binutils: update to 2.41.

---
 common/shlibs                                 |  3 ++
 srcpkgs/binutils-libs                         |  1 +
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     | 29 ++++++----
 4 files changed, 22 insertions(+), 64 deletions(-)
 create mode 120000 srcpkgs/binutils-libs
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/common/shlibs b/common/shlibs
index c75bfe2670907..c5734251bb272 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -73,6 +73,9 @@ libmpfr.so.6 mpfr-4.0.0_1
 libppl.so.14 ppl-1.2_1
 libppl_c.so.4 ppl-0.11_1
 libstdc++.so.6 libstdc++-4.4.0_1
+libsframe.so.1 binutils-libs-2.41_1
+libctf-nobfd.so.0 binutils-libs-2.41_1
+libctf.so.0 binutils-libs-2.41_1
 libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libtinfo.so.6 ncurses-libtinfo-libs-6.2_2
diff --git a/srcpkgs/binutils-libs b/srcpkgs/binutils-libs
new file mode 120000
index 0000000000000..695eb82eae648
--- /dev/null
+++ b/srcpkgs/binutils-libs
@@ -0,0 +1 @@
+binutils
\ No newline at end of file
diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..382684c150532 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
-makedepends="zlib-devel"
+makedepends="zlib-devel libzstd-devel"
 short_desc="GNU binary utilities"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"
@@ -21,8 +21,8 @@ if [ "$CHROOT_READY" ]; then
 	hostmakedepends+=" flex perl texinfo"
 	makedepends+=" elfutils-devel"
 	checkdepends="bc"
-	depends="binutils-doc"
-	subpackages+=" libiberty-devel binutils-devel"
+	depends="binutils-doc binutils-libs"
+	subpackages+=" libiberty-devel binutils-libs binutils-devel"
 fi
 
 _get_triplet() {
@@ -138,9 +138,9 @@ do_install() {
 		# Remove these symlinks, they are not ABI stable.
 		# Programs should compile static to the .a file.
 		rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
-		echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libbfd.a -lsframe -liberty -lzstd -lz )" \
 			>${DESTDIR}/usr/lib/libbfd.so
-		echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libopcodes.a -lbfd )" \
 			>${DESTDIR}/usr/lib/libopcodes.so
 
 		# Install PIC version of libiberty.a
@@ -158,13 +158,20 @@ do_install() {
 }
 
 binutils-devel_package() {
-	depends="zlib-devel libiberty-devel"
+	depends="binutils-libs zlib-devel libzstd-devel libiberty-devel"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.a"
-		vmove "usr/lib/libbfd.so"
-		vmove "usr/lib/libopcodes.so"
+		vmove "usr/lib/*.so"
+	}
+}
+
+binutils-libs_package() {
+	short_desc+=" - shared libraries"
+	pkg_install() {
+		vmove "usr/lib/lib*-${version}.so"
+		vmove "usr/lib/*.so.*"
 	}
 }
 

From b955c580a0b4c2cfc013d6dc840ded7b29971cde Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/38] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  55 +--
 10 files changed, 354 insertions(+), 306 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index c5734251bb272..8240e57de725e 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -855,8 +855,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1672,6 +1672,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..2c644c1e19a2d 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -36,6 +36,7 @@ replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
  libssp>=0 libssp-devel>=0"
 
 _have_gccgo=yes
+_have_libquadmath=no
 
 # MIPS is untested and does not have go in crosstoolchains
 # 32-bit PowerPC seems weirdly broken since the 10.x release
@@ -45,6 +46,10 @@ case "$XBPS_TARGET_MACHINE" in
 	mips*-musl|ppc*) _have_gccgo=no ;;
 esac
 
+case "$XBPS_TARGET_MACHINE" in
+	i686*|x86_64*|ppc64le) _have_libquadmath=yes ;;
+esac
+
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="tar texinfo perl flex"
 else
@@ -85,6 +90,10 @@ fi
 if [ "$CHROOT_READY" ]; then
 	subpackages+=" gcc-fortran libgfortran-devel libgfortran"
 	subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		subpackages+=" libquadmath libquadmath-devel"
+	fi
 fi
 
 if [ "$_have_gccgo" = "yes" ]; then
@@ -136,12 +145,8 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*)
-		subpackages+=" libquadmath libquadmath-devel"
 		subpackages+=" libvtv libvtv-devel"
 		;;
-	ppc64le)
-		subpackages+=" libquadmath libquadmath-devel"
-		;;
 esac
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;;
@@ -187,8 +192,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -385,10 +394,9 @@ do_install() {
 		vman ${FILESDIR}/${f}.1
 	done
 
-	case "$XBPS_TARGET_MACHINE" in
-		i686*|x86_64*|ppc64le) ;;
-		*) rm -f ${DESTDIR}/usr/share/info/libquadmath.info;;
-	esac
+	if [ "$_have_libquadmath" != "yes"]; then
+		rm -f ${DESTDIR}/usr/share/info/libquadmath.info*
+	fi
 }
 
 gcc-ada_package() {
@@ -502,6 +510,11 @@ libada_package() {
 libgfortran-devel_package() {
 	depends="libgfortran>=${_minorver}"
 	short_desc+=" - Fortran library - development files"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		depends+=" libquadmath-devel"
+	fi
+
 	pkg_install() {
 		vmove usr/lib/libgfortran.spec
 		vmove usr/lib/libgfortran.a
@@ -675,7 +688,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove "usr/lib/lib*san_preinit.o"
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From 566cf6079acf3a8744319a82968f3d4cfb25742f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 22 Jan 2024 13:30:57 -0800
Subject: [PATCH 03/38] musl: remove compat basename declaration

This declaration was added to musl to avoid warnings for applications that
expect basename() in string.h.

Pre-ansi style declarations were used to avoid causing errors due to
incompatibile declarations of basename().

In C23, just like in C++, function declarations with no arguments are treated
as having no arguments, instead of having unspecified arguments. As such,
this creates a conflicting declaration in C23.
---
 srcpkgs/musl/patches/c23-basename.patch | 44 +++++++++++++++++++++++++
 srcpkgs/musl/template                   |  2 +-
 2 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/musl/patches/c23-basename.patch

diff --git a/srcpkgs/musl/patches/c23-basename.patch b/srcpkgs/musl/patches/c23-basename.patch
new file mode 100644
index 0000000000000..8f95a27d0ef56
--- /dev/null
+++ b/srcpkgs/musl/patches/c23-basename.patch
@@ -0,0 +1,44 @@
+From 725e17ed6dff4d0cd22487bb64470881e86a92e7 Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Mon, 6 Nov 2023 08:26:19 -0500
+Subject: [PATCH] remove non-prototype declaration of basename from string.h
+
+commit 37bb3cce4598c19288628e675eaf1cda6e96958f suppressed the
+declaration for C++, where it is wrongly interpreted as declaring the
+function as taking no arguments. with C23 removing non-prototype
+declarations, that problem is now also relevant to C.
+
+the non-prototype declaration for basename originates with commit
+06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500, where it was designed to
+avoid conflicts with programs which declare basename with the GNU
+signature taking const char *. that change was probably misguided, as
+it represents not only misaligned expectations with the caller, but
+also undefined behavior (calling a function that's been declared with
+the wrong type).
+
+we could opt to fix the declaration, but since glibc, with the
+gratuitously incompatible GNU-basename function, seems to be the only
+implementation that declares it in string.h, it seems better to just
+remove the declaration. this provides some warning if applications are
+being built expecting the GNU behavior but not getting it. if we
+declared it here, it would only produce a warning if the caller also
+declares it themselves (rare) or if the caller attempts to pass a
+const-qualified pointer.
+---
+ include/string.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/include/string.h b/include/string.h
+index db73d2a9..83e2b946 100644
+--- a/include/string.h
++++ b/include/string.h
+@@ -95,9 +95,6 @@ char *strchrnul(const char *, int);
+ char *strcasestr(const char *, const char *);
+ void *memrchr(const void *, int, size_t);
+ void *mempcpy(void *, const void *, size_t);
+-#ifndef __cplusplus
+-char *basename();
+-#endif
+ #endif
+ 
+ #ifdef __cplusplus
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 9838f9ad9e613..8c3be7d76e8a1 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
 pkgname=musl
 reverts="1.2.0_1"
 version=1.1.24
-revision=19
+revision=20
 archs="*-musl"
 bootstrap=yes
 build_style=gnu-configure

From 6d45cd667724f0e237b797efc9f4425494dd90f4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 04/38] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 29b7a1c3e798c74891801b88dc5ebe0429dd6ca5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 05/38] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From 919143ca18575a8623ed8d843f972a6f8fc292a2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 06/38] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From 5cd8dc0c10f7fa85b5d1148964c71d4e95ab2e64 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 07/38] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..6af5541e1db5c 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,18 +3,18 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel
+makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
  glibc-32bit glibc-devel-32bit"
 
 depends="

From d993374cdcba5fad4f3552b6888948c36784289e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 24 Jan 2024 13:06:14 -0800
Subject: [PATCH 08/38] build-style/void-cross.sh: include libquadmath

---
 common/build-style/void-cross.sh | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/common/build-style/void-cross.sh b/common/build-style/void-cross.sh
index 9193b7cf64bad..c6e542c670678 100644
--- a/common/build-style/void-cross.sh
+++ b/common/build-style/void-cross.sh
@@ -404,13 +404,8 @@ _void_cross_build_gcc() {
 
 	# note on --disable-libquadmath:
 	# on some platforms the library is actually necessary for the
-	# fortran frontend to build, but still disable it because it
-	# should not be in the resulting packages; it conflicts with
-	# the libquadmath you can install into the cross root
-	#
-	# platforms where this is a problem should explicitly force
-	# libquadmath to be on via cross_gcc_configure_args, the
-	# do_install in this build-style automatically removes it
+	# fortran frontend to build, platforms where this is a problem
+	# should explicitly force libquadmath to be on via cross_gcc_configure_args
 	#
 	../gcc-${ver}/configure \
 		--prefix=/usr \
@@ -646,10 +641,6 @@ do_install() {
 	ln -sf libgnat-${gcc_major}.so ${DESTDIR}/${sysroot}/usr/lib/libgnat.so
 	rm -vf ${DESTDIR}/${adalib}/libgna{rl,t}.so
 
-	# If libquadmath was forced (needed for gfortran on some platforms)
-	# then remove it because it conflicts with libquadmath package
-	rm -rf ${DESTDIR}/${sysroot}/usr/lib/libquadmath.*
-
 	# Remove libdep linker plugin because it conflicts with system binutils
 	rm -f ${DESTDIR}/usr/lib/bfd-plugins/libdep*
 

From c33b71551b884814482468f3c4f20186d8b9decc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 24 Jan 2024 13:07:24 -0800
Subject: [PATCH 09/38] cross-vpkg-dummy: update to 0.40.

---
 srcpkgs/cross-vpkg-dummy/template | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index feaccd4dc265d..2946be3f2bcec 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,7 +1,7 @@
 # Template file for 'cross-vpkg-dummy'
 pkgname=cross-vpkg-dummy
-version=0.39
-revision=6
+version=0.40
+revision=1
 build_style=meta
 depends="base-files>=0.126"
 short_desc="Dummy meta-pkg for cross building packages with xbps-src"
@@ -21,8 +21,12 @@ provides="
 	libstdc++-devel-9999_1
 	libgfortran-9999_1
 	libgfortran-devel-9999_1
+	libquadmath-9999_1
+	libquadmath-devel-9999_1
 	libgo-9999_1
 	libgo-devel-9999_1
+	libgomp-9999_1
+	libgomp-devel-9999_1
 	libobjc-9999_1
 	libobjc-devel-9999_1
 	libssp-12.2.0_2
@@ -46,8 +50,12 @@ conflicts="
 	libstdc++-devel>=0
 	libgfortran>=0
 	libgfortran-devel>=0
+	libquadmath>=0
+	libquadmath-devel>=0
 	libgo>=0
 	libgo-devel>=0
+	libgomp>=0
+	libgomp-devel>=0
 	libobjc>=0
 	libobjc-devel>=0
 	libssp>=0
@@ -61,8 +69,8 @@ conflicts="
 shlib_provides="
 	libatomic.so.1
 	libgcc_s.so.1
-	libgnat-12.so
-	libgnarl-12.so
+	libgnat-13.so
+	libgnarl-13.so
 	libstdc++.so.6
 	libgfortran.so.5"
 repository=bootstrap

From 7303a30154e59149326dc83508eb71e29403ff93 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 10/38] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..51607390afb8c 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From edc6089597321b4d338a162ce7e113c653d689c4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 11/38] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..9035c209e660c 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 2a450003f8357dab4766ec66bca84b7634de3536 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 12/38] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..b85922263c09d 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From d5c61bf96681b35e571c347224d578b3dbd4b5b7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 13/38] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..1b2ba97425405 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 283531e8082a6386c53c96d65694e628f08a2547 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 14/38] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..18716d6d3a855 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 673e604ebb4dbec16830eb1030fa1fedee0d2431 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 15/38] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..e3d450be9fb85 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -24,8 +24,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From e011efbeafac2d9c5bfb3a19c3f1b221ab2bb34e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 16/38] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..edc6e0e0a4b18 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From ac62519a9ccbac5d4443a5a6e4df7e41e20f07b4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 17/38] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..1da65ed852e23 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From fbff65b1e813b92f030558c3ccf167c4f488b9d5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:00 -0800
Subject: [PATCH 18/38] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..8bb006c7ebb70 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 7d93a9594d48c1b4989b3b24d97cd8271d04e5fd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 19/38] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..9aeebf7ff8ea4 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 44b64c9faaeb3de685c2e5257b5108733e66dc40 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 20/38] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..c5bb10bb1e2a3 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 263130a2417072007bd151a01679c4206c54a3d2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 21/38] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..1dbc71fec0ed2 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From a1aa735dc067859273fa64e749dc06315bb70258 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 22/38] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..b6ffe5cec0b20 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 87206c0cfde9ccd6685b56a6385659f7103d0e8a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 23/38] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..f90cc6a05cf86 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 4d83b2762df1dd915251b9ea53625eab8e202615 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 24/38] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..10d7036650601 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 43d6599c4849fa31d661d924f93f94449bef01e0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 25/38] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..2853e1c70d18c 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From bfeebd97794db524711781dc661a13ee48f4fa90 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 26/38] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..5c4ee125a724d 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From dca71cf64e71469f35030e6fe32ef17aa2228c7a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 27/38] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..21e66ebc4f38c 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 37f9f1631d17bcd58c1fa02c071a15d42e401e71 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 28/38] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..a910148cd4fc5 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -21,8 +21,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 24f2666e882158bdbcc83425d01d68dc2a6db575 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 29/38] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..fd5a71bd28448 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -25,8 +25,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 176557096b892db9b9f1df7f55e6cf5cc4aead3f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 30/38] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..219e78409ea5b 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From b00ccc11be338effd88cdfce2c55f86cbb48b744 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:01 -0800
Subject: [PATCH 31/38] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..e99ca14b99d06 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -22,8 +22,8 @@ distfiles="
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From ae95905b6b0ed352ac5cc6a0efb410977f506351 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 32/38] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..833b2fc6fbdcc 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -20,8 +20,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 0319cd584222b3062b5b1eedd396f73117365db1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 33/38] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..61c520b01d31b 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -23,8 +23,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 495512bc74466081b807c9b7dad053c6cafdf5bd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 34/38] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..27e571f505515 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
 _linux_version=5.10.4
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -19,8 +19,8 @@ distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
 distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
 nocross=yes

From 55e363ff041de2260db5d9027120135636361495 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 27 Dec 2023 19:30:02 -0800
Subject: [PATCH 35/38] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..431c776244782 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
 _linux_version=5.10.4
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -22,8 +22,8 @@ distfiles="
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
  ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
  904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"

From 9d5a4fed504df7dfdfed2a2a13a5c2612d21ae57 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:25 -0800
Subject: [PATCH 36/38] linux6.6: update kernel config for gcc 13

---
 srcpkgs/linux6.6/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.6/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.6/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.6/files/arm64-dotconfig b/srcpkgs/linux6.6/files/arm64-dotconfig
index 688a0dba94a1d..93b8ad6d2d835 100644
--- a/srcpkgs/linux6.6/files/arm64-dotconfig
+++ b/srcpkgs/linux6.6/files/arm64-dotconfig
@@ -12816,6 +12816,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/i386-dotconfig b/srcpkgs/linux6.6/files/i386-dotconfig
index f42b6646a248b..f79bca8495140 100644
--- a/srcpkgs/linux6.6/files/i386-dotconfig
+++ b/srcpkgs/linux6.6/files/i386-dotconfig
@@ -10567,6 +10567,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/x86_64-dotconfig b/srcpkgs/linux6.6/files/x86_64-dotconfig
index 02fe6de8db0de..f59f673ea0028 100644
--- a/srcpkgs/linux6.6/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.6/files/x86_64-dotconfig
@@ -10973,6 +10973,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 85e3495f92681bb174628cd4a627cbce65297d2a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:45 -0800
Subject: [PATCH 37/38] linux6.7: update kernel config for gcc 13

---
 srcpkgs/linux6.7/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.7/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.7/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.7/files/arm64-dotconfig b/srcpkgs/linux6.7/files/arm64-dotconfig
index 8a36aac1c8470..72e239cf7cdd8 100644
--- a/srcpkgs/linux6.7/files/arm64-dotconfig
+++ b/srcpkgs/linux6.7/files/arm64-dotconfig
@@ -12908,6 +12908,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/i386-dotconfig b/srcpkgs/linux6.7/files/i386-dotconfig
index 56130f5467465..99ae443987037 100644
--- a/srcpkgs/linux6.7/files/i386-dotconfig
+++ b/srcpkgs/linux6.7/files/i386-dotconfig
@@ -10647,6 +10647,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/x86_64-dotconfig b/srcpkgs/linux6.7/files/x86_64-dotconfig
index f25d1f64fa9d7..2f051fc9ac256 100644
--- a/srcpkgs/linux6.7/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.7/files/x86_64-dotconfig
@@ -11055,6 +11055,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From d4f767af93b97d6218bb231a8f297ee2c357d606 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 20:14:02 -0800
Subject: [PATCH 38/38] rdfind: fix build for gcc 13

---
 ...f698dd680931b5c2f05688319290bdf0d930.patch | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch

diff --git a/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
new file mode 100644
index 0000000000000..627d8267aa8bd
--- /dev/null
+++ b/srcpkgs/rdfind/patches/f6c3f698dd680931b5c2f05688319290bdf0d930.patch
@@ -0,0 +1,21 @@
+From f6c3f698dd680931b5c2f05688319290bdf0d930 Mon Sep 17 00:00:00 2001
+From: Paul Dreik <rdfind@pauldreik.se>
+Date: Fri, 16 Jun 2023 08:19:29 +0200
+Subject: [PATCH] add missing include <cstdint>
+
+---
+ Fileinfo.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Fileinfo.hh b/Fileinfo.hh
+index 3ffb837..23ed54e 100644
+--- a/Fileinfo.hh
++++ b/Fileinfo.hh
+@@ -8,6 +8,7 @@
+ #define Fileinfo_hh
+ 
+ #include <array>
++#include <cstdint>
+ #include <string>
+ 
+ // os specific headers

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (49 preceding siblings ...)
  2024-01-24 21:09 ` oreo639
@ 2024-01-25 14:00 ` leahneukirchen
  2024-01-27  2:30 ` [PR PATCH] [Updated] " oreo639
                   ` (6 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: leahneukirchen @ 2024-01-25 14:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 158 bytes --]

New comment by leahneukirchen on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1910276364

Comment:
:shipit: 

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (50 preceding siblings ...)
  2024-01-25 14:00 ` leahneukirchen
@ 2024-01-27  2:30 ` oreo639
  2024-01-27  9:27 ` oreo639
                   ` (5 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-27  2:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

You can test the ISOs here: https://drive.google.com/drive/u/0/folders/1y5dkzI9R60eDjRA4mVYBdnn9e9PDGwNt

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 113340 bytes --]

From 82331d24255170fc567852af3b2c5bbf4e4094a4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/38] binutils: update to 2.41.

---
 common/shlibs                                 |  3 ++
 srcpkgs/binutils-libs                         |  1 +
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     | 29 ++++++----
 4 files changed, 22 insertions(+), 64 deletions(-)
 create mode 120000 srcpkgs/binutils-libs
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/common/shlibs b/common/shlibs
index 27763bf428b75..33b2500e5ea65 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -73,6 +73,9 @@ libmpfr.so.6 mpfr-4.0.0_1
 libppl.so.14 ppl-1.2_1
 libppl_c.so.4 ppl-0.11_1
 libstdc++.so.6 libstdc++-4.4.0_1
+libsframe.so.1 binutils-libs-2.41_1
+libctf-nobfd.so.0 binutils-libs-2.41_1
+libctf.so.0 binutils-libs-2.41_1
 libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libtinfo.so.6 ncurses-libtinfo-libs-6.2_2
diff --git a/srcpkgs/binutils-libs b/srcpkgs/binutils-libs
new file mode 120000
index 0000000000000..695eb82eae648
--- /dev/null
+++ b/srcpkgs/binutils-libs
@@ -0,0 +1 @@
+binutils
\ No newline at end of file
diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..382684c150532 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
-makedepends="zlib-devel"
+makedepends="zlib-devel libzstd-devel"
 short_desc="GNU binary utilities"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"
@@ -21,8 +21,8 @@ if [ "$CHROOT_READY" ]; then
 	hostmakedepends+=" flex perl texinfo"
 	makedepends+=" elfutils-devel"
 	checkdepends="bc"
-	depends="binutils-doc"
-	subpackages+=" libiberty-devel binutils-devel"
+	depends="binutils-doc binutils-libs"
+	subpackages+=" libiberty-devel binutils-libs binutils-devel"
 fi
 
 _get_triplet() {
@@ -138,9 +138,9 @@ do_install() {
 		# Remove these symlinks, they are not ABI stable.
 		# Programs should compile static to the .a file.
 		rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
-		echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libbfd.a -lsframe -liberty -lzstd -lz )" \
 			>${DESTDIR}/usr/lib/libbfd.so
-		echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libopcodes.a -lbfd )" \
 			>${DESTDIR}/usr/lib/libopcodes.so
 
 		# Install PIC version of libiberty.a
@@ -158,13 +158,20 @@ do_install() {
 }
 
 binutils-devel_package() {
-	depends="zlib-devel libiberty-devel"
+	depends="binutils-libs zlib-devel libzstd-devel libiberty-devel"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.a"
-		vmove "usr/lib/libbfd.so"
-		vmove "usr/lib/libopcodes.so"
+		vmove "usr/lib/*.so"
+	}
+}
+
+binutils-libs_package() {
+	short_desc+=" - shared libraries"
+	pkg_install() {
+		vmove "usr/lib/lib*-${version}.so"
+		vmove "usr/lib/*.so.*"
 	}
 }
 

From b3e3f98d8c3eb0c031c10f5dc5d8a2dbd2b925a0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/38] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  55 +--
 10 files changed, 354 insertions(+), 306 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 33b2500e5ea65..ff1f2060099fe 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -855,8 +855,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1672,6 +1672,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..2c644c1e19a2d 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -36,6 +36,7 @@ replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
  libssp>=0 libssp-devel>=0"
 
 _have_gccgo=yes
+_have_libquadmath=no
 
 # MIPS is untested and does not have go in crosstoolchains
 # 32-bit PowerPC seems weirdly broken since the 10.x release
@@ -45,6 +46,10 @@ case "$XBPS_TARGET_MACHINE" in
 	mips*-musl|ppc*) _have_gccgo=no ;;
 esac
 
+case "$XBPS_TARGET_MACHINE" in
+	i686*|x86_64*|ppc64le) _have_libquadmath=yes ;;
+esac
+
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="tar texinfo perl flex"
 else
@@ -85,6 +90,10 @@ fi
 if [ "$CHROOT_READY" ]; then
 	subpackages+=" gcc-fortran libgfortran-devel libgfortran"
 	subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		subpackages+=" libquadmath libquadmath-devel"
+	fi
 fi
 
 if [ "$_have_gccgo" = "yes" ]; then
@@ -136,12 +145,8 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*)
-		subpackages+=" libquadmath libquadmath-devel"
 		subpackages+=" libvtv libvtv-devel"
 		;;
-	ppc64le)
-		subpackages+=" libquadmath libquadmath-devel"
-		;;
 esac
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;;
@@ -187,8 +192,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -385,10 +394,9 @@ do_install() {
 		vman ${FILESDIR}/${f}.1
 	done
 
-	case "$XBPS_TARGET_MACHINE" in
-		i686*|x86_64*|ppc64le) ;;
-		*) rm -f ${DESTDIR}/usr/share/info/libquadmath.info;;
-	esac
+	if [ "$_have_libquadmath" != "yes"]; then
+		rm -f ${DESTDIR}/usr/share/info/libquadmath.info*
+	fi
 }
 
 gcc-ada_package() {
@@ -502,6 +510,11 @@ libada_package() {
 libgfortran-devel_package() {
 	depends="libgfortran>=${_minorver}"
 	short_desc+=" - Fortran library - development files"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		depends+=" libquadmath-devel"
+	fi
+
 	pkg_install() {
 		vmove usr/lib/libgfortran.spec
 		vmove usr/lib/libgfortran.a
@@ -675,7 +688,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove "usr/lib/lib*san_preinit.o"
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From b5f9e0fed06c86e84af6d2bf8a83b7867c0dd2eb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:06:28 -0800
Subject: [PATCH 03/38] kernel-libc-headers: update to 6.1.

---
 ...-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch | 4 ++--
 srcpkgs/kernel-libc-headers/template                          | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch b/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
index c93e732de0ee4..e3448369e1e92 100644
--- a/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
+++ b/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
@@ -7,6 +7,6 @@
 +#ifdef __GLIBC__
  #include <linux/sysinfo.h>
 +#endif
+ #include <linux/const.h>
  
- /*
-  * 'kernel.h' contains some often-used function prototypes etc
+ #endif /* _UAPI_LINUX_KERNEL_H */
diff --git a/srcpkgs/kernel-libc-headers/template b/srcpkgs/kernel-libc-headers/template
index 61d118a2cfdf1..aa9b0fc20812f 100644
--- a/srcpkgs/kernel-libc-headers/template
+++ b/srcpkgs/kernel-libc-headers/template
@@ -1,6 +1,6 @@
 # Template file for 'kernel-libc-headers'
 pkgname=kernel-libc-headers
-version=5.10.4
+version=6.1
 revision=1
 bootstrap=yes
 short_desc="Linux API headers for userland development"
@@ -8,7 +8,7 @@ maintainer="Érico Nogueira <ericonr@disroot.org>"
 license="GPL-2.0-only"
 homepage="http://www.kernel.org"
 distfiles="$KERNEL_SITE/kernel/v${version%%.*}.x/linux-${version}.tar.xz"
-checksum=904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+checksum=2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
 
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="perl"

From bc77644fb5966dda9af78de3794c15c1c34158a9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 22 Jan 2024 13:30:57 -0800
Subject: [PATCH 04/38] musl: remove compat basename declaration

This declaration was added to musl to avoid warnings for applications that
expect GNU basename() in string.h.

Pre-ansi style declarations were used to avoid causing errors due to
incompatibile declarations of basename().

In C23, just like in C++, function declarations with no arguments are treated
as having no arguments, instead of having unspecified arguments. As such,
this creates a conflicting declaration in C23.
---
 srcpkgs/musl/patches/c23-basename.patch | 44 +++++++++++++++++++++++++
 srcpkgs/musl/template                   |  2 +-
 2 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/musl/patches/c23-basename.patch

diff --git a/srcpkgs/musl/patches/c23-basename.patch b/srcpkgs/musl/patches/c23-basename.patch
new file mode 100644
index 0000000000000..8f95a27d0ef56
--- /dev/null
+++ b/srcpkgs/musl/patches/c23-basename.patch
@@ -0,0 +1,44 @@
+From 725e17ed6dff4d0cd22487bb64470881e86a92e7 Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Mon, 6 Nov 2023 08:26:19 -0500
+Subject: [PATCH] remove non-prototype declaration of basename from string.h
+
+commit 37bb3cce4598c19288628e675eaf1cda6e96958f suppressed the
+declaration for C++, where it is wrongly interpreted as declaring the
+function as taking no arguments. with C23 removing non-prototype
+declarations, that problem is now also relevant to C.
+
+the non-prototype declaration for basename originates with commit
+06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500, where it was designed to
+avoid conflicts with programs which declare basename with the GNU
+signature taking const char *. that change was probably misguided, as
+it represents not only misaligned expectations with the caller, but
+also undefined behavior (calling a function that's been declared with
+the wrong type).
+
+we could opt to fix the declaration, but since glibc, with the
+gratuitously incompatible GNU-basename function, seems to be the only
+implementation that declares it in string.h, it seems better to just
+remove the declaration. this provides some warning if applications are
+being built expecting the GNU behavior but not getting it. if we
+declared it here, it would only produce a warning if the caller also
+declares it themselves (rare) or if the caller attempts to pass a
+const-qualified pointer.
+---
+ include/string.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/include/string.h b/include/string.h
+index db73d2a9..83e2b946 100644
+--- a/include/string.h
++++ b/include/string.h
+@@ -95,9 +95,6 @@ char *strchrnul(const char *, int);
+ char *strcasestr(const char *, const char *);
+ void *memrchr(const void *, int, size_t);
+ void *mempcpy(void *, const void *, size_t);
+-#ifndef __cplusplus
+-char *basename();
+-#endif
+ #endif
+ 
+ #ifdef __cplusplus
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 9838f9ad9e613..8c3be7d76e8a1 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
 pkgname=musl
 reverts="1.2.0_1"
 version=1.1.24
-revision=19
+revision=20
 archs="*-musl"
 bootstrap=yes
 build_style=gnu-configure

From 5ccbe4420c9a70872b1cde140dacfbe0e8d39b88 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 05/38] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From f4e4c80caa1d5199ed2ff52dc3c066e812432bbc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 06/38] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From 4b97808451bf9ca060ddbc7faffb2608d9ae8e73 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 07/38] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From ce699fdde1e6d9bef9badbb519c81428b76ce155 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 08/38] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..6af5541e1db5c 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,18 +3,18 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel
+makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
  glibc-32bit glibc-devel-32bit"
 
 depends="

From f4a80efa1fcd92fd2c6095ef4c6da4d661f20449 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 24 Jan 2024 13:06:14 -0800
Subject: [PATCH 09/38] build-style/void-cross.sh: include libquadmath

---
 common/build-style/void-cross.sh | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/common/build-style/void-cross.sh b/common/build-style/void-cross.sh
index 9193b7cf64bad..c6e542c670678 100644
--- a/common/build-style/void-cross.sh
+++ b/common/build-style/void-cross.sh
@@ -404,13 +404,8 @@ _void_cross_build_gcc() {
 
 	# note on --disable-libquadmath:
 	# on some platforms the library is actually necessary for the
-	# fortran frontend to build, but still disable it because it
-	# should not be in the resulting packages; it conflicts with
-	# the libquadmath you can install into the cross root
-	#
-	# platforms where this is a problem should explicitly force
-	# libquadmath to be on via cross_gcc_configure_args, the
-	# do_install in this build-style automatically removes it
+	# fortran frontend to build, platforms where this is a problem
+	# should explicitly force libquadmath to be on via cross_gcc_configure_args
 	#
 	../gcc-${ver}/configure \
 		--prefix=/usr \
@@ -646,10 +641,6 @@ do_install() {
 	ln -sf libgnat-${gcc_major}.so ${DESTDIR}/${sysroot}/usr/lib/libgnat.so
 	rm -vf ${DESTDIR}/${adalib}/libgna{rl,t}.so
 
-	# If libquadmath was forced (needed for gfortran on some platforms)
-	# then remove it because it conflicts with libquadmath package
-	rm -rf ${DESTDIR}/${sysroot}/usr/lib/libquadmath.*
-
 	# Remove libdep linker plugin because it conflicts with system binutils
 	rm -f ${DESTDIR}/usr/lib/bfd-plugins/libdep*
 

From 612b0fc7aae7f305c7819fa63d7d09832a014d50 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 24 Jan 2024 13:07:24 -0800
Subject: [PATCH 10/38] cross-vpkg-dummy: update to 0.40.

---
 srcpkgs/cross-vpkg-dummy/template | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index feaccd4dc265d..2946be3f2bcec 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,7 +1,7 @@
 # Template file for 'cross-vpkg-dummy'
 pkgname=cross-vpkg-dummy
-version=0.39
-revision=6
+version=0.40
+revision=1
 build_style=meta
 depends="base-files>=0.126"
 short_desc="Dummy meta-pkg for cross building packages with xbps-src"
@@ -21,8 +21,12 @@ provides="
 	libstdc++-devel-9999_1
 	libgfortran-9999_1
 	libgfortran-devel-9999_1
+	libquadmath-9999_1
+	libquadmath-devel-9999_1
 	libgo-9999_1
 	libgo-devel-9999_1
+	libgomp-9999_1
+	libgomp-devel-9999_1
 	libobjc-9999_1
 	libobjc-devel-9999_1
 	libssp-12.2.0_2
@@ -46,8 +50,12 @@ conflicts="
 	libstdc++-devel>=0
 	libgfortran>=0
 	libgfortran-devel>=0
+	libquadmath>=0
+	libquadmath-devel>=0
 	libgo>=0
 	libgo-devel>=0
+	libgomp>=0
+	libgomp-devel>=0
 	libobjc>=0
 	libobjc-devel>=0
 	libssp>=0
@@ -61,8 +69,8 @@ conflicts="
 shlib_provides="
 	libatomic.so.1
 	libgcc_s.so.1
-	libgnat-12.so
-	libgnarl-12.so
+	libgnat-13.so
+	libgnarl-13.so
 	libstdc++.so.6
 	libgfortran.so.5"
 repository=bootstrap

From 4ccf836e9bc754a0f9ee4da1af95e926a670ea0e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:06 -0800
Subject: [PATCH 11/38] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..c4d7dbaf4ba19 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2 -march=armv8-a"

From 4ce946351dd7e030602b7c2f9800409a0cdf92b1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 12/38] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..b337574743388 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 90ffaa355c4ba2d4bf3b41371829a8e5ebc8ff79 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 13/38] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..efde1017cb864 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--without-fp"

From e8059c9752320393e3e687f2ffc41435bdb70b76 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 14/38] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..dd562ceb44986 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-Os -march=armv6 -mfpu=vfp -mfloat-abi=hard"

From 91899aac8bc8f61a106af77c78359759175f9f95 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 15/38] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..b947fca9b89cb 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -22,12 +22,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 4591ed5c513930fcc280ea518fa063b3fc435a06 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 16/38] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..078eaf0695122 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -22,12 +22,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 59101d6adf3513b8747d75be7a5a6ef1fe907d33 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 17/38] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..60c678f3f5aa7 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2 -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"

From 47488c66bc4909ac6e6481606c169621a7c65022 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 18/38] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..8fafdcae1b8dc 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 5b508c0fa5d8b10eb883ffd0596eab2c0ad30f1f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 19/38] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..6894694553894 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,12 +20,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From a1197d0fb2b11eb75d78268b0ef991b5c9f9df8a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 20/38] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..7a82c328d4a93 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -18,11 +18,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 # explicitly enable for final gcc, as gfortran does not build without on x86

From b87382b483c5a3e464c286a46debee44f5cfd760 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 21/38] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..09cc75f67e076 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From f48fcb83d9ab97d1a16437ef9831abf24668115f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 22/38] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..8ab1a6778777c 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 1cb6235c02328288818d9b88298ad0f856d4f001 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 23/38] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..c3df0e2fe8f05 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From db9120fb8b85c2ce51bda310f3a846125157e213 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 24/38] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..07568484c0d66 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From ef951a959bfa35c42f42ef7b8b4047340ab3bb9b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 25/38] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..3a14a62bcec29 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From cf8c743a2ca07d9b1368548e6ba16b44b79dddda Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 26/38] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..fc56dde6bd238 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 2cb82dd455178a990b0ff93661aad96493e3a78b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 27/38] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..f664f1dbc764a 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--enable-secureplt"

From 15ab40335e560e435c7a475a7853dccff20d5ab2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 28/38] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..b3903e8110aa9 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -23,12 +23,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From e8b11881b64e61cb16a5e53f31c11d6a9ade1a0f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 29/38] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..e0ca6e9ce2d01 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--enable-secureplt"

From 55c3d645a62db1272969c20ad03bb578254fdacc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 30/38] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..d76fbe3d250ed 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -23,12 +23,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From e10f2eaccc583c25255a5287801a19e8d5557d8a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 31/38] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..f18370a304875 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 546619fb8db2e25cea677f5dabf529c1317ced83 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 32/38] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..5f03d1d7f576e 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From bc8db72b610961330e94a9739d3977723651f284 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 33/38] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..690b5d6184239 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2"

From 46542c0741370797e6edfc5b54745ea3386ba8ee Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 34/38] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..e20d2d8951465 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 97d14e8acb4fe69bbc2251dde33a7191cbd83cb5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 35/38] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..4fb35cb6f736c 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -18,11 +18,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 # explicitly enable for final gcc, gfortran does not build without on x86

From aa3814db08c53b3ff4b05e933d90f72be3c64000 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 36/38] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..19fc88f6e0880 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,12 +20,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 4c0162415757d26d9c9e333f4864a0f32353224d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:25 -0800
Subject: [PATCH 37/38] linux6.6: update kernel config for gcc 13

---
 srcpkgs/linux6.6/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.6/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.6/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.6/files/arm64-dotconfig b/srcpkgs/linux6.6/files/arm64-dotconfig
index 688a0dba94a1d..93b8ad6d2d835 100644
--- a/srcpkgs/linux6.6/files/arm64-dotconfig
+++ b/srcpkgs/linux6.6/files/arm64-dotconfig
@@ -12816,6 +12816,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/i386-dotconfig b/srcpkgs/linux6.6/files/i386-dotconfig
index f42b6646a248b..f79bca8495140 100644
--- a/srcpkgs/linux6.6/files/i386-dotconfig
+++ b/srcpkgs/linux6.6/files/i386-dotconfig
@@ -10567,6 +10567,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/x86_64-dotconfig b/srcpkgs/linux6.6/files/x86_64-dotconfig
index 02fe6de8db0de..f59f673ea0028 100644
--- a/srcpkgs/linux6.6/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.6/files/x86_64-dotconfig
@@ -10973,6 +10973,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 3789f69382eef2f8ee7cdc2d68d9bd2b0e64e669 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:45 -0800
Subject: [PATCH 38/38] linux6.7: update kernel config for gcc 13

---
 srcpkgs/linux6.7/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.7/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.7/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.7/files/arm64-dotconfig b/srcpkgs/linux6.7/files/arm64-dotconfig
index 9b3a5816b2aa2..13b7f0b88b801 100644
--- a/srcpkgs/linux6.7/files/arm64-dotconfig
+++ b/srcpkgs/linux6.7/files/arm64-dotconfig
@@ -12909,6 +12909,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/i386-dotconfig b/srcpkgs/linux6.7/files/i386-dotconfig
index 08f008ba09097..0e5f1f2868fea 100644
--- a/srcpkgs/linux6.7/files/i386-dotconfig
+++ b/srcpkgs/linux6.7/files/i386-dotconfig
@@ -10646,6 +10646,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/x86_64-dotconfig b/srcpkgs/linux6.7/files/x86_64-dotconfig
index 9ec1f7922f4f9..da4f1fd47c6ee 100644
--- a/srcpkgs/linux6.7/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.7/files/x86_64-dotconfig
@@ -11057,6 +11057,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (51 preceding siblings ...)
  2024-01-27  2:30 ` [PR PATCH] [Updated] " oreo639
@ 2024-01-27  9:27 ` oreo639
  2024-01-27 22:34 ` oreo639
                   ` (4 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-27  9:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

You can test the ISOs here: https://drive.google.com/drive/u/0/folders/1y5dkzI9R60eDjRA4mVYBdnn9e9PDGwNt

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 118952 bytes --]

From d73a70cb8cdfbdd54410e2881b0e8399c470ef74 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/41] binutils: update to 2.41.

---
 common/shlibs                                 |  3 ++
 srcpkgs/binutils-libs                         |  1 +
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     | 29 ++++++----
 4 files changed, 22 insertions(+), 64 deletions(-)
 create mode 120000 srcpkgs/binutils-libs
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/common/shlibs b/common/shlibs
index 27763bf428b75..33b2500e5ea65 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -73,6 +73,9 @@ libmpfr.so.6 mpfr-4.0.0_1
 libppl.so.14 ppl-1.2_1
 libppl_c.so.4 ppl-0.11_1
 libstdc++.so.6 libstdc++-4.4.0_1
+libsframe.so.1 binutils-libs-2.41_1
+libctf-nobfd.so.0 binutils-libs-2.41_1
+libctf.so.0 binutils-libs-2.41_1
 libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libtinfo.so.6 ncurses-libtinfo-libs-6.2_2
diff --git a/srcpkgs/binutils-libs b/srcpkgs/binutils-libs
new file mode 120000
index 0000000000000..695eb82eae648
--- /dev/null
+++ b/srcpkgs/binutils-libs
@@ -0,0 +1 @@
+binutils
\ No newline at end of file
diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..382684c150532 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
-makedepends="zlib-devel"
+makedepends="zlib-devel libzstd-devel"
 short_desc="GNU binary utilities"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"
@@ -21,8 +21,8 @@ if [ "$CHROOT_READY" ]; then
 	hostmakedepends+=" flex perl texinfo"
 	makedepends+=" elfutils-devel"
 	checkdepends="bc"
-	depends="binutils-doc"
-	subpackages+=" libiberty-devel binutils-devel"
+	depends="binutils-doc binutils-libs"
+	subpackages+=" libiberty-devel binutils-libs binutils-devel"
 fi
 
 _get_triplet() {
@@ -138,9 +138,9 @@ do_install() {
 		# Remove these symlinks, they are not ABI stable.
 		# Programs should compile static to the .a file.
 		rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
-		echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libbfd.a -lsframe -liberty -lzstd -lz )" \
 			>${DESTDIR}/usr/lib/libbfd.so
-		echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libopcodes.a -lbfd )" \
 			>${DESTDIR}/usr/lib/libopcodes.so
 
 		# Install PIC version of libiberty.a
@@ -158,13 +158,20 @@ do_install() {
 }
 
 binutils-devel_package() {
-	depends="zlib-devel libiberty-devel"
+	depends="binutils-libs zlib-devel libzstd-devel libiberty-devel"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.a"
-		vmove "usr/lib/libbfd.so"
-		vmove "usr/lib/libopcodes.so"
+		vmove "usr/lib/*.so"
+	}
+}
+
+binutils-libs_package() {
+	short_desc+=" - shared libraries"
+	pkg_install() {
+		vmove "usr/lib/lib*-${version}.so"
+		vmove "usr/lib/*.so.*"
 	}
 }
 

From 1f96bcd1799518bfb6c05ba76ee789ff22b080be Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/41] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  55 +--
 10 files changed, 354 insertions(+), 306 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index 33b2500e5ea65..ff1f2060099fe 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -855,8 +855,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1672,6 +1672,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..2c644c1e19a2d 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -36,6 +36,7 @@ replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
  libssp>=0 libssp-devel>=0"
 
 _have_gccgo=yes
+_have_libquadmath=no
 
 # MIPS is untested and does not have go in crosstoolchains
 # 32-bit PowerPC seems weirdly broken since the 10.x release
@@ -45,6 +46,10 @@ case "$XBPS_TARGET_MACHINE" in
 	mips*-musl|ppc*) _have_gccgo=no ;;
 esac
 
+case "$XBPS_TARGET_MACHINE" in
+	i686*|x86_64*|ppc64le) _have_libquadmath=yes ;;
+esac
+
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="tar texinfo perl flex"
 else
@@ -85,6 +90,10 @@ fi
 if [ "$CHROOT_READY" ]; then
 	subpackages+=" gcc-fortran libgfortran-devel libgfortran"
 	subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		subpackages+=" libquadmath libquadmath-devel"
+	fi
 fi
 
 if [ "$_have_gccgo" = "yes" ]; then
@@ -136,12 +145,8 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*)
-		subpackages+=" libquadmath libquadmath-devel"
 		subpackages+=" libvtv libvtv-devel"
 		;;
-	ppc64le)
-		subpackages+=" libquadmath libquadmath-devel"
-		;;
 esac
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;;
@@ -187,8 +192,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -385,10 +394,9 @@ do_install() {
 		vman ${FILESDIR}/${f}.1
 	done
 
-	case "$XBPS_TARGET_MACHINE" in
-		i686*|x86_64*|ppc64le) ;;
-		*) rm -f ${DESTDIR}/usr/share/info/libquadmath.info;;
-	esac
+	if [ "$_have_libquadmath" != "yes"]; then
+		rm -f ${DESTDIR}/usr/share/info/libquadmath.info*
+	fi
 }
 
 gcc-ada_package() {
@@ -502,6 +510,11 @@ libada_package() {
 libgfortran-devel_package() {
 	depends="libgfortran>=${_minorver}"
 	short_desc+=" - Fortran library - development files"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		depends+=" libquadmath-devel"
+	fi
+
 	pkg_install() {
 		vmove usr/lib/libgfortran.spec
 		vmove usr/lib/libgfortran.a
@@ -675,7 +688,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove "usr/lib/lib*san_preinit.o"
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From 7ef70a74abe90924c516cc074099fa88fec4e54f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:06:28 -0800
Subject: [PATCH 03/41] kernel-libc-headers: update to 6.1.

---
 ...-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch | 4 ++--
 srcpkgs/kernel-libc-headers/template                          | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch b/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
index c93e732de0ee4..e3448369e1e92 100644
--- a/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
+++ b/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
@@ -7,6 +7,6 @@
 +#ifdef __GLIBC__
  #include <linux/sysinfo.h>
 +#endif
+ #include <linux/const.h>
  
- /*
-  * 'kernel.h' contains some often-used function prototypes etc
+ #endif /* _UAPI_LINUX_KERNEL_H */
diff --git a/srcpkgs/kernel-libc-headers/template b/srcpkgs/kernel-libc-headers/template
index 61d118a2cfdf1..aa9b0fc20812f 100644
--- a/srcpkgs/kernel-libc-headers/template
+++ b/srcpkgs/kernel-libc-headers/template
@@ -1,6 +1,6 @@
 # Template file for 'kernel-libc-headers'
 pkgname=kernel-libc-headers
-version=5.10.4
+version=6.1
 revision=1
 bootstrap=yes
 short_desc="Linux API headers for userland development"
@@ -8,7 +8,7 @@ maintainer="Érico Nogueira <ericonr@disroot.org>"
 license="GPL-2.0-only"
 homepage="http://www.kernel.org"
 distfiles="$KERNEL_SITE/kernel/v${version%%.*}.x/linux-${version}.tar.xz"
-checksum=904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+checksum=2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
 
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="perl"

From 4f90690791cc11b2b75520fc16e31840dccc82d4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 22 Jan 2024 13:30:57 -0800
Subject: [PATCH 04/41] musl: remove compat basename declaration and add
 RLIMIT_RTTIME define

This declaration was added to musl to avoid warnings for applications that
expect GNU basename() in string.h.

Pre-ansi style declarations were used to avoid causing errors due to
incompatibile declarations of basename().

In C23, just like in C++, function declarations with no arguments are treated
as having no arguments, instead of having unspecified arguments. As such,
this creates a conflicting declaration in C23.
---
 srcpkgs/musl/patches/add-rlimit-rttime.patch | 24 +++++++++++
 srcpkgs/musl/patches/c23-basename.patch      | 44 ++++++++++++++++++++
 srcpkgs/musl/template                        |  2 +-
 3 files changed, 69 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/musl/patches/add-rlimit-rttime.patch
 create mode 100644 srcpkgs/musl/patches/c23-basename.patch

diff --git a/srcpkgs/musl/patches/add-rlimit-rttime.patch b/srcpkgs/musl/patches/add-rlimit-rttime.patch
new file mode 100644
index 0000000000000..56afa6b66521a
--- /dev/null
+++ b/srcpkgs/musl/patches/add-rlimit-rttime.patch
@@ -0,0 +1,24 @@
+From 2507e7f5312e79620f6337935d0a6c9045ccba09 Mon Sep 17 00:00:00 2001
+From: Leah Neukirchen <leah@vuxu.org>
+Date: Sat, 11 Jan 2020 20:16:59 +0100
+Subject: [PATCH] define RLIMIT_RTTIME, bump RLIMIT_NLIMITS
+
+This macro exists since Linux 2.6.25 and is defined in glibc since 2011.
+---
+ include/sys/resource.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/include/sys/resource.h b/include/sys/resource.h
+index e0c86ae33..3068328d0 100644
+--- a/include/sys/resource.h
++++ b/include/sys/resource.h
+@@ -90,7 +90,8 @@ int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
+ #define RLIMIT_MSGQUEUE 12
+ #define RLIMIT_NICE    13
+ #define RLIMIT_RTPRIO  14
+-#define RLIMIT_NLIMITS 15
++#define RLIMIT_RTTIME  15
++#define RLIMIT_NLIMITS 16
+ 
+ #define RLIM_NLIMITS RLIMIT_NLIMITS
+ 
diff --git a/srcpkgs/musl/patches/c23-basename.patch b/srcpkgs/musl/patches/c23-basename.patch
new file mode 100644
index 0000000000000..8f95a27d0ef56
--- /dev/null
+++ b/srcpkgs/musl/patches/c23-basename.patch
@@ -0,0 +1,44 @@
+From 725e17ed6dff4d0cd22487bb64470881e86a92e7 Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Mon, 6 Nov 2023 08:26:19 -0500
+Subject: [PATCH] remove non-prototype declaration of basename from string.h
+
+commit 37bb3cce4598c19288628e675eaf1cda6e96958f suppressed the
+declaration for C++, where it is wrongly interpreted as declaring the
+function as taking no arguments. with C23 removing non-prototype
+declarations, that problem is now also relevant to C.
+
+the non-prototype declaration for basename originates with commit
+06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500, where it was designed to
+avoid conflicts with programs which declare basename with the GNU
+signature taking const char *. that change was probably misguided, as
+it represents not only misaligned expectations with the caller, but
+also undefined behavior (calling a function that's been declared with
+the wrong type).
+
+we could opt to fix the declaration, but since glibc, with the
+gratuitously incompatible GNU-basename function, seems to be the only
+implementation that declares it in string.h, it seems better to just
+remove the declaration. this provides some warning if applications are
+being built expecting the GNU behavior but not getting it. if we
+declared it here, it would only produce a warning if the caller also
+declares it themselves (rare) or if the caller attempts to pass a
+const-qualified pointer.
+---
+ include/string.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/include/string.h b/include/string.h
+index db73d2a9..83e2b946 100644
+--- a/include/string.h
++++ b/include/string.h
+@@ -95,9 +95,6 @@ char *strchrnul(const char *, int);
+ char *strcasestr(const char *, const char *);
+ void *memrchr(const void *, int, size_t);
+ void *mempcpy(void *, const void *, size_t);
+-#ifndef __cplusplus
+-char *basename();
+-#endif
+ #endif
+ 
+ #ifdef __cplusplus
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 9838f9ad9e613..8c3be7d76e8a1 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
 pkgname=musl
 reverts="1.2.0_1"
 version=1.1.24
-revision=19
+revision=20
 archs="*-musl"
 bootstrap=yes
 build_style=gnu-configure

From a337dfa0b6b9f373f164f70f0076ce3fdb975858 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 05/41] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From 9c681befa41d5ec9bf2fd4da58516a36d6c757da Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 06/41] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From a9ebbf212857349937238c2ae87a86579da078ed Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 07/41] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From c87ab272ab6586fde4c024e2567ed019a0bb6222 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 08/41] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..6af5541e1db5c 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,18 +3,18 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel
+makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
  glibc-32bit glibc-devel-32bit"
 
 depends="

From 50a48f63c2ffd270b8251c6b9927dc5ea465a00f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 24 Jan 2024 13:06:14 -0800
Subject: [PATCH 09/41] build-style/void-cross.sh: include libquadmath

---
 common/build-style/void-cross.sh | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/common/build-style/void-cross.sh b/common/build-style/void-cross.sh
index 9193b7cf64bad..c6e542c670678 100644
--- a/common/build-style/void-cross.sh
+++ b/common/build-style/void-cross.sh
@@ -404,13 +404,8 @@ _void_cross_build_gcc() {
 
 	# note on --disable-libquadmath:
 	# on some platforms the library is actually necessary for the
-	# fortran frontend to build, but still disable it because it
-	# should not be in the resulting packages; it conflicts with
-	# the libquadmath you can install into the cross root
-	#
-	# platforms where this is a problem should explicitly force
-	# libquadmath to be on via cross_gcc_configure_args, the
-	# do_install in this build-style automatically removes it
+	# fortran frontend to build, platforms where this is a problem
+	# should explicitly force libquadmath to be on via cross_gcc_configure_args
 	#
 	../gcc-${ver}/configure \
 		--prefix=/usr \
@@ -646,10 +641,6 @@ do_install() {
 	ln -sf libgnat-${gcc_major}.so ${DESTDIR}/${sysroot}/usr/lib/libgnat.so
 	rm -vf ${DESTDIR}/${adalib}/libgna{rl,t}.so
 
-	# If libquadmath was forced (needed for gfortran on some platforms)
-	# then remove it because it conflicts with libquadmath package
-	rm -rf ${DESTDIR}/${sysroot}/usr/lib/libquadmath.*
-
 	# Remove libdep linker plugin because it conflicts with system binutils
 	rm -f ${DESTDIR}/usr/lib/bfd-plugins/libdep*
 

From 5e55c9bd6383427c45fc73cc63289311193c3986 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 24 Jan 2024 13:07:24 -0800
Subject: [PATCH 10/41] cross-vpkg-dummy: update to 0.40.

---
 srcpkgs/cross-vpkg-dummy/template | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index feaccd4dc265d..2946be3f2bcec 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,7 +1,7 @@
 # Template file for 'cross-vpkg-dummy'
 pkgname=cross-vpkg-dummy
-version=0.39
-revision=6
+version=0.40
+revision=1
 build_style=meta
 depends="base-files>=0.126"
 short_desc="Dummy meta-pkg for cross building packages with xbps-src"
@@ -21,8 +21,12 @@ provides="
 	libstdc++-devel-9999_1
 	libgfortran-9999_1
 	libgfortran-devel-9999_1
+	libquadmath-9999_1
+	libquadmath-devel-9999_1
 	libgo-9999_1
 	libgo-devel-9999_1
+	libgomp-9999_1
+	libgomp-devel-9999_1
 	libobjc-9999_1
 	libobjc-devel-9999_1
 	libssp-12.2.0_2
@@ -46,8 +50,12 @@ conflicts="
 	libstdc++-devel>=0
 	libgfortran>=0
 	libgfortran-devel>=0
+	libquadmath>=0
+	libquadmath-devel>=0
 	libgo>=0
 	libgo-devel>=0
+	libgomp>=0
+	libgomp-devel>=0
 	libobjc>=0
 	libobjc-devel>=0
 	libssp>=0
@@ -61,8 +69,8 @@ conflicts="
 shlib_provides="
 	libatomic.so.1
 	libgcc_s.so.1
-	libgnat-12.so
-	libgnarl-12.so
+	libgnat-13.so
+	libgnarl-13.so
 	libstdc++.so.6
 	libgfortran.so.5"
 repository=bootstrap

From c9c43014a7ca9cd07a393ff4c2d9f71912a98d1c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:06 -0800
Subject: [PATCH 11/41] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..c4d7dbaf4ba19 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2 -march=armv8-a"

From 781ba780639741ba95b557425a71b4dce49cd7f2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 12/41] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..b337574743388 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From fdb2ddb17f915787944dda582ba22612dd1acb74 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 13/41] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..efde1017cb864 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--without-fp"

From 6f27297e392840313dab2d83d244556ca9c01207 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 14/41] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..dd562ceb44986 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-Os -march=armv6 -mfpu=vfp -mfloat-abi=hard"

From a733ae7e53946fff366f0b3dd685b994c43797b5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 15/41] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..b947fca9b89cb 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -22,12 +22,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 5938ffb143119fb6f1b84ac5579c1e8f27e9623d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 16/41] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..078eaf0695122 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -22,12 +22,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 1f4fb6294950895239bf507558897fcd24e9957f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 17/41] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..60c678f3f5aa7 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2 -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"

From 9693b93ae4408a53f3210de5a9ed79b9dca62df1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 18/41] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..8fafdcae1b8dc 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 8f9c26e8cf0d289fdfbd88d54bc61b2a97d7fd36 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 19/41] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..6894694553894 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,12 +20,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 651a9fd5d8893872e7bd48c7a025899e58f5d257 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 20/41] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..7a82c328d4a93 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -18,11 +18,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 # explicitly enable for final gcc, as gfortran does not build without on x86

From cd3c7d7168e3e92248a3a41ef52fafe5585627f1 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 21/41] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..09cc75f67e076 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 4bcfba479ae5c3fb08166919a587e75669ce796a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 22/41] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..8ab1a6778777c 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 24c7838b402135ea63b8d3a02891e983feb9f2ba Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 23/41] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..c3df0e2fe8f05 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 2beed88477dfcb1eed4e82d1035fb23c6e14d683 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 24/41] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..07568484c0d66 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From b21429126231dbea30708802f772f271b38b6f97 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 25/41] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..3a14a62bcec29 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 8e99a2d7798274dfb15e8687a2cf681ddc3e3993 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 26/41] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..fc56dde6bd238 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From aab7e24f2f9792035cde97a6aefb89f82a2404af Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 27/41] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..f664f1dbc764a 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--enable-secureplt"

From 9094cef427b627a3f91f36306d8febce158eb1fd Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 28/41] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..b3903e8110aa9 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -23,12 +23,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From bed72a547aced75cb908beb8fce27605101dda07 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 29/41] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..e0ca6e9ce2d01 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--enable-secureplt"

From 1bb692ad3743e4e7c19504b2a19d9cfd207b457b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 30/41] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..d76fbe3d250ed 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -23,12 +23,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 3517f6b65fb07e87082ff346a59f25cb31d8caae Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 31/41] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..f18370a304875 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 6942c5233243ca4f50794c97f1350f19891333e4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 32/41] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..5f03d1d7f576e 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 64fd42c4e6137d526e7a7d40d912fde2dde4f54f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 33/41] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..690b5d6184239 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2"

From dc86a6ed8a7cbaad82d69490de4d373ce516d06a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 34/41] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..e20d2d8951465 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 3ea121f02b8ccf35dff05fdb6cf60933e04cf66e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 35/41] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..4fb35cb6f736c 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -18,11 +18,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 # explicitly enable for final gcc, gfortran does not build without on x86

From b8ad93ca7ede1f3f7cfe4a8ca0d76c8474acf91f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 36/41] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..19fc88f6e0880 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,12 +20,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 55c4dd7646a049bf652ee330cc736055557b7d41 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:25 -0800
Subject: [PATCH 37/41] linux6.6: update kernel config for gcc 13

---
 srcpkgs/linux6.6/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.6/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.6/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.6/files/arm64-dotconfig b/srcpkgs/linux6.6/files/arm64-dotconfig
index 688a0dba94a1d..93b8ad6d2d835 100644
--- a/srcpkgs/linux6.6/files/arm64-dotconfig
+++ b/srcpkgs/linux6.6/files/arm64-dotconfig
@@ -12816,6 +12816,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/i386-dotconfig b/srcpkgs/linux6.6/files/i386-dotconfig
index f42b6646a248b..f79bca8495140 100644
--- a/srcpkgs/linux6.6/files/i386-dotconfig
+++ b/srcpkgs/linux6.6/files/i386-dotconfig
@@ -10567,6 +10567,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/x86_64-dotconfig b/srcpkgs/linux6.6/files/x86_64-dotconfig
index 02fe6de8db0de..f59f673ea0028 100644
--- a/srcpkgs/linux6.6/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.6/files/x86_64-dotconfig
@@ -10973,6 +10973,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 3f5b457b9b831ebc8cec49caa9e673e16d3ef146 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:45 -0800
Subject: [PATCH 38/41] linux6.7: update kernel config for gcc 13

---
 srcpkgs/linux6.7/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.7/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.7/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.7/files/arm64-dotconfig b/srcpkgs/linux6.7/files/arm64-dotconfig
index 9b3a5816b2aa2..13b7f0b88b801 100644
--- a/srcpkgs/linux6.7/files/arm64-dotconfig
+++ b/srcpkgs/linux6.7/files/arm64-dotconfig
@@ -12909,6 +12909,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/i386-dotconfig b/srcpkgs/linux6.7/files/i386-dotconfig
index 08f008ba09097..0e5f1f2868fea 100644
--- a/srcpkgs/linux6.7/files/i386-dotconfig
+++ b/srcpkgs/linux6.7/files/i386-dotconfig
@@ -10646,6 +10646,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/x86_64-dotconfig b/srcpkgs/linux6.7/files/x86_64-dotconfig
index 9ec1f7922f4f9..da4f1fd47c6ee 100644
--- a/srcpkgs/linux6.7/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.7/files/x86_64-dotconfig
@@ -11057,6 +11057,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From f0f3d00fb655f4d0f3fe24d6a3ed52e5cf9597db Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sat, 27 Jan 2024 01:25:29 -0800
Subject: [PATCH 39/41] elogind: fix build on musl without basename
 compatibility decl

musl provides a compatibility basename declaration so applications
expecting GNU basename could still compile even though musl doesn't provide
GNU basename and only POSIX basename.

Prevent build failure when this is removed.
---
 srcpkgs/elogind/patches/musl-basename.patch | 42 +++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 srcpkgs/elogind/patches/musl-basename.patch

diff --git a/srcpkgs/elogind/patches/musl-basename.patch b/srcpkgs/elogind/patches/musl-basename.patch
new file mode 100644
index 0000000000000..ff04009ffc4ef
--- /dev/null
+++ b/srcpkgs/elogind/patches/musl-basename.patch
@@ -0,0 +1,42 @@
+Add missing include for POSIX basename, since systemd-logind expects basename in string.h
+
+diff -rup src/basic/musl_missing.h.orig src/basic/musl_missing.h
+--- a/src/basic/musl_missing.h
++++ b/src/basic/musl_missing.h
+@@ -56,6 +54,10 @@ void elogind_set_program_name(const char
+         } ) )
+ #endif
+ 
++/* Poor man's basename */
++#define basename(path) \
++        (strrchr(path, '/') ? strrchr(path, '/')+1 : path)
++
+ /* getnameinfo(3) glibc extensions are undefined in musl libc */
+ #define NI_IDN 0
+ #define NI_IDN_USE_STD3_ASCII_RULES 0
+From c8d96ff2b87b8dfb8d521d4c2e6fb57992dbf659 Mon Sep 17 00:00:00 2001
+From: Lennart Poettering <lennart@poettering.net>
+Date: Wed, 21 Dec 2022 16:13:23 +0100
+Subject: [PATCH] tests: we don't actually use basename() anymore
+
+---
+ src/shared/tests.c | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/src/shared/tests.c b/src/shared/tests.c
+index 5a05daa643..9d8bbeea79 100644
+--- a/src/shared/tests.c
++++ b/src/shared/tests.c
+@@ -7,12 +7,6 @@
+ #include <sys/mount.h>
+ #include <sys/wait.h>
+ 
+-/* When we include libgen.h because we need dirname() we immediately
+- * undefine basename() since libgen.h defines it as a macro to the POSIX
+- * version which is really broken. We prefer GNU basename(). */
+-#include <libgen.h>
+-#undef basename
+-
+ #include "sd-bus.h"
+ 
+ #include "alloc-util.h"

From 0cf0926f7bc05b4c11136354230c9ae3677d84f4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 01:22:09 -0800
Subject: [PATCH 40/41] iwd: fix basename on musl

musl provides a compatibility basename declaration so applications
expecting GNU basename could still compile even though musl doesn't provide
GNU basename and only POSIX basename.
---
 srcpkgs/iwd/patches/musl.patch | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 srcpkgs/iwd/patches/musl.patch

diff --git a/srcpkgs/iwd/patches/musl.patch b/srcpkgs/iwd/patches/musl.patch
new file mode 100644
index 0000000000000..37b6d749b3c8f
--- /dev/null
+++ b/srcpkgs/iwd/patches/musl.patch
@@ -0,0 +1,13 @@
+Include libgen.h for POSIX basename as musl doesn provide GNU basename in string.h.
+
+diff -rup src/wiphy.c.orig src/wiphy.c
+--- a/src/wiphy.c
++++ b/src/wiphy.c
+@@ -33,6 +33,7 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <limits.h>
++#include <libgen.h>
+ 
+ #include <ell/ell.h>
+ 

From 1dddbc440ea87e61c2761b0247eed9679e5d3c1b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 03:12:05 -0800
Subject: [PATCH 41/41] connman: fix basename on musl

musl provides a compatibility basename declaration so applications
expecting GNU basename could still compile even though musl doesn't provide
GNU basename and only POSIX basename.
---
 srcpkgs/connman/patches/musl.patch | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 srcpkgs/connman/patches/musl.patch

diff --git a/srcpkgs/connman/patches/musl.patch b/srcpkgs/connman/patches/musl.patch
new file mode 100644
index 0000000000000..4e38a44250b53
--- /dev/null
+++ b/srcpkgs/connman/patches/musl.patch
@@ -0,0 +1,16 @@
+Add GNU basename macro for code that expects GNU basename
+
+diff -rup src/log.c.orig src/log.c
+--- a/src/log.c
++++ b/src/log.c
+@@ -34,6 +34,10 @@
+ 
+ #include "connman.h"
+ 
++#if !defined(__GLIBC__)
++#define basename(src) (strrchr(src,'/') ? strrchr(src,'/')+1 : src)
++#endif
++
+ static const char *program_exec;
+ static const char *program_path;
+ 

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (52 preceding siblings ...)
  2024-01-27  9:27 ` oreo639
@ 2024-01-27 22:34 ` oreo639
  2024-01-28  1:40 ` oreo639
                   ` (3 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-27 22:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

You can test the ISOs here: https://drive.google.com/drive/u/0/folders/1y5dkzI9R60eDjRA4mVYBdnn9e9PDGwNt

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 120382 bytes --]

From dadfe64be884cf9db214a44355a5a3790775415e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/41] binutils: update to 2.41.

---
 common/shlibs                                 |  3 ++
 srcpkgs/binutils-libs                         |  1 +
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     | 29 ++++++----
 4 files changed, 22 insertions(+), 64 deletions(-)
 create mode 120000 srcpkgs/binutils-libs
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/common/shlibs b/common/shlibs
index d66a3f71f3e02..f409db8f7bbf0 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -73,6 +73,9 @@ libmpfr.so.6 mpfr-4.0.0_1
 libppl.so.14 ppl-1.2_1
 libppl_c.so.4 ppl-0.11_1
 libstdc++.so.6 libstdc++-4.4.0_1
+libsframe.so.1 binutils-libs-2.41_1
+libctf-nobfd.so.0 binutils-libs-2.41_1
+libctf.so.0 binutils-libs-2.41_1
 libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libtinfo.so.6 ncurses-libtinfo-libs-6.2_2
diff --git a/srcpkgs/binutils-libs b/srcpkgs/binutils-libs
new file mode 120000
index 0000000000000..695eb82eae648
--- /dev/null
+++ b/srcpkgs/binutils-libs
@@ -0,0 +1 @@
+binutils
\ No newline at end of file
diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..382684c150532 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
-makedepends="zlib-devel"
+makedepends="zlib-devel libzstd-devel"
 short_desc="GNU binary utilities"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"
@@ -21,8 +21,8 @@ if [ "$CHROOT_READY" ]; then
 	hostmakedepends+=" flex perl texinfo"
 	makedepends+=" elfutils-devel"
 	checkdepends="bc"
-	depends="binutils-doc"
-	subpackages+=" libiberty-devel binutils-devel"
+	depends="binutils-doc binutils-libs"
+	subpackages+=" libiberty-devel binutils-libs binutils-devel"
 fi
 
 _get_triplet() {
@@ -138,9 +138,9 @@ do_install() {
 		# Remove these symlinks, they are not ABI stable.
 		# Programs should compile static to the .a file.
 		rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
-		echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libbfd.a -lsframe -liberty -lzstd -lz )" \
 			>${DESTDIR}/usr/lib/libbfd.so
-		echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libopcodes.a -lbfd )" \
 			>${DESTDIR}/usr/lib/libopcodes.so
 
 		# Install PIC version of libiberty.a
@@ -158,13 +158,20 @@ do_install() {
 }
 
 binutils-devel_package() {
-	depends="zlib-devel libiberty-devel"
+	depends="binutils-libs zlib-devel libzstd-devel libiberty-devel"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.a"
-		vmove "usr/lib/libbfd.so"
-		vmove "usr/lib/libopcodes.so"
+		vmove "usr/lib/*.so"
+	}
+}
+
+binutils-libs_package() {
+	short_desc+=" - shared libraries"
+	pkg_install() {
+		vmove "usr/lib/lib*-${version}.so"
+		vmove "usr/lib/*.so.*"
 	}
 }
 

From d08e066e680c1a0ae8b82d8456595d7d93131c57 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/41] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  55 +--
 10 files changed, 354 insertions(+), 306 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index f409db8f7bbf0..71f172740e5c6 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -855,8 +855,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1669,6 +1669,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..2c644c1e19a2d 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -36,6 +36,7 @@ replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
  libssp>=0 libssp-devel>=0"
 
 _have_gccgo=yes
+_have_libquadmath=no
 
 # MIPS is untested and does not have go in crosstoolchains
 # 32-bit PowerPC seems weirdly broken since the 10.x release
@@ -45,6 +46,10 @@ case "$XBPS_TARGET_MACHINE" in
 	mips*-musl|ppc*) _have_gccgo=no ;;
 esac
 
+case "$XBPS_TARGET_MACHINE" in
+	i686*|x86_64*|ppc64le) _have_libquadmath=yes ;;
+esac
+
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="tar texinfo perl flex"
 else
@@ -85,6 +90,10 @@ fi
 if [ "$CHROOT_READY" ]; then
 	subpackages+=" gcc-fortran libgfortran-devel libgfortran"
 	subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		subpackages+=" libquadmath libquadmath-devel"
+	fi
 fi
 
 if [ "$_have_gccgo" = "yes" ]; then
@@ -136,12 +145,8 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*)
-		subpackages+=" libquadmath libquadmath-devel"
 		subpackages+=" libvtv libvtv-devel"
 		;;
-	ppc64le)
-		subpackages+=" libquadmath libquadmath-devel"
-		;;
 esac
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;;
@@ -187,8 +192,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -385,10 +394,9 @@ do_install() {
 		vman ${FILESDIR}/${f}.1
 	done
 
-	case "$XBPS_TARGET_MACHINE" in
-		i686*|x86_64*|ppc64le) ;;
-		*) rm -f ${DESTDIR}/usr/share/info/libquadmath.info;;
-	esac
+	if [ "$_have_libquadmath" != "yes"]; then
+		rm -f ${DESTDIR}/usr/share/info/libquadmath.info*
+	fi
 }
 
 gcc-ada_package() {
@@ -502,6 +510,11 @@ libada_package() {
 libgfortran-devel_package() {
 	depends="libgfortran>=${_minorver}"
 	short_desc+=" - Fortran library - development files"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		depends+=" libquadmath-devel"
+	fi
+
 	pkg_install() {
 		vmove usr/lib/libgfortran.spec
 		vmove usr/lib/libgfortran.a
@@ -675,7 +688,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove "usr/lib/lib*san_preinit.o"
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From 7c9d281c33658ad691fc0bc32c5327d4cbd57e66 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:06:28 -0800
Subject: [PATCH 03/41] kernel-libc-headers: update to 6.1.

---
 ...-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch | 4 ++--
 srcpkgs/kernel-libc-headers/template                          | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch b/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
index c93e732de0ee4..e3448369e1e92 100644
--- a/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
+++ b/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
@@ -7,6 +7,6 @@
 +#ifdef __GLIBC__
  #include <linux/sysinfo.h>
 +#endif
+ #include <linux/const.h>
  
- /*
-  * 'kernel.h' contains some often-used function prototypes etc
+ #endif /* _UAPI_LINUX_KERNEL_H */
diff --git a/srcpkgs/kernel-libc-headers/template b/srcpkgs/kernel-libc-headers/template
index 61d118a2cfdf1..aa9b0fc20812f 100644
--- a/srcpkgs/kernel-libc-headers/template
+++ b/srcpkgs/kernel-libc-headers/template
@@ -1,6 +1,6 @@
 # Template file for 'kernel-libc-headers'
 pkgname=kernel-libc-headers
-version=5.10.4
+version=6.1
 revision=1
 bootstrap=yes
 short_desc="Linux API headers for userland development"
@@ -8,7 +8,7 @@ maintainer="Érico Nogueira <ericonr@disroot.org>"
 license="GPL-2.0-only"
 homepage="http://www.kernel.org"
 distfiles="$KERNEL_SITE/kernel/v${version%%.*}.x/linux-${version}.tar.xz"
-checksum=904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+checksum=2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
 
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="perl"

From 4937336b7d87d6234b3d561c5e95d5a10e276745 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 22 Jan 2024 13:30:57 -0800
Subject: [PATCH 04/41] musl: remove compat basename declaration and add
 RLIMIT_RTTIME define

This declaration was added to musl to avoid warnings for applications that
expect GNU basename() in string.h.

Pre-ansi style declarations were used to avoid causing errors due to
incompatibile declarations of basename().

In C23, just like in C++, function declarations with no arguments are treated
as having no arguments, instead of having unspecified arguments. As such,
this creates a conflicting declaration in C23.
---
 srcpkgs/musl/patches/add-rlimit-rttime.patch | 24 +++++++++++
 srcpkgs/musl/patches/c23-basename.patch      | 44 ++++++++++++++++++++
 srcpkgs/musl/template                        |  2 +-
 3 files changed, 69 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/musl/patches/add-rlimit-rttime.patch
 create mode 100644 srcpkgs/musl/patches/c23-basename.patch

diff --git a/srcpkgs/musl/patches/add-rlimit-rttime.patch b/srcpkgs/musl/patches/add-rlimit-rttime.patch
new file mode 100644
index 0000000000000..56afa6b66521a
--- /dev/null
+++ b/srcpkgs/musl/patches/add-rlimit-rttime.patch
@@ -0,0 +1,24 @@
+From 2507e7f5312e79620f6337935d0a6c9045ccba09 Mon Sep 17 00:00:00 2001
+From: Leah Neukirchen <leah@vuxu.org>
+Date: Sat, 11 Jan 2020 20:16:59 +0100
+Subject: [PATCH] define RLIMIT_RTTIME, bump RLIMIT_NLIMITS
+
+This macro exists since Linux 2.6.25 and is defined in glibc since 2011.
+---
+ include/sys/resource.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/include/sys/resource.h b/include/sys/resource.h
+index e0c86ae33..3068328d0 100644
+--- a/include/sys/resource.h
++++ b/include/sys/resource.h
+@@ -90,7 +90,8 @@ int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
+ #define RLIMIT_MSGQUEUE 12
+ #define RLIMIT_NICE    13
+ #define RLIMIT_RTPRIO  14
+-#define RLIMIT_NLIMITS 15
++#define RLIMIT_RTTIME  15
++#define RLIMIT_NLIMITS 16
+ 
+ #define RLIM_NLIMITS RLIMIT_NLIMITS
+ 
diff --git a/srcpkgs/musl/patches/c23-basename.patch b/srcpkgs/musl/patches/c23-basename.patch
new file mode 100644
index 0000000000000..8f95a27d0ef56
--- /dev/null
+++ b/srcpkgs/musl/patches/c23-basename.patch
@@ -0,0 +1,44 @@
+From 725e17ed6dff4d0cd22487bb64470881e86a92e7 Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Mon, 6 Nov 2023 08:26:19 -0500
+Subject: [PATCH] remove non-prototype declaration of basename from string.h
+
+commit 37bb3cce4598c19288628e675eaf1cda6e96958f suppressed the
+declaration for C++, where it is wrongly interpreted as declaring the
+function as taking no arguments. with C23 removing non-prototype
+declarations, that problem is now also relevant to C.
+
+the non-prototype declaration for basename originates with commit
+06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500, where it was designed to
+avoid conflicts with programs which declare basename with the GNU
+signature taking const char *. that change was probably misguided, as
+it represents not only misaligned expectations with the caller, but
+also undefined behavior (calling a function that's been declared with
+the wrong type).
+
+we could opt to fix the declaration, but since glibc, with the
+gratuitously incompatible GNU-basename function, seems to be the only
+implementation that declares it in string.h, it seems better to just
+remove the declaration. this provides some warning if applications are
+being built expecting the GNU behavior but not getting it. if we
+declared it here, it would only produce a warning if the caller also
+declares it themselves (rare) or if the caller attempts to pass a
+const-qualified pointer.
+---
+ include/string.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/include/string.h b/include/string.h
+index db73d2a9..83e2b946 100644
+--- a/include/string.h
++++ b/include/string.h
+@@ -95,9 +95,6 @@ char *strchrnul(const char *, int);
+ char *strcasestr(const char *, const char *);
+ void *memrchr(const void *, int, size_t);
+ void *mempcpy(void *, const void *, size_t);
+-#ifndef __cplusplus
+-char *basename();
+-#endif
+ #endif
+ 
+ #ifdef __cplusplus
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 9838f9ad9e613..8c3be7d76e8a1 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
 pkgname=musl
 reverts="1.2.0_1"
 version=1.1.24
-revision=19
+revision=20
 archs="*-musl"
 bootstrap=yes
 build_style=gnu-configure

From 6562a2d5fce74b9fb03f2b73c74cedbcc377689c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 05/41] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From abf33e4e6300224470e6ab41ed2747f1f41536a3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 06/41] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From ab78da85ed14de4f064ca6498ae4b4636d5e04df Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 07/41] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From 4036b2dad68c5f0e69e99603c058cc75e3438165 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 08/41] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..6af5541e1db5c 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,18 +3,18 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel
+makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
  glibc-32bit glibc-devel-32bit"
 
 depends="

From d72fe856c21bded4f3527ac24d9a770b6c0cb4d7 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 24 Jan 2024 13:06:14 -0800
Subject: [PATCH 09/41] build-style/void-cross.sh: include libquadmath

---
 common/build-style/void-cross.sh | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/common/build-style/void-cross.sh b/common/build-style/void-cross.sh
index 9193b7cf64bad..c6e542c670678 100644
--- a/common/build-style/void-cross.sh
+++ b/common/build-style/void-cross.sh
@@ -404,13 +404,8 @@ _void_cross_build_gcc() {
 
 	# note on --disable-libquadmath:
 	# on some platforms the library is actually necessary for the
-	# fortran frontend to build, but still disable it because it
-	# should not be in the resulting packages; it conflicts with
-	# the libquadmath you can install into the cross root
-	#
-	# platforms where this is a problem should explicitly force
-	# libquadmath to be on via cross_gcc_configure_args, the
-	# do_install in this build-style automatically removes it
+	# fortran frontend to build, platforms where this is a problem
+	# should explicitly force libquadmath to be on via cross_gcc_configure_args
 	#
 	../gcc-${ver}/configure \
 		--prefix=/usr \
@@ -646,10 +641,6 @@ do_install() {
 	ln -sf libgnat-${gcc_major}.so ${DESTDIR}/${sysroot}/usr/lib/libgnat.so
 	rm -vf ${DESTDIR}/${adalib}/libgna{rl,t}.so
 
-	# If libquadmath was forced (needed for gfortran on some platforms)
-	# then remove it because it conflicts with libquadmath package
-	rm -rf ${DESTDIR}/${sysroot}/usr/lib/libquadmath.*
-
 	# Remove libdep linker plugin because it conflicts with system binutils
 	rm -f ${DESTDIR}/usr/lib/bfd-plugins/libdep*
 

From 523a34e2fad9b3c79a699d50fc6392a6fc4fbb25 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 24 Jan 2024 13:07:24 -0800
Subject: [PATCH 10/41] cross-vpkg-dummy: update to 0.40.

---
 srcpkgs/cross-vpkg-dummy/template | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index feaccd4dc265d..2946be3f2bcec 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,7 +1,7 @@
 # Template file for 'cross-vpkg-dummy'
 pkgname=cross-vpkg-dummy
-version=0.39
-revision=6
+version=0.40
+revision=1
 build_style=meta
 depends="base-files>=0.126"
 short_desc="Dummy meta-pkg for cross building packages with xbps-src"
@@ -21,8 +21,12 @@ provides="
 	libstdc++-devel-9999_1
 	libgfortran-9999_1
 	libgfortran-devel-9999_1
+	libquadmath-9999_1
+	libquadmath-devel-9999_1
 	libgo-9999_1
 	libgo-devel-9999_1
+	libgomp-9999_1
+	libgomp-devel-9999_1
 	libobjc-9999_1
 	libobjc-devel-9999_1
 	libssp-12.2.0_2
@@ -46,8 +50,12 @@ conflicts="
 	libstdc++-devel>=0
 	libgfortran>=0
 	libgfortran-devel>=0
+	libquadmath>=0
+	libquadmath-devel>=0
 	libgo>=0
 	libgo-devel>=0
+	libgomp>=0
+	libgomp-devel>=0
 	libobjc>=0
 	libobjc-devel>=0
 	libssp>=0
@@ -61,8 +69,8 @@ conflicts="
 shlib_provides="
 	libatomic.so.1
 	libgcc_s.so.1
-	libgnat-12.so
-	libgnarl-12.so
+	libgnat-13.so
+	libgnarl-13.so
 	libstdc++.so.6
 	libgfortran.so.5"
 repository=bootstrap

From 4f3d72968a777727c3957ffc064ddcdd1176e1e8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:06 -0800
Subject: [PATCH 11/41] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..c4d7dbaf4ba19 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2 -march=armv8-a"

From 66ad0c9d233755f4b328cf053287682872660af2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 12/41] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..b337574743388 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 7f87fadb5b3f4101ee5d3cea566bdf8bfcb8ffe2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 13/41] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..efde1017cb864 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--without-fp"

From e9b8dd092a08962668ed327b533334a4a2cd2672 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 14/41] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..dd562ceb44986 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-Os -march=armv6 -mfpu=vfp -mfloat-abi=hard"

From 88d6656681f8db7d419d9ed1d09e242abe5e6bf9 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 15/41] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..b947fca9b89cb 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -22,12 +22,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From ca2a2491227368a981e1365ccfc43bb228b4faa8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 16/41] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..078eaf0695122 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -22,12 +22,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From db7815ba7d7815ca7530530e820f9486dbe49318 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 17/41] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..60c678f3f5aa7 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2 -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"

From 11dd19fc53c7323445a7ba3f2e8f0fd59b10680c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 18/41] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..8fafdcae1b8dc 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 72df7fa337762a429d9ad99ad314322c4f40f646 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 19/41] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..6894694553894 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,12 +20,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From e1177b785868057c6eaf6c12a2ba14e67b220691 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 20/41] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..7a82c328d4a93 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -18,11 +18,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 # explicitly enable for final gcc, as gfortran does not build without on x86

From 1feb8741f0ab1a4865960cb1fa74b177bb26d8fb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 21/41] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..09cc75f67e076 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From ab52be3ce6dccbec6a2e4a6004e7b1e09c6b18d6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 22/41] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..8ab1a6778777c 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 0fc25d156b1e0c94dc175bed7d2bd2043e18e5ea Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 23/41] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..c3df0e2fe8f05 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 0642c2a45f678d6bc6e8a405db69cbb0fe811cb6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 24/41] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..07568484c0d66 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 010bdbce4dee999b3024e84e924d68e8297715dc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 25/41] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..3a14a62bcec29 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From b4b7751fac46367b24868d924fe824f8c110c874 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 26/41] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..fc56dde6bd238 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From a4164722fb73c66625ee8b9f79865a679dbc709c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 27/41] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..f664f1dbc764a 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--enable-secureplt"

From 05d4882da39cf339023754eaee91a3784eb510d8 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 28/41] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..b3903e8110aa9 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -23,12 +23,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 8cff06b5db9a8792cb6c098aac4b51aec8c2228f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 29/41] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..e0ca6e9ce2d01 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--enable-secureplt"

From 24fbff09e8cb7627bb9af6ba4af8cec0d59371fc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 30/41] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..d76fbe3d250ed 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -23,12 +23,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From caa1a96678149d877a448dceab90dac244e9a629 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 31/41] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..f18370a304875 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 5f93753c512ca6d2650233e245d0e7832350be3f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 32/41] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..5f03d1d7f576e 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From c345e8204e8ede359d19e6d0fc2b362935f44fe4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 33/41] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..690b5d6184239 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2"

From 43a96d8cfc7eab12e0211e64cb770dffdbf55027 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 34/41] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..e20d2d8951465 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 11ce449420d359a0b4f995dad64e4ede3c8382d0 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 35/41] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..4fb35cb6f736c 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -18,11 +18,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 # explicitly enable for final gcc, gfortran does not build without on x86

From 120617d7e597a08a4fb8eac387b0d005b2231deb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 36/41] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..19fc88f6e0880 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,12 +20,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 60d206b281bdd59aba4963066c78b6108337d383 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:25 -0800
Subject: [PATCH 37/41] linux6.6: update kernel config for gcc 13

---
 srcpkgs/linux6.6/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.6/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.6/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.6/files/arm64-dotconfig b/srcpkgs/linux6.6/files/arm64-dotconfig
index 688a0dba94a1d..93b8ad6d2d835 100644
--- a/srcpkgs/linux6.6/files/arm64-dotconfig
+++ b/srcpkgs/linux6.6/files/arm64-dotconfig
@@ -12816,6 +12816,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/i386-dotconfig b/srcpkgs/linux6.6/files/i386-dotconfig
index f42b6646a248b..f79bca8495140 100644
--- a/srcpkgs/linux6.6/files/i386-dotconfig
+++ b/srcpkgs/linux6.6/files/i386-dotconfig
@@ -10567,6 +10567,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/x86_64-dotconfig b/srcpkgs/linux6.6/files/x86_64-dotconfig
index 02fe6de8db0de..f59f673ea0028 100644
--- a/srcpkgs/linux6.6/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.6/files/x86_64-dotconfig
@@ -10973,6 +10973,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From a8582ae059c64dc4d1330e6f280fb96116888bba Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:45 -0800
Subject: [PATCH 38/41] linux6.7: update kernel config for gcc 13

---
 srcpkgs/linux6.7/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.7/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.7/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.7/files/arm64-dotconfig b/srcpkgs/linux6.7/files/arm64-dotconfig
index 9b3a5816b2aa2..13b7f0b88b801 100644
--- a/srcpkgs/linux6.7/files/arm64-dotconfig
+++ b/srcpkgs/linux6.7/files/arm64-dotconfig
@@ -12909,6 +12909,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/i386-dotconfig b/srcpkgs/linux6.7/files/i386-dotconfig
index 08f008ba09097..0e5f1f2868fea 100644
--- a/srcpkgs/linux6.7/files/i386-dotconfig
+++ b/srcpkgs/linux6.7/files/i386-dotconfig
@@ -10646,6 +10646,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/x86_64-dotconfig b/srcpkgs/linux6.7/files/x86_64-dotconfig
index 9ec1f7922f4f9..da4f1fd47c6ee 100644
--- a/srcpkgs/linux6.7/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.7/files/x86_64-dotconfig
@@ -11057,6 +11057,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 11b13f46829fc809520fd1861c194257233a962c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sat, 27 Jan 2024 01:25:29 -0800
Subject: [PATCH 39/41] elogind: fix build on musl without basename
 compatibility decl

musl provided a compatibility basename declaration so applications
expecting GNU basename could still compile even though musl doesn't provide
GNU basename and only POSIX basename.

Prevent build failure when this is removed.
---
 srcpkgs/elogind/patches/musl-basename.patch | 42 +++++++++++++++++++++
 srcpkgs/elogind/template                    |  2 +-
 2 files changed, 43 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/elogind/patches/musl-basename.patch

diff --git a/srcpkgs/elogind/patches/musl-basename.patch b/srcpkgs/elogind/patches/musl-basename.patch
new file mode 100644
index 0000000000000..ff04009ffc4ef
--- /dev/null
+++ b/srcpkgs/elogind/patches/musl-basename.patch
@@ -0,0 +1,42 @@
+Add missing include for POSIX basename, since systemd-logind expects basename in string.h
+
+diff -rup src/basic/musl_missing.h.orig src/basic/musl_missing.h
+--- a/src/basic/musl_missing.h
++++ b/src/basic/musl_missing.h
+@@ -56,6 +54,10 @@ void elogind_set_program_name(const char
+         } ) )
+ #endif
+ 
++/* Poor man's basename */
++#define basename(path) \
++        (strrchr(path, '/') ? strrchr(path, '/')+1 : path)
++
+ /* getnameinfo(3) glibc extensions are undefined in musl libc */
+ #define NI_IDN 0
+ #define NI_IDN_USE_STD3_ASCII_RULES 0
+From c8d96ff2b87b8dfb8d521d4c2e6fb57992dbf659 Mon Sep 17 00:00:00 2001
+From: Lennart Poettering <lennart@poettering.net>
+Date: Wed, 21 Dec 2022 16:13:23 +0100
+Subject: [PATCH] tests: we don't actually use basename() anymore
+
+---
+ src/shared/tests.c | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/src/shared/tests.c b/src/shared/tests.c
+index 5a05daa643..9d8bbeea79 100644
+--- a/src/shared/tests.c
++++ b/src/shared/tests.c
+@@ -7,12 +7,6 @@
+ #include <sys/mount.h>
+ #include <sys/wait.h>
+ 
+-/* When we include libgen.h because we need dirname() we immediately
+- * undefine basename() since libgen.h defines it as a macro to the POSIX
+- * version which is really broken. We prefer GNU basename(). */
+-#include <libgen.h>
+-#undef basename
+-
+ #include "sd-bus.h"
+ 
+ #include "alloc-util.h"
diff --git a/srcpkgs/elogind/template b/srcpkgs/elogind/template
index 97d129f1f3239..ff5315b288f11 100644
--- a/srcpkgs/elogind/template
+++ b/srcpkgs/elogind/template
@@ -1,7 +1,7 @@
 # Template file for 'elogind'
 pkgname=elogind
 version=252.9
-revision=1
+revision=2
 build_style=meson
 configure_args="-Dcgroup-controller=elogind -Ddefault-hierarchy=legacy
  -Ddefault-kill-user-processes=false -Dhalt-path=/usr/bin/halt

From 9a9d6b0e0792e3d8d7c8f25fc80fa2204f1fc543 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 01:22:09 -0800
Subject: [PATCH 40/41] iwd: fix basename on musl

musl provides a compatibility basename declaration so applications
expecting GNU basename could still compile even though musl doesn't provide
GNU basename and only POSIX basename.
---
 srcpkgs/iwd/patches/musl.patch | 13 +++++++++++++
 srcpkgs/iwd/template           |  2 +-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/iwd/patches/musl.patch

diff --git a/srcpkgs/iwd/patches/musl.patch b/srcpkgs/iwd/patches/musl.patch
new file mode 100644
index 0000000000000..37b6d749b3c8f
--- /dev/null
+++ b/srcpkgs/iwd/patches/musl.patch
@@ -0,0 +1,13 @@
+Include libgen.h for POSIX basename as musl doesn provide GNU basename in string.h.
+
+diff -rup src/wiphy.c.orig src/wiphy.c
+--- a/src/wiphy.c
++++ b/src/wiphy.c
+@@ -33,6 +33,7 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <limits.h>
++#include <libgen.h>
+ 
+ #include <ell/ell.h>
+ 
diff --git a/srcpkgs/iwd/template b/srcpkgs/iwd/template
index f70503d2a8277..8ababe905f770 100644
--- a/srcpkgs/iwd/template
+++ b/srcpkgs/iwd/template
@@ -1,7 +1,7 @@
 # Template file for 'iwd'
 pkgname=iwd
 version=2.13
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--disable-systemd-service --enable-pie
  --enable-dbus-policy --enable-wired"

From ad6341c2c9256c349233429bb80878c60151b015 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 03:12:05 -0800
Subject: [PATCH 41/41] connman: fix basename on musl

musl provides a compatibility basename declaration so applications
expecting GNU basename could still compile even though musl doesn't provide
GNU basename and only POSIX basename.
---
 srcpkgs/connman/patches/musl.patch | 16 ++++++++++++++++
 srcpkgs/connman/template           |  2 +-
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/connman/patches/musl.patch

diff --git a/srcpkgs/connman/patches/musl.patch b/srcpkgs/connman/patches/musl.patch
new file mode 100644
index 0000000000000..4e38a44250b53
--- /dev/null
+++ b/srcpkgs/connman/patches/musl.patch
@@ -0,0 +1,16 @@
+Add GNU basename macro for code that expects GNU basename
+
+diff -rup src/log.c.orig src/log.c
+--- a/src/log.c
++++ b/src/log.c
+@@ -34,6 +34,10 @@
+ 
+ #include "connman.h"
+ 
++#if !defined(__GLIBC__)
++#define basename(src) (strrchr(src,'/') ? strrchr(src,'/')+1 : src)
++#endif
++
+ static const char *program_exec;
+ static const char *program_path;
+ 
diff --git a/srcpkgs/connman/template b/srcpkgs/connman/template
index e908284366c43..c4969eca59277 100644
--- a/srcpkgs/connman/template
+++ b/srcpkgs/connman/template
@@ -1,7 +1,7 @@
 # Template file for 'connman'
 pkgname=connman
 version=1.42
-revision=2
+revision=3
 build_style=gnu-configure
 configure_args="--enable-polkit --enable-client --enable-pie --enable-ethernet
  --enable-wifi --enable-bluetooth --enable-loopback --enable-nmcompat

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (53 preceding siblings ...)
  2024-01-27 22:34 ` oreo639
@ 2024-01-28  1:40 ` oreo639
  2024-01-28  5:27 ` oreo639
                   ` (2 subsequent siblings)
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-28  1:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

You can test the ISOs here: https://drive.google.com/drive/u/0/folders/1y5dkzI9R60eDjRA4mVYBdnn9e9PDGwNt

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 120467 bytes --]

From 95e00d5b37076e679956258f9e8f668432bf9e6d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/41] binutils: update to 2.41.

---
 common/shlibs                                 |  3 ++
 srcpkgs/binutils-libs                         |  1 +
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     | 29 ++++++----
 4 files changed, 22 insertions(+), 64 deletions(-)
 create mode 120000 srcpkgs/binutils-libs
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/common/shlibs b/common/shlibs
index d66a3f71f3e02..f409db8f7bbf0 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -73,6 +73,9 @@ libmpfr.so.6 mpfr-4.0.0_1
 libppl.so.14 ppl-1.2_1
 libppl_c.so.4 ppl-0.11_1
 libstdc++.so.6 libstdc++-4.4.0_1
+libsframe.so.1 binutils-libs-2.41_1
+libctf-nobfd.so.0 binutils-libs-2.41_1
+libctf.so.0 binutils-libs-2.41_1
 libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libtinfo.so.6 ncurses-libtinfo-libs-6.2_2
diff --git a/srcpkgs/binutils-libs b/srcpkgs/binutils-libs
new file mode 120000
index 0000000000000..695eb82eae648
--- /dev/null
+++ b/srcpkgs/binutils-libs
@@ -0,0 +1 @@
+binutils
\ No newline at end of file
diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..382684c150532 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
-makedepends="zlib-devel"
+makedepends="zlib-devel libzstd-devel"
 short_desc="GNU binary utilities"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"
@@ -21,8 +21,8 @@ if [ "$CHROOT_READY" ]; then
 	hostmakedepends+=" flex perl texinfo"
 	makedepends+=" elfutils-devel"
 	checkdepends="bc"
-	depends="binutils-doc"
-	subpackages+=" libiberty-devel binutils-devel"
+	depends="binutils-doc binutils-libs"
+	subpackages+=" libiberty-devel binutils-libs binutils-devel"
 fi
 
 _get_triplet() {
@@ -138,9 +138,9 @@ do_install() {
 		# Remove these symlinks, they are not ABI stable.
 		# Programs should compile static to the .a file.
 		rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
-		echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libbfd.a -lsframe -liberty -lzstd -lz )" \
 			>${DESTDIR}/usr/lib/libbfd.so
-		echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libopcodes.a -lbfd )" \
 			>${DESTDIR}/usr/lib/libopcodes.so
 
 		# Install PIC version of libiberty.a
@@ -158,13 +158,20 @@ do_install() {
 }
 
 binutils-devel_package() {
-	depends="zlib-devel libiberty-devel"
+	depends="binutils-libs zlib-devel libzstd-devel libiberty-devel"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.a"
-		vmove "usr/lib/libbfd.so"
-		vmove "usr/lib/libopcodes.so"
+		vmove "usr/lib/*.so"
+	}
+}
+
+binutils-libs_package() {
+	short_desc+=" - shared libraries"
+	pkg_install() {
+		vmove "usr/lib/lib*-${version}.so"
+		vmove "usr/lib/*.so.*"
 	}
 }
 

From 6ccb9f5f97866788e605ad1b0b6047c28de74a94 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/41] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  55 +--
 10 files changed, 354 insertions(+), 306 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index f409db8f7bbf0..71f172740e5c6 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -855,8 +855,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1669,6 +1669,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..2c644c1e19a2d 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -36,6 +36,7 @@ replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
  libssp>=0 libssp-devel>=0"
 
 _have_gccgo=yes
+_have_libquadmath=no
 
 # MIPS is untested and does not have go in crosstoolchains
 # 32-bit PowerPC seems weirdly broken since the 10.x release
@@ -45,6 +46,10 @@ case "$XBPS_TARGET_MACHINE" in
 	mips*-musl|ppc*) _have_gccgo=no ;;
 esac
 
+case "$XBPS_TARGET_MACHINE" in
+	i686*|x86_64*|ppc64le) _have_libquadmath=yes ;;
+esac
+
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="tar texinfo perl flex"
 else
@@ -85,6 +90,10 @@ fi
 if [ "$CHROOT_READY" ]; then
 	subpackages+=" gcc-fortran libgfortran-devel libgfortran"
 	subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		subpackages+=" libquadmath libquadmath-devel"
+	fi
 fi
 
 if [ "$_have_gccgo" = "yes" ]; then
@@ -136,12 +145,8 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*)
-		subpackages+=" libquadmath libquadmath-devel"
 		subpackages+=" libvtv libvtv-devel"
 		;;
-	ppc64le)
-		subpackages+=" libquadmath libquadmath-devel"
-		;;
 esac
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;;
@@ -187,8 +192,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -385,10 +394,9 @@ do_install() {
 		vman ${FILESDIR}/${f}.1
 	done
 
-	case "$XBPS_TARGET_MACHINE" in
-		i686*|x86_64*|ppc64le) ;;
-		*) rm -f ${DESTDIR}/usr/share/info/libquadmath.info;;
-	esac
+	if [ "$_have_libquadmath" != "yes"]; then
+		rm -f ${DESTDIR}/usr/share/info/libquadmath.info*
+	fi
 }
 
 gcc-ada_package() {
@@ -502,6 +510,11 @@ libada_package() {
 libgfortran-devel_package() {
 	depends="libgfortran>=${_minorver}"
 	short_desc+=" - Fortran library - development files"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		depends+=" libquadmath-devel"
+	fi
+
 	pkg_install() {
 		vmove usr/lib/libgfortran.spec
 		vmove usr/lib/libgfortran.a
@@ -675,7 +688,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove "usr/lib/lib*san_preinit.o"
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From 13b7276db9cbaeaff11c7c5fcda755ea3aea0d77 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:06:28 -0800
Subject: [PATCH 03/41] kernel-libc-headers: update to 6.1.

---
 ...-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch | 4 ++--
 srcpkgs/kernel-libc-headers/template                          | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch b/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
index c93e732de0ee4..e3448369e1e92 100644
--- a/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
+++ b/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
@@ -7,6 +7,6 @@
 +#ifdef __GLIBC__
  #include <linux/sysinfo.h>
 +#endif
+ #include <linux/const.h>
  
- /*
-  * 'kernel.h' contains some often-used function prototypes etc
+ #endif /* _UAPI_LINUX_KERNEL_H */
diff --git a/srcpkgs/kernel-libc-headers/template b/srcpkgs/kernel-libc-headers/template
index 61d118a2cfdf1..aa9b0fc20812f 100644
--- a/srcpkgs/kernel-libc-headers/template
+++ b/srcpkgs/kernel-libc-headers/template
@@ -1,6 +1,6 @@
 # Template file for 'kernel-libc-headers'
 pkgname=kernel-libc-headers
-version=5.10.4
+version=6.1
 revision=1
 bootstrap=yes
 short_desc="Linux API headers for userland development"
@@ -8,7 +8,7 @@ maintainer="Érico Nogueira <ericonr@disroot.org>"
 license="GPL-2.0-only"
 homepage="http://www.kernel.org"
 distfiles="$KERNEL_SITE/kernel/v${version%%.*}.x/linux-${version}.tar.xz"
-checksum=904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+checksum=2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
 
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="perl"

From d00f7a361a13511a27e09b9efadf1f40de7b1a6b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 22 Jan 2024 13:30:57 -0800
Subject: [PATCH 04/41] musl: remove compat basename declaration and add
 RLIMIT_RTTIME define

This declaration was added to musl to avoid warnings for applications that
expect GNU basename() in string.h.

Pre-ansi style declarations were used to avoid causing errors due to
incompatibile declarations of basename().

In C23, just like in C++, function declarations with no arguments are treated
as having no arguments, instead of having unspecified arguments. As such,
this creates a conflicting declaration in C23.
---
 srcpkgs/musl/patches/add-rlimit-rttime.patch | 24 +++++++++++
 srcpkgs/musl/patches/c23-basename.patch      | 44 ++++++++++++++++++++
 srcpkgs/musl/template                        |  2 +-
 3 files changed, 69 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/musl/patches/add-rlimit-rttime.patch
 create mode 100644 srcpkgs/musl/patches/c23-basename.patch

diff --git a/srcpkgs/musl/patches/add-rlimit-rttime.patch b/srcpkgs/musl/patches/add-rlimit-rttime.patch
new file mode 100644
index 0000000000000..56afa6b66521a
--- /dev/null
+++ b/srcpkgs/musl/patches/add-rlimit-rttime.patch
@@ -0,0 +1,24 @@
+From 2507e7f5312e79620f6337935d0a6c9045ccba09 Mon Sep 17 00:00:00 2001
+From: Leah Neukirchen <leah@vuxu.org>
+Date: Sat, 11 Jan 2020 20:16:59 +0100
+Subject: [PATCH] define RLIMIT_RTTIME, bump RLIMIT_NLIMITS
+
+This macro exists since Linux 2.6.25 and is defined in glibc since 2011.
+---
+ include/sys/resource.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/include/sys/resource.h b/include/sys/resource.h
+index e0c86ae33..3068328d0 100644
+--- a/include/sys/resource.h
++++ b/include/sys/resource.h
+@@ -90,7 +90,8 @@ int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
+ #define RLIMIT_MSGQUEUE 12
+ #define RLIMIT_NICE    13
+ #define RLIMIT_RTPRIO  14
+-#define RLIMIT_NLIMITS 15
++#define RLIMIT_RTTIME  15
++#define RLIMIT_NLIMITS 16
+ 
+ #define RLIM_NLIMITS RLIMIT_NLIMITS
+ 
diff --git a/srcpkgs/musl/patches/c23-basename.patch b/srcpkgs/musl/patches/c23-basename.patch
new file mode 100644
index 0000000000000..8f95a27d0ef56
--- /dev/null
+++ b/srcpkgs/musl/patches/c23-basename.patch
@@ -0,0 +1,44 @@
+From 725e17ed6dff4d0cd22487bb64470881e86a92e7 Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Mon, 6 Nov 2023 08:26:19 -0500
+Subject: [PATCH] remove non-prototype declaration of basename from string.h
+
+commit 37bb3cce4598c19288628e675eaf1cda6e96958f suppressed the
+declaration for C++, where it is wrongly interpreted as declaring the
+function as taking no arguments. with C23 removing non-prototype
+declarations, that problem is now also relevant to C.
+
+the non-prototype declaration for basename originates with commit
+06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500, where it was designed to
+avoid conflicts with programs which declare basename with the GNU
+signature taking const char *. that change was probably misguided, as
+it represents not only misaligned expectations with the caller, but
+also undefined behavior (calling a function that's been declared with
+the wrong type).
+
+we could opt to fix the declaration, but since glibc, with the
+gratuitously incompatible GNU-basename function, seems to be the only
+implementation that declares it in string.h, it seems better to just
+remove the declaration. this provides some warning if applications are
+being built expecting the GNU behavior but not getting it. if we
+declared it here, it would only produce a warning if the caller also
+declares it themselves (rare) or if the caller attempts to pass a
+const-qualified pointer.
+---
+ include/string.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/include/string.h b/include/string.h
+index db73d2a9..83e2b946 100644
+--- a/include/string.h
++++ b/include/string.h
+@@ -95,9 +95,6 @@ char *strchrnul(const char *, int);
+ char *strcasestr(const char *, const char *);
+ void *memrchr(const void *, int, size_t);
+ void *mempcpy(void *, const void *, size_t);
+-#ifndef __cplusplus
+-char *basename();
+-#endif
+ #endif
+ 
+ #ifdef __cplusplus
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 9838f9ad9e613..8c3be7d76e8a1 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
 pkgname=musl
 reverts="1.2.0_1"
 version=1.1.24
-revision=19
+revision=20
 archs="*-musl"
 bootstrap=yes
 build_style=gnu-configure

From d55793bb32fb918146b6f950bfe93ebc709a81f4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 05/41] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From a8858b46dd745421d51b2502f8f69b3f0198fd72 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 06/41] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From 757db90374d0cfeec2d02b50971d3a51bd8bac29 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 07/41] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From 20bc3004a0684bd4d404d373e4ad23dbb7f64d87 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 08/41] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..6af5541e1db5c 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,18 +3,18 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel
+makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
  glibc-32bit glibc-devel-32bit"
 
 depends="

From f502711a2f1fb8efc6a9373f7c2683666a963509 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 24 Jan 2024 13:06:14 -0800
Subject: [PATCH 09/41] build-style/void-cross.sh: include libquadmath

---
 common/build-style/void-cross.sh | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/common/build-style/void-cross.sh b/common/build-style/void-cross.sh
index 9193b7cf64bad..c6e542c670678 100644
--- a/common/build-style/void-cross.sh
+++ b/common/build-style/void-cross.sh
@@ -404,13 +404,8 @@ _void_cross_build_gcc() {
 
 	# note on --disable-libquadmath:
 	# on some platforms the library is actually necessary for the
-	# fortran frontend to build, but still disable it because it
-	# should not be in the resulting packages; it conflicts with
-	# the libquadmath you can install into the cross root
-	#
-	# platforms where this is a problem should explicitly force
-	# libquadmath to be on via cross_gcc_configure_args, the
-	# do_install in this build-style automatically removes it
+	# fortran frontend to build, platforms where this is a problem
+	# should explicitly force libquadmath to be on via cross_gcc_configure_args
 	#
 	../gcc-${ver}/configure \
 		--prefix=/usr \
@@ -646,10 +641,6 @@ do_install() {
 	ln -sf libgnat-${gcc_major}.so ${DESTDIR}/${sysroot}/usr/lib/libgnat.so
 	rm -vf ${DESTDIR}/${adalib}/libgna{rl,t}.so
 
-	# If libquadmath was forced (needed for gfortran on some platforms)
-	# then remove it because it conflicts with libquadmath package
-	rm -rf ${DESTDIR}/${sysroot}/usr/lib/libquadmath.*
-
 	# Remove libdep linker plugin because it conflicts with system binutils
 	rm -f ${DESTDIR}/usr/lib/bfd-plugins/libdep*
 

From 4c1dc840d3f6e39d0f0bfb0fba21714880bd2c59 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 24 Jan 2024 13:07:24 -0800
Subject: [PATCH 10/41] cross-vpkg-dummy: update to 0.40.

---
 srcpkgs/cross-vpkg-dummy/template | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index feaccd4dc265d..eebe0b6ae6bca 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,7 +1,7 @@
 # Template file for 'cross-vpkg-dummy'
 pkgname=cross-vpkg-dummy
-version=0.39
-revision=6
+version=0.40
+revision=1
 build_style=meta
 depends="base-files>=0.126"
 short_desc="Dummy meta-pkg for cross building packages with xbps-src"
@@ -21,8 +21,12 @@ provides="
 	libstdc++-devel-9999_1
 	libgfortran-9999_1
 	libgfortran-devel-9999_1
+	libquadmath-9999_1
+	libquadmath-devel-9999_1
 	libgo-9999_1
 	libgo-devel-9999_1
+	libgomp-9999_1
+	libgomp-devel-9999_1
 	libobjc-9999_1
 	libobjc-devel-9999_1
 	libssp-12.2.0_2
@@ -46,8 +50,12 @@ conflicts="
 	libstdc++-devel>=0
 	libgfortran>=0
 	libgfortran-devel>=0
+	libquadmath>=0
+	libquadmath-devel>=0
 	libgo>=0
 	libgo-devel>=0
+	libgomp>=0
+	libgomp-devel>=0
 	libobjc>=0
 	libobjc-devel>=0
 	libssp>=0
@@ -61,10 +69,11 @@ conflicts="
 shlib_provides="
 	libatomic.so.1
 	libgcc_s.so.1
-	libgnat-12.so
-	libgnarl-12.so
+	libgnat-13.so
+	libgnarl-13.so
 	libstdc++.so.6
-	libgfortran.so.5"
+	libgfortran.so.5
+	libgomp.so.1"
 repository=bootstrap
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then

From af1b840828ecefb06ba8662fd0eb3a1ffc7bcb23 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:06 -0800
Subject: [PATCH 11/41] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..c4d7dbaf4ba19 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2 -march=armv8-a"

From 8e20d9208adc7c39431e3550715b990f43e7598c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 12/41] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..b337574743388 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From c92057fced9dd749592f02b4a3d8e03b6a008b60 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 13/41] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..efde1017cb864 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--without-fp"

From 2fd0055a1884989a682169ec609874cf8d58c186 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 14/41] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..dd562ceb44986 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-Os -march=armv6 -mfpu=vfp -mfloat-abi=hard"

From 272183abdd6d20cd83d46bc680bab522cef92cfb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 15/41] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..b947fca9b89cb 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -22,12 +22,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From f2452e49099e8e3cb1e294078e69edef80e85739 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 16/41] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..078eaf0695122 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -22,12 +22,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From e9d4fd78d28cc89bbdd20c408680bc5cb87f0a96 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 17/41] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..60c678f3f5aa7 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2 -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"

From 9416323f35d68611f00e38ae1f91accde5667cbe Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 18/41] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..8fafdcae1b8dc 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 6d27110f10dd7332dedd95ad28d25fc74cbb4684 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 19/41] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..6894694553894 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,12 +20,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 3fe796033236bc5838233d2b9e38139e235772af Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 20/41] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..7a82c328d4a93 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -18,11 +18,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 # explicitly enable for final gcc, as gfortran does not build without on x86

From 6872b3a5e93feb3f92a51a54552df5ff1957a456 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 21/41] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..09cc75f67e076 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From dd56b344735589744f22c64a6599973cd3cda21c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 22/41] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..8ab1a6778777c 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From a0b3bbf840887255bda262364d97f7b2913f71c3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 23/41] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..c3df0e2fe8f05 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From d39665d3c07ed5ed941cdf19ddb3c2869a6a837d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 24/41] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..07568484c0d66 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From ce512bc9a4222480f323556b47d1ca68c825af82 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 25/41] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..3a14a62bcec29 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From f4a799deec935ae868da8b9db08d3391d8b23205 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 26/41] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..fc56dde6bd238 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 576cf80a57c7c466175c891425528ea5a7ab58e5 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 27/41] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..f664f1dbc764a 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--enable-secureplt"

From d9db1f3dbfd41a9c7be23a50ab6b1651ff0d6bdb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 28/41] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..b3903e8110aa9 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -23,12 +23,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 9f62ad096547df6727d17ff9ba176331abf9b487 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 29/41] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..e0ca6e9ce2d01 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--enable-secureplt"

From 53b6baf273972dfb6e5fc40a2d7f92283d00ed9f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 30/41] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..d76fbe3d250ed 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -23,12 +23,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From abce2e3285644623dddab45ba26157d5048bc00c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 31/41] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..f18370a304875 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From f160cfc0116d87603fecc4c7995bce5bf5376ced Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 32/41] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..5f03d1d7f576e 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From e03c2b4f8c03d30630bfa9e8ed79581217576cff Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 33/41] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..690b5d6184239 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2"

From 2679d7fd7768a3e04e4f8453c22181e108a61806 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 34/41] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..e20d2d8951465 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 11733e84a8372e12ccfe001a6e411a968837e759 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 35/41] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..4fb35cb6f736c 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -18,11 +18,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 # explicitly enable for final gcc, gfortran does not build without on x86

From 2c7b831679648537630d12b9350ef2773194751d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 36/41] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..19fc88f6e0880 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,12 +20,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From d0ba7fa7815b418dde12593e8d21e5e5d38de06d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:25 -0800
Subject: [PATCH 37/41] linux6.6: update kernel config for gcc 13

---
 srcpkgs/linux6.6/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.6/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.6/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.6/files/arm64-dotconfig b/srcpkgs/linux6.6/files/arm64-dotconfig
index 688a0dba94a1d..93b8ad6d2d835 100644
--- a/srcpkgs/linux6.6/files/arm64-dotconfig
+++ b/srcpkgs/linux6.6/files/arm64-dotconfig
@@ -12816,6 +12816,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/i386-dotconfig b/srcpkgs/linux6.6/files/i386-dotconfig
index f42b6646a248b..f79bca8495140 100644
--- a/srcpkgs/linux6.6/files/i386-dotconfig
+++ b/srcpkgs/linux6.6/files/i386-dotconfig
@@ -10567,6 +10567,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/x86_64-dotconfig b/srcpkgs/linux6.6/files/x86_64-dotconfig
index 02fe6de8db0de..f59f673ea0028 100644
--- a/srcpkgs/linux6.6/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.6/files/x86_64-dotconfig
@@ -10973,6 +10973,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 7d32bb48a159c645bcb3e431ae35edba65fda05a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:45 -0800
Subject: [PATCH 38/41] linux6.7: update kernel config for gcc 13

---
 srcpkgs/linux6.7/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.7/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.7/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.7/files/arm64-dotconfig b/srcpkgs/linux6.7/files/arm64-dotconfig
index 9b3a5816b2aa2..13b7f0b88b801 100644
--- a/srcpkgs/linux6.7/files/arm64-dotconfig
+++ b/srcpkgs/linux6.7/files/arm64-dotconfig
@@ -12909,6 +12909,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/i386-dotconfig b/srcpkgs/linux6.7/files/i386-dotconfig
index 08f008ba09097..0e5f1f2868fea 100644
--- a/srcpkgs/linux6.7/files/i386-dotconfig
+++ b/srcpkgs/linux6.7/files/i386-dotconfig
@@ -10646,6 +10646,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/x86_64-dotconfig b/srcpkgs/linux6.7/files/x86_64-dotconfig
index 9ec1f7922f4f9..da4f1fd47c6ee 100644
--- a/srcpkgs/linux6.7/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.7/files/x86_64-dotconfig
@@ -11057,6 +11057,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 622333700e172679ac1ca92858f987c91978c739 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sat, 27 Jan 2024 01:25:29 -0800
Subject: [PATCH 39/41] elogind: fix build on musl without basename
 compatibility decl

musl provided a compatibility basename declaration so applications
expecting GNU basename could still compile even though musl doesn't provide
GNU basename and only POSIX basename.

Prevent build failure when this is removed.
---
 srcpkgs/elogind/patches/musl-basename.patch | 42 +++++++++++++++++++++
 srcpkgs/elogind/template                    |  2 +-
 2 files changed, 43 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/elogind/patches/musl-basename.patch

diff --git a/srcpkgs/elogind/patches/musl-basename.patch b/srcpkgs/elogind/patches/musl-basename.patch
new file mode 100644
index 0000000000000..ff04009ffc4ef
--- /dev/null
+++ b/srcpkgs/elogind/patches/musl-basename.patch
@@ -0,0 +1,42 @@
+Add missing include for POSIX basename, since systemd-logind expects basename in string.h
+
+diff -rup src/basic/musl_missing.h.orig src/basic/musl_missing.h
+--- a/src/basic/musl_missing.h
++++ b/src/basic/musl_missing.h
+@@ -56,6 +54,10 @@ void elogind_set_program_name(const char
+         } ) )
+ #endif
+ 
++/* Poor man's basename */
++#define basename(path) \
++        (strrchr(path, '/') ? strrchr(path, '/')+1 : path)
++
+ /* getnameinfo(3) glibc extensions are undefined in musl libc */
+ #define NI_IDN 0
+ #define NI_IDN_USE_STD3_ASCII_RULES 0
+From c8d96ff2b87b8dfb8d521d4c2e6fb57992dbf659 Mon Sep 17 00:00:00 2001
+From: Lennart Poettering <lennart@poettering.net>
+Date: Wed, 21 Dec 2022 16:13:23 +0100
+Subject: [PATCH] tests: we don't actually use basename() anymore
+
+---
+ src/shared/tests.c | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/src/shared/tests.c b/src/shared/tests.c
+index 5a05daa643..9d8bbeea79 100644
+--- a/src/shared/tests.c
++++ b/src/shared/tests.c
+@@ -7,12 +7,6 @@
+ #include <sys/mount.h>
+ #include <sys/wait.h>
+ 
+-/* When we include libgen.h because we need dirname() we immediately
+- * undefine basename() since libgen.h defines it as a macro to the POSIX
+- * version which is really broken. We prefer GNU basename(). */
+-#include <libgen.h>
+-#undef basename
+-
+ #include "sd-bus.h"
+ 
+ #include "alloc-util.h"
diff --git a/srcpkgs/elogind/template b/srcpkgs/elogind/template
index 97d129f1f3239..ff5315b288f11 100644
--- a/srcpkgs/elogind/template
+++ b/srcpkgs/elogind/template
@@ -1,7 +1,7 @@
 # Template file for 'elogind'
 pkgname=elogind
 version=252.9
-revision=1
+revision=2
 build_style=meson
 configure_args="-Dcgroup-controller=elogind -Ddefault-hierarchy=legacy
  -Ddefault-kill-user-processes=false -Dhalt-path=/usr/bin/halt

From c3dd0539faf20d95d3d1834617e2cd88ead59aad Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 01:22:09 -0800
Subject: [PATCH 40/41] iwd: fix basename on musl

musl provides a compatibility basename declaration so applications
expecting GNU basename could still compile even though musl doesn't provide
GNU basename and only POSIX basename.
---
 srcpkgs/iwd/patches/musl.patch | 13 +++++++++++++
 srcpkgs/iwd/template           |  2 +-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/iwd/patches/musl.patch

diff --git a/srcpkgs/iwd/patches/musl.patch b/srcpkgs/iwd/patches/musl.patch
new file mode 100644
index 0000000000000..37b6d749b3c8f
--- /dev/null
+++ b/srcpkgs/iwd/patches/musl.patch
@@ -0,0 +1,13 @@
+Include libgen.h for POSIX basename as musl doesn provide GNU basename in string.h.
+
+diff -rup src/wiphy.c.orig src/wiphy.c
+--- a/src/wiphy.c
++++ b/src/wiphy.c
+@@ -33,6 +33,7 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <limits.h>
++#include <libgen.h>
+ 
+ #include <ell/ell.h>
+ 
diff --git a/srcpkgs/iwd/template b/srcpkgs/iwd/template
index f70503d2a8277..8ababe905f770 100644
--- a/srcpkgs/iwd/template
+++ b/srcpkgs/iwd/template
@@ -1,7 +1,7 @@
 # Template file for 'iwd'
 pkgname=iwd
 version=2.13
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--disable-systemd-service --enable-pie
  --enable-dbus-policy --enable-wired"

From c97cdd6ccebdadb4d59d4ea54f166f872b488277 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 03:12:05 -0800
Subject: [PATCH 41/41] connman: fix basename on musl

musl provides a compatibility basename declaration so applications
expecting GNU basename could still compile even though musl doesn't provide
GNU basename and only POSIX basename.
---
 srcpkgs/connman/patches/musl.patch | 16 ++++++++++++++++
 srcpkgs/connman/template           |  2 +-
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/connman/patches/musl.patch

diff --git a/srcpkgs/connman/patches/musl.patch b/srcpkgs/connman/patches/musl.patch
new file mode 100644
index 0000000000000..4e38a44250b53
--- /dev/null
+++ b/srcpkgs/connman/patches/musl.patch
@@ -0,0 +1,16 @@
+Add GNU basename macro for code that expects GNU basename
+
+diff -rup src/log.c.orig src/log.c
+--- a/src/log.c
++++ b/src/log.c
+@@ -34,6 +34,10 @@
+ 
+ #include "connman.h"
+ 
++#if !defined(__GLIBC__)
++#define basename(src) (strrchr(src,'/') ? strrchr(src,'/')+1 : src)
++#endif
++
+ static const char *program_exec;
+ static const char *program_path;
+ 
diff --git a/srcpkgs/connman/template b/srcpkgs/connman/template
index e908284366c43..c4969eca59277 100644
--- a/srcpkgs/connman/template
+++ b/srcpkgs/connman/template
@@ -1,7 +1,7 @@
 # Template file for 'connman'
 pkgname=connman
 version=1.42
-revision=2
+revision=3
 build_style=gnu-configure
 configure_args="--enable-polkit --enable-client --enable-pie --enable-ethernet
  --enable-wifi --enable-bluetooth --enable-loopback --enable-nmcompat

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Updated] gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (54 preceding siblings ...)
  2024-01-28  1:40 ` oreo639
@ 2024-01-28  5:27 ` oreo639
  2024-01-28 23:43 ` [PR PATCH] [Closed]: " oreo639
  2024-01-28 23:43 ` oreo639
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-28  5:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1358 bytes --]

There is an updated pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gcc13
https://github.com/void-linux/void-packages/pull/45500

gcc: update to 13.2.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

You can test the ISOs here: https://drive.google.com/drive/u/0/folders/1y5dkzI9R60eDjRA4mVYBdnn9e9PDGwNt

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/45500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gcc13-45500.patch --]
[-- Type: text/x-diff, Size: 120378 bytes --]

From 95e00d5b37076e679956258f9e8f668432bf9e6d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 03:19:31 -0700
Subject: [PATCH 01/41] binutils: update to 2.41.

---
 common/shlibs                                 |  3 ++
 srcpkgs/binutils-libs                         |  1 +
 .../fix-libcollector-without-java.patch       | 53 -------------------
 srcpkgs/binutils/template                     | 29 ++++++----
 4 files changed, 22 insertions(+), 64 deletions(-)
 create mode 120000 srcpkgs/binutils-libs
 delete mode 100644 srcpkgs/binutils/patches/fix-libcollector-without-java.patch

diff --git a/common/shlibs b/common/shlibs
index d66a3f71f3e02..f409db8f7bbf0 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -73,6 +73,9 @@ libmpfr.so.6 mpfr-4.0.0_1
 libppl.so.14 ppl-1.2_1
 libppl_c.so.4 ppl-0.11_1
 libstdc++.so.6 libstdc++-4.4.0_1
+libsframe.so.1 binutils-libs-2.41_1
+libctf-nobfd.so.0 binutils-libs-2.41_1
+libctf.so.0 binutils-libs-2.41_1
 libncurses.so.6 ncurses-libs-6.0_1 ignore
 libncursesw.so.6 ncurses-libs-5.8_1 ignore
 libtinfo.so.6 ncurses-libtinfo-libs-6.2_2
diff --git a/srcpkgs/binutils-libs b/srcpkgs/binutils-libs
new file mode 120000
index 0000000000000..695eb82eae648
--- /dev/null
+++ b/srcpkgs/binutils-libs
@@ -0,0 +1 @@
+binutils
\ No newline at end of file
diff --git a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch b/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
deleted file mode 100644
index 54384875f358f..0000000000000
--- a/srcpkgs/binutils/patches/fix-libcollector-without-java.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 49ddd814ac1071af7c4f45d5f8398b91862f2c7f Mon Sep 17 00:00:00 2001
-From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
-Date: Wed, 17 Aug 2022 19:55:23 -0700
-Subject: [PATCH] gprofng: fix bug 29479 Collection fails when built without
- java support
-
-gprofng/ChangeLog
-2022-08-17  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>
-
-	PR gprofng/29479
-	* libcollector/collector.c: Add #if defined(GPROFNG_JAVA_PROFILING) for
-	java specific code.
-	* libcollector/unwind.c: Likewise.
----
- gprofng/libcollector/collector.c | 2 ++
- gprofng/libcollector/unwind.c    | 2 ++
- 2 files changed, 4 insertions(+)
-
-diff --git a/gprofng/libcollector/collector.c b/gprofng/libcollector/collector.c
-index 93c9d3330de5..ceff2c1caccb 100644
---- a/gprofng/libcollector/collector.c
-+++ b/gprofng/libcollector/collector.c
-@@ -913,8 +913,10 @@ __collector_open_experiment (const char *exp, const char *params, sp_origin_t or
-   __collector_ext_unwind_key_init (1, NULL);
- 
-   /* start java attach if suitable */
-+#if defined(GPROFNG_JAVA_PROFILING)
-   if (exp_origin == SP_ORIGIN_DBX_ATTACH)
-     __collector_jprofile_start_attach ();
-+#endif
-   start_sec_time = CALL_UTIL (time)(NULL);
-   __collector_start_time = collector_interface.getHiResTime ();
-   TprintfT (DBG_LT0, "\t__collector_open_experiment; resetting start_time\n");
-diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
-index 119243788020..f8e11823c81e 100644
---- a/gprofng/libcollector/unwind.c
-+++ b/gprofng/libcollector/unwind.c
-@@ -557,6 +557,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
-   int size = max_frame_size;
- 
- #define MIN(a,b) ((a)<(b)?(a):(b))
-+#if defined(GPROFNG_JAVA_PROFILING)
-   /* get Java info */
-   if (__collector_java_mode && __collector_java_asyncgetcalltrace_loaded && context && !pseudo_context)
-     {
-@@ -569,6 +570,7 @@ __collector_get_frame_info (hrtime_t ts, int mode, void *arg)
- 	  size -= sz;
- 	}
-     }
-+#endif
- 
-   /* get native stack */
-   if (context)
diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template
index 36b71c2b5e92c..382684c150532 100644
--- a/srcpkgs/binutils/template
+++ b/srcpkgs/binutils/template
@@ -1,16 +1,16 @@
 # Template file for 'binutils'
 pkgname=binutils
-version=2.39
-revision=3
+version=2.41
+revision=1
 bootstrap=yes
 hostmakedepends="pkgconf"
-makedepends="zlib-devel"
+makedepends="zlib-devel libzstd-devel"
 short_desc="GNU binary utilities"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="http://www.gnu.org/software/binutils/"
 distfiles="${GNU_SITE}/binutils/binutils-${version}.tar.xz"
-checksum=645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
+checksum=ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
 
 build_options="all_targets"
 desc_option_all_targets="Enable all supported targets"
@@ -21,8 +21,8 @@ if [ "$CHROOT_READY" ]; then
 	hostmakedepends+=" flex perl texinfo"
 	makedepends+=" elfutils-devel"
 	checkdepends="bc"
-	depends="binutils-doc"
-	subpackages+=" libiberty-devel binutils-devel"
+	depends="binutils-doc binutils-libs"
+	subpackages+=" libiberty-devel binutils-libs binutils-devel"
 fi
 
 _get_triplet() {
@@ -138,9 +138,9 @@ do_install() {
 		# Remove these symlinks, they are not ABI stable.
 		# Programs should compile static to the .a file.
 		rm -f ${DESTDIR}/usr/lib/lib{bfd,opcodes}.so
-		echo "INPUT ( /usr/lib/libbfd.a -liberty -lz )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libbfd.a -lsframe -liberty -lzstd -lz )" \
 			>${DESTDIR}/usr/lib/libbfd.so
-		echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" \
+		echo "INPUT ( /usr/lib${XBPS_TARGET_WORDSIZE}/libopcodes.a -lbfd )" \
 			>${DESTDIR}/usr/lib/libopcodes.so
 
 		# Install PIC version of libiberty.a
@@ -158,13 +158,20 @@ do_install() {
 }
 
 binutils-devel_package() {
-	depends="zlib-devel libiberty-devel"
+	depends="binutils-libs zlib-devel libzstd-devel libiberty-devel"
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/include
 		vmove "usr/lib/*.a"
-		vmove "usr/lib/libbfd.so"
-		vmove "usr/lib/libopcodes.so"
+		vmove "usr/lib/*.so"
+	}
+}
+
+binutils-libs_package() {
+	short_desc+=" - shared libraries"
+	pkg_install() {
+		vmove "usr/lib/lib*-${version}.so"
+		vmove "usr/lib/*.so.*"
 	}
 }
 

From 6ccb9f5f97866788e605ad1b0b6047c28de74a94 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:41:41 -0700
Subject: [PATCH 02/41] gcc: update to 13.2.0.

---
 common/shlibs                                 |   7 +-
 srcpkgs/gcc/files/gccgo-musl.patch            | 340 ++++++++++--------
 srcpkgs/gcc/files/libssp-musl.patch           |  28 --
 ...-go-fix-build-error-with-SYS_SECCOMP.patch |  41 ---
 .../patches/consistent-library-paths.patch    |  25 +-
 ...ad833631486e337e541e692d9b4a1ca14edd.patch |  30 +-
 ...9de35fb1b293a4fd586574b1b4b73ddf7880.patch |  60 ++++
 .../patches/fix-pretty-printer-warnings.patch |  18 +-
 srcpkgs/gcc/patches/libatomic-autolink.patch  |  56 ++-
 srcpkgs/gcc/template                          |  55 +--
 10 files changed, 354 insertions(+), 306 deletions(-)
 delete mode 100644 srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
 create mode 100644 srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch

diff --git a/common/shlibs b/common/shlibs
index f409db8f7bbf0..71f172740e5c6 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -63,7 +63,7 @@ libcc1plugin.so.0 gcc-6.2.1_1
 libitm.so.1 libitm-4.7.3_1
 liblto_plugin.so.0 gcc-4.7.3_1
 libgcc_s.so.1 libgcc-4.4.0_1
-libgo.so.21 libgo-12.2.0_1
+libgo.so.22 libgo-13.2.0_1
 libgccjit.so.0 libgccjit-10.2.1pre1_1
 libperl.so.5.38 perl-5.38.0_1
 libgmp.so.10 gmp-5.0.1_1
@@ -855,8 +855,8 @@ libgdkmm-2.4.so.1 gtkmm2-2.24.0_1
 libgtkmm-2.4.so.1 gtkmm2-2.24.0_1
 libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
-libgnarl-12.so libada-12.2.0_1
-libgnat-12.so libada-12.2.0_1
+libgnarl-13.so libada-13.2.0_1
+libgnat-13.so libada-13.2.0_1
 libsharpyuv.so.0 libsharpyuv-1.3.0_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
@@ -1669,6 +1669,7 @@ libubsan.so.1 libsanitizer-8.2.0_1
 libtsan.so.2 libsanitizer-12.2.0_1
 libasan.so.8 libsanitizer-12.2.0_1
 liblsan.so.0 libsanitizer-6.3.0_1
+libhwasan.so.0 libsanitizer-13.2.0_1
 libvtv.so.0 libvtv-6.3.0_1
 libatomic.so.1 libatomic-4.9.0_1
 libpcsclite.so.1 libpcsclite-1.8.11_1
diff --git a/srcpkgs/gcc/files/gccgo-musl.patch b/srcpkgs/gcc/files/gccgo-musl.patch
index 12ec68dd8aa30..b2ccebbed7893 100644
--- a/srcpkgs/gcc/files/gccgo-musl.patch
+++ b/srcpkgs/gcc/files/gccgo-musl.patch
@@ -1,173 +1,199 @@
 This is not among the normal patches as these changes are musl specific and
 there is no way to easily conditionalize it in source for some of the changes.
 
-Added by q66: runtime.h now uses libucontext_ prefixed APIs to allow build
-with freestanding versions of libucontext
-
 Souurce: Adélie Linux, q66
 URL: https://code.foxkit.us/adelie/packages/tree/master/system/gcc
 
---- a/Makefile.in
-+++ b/Makefile.in
-@@ -46325,7 +46325,7 @@ configure-target-libgo:
- 	esac; \
- 	module_srcdir=libgo; \
- 	rm -f no-such-file || : ; \
--	CONFIG_SITE=no-such-file $(SHELL) \
-+	CONFIG_SITE=no-such-file LIBS="-lucontext $$LIBS" $(SHELL) \
- 	  $$s/$$module_srcdir/configure \
- 	  --srcdir=$${topdir}/$$module_srcdir \
- 	  $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -379,11 +379,7 @@ fi
- # Some basic types.
- echo 'type Size_t _size_t' >> ${OUT}
- echo "type Ssize_t _ssize_t" >> ${OUT}
--if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
--  echo "type Offset_t _off64_t" >> ${OUT}
--else
--  echo "type Offset_t _off_t" >> ${OUT}
--fi
-+echo "type Offset_t _off_t" >> ${OUT}
- echo "type Mode_t _mode_t" >> ${OUT}
- echo "type Pid_t _pid_t" >> ${OUT}
- echo "type Uid_t _uid_t" >> ${OUT}
---- a/libgo/go/runtime/mem_gccgo.go
-+++ b/libgo/go/runtime/mem_gccgo.go
-@@ -16,7 +16,7 @@ import (
- //go:linkname sysFree runtime.sysFree
- 
- //extern mmap
--func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) unsafe.Pointer
-+func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) unsafe.Pointer
- 
- //extern munmap
- func munmap(addr unsafe.Pointer, length uintptr) int32
-@@ -38,7 +38,7 @@ func init() {
- 	}
- }
+From 4bfcb35bc43d3e3b7510620362d7c28d9e4c17ca Mon Sep 17 00:00:00 2001
+From: psykose <alice@ayaya.dev>
+Date: Mon, 10 Jul 2023 23:23:29 +0000
+Subject: [PATCH 34/35] libgo: fix lfs64 use
+
+---
+ .../go/internal/syscall/unix/at_largefile.go  |  2 +-
+ libgo/go/os/dir_largefile.go                  |  2 +-
+ libgo/go/syscall/libcall_glibc.go             |  2 +-
+ libgo/go/syscall/libcall_linux.go             |  4 +--
+ libgo/go/syscall/libcall_posix_largefile.go   | 26 +++++++++----------
+ libgo/runtime/go-varargs.c                    |  2 +-
+ libgo/sysinfo.c                               |  9 +++----
+ 7 files changed, 22 insertions(+), 25 deletions(-)
+
+diff --git a/libgo/go/internal/syscall/unix/at_largefile.go b/libgo/go/internal/syscall/unix/at_largefile.go
+index 82e0dcfd074..16151ecad1b 100644
+--- a/libgo/go/internal/syscall/unix/at_largefile.go
++++ b/libgo/go/internal/syscall/unix/at_largefile.go
+@@ -10,5 +10,5 @@ import (
+ 	"syscall"
+ )
  
--func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uintptr) (unsafe.Pointer, int) {
-+func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off int64) (unsafe.Pointer, int) {
- 	p := sysMmap(addr, n, prot, flags, fd, off)
- 	if uintptr(p) == _MAP_FAILED {
- 		return nil, errno()
---- a/libgo/go/syscall/errstr.go
-+++ b/libgo/go/syscall/errstr.go
-@@ -5,7 +5,6 @@
- // license that can be found in the LICENSE file.
+-//extern fstatat64
++//extern fstatat
+ func fstatat(int32, *byte, *syscall.Stat_t, int32) int32
+diff --git a/libgo/go/os/dir_largefile.go b/libgo/go/os/dir_largefile.go
+index 1fc5ee0771f..0c6dffe1a75 100644
+--- a/libgo/go/os/dir_largefile.go
++++ b/libgo/go/os/dir_largefile.go
+@@ -11,5 +11,5 @@ package os
  
- // +build !hurd
--// +build !linux
+ import "syscall"
  
- package syscall
+-//extern readdir64
++//extern readdir
+ func libc_readdir(*syscall.DIR) *syscall.Dirent
+diff --git a/libgo/go/syscall/libcall_glibc.go b/libgo/go/syscall/libcall_glibc.go
+index 5c1ec483c75..5a1245ed44b 100644
+--- a/libgo/go/syscall/libcall_glibc.go
++++ b/libgo/go/syscall/libcall_glibc.go
+@@ -114,7 +114,7 @@ func Pipe2(p []int, flags int) (err error) {
+ }
  
---- a/libgo/go/syscall/errstr_glibc.go
-+++ /dev/null
-@@ -1,33 +0,0 @@
--// errstr_glibc.go -- GNU/Linux and GNU/Hurd specific error strings.
--
--// Copyright 2010 The Go Authors. All rights reserved.
--// Use of this source code is governed by a BSD-style
--// license that can be found in the LICENSE file.
--
--// We use this rather than errstr.go because on GNU/Linux sterror_r
--// returns a pointer to the error message, and may not use buf at all.
--
--// +build hurd linux
--
--package syscall
--
--import "unsafe"
--
--//sysnb	strerror_r(errnum int, b []byte) (errstr *byte)
--//strerror_r(errnum _C_int, b *byte, len Size_t) *byte
--
--func Errstr(errnum int) string {
--	a := make([]byte, 128)
--	p := strerror_r(errnum, a)
--	b := (*[1000]byte)(unsafe.Pointer(p))
--	i := 0
--	for b[i] != 0 {
--		i++
--	}
--	// Lowercase first letter: Bad -> bad, but STREAM -> STREAM.
--	if i > 1 && 'A' <= b[0] && b[0] <= 'Z' && 'a' <= b[1] && b[1] <= 'z' {
--		c := b[0] + 'a' - 'A'
--		return string(c) + string(b[1:i])
--	}
--	return string(b[:i])
--}
+ //sys	sendfile(outfd int, infd int, offset *Offset_t, count int) (written int, err error)
+-//sendfile64(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
++//sendfile(outfd _C_int, infd _C_int, offset *Offset_t, count Size_t) Ssize_t
+ 
+ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
+ 	if race.Enabled {
+diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go
+index 03ca7261b59..ad21fd0b3ac 100644
 --- a/libgo/go/syscall/libcall_linux.go
 +++ b/libgo/go/syscall/libcall_linux.go
-@@ -206,19 +206,19 @@ func Gettid() (tid int) {
- //sys	Setxattr(path string, attr string, data []byte, flags int) (err error)
- //setxattr(path *byte, name *byte, value *byte, size Size_t, flags _C_int) _C_int
- 
--//sys	splice(rfd int, roff *_loff_t, wfd int, woff *_loff_t, len int, flags int) (n int64, err error)
--//splice(rfd _C_int, roff *_loff_t, wfd _C_int, woff *_loff_t, len Size_t, flags _C_uint) Ssize_t
-+//sys	splice(rfd int, roff *_off_t, wfd int, woff *_off_t, len int, flags int) (n int64, err error)
-+//splice(rfd _C_int, roff *_off_t, wfd _C_int, woff *_off_t, len Size_t, flags _C_uint) Ssize_t
- func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
--	var lroff _loff_t
--	var plroff *_loff_t
-+	var lroff _off_t
-+	var plroff *_off_t
- 	if roff != nil {
--		lroff = _loff_t(*roff)
-+		lroff = _off_t(*roff)
- 		plroff = &lroff
- 	}
--	var lwoff _loff_t
--	var plwoff *_loff_t
-+	var lwoff _off_t
-+	var plwoff *_off_t
- 	if woff != nil {
--		lwoff = _loff_t(*woff)
-+		lwoff = _off_t(*woff)
- 		plwoff = &lwoff
- 	}
- 	n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
---- a/libgo/runtime/runtime.h
-+++ b/libgo/runtime/runtime.h
-@@ -500,10 +500,13 @@ int __go_setcontext(__go_context_t*);
- void __go_makecontext(__go_context_t*, void (*)(), void*, size_t);
- #else
- #define __go_context_t	ucontext_t
--#define __go_getcontext(c)	getcontext(c)
--#define __go_setcontext(c)	setcontext(c)
-+int  libucontext_getcontext(__go_context_t *);
-+void libucontext_makecontext(__go_context_t *, void (*)(), int, ...);
-+int  libucontext_setcontext(const __go_context_t *);
-+#define __go_getcontext(c)	libucontext_getcontext(c)
-+#define __go_setcontext(c)	libucontext_setcontext(c)
- #define __go_makecontext(c, fn, sp, size) \
--	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, makecontext(c, fn, 0))
-+	((c)->uc_stack.ss_sp = sp, (c)->uc_stack.ss_size = size, libucontext_makecontext(c, fn, 0))
- #endif
+@@ -158,7 +158,7 @@ func Reboot(cmd int) (err error) {
+ //adjtimex(buf *Timex) _C_int
+ 
+ //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
+-//fstatfs64(fd _C_int, buf *Statfs_t) _C_int
++//fstatfs(fd _C_int, buf *Statfs_t) _C_int
+ 
+ func Gettid() (tid int) {
+ 	r1, _, _ := Syscall(SYS_GETTID, 0, 0, 0)
+@@ -245,7 +245,7 @@ func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n i
+ }
+ 
+ //sys	Statfs(path string, buf *Statfs_t) (err error)
+-//statfs64(path *byte, buf *Statfs_t) _C_int
++//statfs(path *byte, buf *Statfs_t) _C_int
+ 
+ //sysnb	Sysinfo(info *Sysinfo_t) (err error)
+ //sysinfo(info *Sysinfo_t) _C_int
+diff --git a/libgo/go/syscall/libcall_posix_largefile.go b/libgo/go/syscall/libcall_posix_largefile.go
+index f90055bb29a..334212f0af1 100644
+--- a/libgo/go/syscall/libcall_posix_largefile.go
++++ b/libgo/go/syscall/libcall_posix_largefile.go
+@@ -10,40 +10,40 @@
+ package syscall
+ 
+ //sys	Creat(path string, mode uint32) (fd int, err error)
+-//creat64(path *byte, mode Mode_t) _C_int
++//creat(path *byte, mode Mode_t) _C_int
+ 
+ //sys	Fstat(fd int, stat *Stat_t) (err error)
+-//fstat64(fd _C_int, stat *Stat_t) _C_int
++//fstat(fd _C_int, stat *Stat_t) _C_int
+ 
+ //sys	Ftruncate(fd int, length int64) (err error)
+-//ftruncate64(fd _C_int, length Offset_t) _C_int
++//ftruncate(fd _C_int, length Offset_t) _C_int
+ 
+ //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
+-//getrlimit64(resource _C_int, rlim *Rlimit) _C_int
++//getrlimit(resource _C_int, rlim *Rlimit) _C_int
+ 
+ //sys	Lstat(path string, stat *Stat_t) (err error)
+-//lstat64(path *byte, stat *Stat_t) _C_int
++//lstat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
+-//mmap64(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
++//mmap(addr *byte, length Size_t, prot _C_int, flags _C_int, fd _C_int, offset Offset_t) *byte
  
- // Symbols defined by the linker.
+ //sys	Open(path string, mode int, perm uint32) (fd int, err error)
+-//__go_open64(path *byte, mode _C_int, perm Mode_t) _C_int
++//__go_open(path *byte, mode _C_int, perm Mode_t) _C_int
+ 
+ //sys	Pread(fd int, p []byte, offset int64) (n int, err error)
+-//pread64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pread(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Pwrite(fd int, p []byte, offset int64) (n int, err error)
+-//pwrite64(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
++//pwrite(fd _C_int, buf *byte, count Size_t, offset Offset_t) Ssize_t
+ 
+ //sys	Seek(fd int, offset int64, whence int) (off int64, err error)
+-//lseek64(fd _C_int, offset Offset_t, whence _C_int) Offset_t
++//lseek(fd _C_int, offset Offset_t, whence _C_int) Offset_t
+ 
+ //sysnb	Setrlimit(resource int, rlim *Rlimit) (err error)
+-//setrlimit64(resource int, rlim *Rlimit) _C_int
++//setrlimit(resource int, rlim *Rlimit) _C_int
+ 
+ //sys	Stat(path string, stat *Stat_t) (err error)
+-//stat64(path *byte, stat *Stat_t) _C_int
++//stat(path *byte, stat *Stat_t) _C_int
+ 
+ //sys	Truncate(path string, length int64) (err error)
+-//truncate64(path *byte, length Offset_t) _C_int
++//truncate(path *byte, length Offset_t) _C_int
+diff --git a/libgo/runtime/go-varargs.c b/libgo/runtime/go-varargs.c
+index f84860891e6..7efc9615985 100644
+--- a/libgo/runtime/go-varargs.c
++++ b/libgo/runtime/go-varargs.c
+@@ -84,7 +84,7 @@ __go_ioctl_ptr (int d, int request, void *arg)
+ int
+ __go_open64 (char *path, int mode, mode_t perm)
+ {
+-  return open64 (path, mode, perm);
++  return open (path, mode, perm);
+ }
+ 
+ #endif
+diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
+index 180f5c31d74..1d717d55c0e 100644
 --- a/libgo/sysinfo.c
 +++ b/libgo/sysinfo.c
-@@ -73,9 +73,6 @@
- #include <sys/times.h>
- #include <sys/wait.h>
- #include <sys/un.h>
--#if defined(HAVE_SYS_USER_H)
--#include <sys/user.h>
--#endif
- #if defined(HAVE_SYS_UTSNAME_H)
- #include <sys/utsname.h>
+@@ -366,7 +366,7 @@ typedef loff_t libgo_loff_t_type;
+ #endif
+ 
+ #if defined(HAVE_OFF64_T)
+-typedef off64_t libgo_off_t_type;
++typedef off_t libgo_off_t_type;
+ #else
+ typedef off_t libgo_off_t_type;
  #endif
---- a/libgo/go/runtime/os_linux.go
-+++ b/libgo/go/runtime/os_linux.go
-@@ -365,7 +365,7 @@ func setThreadCPUProfiler(hz int32) {
- 	var sevp _sigevent
- 	sevp.sigev_notify = _SIGEV_THREAD_ID
- 	sevp.sigev_signo = _SIGPROF
--	*((*int32)(unsafe.Pointer(&sevp._sigev_un))) = int32(mp.procid)
-+	*((*int32)(unsafe.Pointer(&sevp.__sev_fields))) = int32(mp.procid)
- 	ret := timer_create(_CLOCK_THREAD_CPUTIME_ID, &sevp, &timerid)
- 	if ret != 0 {
- 		// If we cannot create a timer for this M, leave profileTimerValid false
+@@ -398,13 +398,11 @@ typedef off_t libgo_off_t_type;
+ 
+ // From dirent.h
+ SREF(dirent);
+-SREF(dirent64);
+ OTREF(DIR);
+ EREF(DT_UNKNOWN);
+ 
+ // From fcntl.h
+ SREF(flock);
+-SREF(flock64);
+ 
+ // From ffi headers
+ SREF(_ffi_type);
+@@ -485,11 +483,10 @@ EREF(SS_ONSTACK);
+ EREF(SEGV_MAPERR);
+ 
+ // From stat.h
+-SREF(stat64);
++SREF(stat);
+ 
+ // From statfs.h
+ SREF(statfs);
+-SREF(statfs64);
+ 
+ // From sysinfo.h
+ SREF(sysinfo);
+@@ -519,7 +516,7 @@ EREF(PTRACE_PEEKTEXT);
+ 
+ // From sys/resource.h
+ SREF(rusage);
+-SREF(rlimit64);
++SREF(rlimit);
+ EREF(RLIMIT_NOFILE);
+ EREF(PRIO_USER);
+ EREF(RUSAGE_SELF);
+
diff --git a/srcpkgs/gcc/files/libssp-musl.patch b/srcpkgs/gcc/files/libssp-musl.patch
index 99f248401a1cc..8da164bf8276b 100644
--- a/srcpkgs/gcc/files/libssp-musl.patch
+++ b/srcpkgs/gcc/files/libssp-musl.patch
@@ -1,7 +1,5 @@
 First part taken from Alpine.
 
-Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
-
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
 @@ -984,10 +984,15 @@ proper position among the other output f
@@ -42,29 +40,3 @@ Second part added to prevent gccgo from thinking it can -fsplit-stack on musl.
  The lower bound for a buffer to be considered for stack smashing protection.
  
  -param=stack-clash-protection-guard-size=
---- a/gcc/config/i386/gnu-user-common.h
-+++ b/gcc/config/i386/gnu-user-common.h
-@@ -64,9 +64,3 @@ along with GCC; see the file COPYING3.  If not see
- 
- /* Static stack checking is supported by means of probes.  */
- #define STACK_CHECK_STATIC_BUILTIN 1
--
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
---- a/gcc/config/i386/gnu.h
-+++ b/gcc/config/i386/gnu.h
-@@ -40,11 +40,6 @@ along with GCC.  If not, see <http://www.gnu.org/licenses/>.
- /* i386 glibc provides __stack_chk_guard in %gs:0x14.  */
- #define TARGET_THREAD_SSP_OFFSET        0x14
- 
--/* We only build the -fsplit-stack support in libgcc if the
--   assembler has full support for the CFI directives.  */
--#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
--#define TARGET_CAN_SPLIT_STACK
--#endif
- /* We steal the last transactional memory word.  */
- #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
- #endif
diff --git a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch b/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
deleted file mode 100644
index db38df3b010ab..0000000000000
--- a/srcpkgs/gcc/patches/0042-gcc-go-fix-build-error-with-SYS_SECCOMP.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 548720bca6bff21ebc9aba22249d9ce45bbd90c7 Mon Sep 17 00:00:00 2001
-From: Ian Lance Taylor <iant@golang.org>
-Date: Wed, 29 Jun 2022 15:32:04 -0700
-Subject: [PATCH] libgo: handle stat st_atim32 field and SYS_SECCOMP
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Patches for musl support, from Sören Tempel.
-
-Fixes https://gcc.gnu.org/PR105225
-
-Change-Id: If396877d4a4c7d27962226d7a6e3bb91b1344413
-Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
-Reviewed-by: Than McIntosh <thanm@google.com>
-Reviewed-by: Ian Lance Taylor <iant@google.com>
----
- libgo/mksysinfo.sh | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
-index 5aa30915..ea1fa17d 100755
---- a/libgo/mksysinfo.sh
-+++ b/libgo/mksysinfo.sh
-@@ -127,6 +127,7 @@ fi
- 
- # The syscall numbers.  We force the names to upper case.
- grep '^const _SYS_' gen-sysinfo.go | \
-+  grep -v '^const _SYS_SECCOMP = ' | \
-   sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
-   while read sys; do
-     sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
-@@ -506,7 +507,7 @@ fi
- 
- # For historical reasons Go uses the suffix "timespec" instead of "tim" for
- # stat_t's time fields on NetBSD.
--st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
-+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
- if test "${GOOS}" = "netbsd"; then
-     st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
- fi
diff --git a/srcpkgs/gcc/patches/consistent-library-paths.patch b/srcpkgs/gcc/patches/consistent-library-paths.patch
index 333dc53a4eca3..d421fbd9607d5 100644
--- a/srcpkgs/gcc/patches/consistent-library-paths.patch
+++ b/srcpkgs/gcc/patches/consistent-library-paths.patch
@@ -28,13 +28,34 @@ When adding a new platform, fix this up too.
  MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
 --- a/gcc/config/mips/t-linux64
 +++ b/gcc/config/mips/t-linux64
-@@ -21,6 +21,6 @@ MULTILIB_DIRNAMES = n32 32 64
+@@ -20,26 +20,7 @@ MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi
+ MULTILIB_DIRNAMES = n32 32 64
  MIPS_EL = $(if $(filter %el, $(firstword $(subst -, ,$(target)))),el)
  MIPS_SOFT = $(if $(strip $(filter MASK_SOFT_FLOAT_ABI, $(target_cpu_default)) $(filter soft, $(with_float))),soft)
- MULTILIB_OSDIRNAMES = \
+-ifeq (yes,$(enable_multiarch))
+-  ifneq (,$(findstring gnuabi64,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else ifneq (,$(findstring gnuabin32,$(target)))
+-    MULTILIB_OSDIRNAMES = \
+-	../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  else
+-    MULTILIB_OSDIRNAMES = \
+-	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
+-	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
+-	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-  endif
+-else
+-  MULTILIB_OSDIRNAMES = \
 -	../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
 -	../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
 -	../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
+-endif
++MULTILIB_OSDIRNAMES = \
 +	../lib32 \
 +	../lib \
 +	../lib64
diff --git a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
index b7078600fb3a5..f9dfee0621553 100644
--- a/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
+++ b/srcpkgs/gcc/patches/d7bead833631486e337e541e692d9b4a1ca14edd.patch
@@ -106,22 +106,28 @@ diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cp
 index a04eed7aa5a6e3..6d61d276d77e35 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
 +++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_
- #include <linux/serial.h>
- #include <sys/msg.h>
- #include <sys/ipc.h>
--#include <crypt.h>
- #endif  // SANITIZER_ANDROID
+@@ -177,10 +177,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ #  include "sanitizer_platform_interceptors.h"
+ #  include "sanitizer_platform_limits_posix.h"
  
- #include <link.h>
-@@ -254,7 +253,6 @@ namespace __sanitizer {
-   unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
-   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-#include <crypt.h>
+-#endif
+-
+ namespace __sanitizer {
+   unsigned struct_utsname_sz = sizeof(struct utsname);
+   unsigned struct_stat_sz = sizeof(struct stat);
+@@ -300,10 +296,6 @@ namespace __sanitizer {
    unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
--  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
- #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+ #endif // SANITIZER_GLIBC
  
+-#if SANITIZER_INTERCEPT_CRYPT_R
+-  unsigned struct_crypt_data_sz = sizeof(struct crypt_data);
+-#endif
+-
  #if SANITIZER_LINUX && !SANITIZER_ANDROID
+   unsigned struct_timex_sz = sizeof(struct timex);
+   unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
 diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
 index e6f298c26e1fb6..58244c9944a03a 100644
 --- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
diff --git a/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
new file mode 100644
index 0000000000000..7338b3dd1ede3
--- /dev/null
+++ b/srcpkgs/gcc/patches/f4029de35fb1b293a4fd586574b1b4b73ddf7880.patch
@@ -0,0 +1,60 @@
+From f4029de35fb1b293a4fd586574b1b4b73ddf7880 Mon Sep 17 00:00:00 2001
+From: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+Date: Wed, 26 Jul 2023 22:36:26 +0530
+Subject: [PATCH] [aarch64/match.pd] Fix ICE observed in PR110280.
+
+gcc/ChangeLog:
+	PR tree-optimization/110280
+	* match.pd (vec_perm_expr(v, v, mask) -> v): Explicitly build vector
+	using build_vector_from_val with the element of input operand, and
+	mask's type if operand and mask's types don't match.
+
+gcc/testsuite/ChangeLog:
+	PR tree-optimization/110280
+	* gcc.target/aarch64/sve/pr110280.c: New test.
+
+(cherry picked from commit 85d8e0d8d5342ec8b4e6a54e22741c30b33c6f04)
+---
+ gcc/match.pd                                    |  9 ++++++++-
+ gcc/testsuite/gcc.target/aarch64/sve/pr110280.c | 12 ++++++++++++
+ 2 files changed, 20 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+
+diff --git a/gcc/match.pd b/gcc/match.pd
+index 9118244825054..c3bb4fbc0a7a2 100644
+--- a/gcc/match.pd
++++ b/gcc/match.pd
+@@ -8292,7 +8292,14 @@ and,
+ 
+ (simplify
+  (vec_perm vec_same_elem_p@0 @0 @1)
+- @0)
++ (if (types_match (type, TREE_TYPE (@0)))
++  @0
++  (with
++   {
++     tree elem = uniform_vector_p (@0);
++   }
++   (if (elem)
++    { build_vector_from_val (type, elem); }))))
+ 
+ /* Push VEC_PERM earlier if that may help FMA perception (PR101895).  */
+ (simplify
+diff --git a/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+new file mode 100644
+index 0000000000000..d3279f383629f
+--- /dev/null
++++ b/gcc/testsuite/gcc.target/aarch64/sve/pr110280.c
+@@ -0,0 +1,12 @@
++/* { dg-do compile } */
++/* { dg-options "-O3 -fdump-tree-optimized" } */
++
++#include "arm_sve.h"
++
++svuint32_t l()
++{
++  _Alignas(16) const unsigned int lanes[4] = {0, 0, 0, 0};
++  return svld1rq_u32(svptrue_b8(), lanes);
++}
++
++/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "optimized" } } */
diff --git a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
index 2091ca69a401c..4eeb69b69b1bb 100644
--- a/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
+++ b/srcpkgs/gcc/patches/fix-pretty-printer-warnings.patch
@@ -9,15 +9,15 @@
          self.val = val
          self.contained_type = None
          contained_value = None
-@@ -1216,7 +1216,7 @@
-             mgrname = m.group(1)
-             # FIXME need to expand 'std::string' so that gdb.lookup_type works
-             if 'std::string' in mgrname:
--                mgrname = re.sub("std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
-+                mgrname = re.sub(r"std::string(?!\w)", str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1))
- 
-             mgrtype = gdb.lookup_type(mgrname)
-             self.contained_type = mgrtype.template_argument(0)
+@@ -1299,7 +1299,7 @@
+                 mgrtypes = []
+                 for s in strings:
+                     try:
+-                        x = re.sub("std::string(?!\w)", s, m.group(1))
++                        x = re.sub(r"std::string(?!\w)", s, m.group(1))
+                         # The following lookup might raise gdb.error if the
+                         # manager function was never instantiated for 's' in the
+                         # program, because there will be no such type.
 @@ -1246,7 +1246,7 @@
      def __init__ (self, typename, val):
          valtype = self._recognize (val.type.template_argument(0))
diff --git a/srcpkgs/gcc/patches/libatomic-autolink.patch b/srcpkgs/gcc/patches/libatomic-autolink.patch
index 20cdc42308dc5..e703b02cd786b 100644
--- a/srcpkgs/gcc/patches/libatomic-autolink.patch
+++ b/srcpkgs/gcc/patches/libatomic-autolink.patch
@@ -2,10 +2,10 @@ Add --enable-autolink-libatomic, to make gcc link -latomic by default.
 
 Taken from Alpine: https://git.alpinelinux.org/aports/tree/main/gcc/0035-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch
 
-From 573a66e4146c9a65d895af9081a4d3d49cfc9e7a Mon Sep 17 00:00:00 2001
+From 7b50823d8a4131e5a55d2499a0f5a52b3d91eed2 Mon Sep 17 00:00:00 2001
 From: Drew DeVault <sir@cmpwn.com>
-Date: Wed, 9 Dec 2020 16:07:26 +0000
-Subject: [PATCH] configure: Add --enable-autolink-libatomic, use in
+Date: Wed, 9 Dec 2020 07:42:06 +0000
+Subject: [PATCH 27/35] configure: Add --enable-autolink-libatomic, use in
  LINK_GCC_C_SEQUENCE_SPEC [PR81358]
 
 This fixes issues with RISC-V.
@@ -13,19 +13,19 @@ This fixes issues with RISC-V.
  Makefile.in           |  1 +
  gcc/config.in         |  6 ++++++
  gcc/config/gnu-user.h | 12 +++++++++++-
- gcc/configure         | 32 ++++++++++++++++++++++++++++++--
- gcc/configure.ac      | 22 +++++++++++++++++++++-
+ gcc/configure         | 31 ++++++++++++++++++++++++++++++-
+ gcc/configure.ac      | 21 +++++++++++++++++++++
  gcc/doc/install.texi  |  8 ++++++++
  gcc/doc/tm.texi       |  8 +++++++-
  gcc/doc/tm.texi.in    |  8 +++++++-
  gcc/gcc.cc            | 12 +++++++++++-
- 9 files changed, 102 insertions(+), 7 deletions(-)
+ 9 files changed, 102 insertions(+), 5 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index b564ddbf792..a95c7407d16 100644
+index 6ff2b3f9925..394b105b271 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -232,6 +232,7 @@ HOST_EXPORTS = \
+@@ -235,6 +235,7 @@ HOST_EXPORTS = \
  	RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
  	READELF_FOR_TARGET="$(READELF_FOR_TARGET)"; export READELF_FOR_TARGET; \
  	TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
@@ -34,7 +34,7 @@ index b564ddbf792..a95c7407d16 100644
  	GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
  	GMPINC="$(HOST_GMPINC)"; export GMPINC; \
 diff --git a/gcc/config.in b/gcc/config.in
-index f0fbf123aa8..af84efc4f9e 100644
+index 0679fbbf4c6..ee81139b385 100644
 --- a/gcc/config.in
 +++ b/gcc/config.in
 @@ -118,6 +118,12 @@
@@ -51,7 +51,7 @@ index f0fbf123aa8..af84efc4f9e 100644
     format instead of DPD */
  #ifndef USED_FOR_TARGET
 diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
-index 8433e56c3e1..0347f10da8b 100644
+index b26b17f2f2a..3f64ea46180 100644
 --- a/gcc/config/gnu-user.h
 +++ b/gcc/config/gnu-user.h
 @@ -109,8 +109,18 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
@@ -75,10 +75,10 @@ index 8433e56c3e1..0347f10da8b 100644
  
  #undef LINK_GCC_C_SEQUENCE_SPEC
 diff --git a/gcc/configure b/gcc/configure
-index 2f6b3265a6c..6dc65bf4ccb 100755
+index e59cbee1767..787c35d4e25 100755
 --- a/gcc/configure
 +++ b/gcc/configure
-@@ -981,6 +981,7 @@ with_changes_root_url
+@@ -984,6 +984,7 @@ with_changes_root_url
  enable_languages
  with_multilib_list
  with_multilib_generator
@@ -86,7 +86,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  with_zstd
  with_zstd_include
  with_zstd_lib
-@@ -1710,6 +1711,9 @@ Optional Features:
+@@ -1713,6 +1714,9 @@ Optional Features:
    --disable-shared        don't provide a shared libgcc
    --disable-gcov          don't provide libgcov and related host tools
    --enable-languages=LIST specify which front-ends to build
@@ -96,7 +96,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
    --disable-rpath         do not hardcode runtime library paths
    --enable-sjlj-exceptions
                            arrange to use setjmp/longjmp exception handling
-@@ -8324,7 +8328,6 @@ else
+@@ -8329,7 +8333,6 @@ else
  fi
  
  
@@ -104,7 +104,7 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  # Check whether --with-multilib-generator was given.
  if test "${with_multilib_generator+set}" = set; then :
    withval=$with_multilib_generator; :
-@@ -8332,6 +8335,32 @@ else
+@@ -8337,6 +8340,32 @@ else
    with_multilib_generator=default
  fi
  
@@ -137,16 +137,11 @@ index 2f6b3265a6c..6dc65bf4ccb 100755
  
  # -------------------------
  # Checks for other programs
-@@ -34296,4 +34325,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
- 
--
 diff --git a/gcc/configure.ac b/gcc/configure.ac
-index e683d3a7a5f..07c81c78336 100644
+index 57268319de1..56bcaa87620 100644
 --- a/gcc/configure.ac
 +++ b/gcc/configure.ac
-@@ -1205,6 +1205,27 @@ AC_ARG_WITH(multilib-generator,
+@@ -1199,6 +1199,27 @@ AC_ARG_WITH(multilib-generator,
  :,
  with_multilib_generator=default)
  
@@ -174,16 +169,11 @@ index e683d3a7a5f..07c81c78336 100644
  # -------------------------
  # Checks for other programs
  # -------------------------
-@@ -7839,4 +7860,3 @@ done
- ], 
- [subdirs='$subdirs'])
- AC_OUTPUT
--
 diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
-index 48408d842db..c90be0ee750 100644
+index b30d3691fe6..ccc8e5dbb00 100644
 --- a/gcc/doc/install.texi
 +++ b/gcc/doc/install.texi
-@@ -2295,6 +2295,14 @@ files, but these changed header paths may conflict with some compilation
+@@ -2377,6 +2377,14 @@ files, but these changed header paths may conflict with some compilation
  environments.  Enabled by default, and may be disabled using
  @option{--disable-canonical-system-headers}.
  
@@ -199,7 +189,7 @@ index 48408d842db..c90be0ee750 100644
  Tell GCC that when the GNU C Library (glibc) is used on the target it
  will be version @var{major}.@var{minor} or later.  Normally this can
 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
-index c5006afc00d..56b62c69ae8 100644
+index a660e33739b..6183c407a2b 100644
 --- a/gcc/doc/tm.texi
 +++ b/gcc/doc/tm.texi
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -218,7 +208,7 @@ index c5006afc00d..56b62c69ae8 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in
-index f869ddd5e5b..57c93f24ac3 100644
+index f7ab5d48a63..281540aba68 100644
 --- a/gcc/doc/tm.texi.in
 +++ b/gcc/doc/tm.texi.in
 @@ -381,7 +381,13 @@ the argument @option{-lgcc} to tell the linker to do the search.
@@ -237,10 +227,10 @@ index f869ddd5e5b..57c93f24ac3 100644
  
  @defmac POST_LINK_SPEC
 diff --git a/gcc/gcc.cc b/gcc/gcc.cc
-index 735b2b1bba1..f10f3c91aa7 100644
+index 59390fd39d6..dae1dd4cf79 100644
 --- a/gcc/gcc.cc
 +++ b/gcc/gcc.cc
-@@ -987,13 +987,23 @@ proper position among the other output files.  */
+@@ -974,13 +974,23 @@ proper position among the other output files.  */
  # define ASM_DEBUG_OPTION_SPEC ""
  #endif
  
diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template
index a8f6096042247..2c644c1e19a2d 100644
--- a/srcpkgs/gcc/template
+++ b/srcpkgs/gcc/template
@@ -3,14 +3,14 @@
 # which use the version number.
 
 pkgname=gcc
-version=12.2.0
-revision=4
+version=13.2.0
+revision=1
 _minorver="${version%.*}"
 _majorver="${_minorver%.*}"
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
-_isl_version=0.24
+_gmp_version=6.3.0
+_mpfr_version=4.2.1
+_mpc_version=1.3.1
+_isl_version=0.26
 create_wrksrc=yes
 short_desc="GNU Compiler Collection"
 maintainer="Enno Boland <gottox@voidlinux.org>"
@@ -19,15 +19,15 @@ license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 # *-musl builders have issues fetching https://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz
 distfiles="
  ${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz
- https://gmplib.org/download/gmp/gmp-${_gmp_version}.tar.xz
+ ${GNU_SITE}/gmp/gmp-${_gmp_version}.tar.xz
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
- fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
+ 5eac8664e9d67be6bd0bee5085d6840b8baf738c06814df47eaf4166d9776436"
 
 nopie=yes
 lib32disabled=yes
@@ -36,6 +36,7 @@ replaces="gcc-gcj<7.2.0 gcc-gcj-jdk-compat<7.2.0 libmpx>=0 libmpx-devel>=0
  libssp>=0 libssp-devel>=0"
 
 _have_gccgo=yes
+_have_libquadmath=no
 
 # MIPS is untested and does not have go in crosstoolchains
 # 32-bit PowerPC seems weirdly broken since the 10.x release
@@ -45,6 +46,10 @@ case "$XBPS_TARGET_MACHINE" in
 	mips*-musl|ppc*) _have_gccgo=no ;;
 esac
 
+case "$XBPS_TARGET_MACHINE" in
+	i686*|x86_64*|ppc64le) _have_libquadmath=yes ;;
+esac
+
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="tar texinfo perl flex"
 else
@@ -85,6 +90,10 @@ fi
 if [ "$CHROOT_READY" ]; then
 	subpackages+=" gcc-fortran libgfortran-devel libgfortran"
 	subpackages+=" gcc-objc gcc-objc++ libobjc-devel libobjc"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		subpackages+=" libquadmath libquadmath-devel"
+	fi
 fi
 
 if [ "$_have_gccgo" = "yes" ]; then
@@ -136,12 +145,8 @@ case "$XBPS_TARGET_MACHINE" in
 esac
 case "$XBPS_TARGET_MACHINE" in
 	i686*|x86_64*)
-		subpackages+=" libquadmath libquadmath-devel"
 		subpackages+=" libvtv libvtv-devel"
 		;;
-	ppc64le)
-		subpackages+=" libquadmath libquadmath-devel"
-		;;
 esac
 case "$XBPS_TARGET_MACHINE" in
 	mips*) ;;
@@ -187,8 +192,12 @@ pre_configure() {
 	# Do not run fixincludes
 	sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
 
+	# Do not enable C++17, gcc compiles with -std=c++11
+	sed -i 's/HAVE_CXX17=1/HAVE_CXX17=0/' isl/configure
+
 	if [ "$XBPS_TARGET_LIBC" = musl ]; then
 		for p in ${FILESDIR}/*-musl.patch; do
+			msg_normal "patching: $p\n"
 			patch -p1 -i $p
 		done
 	fi
@@ -385,10 +394,9 @@ do_install() {
 		vman ${FILESDIR}/${f}.1
 	done
 
-	case "$XBPS_TARGET_MACHINE" in
-		i686*|x86_64*|ppc64le) ;;
-		*) rm -f ${DESTDIR}/usr/share/info/libquadmath.info;;
-	esac
+	if [ "$_have_libquadmath" != "yes"]; then
+		rm -f ${DESTDIR}/usr/share/info/libquadmath.info*
+	fi
 }
 
 gcc-ada_package() {
@@ -502,6 +510,11 @@ libada_package() {
 libgfortran-devel_package() {
 	depends="libgfortran>=${_minorver}"
 	short_desc+=" - Fortran library - development files"
+
+	if [ "$_have_libquadmath" = "yes" ]; then
+		depends+=" libquadmath-devel"
+	fi
+
 	pkg_install() {
 		vmove usr/lib/libgfortran.spec
 		vmove usr/lib/libgfortran.a
@@ -675,7 +688,7 @@ libsanitizer-devel_package() {
 	pkg_install() {
 		vmove "usr/lib/lib*san*.so"
 		vmove "usr/lib/lib*san*.a"
-		vmove usr/lib/libasan_preinit.o
+		vmove "usr/lib/lib*san_preinit.o"
 		vmove usr/lib/libsanitizer.spec
 	}
 }

From 13b7276db9cbaeaff11c7c5fcda755ea3aea0d77 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:06:28 -0800
Subject: [PATCH 03/41] kernel-libc-headers: update to 6.1.

---
 ...-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch | 4 ++--
 srcpkgs/kernel-libc-headers/template                          | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch b/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
index c93e732de0ee4..e3448369e1e92 100644
--- a/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
+++ b/srcpkgs/kernel-libc-headers/patches/1-4-glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
@@ -7,6 +7,6 @@
 +#ifdef __GLIBC__
  #include <linux/sysinfo.h>
 +#endif
+ #include <linux/const.h>
  
- /*
-  * 'kernel.h' contains some often-used function prototypes etc
+ #endif /* _UAPI_LINUX_KERNEL_H */
diff --git a/srcpkgs/kernel-libc-headers/template b/srcpkgs/kernel-libc-headers/template
index 61d118a2cfdf1..aa9b0fc20812f 100644
--- a/srcpkgs/kernel-libc-headers/template
+++ b/srcpkgs/kernel-libc-headers/template
@@ -1,6 +1,6 @@
 # Template file for 'kernel-libc-headers'
 pkgname=kernel-libc-headers
-version=5.10.4
+version=6.1
 revision=1
 bootstrap=yes
 short_desc="Linux API headers for userland development"
@@ -8,7 +8,7 @@ maintainer="Érico Nogueira <ericonr@disroot.org>"
 license="GPL-2.0-only"
 homepage="http://www.kernel.org"
 distfiles="$KERNEL_SITE/kernel/v${version%%.*}.x/linux-${version}.tar.xz"
-checksum=904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+checksum=2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
 
 if [ "$CHROOT_READY" ]; then
 	hostmakedepends="perl"

From d00f7a361a13511a27e09b9efadf1f40de7b1a6b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 22 Jan 2024 13:30:57 -0800
Subject: [PATCH 04/41] musl: remove compat basename declaration and add
 RLIMIT_RTTIME define

This declaration was added to musl to avoid warnings for applications that
expect GNU basename() in string.h.

Pre-ansi style declarations were used to avoid causing errors due to
incompatibile declarations of basename().

In C23, just like in C++, function declarations with no arguments are treated
as having no arguments, instead of having unspecified arguments. As such,
this creates a conflicting declaration in C23.
---
 srcpkgs/musl/patches/add-rlimit-rttime.patch | 24 +++++++++++
 srcpkgs/musl/patches/c23-basename.patch      | 44 ++++++++++++++++++++
 srcpkgs/musl/template                        |  2 +-
 3 files changed, 69 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/musl/patches/add-rlimit-rttime.patch
 create mode 100644 srcpkgs/musl/patches/c23-basename.patch

diff --git a/srcpkgs/musl/patches/add-rlimit-rttime.patch b/srcpkgs/musl/patches/add-rlimit-rttime.patch
new file mode 100644
index 0000000000000..56afa6b66521a
--- /dev/null
+++ b/srcpkgs/musl/patches/add-rlimit-rttime.patch
@@ -0,0 +1,24 @@
+From 2507e7f5312e79620f6337935d0a6c9045ccba09 Mon Sep 17 00:00:00 2001
+From: Leah Neukirchen <leah@vuxu.org>
+Date: Sat, 11 Jan 2020 20:16:59 +0100
+Subject: [PATCH] define RLIMIT_RTTIME, bump RLIMIT_NLIMITS
+
+This macro exists since Linux 2.6.25 and is defined in glibc since 2011.
+---
+ include/sys/resource.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/include/sys/resource.h b/include/sys/resource.h
+index e0c86ae33..3068328d0 100644
+--- a/include/sys/resource.h
++++ b/include/sys/resource.h
+@@ -90,7 +90,8 @@ int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
+ #define RLIMIT_MSGQUEUE 12
+ #define RLIMIT_NICE    13
+ #define RLIMIT_RTPRIO  14
+-#define RLIMIT_NLIMITS 15
++#define RLIMIT_RTTIME  15
++#define RLIMIT_NLIMITS 16
+ 
+ #define RLIM_NLIMITS RLIMIT_NLIMITS
+ 
diff --git a/srcpkgs/musl/patches/c23-basename.patch b/srcpkgs/musl/patches/c23-basename.patch
new file mode 100644
index 0000000000000..8f95a27d0ef56
--- /dev/null
+++ b/srcpkgs/musl/patches/c23-basename.patch
@@ -0,0 +1,44 @@
+From 725e17ed6dff4d0cd22487bb64470881e86a92e7 Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Mon, 6 Nov 2023 08:26:19 -0500
+Subject: [PATCH] remove non-prototype declaration of basename from string.h
+
+commit 37bb3cce4598c19288628e675eaf1cda6e96958f suppressed the
+declaration for C++, where it is wrongly interpreted as declaring the
+function as taking no arguments. with C23 removing non-prototype
+declarations, that problem is now also relevant to C.
+
+the non-prototype declaration for basename originates with commit
+06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500, where it was designed to
+avoid conflicts with programs which declare basename with the GNU
+signature taking const char *. that change was probably misguided, as
+it represents not only misaligned expectations with the caller, but
+also undefined behavior (calling a function that's been declared with
+the wrong type).
+
+we could opt to fix the declaration, but since glibc, with the
+gratuitously incompatible GNU-basename function, seems to be the only
+implementation that declares it in string.h, it seems better to just
+remove the declaration. this provides some warning if applications are
+being built expecting the GNU behavior but not getting it. if we
+declared it here, it would only produce a warning if the caller also
+declares it themselves (rare) or if the caller attempts to pass a
+const-qualified pointer.
+---
+ include/string.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/include/string.h b/include/string.h
+index db73d2a9..83e2b946 100644
+--- a/include/string.h
++++ b/include/string.h
+@@ -95,9 +95,6 @@ char *strchrnul(const char *, int);
+ char *strcasestr(const char *, const char *);
+ void *memrchr(const void *, int, size_t);
+ void *mempcpy(void *, const void *, size_t);
+-#ifndef __cplusplus
+-char *basename();
+-#endif
+ #endif
+ 
+ #ifdef __cplusplus
diff --git a/srcpkgs/musl/template b/srcpkgs/musl/template
index 9838f9ad9e613..8c3be7d76e8a1 100644
--- a/srcpkgs/musl/template
+++ b/srcpkgs/musl/template
@@ -2,7 +2,7 @@
 pkgname=musl
 reverts="1.2.0_1"
 version=1.1.24
-revision=19
+revision=20
 archs="*-musl"
 bootstrap=yes
 build_style=gnu-configure

From d55793bb32fb918146b6f950bfe93ebc709a81f4 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:43:14 -0700
Subject: [PATCH 05/41] libtool: rebuild for gcc 13

---
 srcpkgs/libtool/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/libtool/template b/srcpkgs/libtool/template
index 4eea61b17c49b..b112680fe864a 100644
--- a/srcpkgs/libtool/template
+++ b/srcpkgs/libtool/template
@@ -1,7 +1,7 @@
 # Template file for 'libtool'
 pkgname=libtool
 version=2.4.7
-revision=4
+revision=5
 build_style=gnu-configure
 hostmakedepends="texinfo perl automake help2man xz gnulib tar"
 depends="tar sed grep"

From a8858b46dd745421d51b2502f8f69b3f0198fd72 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 15:44:09 -0700
Subject: [PATCH 06/41] mk-configure: rebuild for gcc 13

---
 srcpkgs/mk-configure/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/mk-configure/template b/srcpkgs/mk-configure/template
index fdcac6ca74b8c..a267afce83e46 100644
--- a/srcpkgs/mk-configure/template
+++ b/srcpkgs/mk-configure/template
@@ -1,7 +1,7 @@
 # Template file for 'mk-configure'
 pkgname=mk-configure
 version=0.38.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_cmd=bmake
 make_install_args="MANDIR=/usr/share/man"

From 757db90374d0cfeec2d02b50971d3a51bd8bac29 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:31:30 -0700
Subject: [PATCH 07/41] libgccjit: update to 13.2.0.

---
 srcpkgs/libgccjit/template | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libgccjit/template b/srcpkgs/libgccjit/template
index fde1affd54b7c..e130b53461496 100644
--- a/srcpkgs/libgccjit/template
+++ b/srcpkgs/libgccjit/template
@@ -3,11 +3,11 @@
 # which use the version number.
 
 pkgname=libgccjit
-version=12.2.0
+version=13.2.0
 revision=1
-_gmp_version=6.2.1
-_mpfr_version=4.1.0
-_mpc_version=1.2.1
+_gmp_version=6.3.0
+_mpfr_version=4.2.0
+_mpc_version=1.3.1
 _isl_version=0.24
 create_wrksrc=yes
 short_desc="Just-In-Time Compilation library for GCC"
@@ -21,10 +21,10 @@ distfiles="
  ${GNU_SITE}/mpfr/mpfr-${_mpfr_version}.tar.xz
  ${GNU_SITE}/mpc/mpc-${_mpc_version}.tar.gz
  ${SOURCEFORGE_SITE}/libisl/isl-${_isl_version}.tar.bz2"
-checksum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
- fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
- 0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
- 17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
+checksum="e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
+ a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
+ 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
+ ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
  fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"
 nopie=yes
 lib32disabled=yes

From 20bc3004a0684bd4d404d373e4ad23dbb7f64d87 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Mon, 7 Aug 2023 17:41:42 -0700
Subject: [PATCH 08/41] gcc-multilib: update to 13.2.0.

---
 srcpkgs/gcc-multilib/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/gcc-multilib/template b/srcpkgs/gcc-multilib/template
index 4ae0dadb7c6d9..6af5541e1db5c 100644
--- a/srcpkgs/gcc-multilib/template
+++ b/srcpkgs/gcc-multilib/template
@@ -3,18 +3,18 @@ archs="x86_64"
 _triplet="x86_64-unknown-linux-gnu"
 
 pkgname=gcc-multilib
-version=12.2.0
-revision=2
+version=13.2.0
+revision=1
 _majorver="${version%.*}"
 short_desc="GNU Compiler Collection (multilib files)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 homepage="http://gcc.gnu.org"
 license="GFDL-1.2-or-later, GPL-3.0-or-later, LGPL-2.1-or-later"
 distfiles="${GNU_SITE}/gcc/gcc-${version}/gcc-${version}.tar.xz"
-checksum=e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum=e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
 
 hostmakedepends="perl flex tar zip unzip"
-makedepends="zlib-devel libmpc-devel isl15-devel libfl-devel
+makedepends="zlib-devel libmpc-devel isl-devel libfl-devel
  glibc-32bit glibc-devel-32bit"
 
 depends="

From 3ec7e860a7af13475724be66c85a65f689bf44c3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 24 Jan 2024 13:06:14 -0800
Subject: [PATCH 09/41] build-style/void-cross.sh: include libquadmath and
 remove libgomp

---
 common/build-style/void-cross.sh | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/common/build-style/void-cross.sh b/common/build-style/void-cross.sh
index 9193b7cf64bad..f2e1e7ec3084a 100644
--- a/common/build-style/void-cross.sh
+++ b/common/build-style/void-cross.sh
@@ -404,13 +404,8 @@ _void_cross_build_gcc() {
 
 	# note on --disable-libquadmath:
 	# on some platforms the library is actually necessary for the
-	# fortran frontend to build, but still disable it because it
-	# should not be in the resulting packages; it conflicts with
-	# the libquadmath you can install into the cross root
-	#
-	# platforms where this is a problem should explicitly force
-	# libquadmath to be on via cross_gcc_configure_args, the
-	# do_install in this build-style automatically removes it
+	# fortran frontend to build, platforms where this is a problem
+	# should explicitly force libquadmath to be on via cross_gcc_configure_args
 	#
 	../gcc-${ver}/configure \
 		--prefix=/usr \
@@ -646,9 +641,9 @@ do_install() {
 	ln -sf libgnat-${gcc_major}.so ${DESTDIR}/${sysroot}/usr/lib/libgnat.so
 	rm -vf ${DESTDIR}/${adalib}/libgna{rl,t}.so
 
-	# If libquadmath was forced (needed for gfortran on some platforms)
-	# then remove it because it conflicts with libquadmath package
-	rm -rf ${DESTDIR}/${sysroot}/usr/lib/libquadmath.*
+	# Remove libgomp library because it conflicts with libgomp and
+	# libgomp-devel packages
+	rm -f ${DESTDIR}/usr/lib/libgomp*
 
 	# Remove libdep linker plugin because it conflicts with system binutils
 	rm -f ${DESTDIR}/usr/lib/bfd-plugins/libdep*

From ef969d762801e16e8e9052f8e386404ede706c65 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 24 Jan 2024 13:07:24 -0800
Subject: [PATCH 10/41] cross-vpkg-dummy: update to 0.40.

---
 srcpkgs/cross-vpkg-dummy/template | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/cross-vpkg-dummy/template b/srcpkgs/cross-vpkg-dummy/template
index feaccd4dc265d..eed76b5890302 100644
--- a/srcpkgs/cross-vpkg-dummy/template
+++ b/srcpkgs/cross-vpkg-dummy/template
@@ -1,7 +1,7 @@
 # Template file for 'cross-vpkg-dummy'
 pkgname=cross-vpkg-dummy
-version=0.39
-revision=6
+version=0.40
+revision=1
 build_style=meta
 depends="base-files>=0.126"
 short_desc="Dummy meta-pkg for cross building packages with xbps-src"
@@ -21,6 +21,8 @@ provides="
 	libstdc++-devel-9999_1
 	libgfortran-9999_1
 	libgfortran-devel-9999_1
+	libquadmath-9999_1
+	libquadmath-devel-9999_1
 	libgo-9999_1
 	libgo-devel-9999_1
 	libobjc-9999_1
@@ -46,6 +48,8 @@ conflicts="
 	libstdc++-devel>=0
 	libgfortran>=0
 	libgfortran-devel>=0
+	libquadmath>=0
+	libquadmath-devel>=0
 	libgo>=0
 	libgo-devel>=0
 	libobjc>=0
@@ -61,8 +65,8 @@ conflicts="
 shlib_provides="
 	libatomic.so.1
 	libgcc_s.so.1
-	libgnat-12.so
-	libgnarl-12.so
+	libgnat-13.so
+	libgnarl-13.so
 	libstdc++.so.6
 	libgfortran.so.5"
 repository=bootstrap

From 24619ac098ae81508f3c966fe546d67a224a6f1f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:06 -0800
Subject: [PATCH 11/41] cross-aarch64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-gnu/template b/srcpkgs/cross-aarch64-linux-gnu/template
index 91dadf4b01179..c4d7dbaf4ba19 100644
--- a/srcpkgs/cross-aarch64-linux-gnu/template
+++ b/srcpkgs/cross-aarch64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-aarch64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-aarch64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2 -march=armv8-a"

From 7c3e2a7d9b6b3e67406183387ffde4f0702ebd21 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 12/41] cross-aarch64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-aarch64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-aarch64-linux-musl/template b/srcpkgs/cross-aarch64-linux-musl/template
index 831ba21e38600..b337574743388 100644
--- a/srcpkgs/cross-aarch64-linux-musl/template
+++ b/srcpkgs/cross-aarch64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-aarch64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-aarch64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv8-a"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From ffd3b25cc344bead4b529cbdeac92761e0918203 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 13/41] cross-arm-linux-gnueabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabi/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabi/template b/srcpkgs/cross-arm-linux-gnueabi/template
index a9b157cb8375b..efde1017cb864 100644
--- a/srcpkgs/cross-arm-linux-gnueabi/template
+++ b/srcpkgs/cross-arm-linux-gnueabi/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-arm-linux-gnueabi
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--without-fp"

From 8be69b2c36a7fd4e6c78edf51d1a08fcfb5a570c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 14/41] cross-arm-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-gnueabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-gnueabihf/template b/srcpkgs/cross-arm-linux-gnueabihf/template
index 637675a151af2..dd562ceb44986 100644
--- a/srcpkgs/cross-arm-linux-gnueabihf/template
+++ b/srcpkgs/cross-arm-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-arm-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-arm-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-Os -march=armv6 -mfpu=vfp -mfloat-abi=hard"

From abb1dffca3ec3bcf8ca77de7dccf6ba8449fda9d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 15/41] cross-arm-linux-musleabi: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabi/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabi/template b/srcpkgs/cross-arm-linux-musleabi/template
index 35e03b44b4f9a..b947fca9b89cb 100644
--- a/srcpkgs/cross-arm-linux-musleabi/template
+++ b/srcpkgs/cross-arm-linux-musleabi/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabi'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabi
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv5te --with-float=soft
  --enable-autolink-libatomic"
@@ -22,12 +22,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 20c4e0d7942a111bd4c827cd109ccc6debbf820e Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 16/41] cross-arm-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-arm-linux-musleabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-arm-linux-musleabihf/template b/srcpkgs/cross-arm-linux-musleabihf/template
index af1683f13df36..078eaf0695122 100644
--- a/srcpkgs/cross-arm-linux-musleabihf/template
+++ b/srcpkgs/cross-arm-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-arm-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-arm-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv6 --with-fpu=vfp --with-float=hard
  --enable-autolink-libatomic"
@@ -22,12 +22,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 5d7e6484709018aacd39e716d4b5893191ff1234 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 17/41] cross-armv7l-linux-gnueabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-gnueabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-gnueabihf/template b/srcpkgs/cross-armv7l-linux-gnueabihf/template
index 18d502a6a41c8..60c678f3f5aa7 100644
--- a/srcpkgs/cross-armv7l-linux-gnueabihf/template
+++ b/srcpkgs/cross-armv7l-linux-gnueabihf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-armv7l-linux-gnueabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-armv7l-linux-gnueabihf
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2 -march=armv7-a -mfpu=vfpv3 -mfloat-abi=hard"

From 5799967667eff9eb083746216ce7a263f834f162 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 18/41] cross-armv7l-linux-musleabihf: update to gcc 13.2.0

---
 srcpkgs/cross-armv7l-linux-musleabihf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-armv7l-linux-musleabihf/template b/srcpkgs/cross-armv7l-linux-musleabihf/template
index 275f62b27be25..8fafdcae1b8dc 100644
--- a/srcpkgs/cross-armv7l-linux-musleabihf/template
+++ b/srcpkgs/cross-armv7l-linux-musleabihf/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-armv7l-linux-musleabihf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-armv7l-linux-musleabihf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=armv7-a --with-fpu=vfpv3 --with-float=hard"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 1b8431eed70c29d05b6bf3963b087d9f2e6361d6 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 19/41] cross-i686-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-i686-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-i686-linux-musl/template b/srcpkgs/cross-i686-linux-musl/template
index 28cfb7873e040..6894694553894 100644
--- a/srcpkgs/cross-i686-linux-musl/template
+++ b/srcpkgs/cross-i686-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-i686-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-i686-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,12 +20,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From 0d0c247a76fabf2963eb35202e7872a2f3da7b71 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 20/41] cross-i686-pc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-i686-pc-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-i686-pc-linux-gnu/template b/srcpkgs/cross-i686-pc-linux-gnu/template
index c695fb2f37a20..7a82c328d4a93 100644
--- a/srcpkgs/cross-i686-pc-linux-gnu/template
+++ b/srcpkgs/cross-i686-pc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-i686-pc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-i686-pc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -18,11 +18,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 # explicitly enable for final gcc, as gfortran does not build without on x86

From 4072c9ee8efb3bf37ed3ef0c17475b97722704cc Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 21/41] cross-mips-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-musl/template b/srcpkgs/cross-mips-linux-musl/template
index 2c796a7c09cd7..09cc75f67e076 100644
--- a/srcpkgs/cross-mips-linux-musl/template
+++ b/srcpkgs/cross-mips-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mips-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 53eb192a735d8f395c4b2add41933f93a0306efb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:07 -0800
Subject: [PATCH 22/41] cross-mips-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mips-linux-muslhf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mips-linux-muslhf/template b/srcpkgs/cross-mips-linux-muslhf/template
index 7333d3b5d70cc..8ab1a6778777c 100644
--- a/srcpkgs/cross-mips-linux-muslhf/template
+++ b/srcpkgs/cross-mips-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mips-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mips-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 8bae04314e7436716a97c53806a4947be7c3cc2c Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 23/41] cross-mipsel-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-musl/template b/srcpkgs/cross-mipsel-linux-musl/template
index 992c6bc42e955..c3df0e2fe8f05 100644
--- a/srcpkgs/cross-mipsel-linux-musl/template
+++ b/srcpkgs/cross-mipsel-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mipsel-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=soft
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 4868624d285054d73a2fcc13694fcd6ac299d93d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 24/41] cross-mipsel-linux-muslhf: update to gcc 13.2.0

---
 srcpkgs/cross-mipsel-linux-muslhf/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-mipsel-linux-muslhf/template b/srcpkgs/cross-mipsel-linux-muslhf/template
index cde29e2129eef..07568484c0d66 100644
--- a/srcpkgs/cross-mipsel-linux-muslhf/template
+++ b/srcpkgs/cross-mipsel-linux-muslhf/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-mipsel-linux-muslhf'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-mipsel-linux-muslhf
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=mips32r2 --with-float=hard
  --with-linker-hash-style=sysv --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From de9ecbd7f552fbc1efd5b1eefe6c04a59c1be600 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 25/41] cross-powerpc-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-gnu/template b/srcpkgs/cross-powerpc-linux-gnu/template
index 337d1c652ab91..3a14a62bcec29 100644
--- a/srcpkgs/cross-powerpc-linux-gnu/template
+++ b/srcpkgs/cross-powerpc-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 67945f2f8568481ce127e7a647235b81846a9848 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 26/41] cross-powerpc-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc-linux-musl/template b/srcpkgs/cross-powerpc-linux-musl/template
index a73d324f40cc3..fc56dde6bd238 100644
--- a/srcpkgs/cross-powerpc-linux-musl/template
+++ b/srcpkgs/cross-powerpc-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From e2bcaec94f362521f26a86e46a255a244da9f84b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 27/41] cross-powerpc64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-gnu/template b/srcpkgs/cross-powerpc64-linux-gnu/template
index f4af015668699..f664f1dbc764a 100644
--- a/srcpkgs/cross-powerpc64-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpc-linux --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--enable-secureplt"

From d999947209dfd643ff084da99c73f7e991c12da3 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 28/41] cross-powerpc64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64-linux-musl/template b/srcpkgs/cross-powerpc64-linux-musl/template
index 5224e63219882..b3903e8110aa9 100644
--- a/srcpkgs/cross-powerpc64-linux-musl/template
+++ b/srcpkgs/cross-powerpc64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-powerpc64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpc-linux
@@ -23,12 +23,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From a34876276e33b0b7b0385a1a4326f155d9a28b32 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 29/41] cross-powerpc64le-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-gnu/template b/srcpkgs/cross-powerpc64le-linux-gnu/template
index 6181e0e4d236d..e0ca6e9ce2d01 100644
--- a/srcpkgs/cross-powerpc64le-linux-gnu/template
+++ b/srcpkgs/cross-powerpc64le-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpc64le-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpc64le-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify --with-abi=elfv2
  --enable-targets=powerpcle-linux --enable-autolink-libatomic"
@@ -20,11 +20,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_binutils_configure_args="--enable-secureplt"

From 578f4dd2b71e5e9eeaa70be880be0a470ad19f9b Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 30/41] cross-powerpc64le-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpc64le-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template
index f7edddfb10a29..d76fbe3d250ed 100644
--- a/srcpkgs/cross-powerpc64le-linux-musl/template
+++ b/srcpkgs/cross-powerpc64le-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-powerpc64le-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-powerpc64le-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --with-abi=elfv2 --enable-targets=powerpcle-linux
@@ -23,12 +23,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From fd02bb29ce4ca8114acd4f42c0b84243d0173f10 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 31/41] cross-powerpcle-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-gnu/template b/srcpkgs/cross-powerpcle-linux-gnu/template
index 720cf97873314..f18370a304875 100644
--- a/srcpkgs/cross-powerpcle-linux-gnu/template
+++ b/srcpkgs/cross-powerpcle-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpcle-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From 55cb265d5755e60368abb923f82ead04cbca8955 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 32/41] cross-powerpcle-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-powerpcle-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-powerpcle-linux-musl/template b/srcpkgs/cross-powerpcle-linux-musl/template
index c764f44f739a7..5f03d1d7f576e 100644
--- a/srcpkgs/cross-powerpcle-linux-musl/template
+++ b/srcpkgs/cross-powerpcle-linux-musl/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-powerpcle-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-powerpcle-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--enable-secureplt --disable-vtable-verify
  --disable-decimal-float --enable-autolink-libatomic"
@@ -21,11 +21,11 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_gcc_skip_go=yes

From a75cdbfacca093e84b42985739c20b517e6c1621 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:08 -0800
Subject: [PATCH 33/41] cross-riscv64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-gnu/template b/srcpkgs/cross-riscv64-linux-gnu/template
index bd1a010d98269..690b5d6184239 100644
--- a/srcpkgs/cross-riscv64-linux-gnu/template
+++ b/srcpkgs/cross-riscv64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-riscv64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-riscv64-linux-gnu
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -19,11 +19,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 cross_glibc_cflags="-O2"

From c5cffddaed64d7fe8a56bcdb4c8fe3fce30f452a Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 34/41] cross-riscv64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-riscv64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-riscv64-linux-musl/template b/srcpkgs/cross-riscv64-linux-musl/template
index d20751fd9fdb6..e20d2d8951465 100644
--- a/srcpkgs/cross-riscv64-linux-musl/template
+++ b/srcpkgs/cross-riscv64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-riscv64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-riscv64-linux-musl
-version=0.35
-revision=2
+version=0.36
+revision=1
 build_style=void-cross
 configure_args="--with-arch=rv64gc --with-abi=lp64d --enable-autolink-libatomic --disable-multilib"
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
@@ -21,12 +21,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From a389b6cd7660aa141a4386623b0888df799360fb Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 35/41] cross-x86_64-linux-gnu: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-gnu/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-gnu/template b/srcpkgs/cross-x86_64-linux-gnu/template
index b7c2bb3f04fd7..4fb35cb6f736c 100644
--- a/srcpkgs/cross-x86_64-linux-gnu/template
+++ b/srcpkgs/cross-x86_64-linux-gnu/template
@@ -1,11 +1,11 @@
 # Template file for 'cross-x86_64-linux-gnu'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _glibc_version=2.38
-_linux_version=5.10.4
+_linux_version=6.1
 pkgname=cross-x86_64-linux-gnu
-version=0.35
-revision=7
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -18,11 +18,11 @@ homepage="https://www.voidlinux.org/"
 distfiles="${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz"
 distfiles+=" ${GNU_SITE}/glibc/glibc-${_glibc_version}.tar.xz"
-distfiles+=" ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+distfiles+=" ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz"
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec"
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb"
 nocross=yes
 
 # explicitly enable for final gcc, gfortran does not build without on x86

From adbab6ba5d510d235c2a901b1355d723e569807d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 18:19:09 -0800
Subject: [PATCH 36/41] cross-x86_64-linux-musl: update to gcc 13.2.0

---
 srcpkgs/cross-x86_64-linux-musl/template | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/cross-x86_64-linux-musl/template b/srcpkgs/cross-x86_64-linux-musl/template
index 84f4620417e9b..19fc88f6e0880 100644
--- a/srcpkgs/cross-x86_64-linux-musl/template
+++ b/srcpkgs/cross-x86_64-linux-musl/template
@@ -1,12 +1,12 @@
 # Template file for 'cross-x86_64-linux-musl'
-_binutils_version=2.39
-_gcc_version=12.2.0
+_binutils_version=2.41
+_gcc_version=13.2.0
 _musl_version=1.1.24
-_linux_version=5.10.4
+_linux_version=6.1
 _libucontext_version=1.0
 pkgname=cross-x86_64-linux-musl
-version=0.35
-revision=5
+version=0.36
+revision=1
 build_style=void-cross
 hostmakedepends="texinfo tar gcc-objc gcc-go flex perl python3 pkg-config"
 makedepends="isl-devel libmpc-devel gmp-devel mpfr-devel
@@ -20,12 +20,12 @@ distfiles="
  ${GNU_SITE}/binutils/binutils-${_binutils_version}.tar.xz
  ${GNU_SITE}/gcc/gcc-${_gcc_version}/gcc-${_gcc_version}.tar.xz
  https://musl.libc.org/releases/musl-${_musl_version}.tar.gz
- ${KERNEL_SITE}/kernel/v5.x/linux-${_linux_version}.tar.xz
+ ${KERNEL_SITE}/kernel/v${_linux_version%%.*}.x/linux-${_linux_version}.tar.xz
  https://github.com/kaniini/libucontext/archive/libucontext-${_libucontext_version}.tar.gz"
-checksum="645c25f563b8adc0a81dbd6a41cffbf4d37083a382e02d5d3df4f65c09516d00
- e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
+checksum="ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450
+ e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da
  1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3
- 904e396c26e9992a16cd1cc989460171536bed7739bf36049f6eb020ee5d56ec
+ 2ca1f17051a430f6fed1196e4952717507171acfd97d96577212502703b25deb
  23714e99a87f6dea82e8a073c526325161dd65462459820b16a6162be91955bb"
 nocross=yes
 

From aa35b0f4f48e97abdcba1b86cb4a121dc91f4936 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:25 -0800
Subject: [PATCH 37/41] linux6.6: update kernel config for gcc 13

---
 srcpkgs/linux6.6/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.6/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.6/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.6/files/arm64-dotconfig b/srcpkgs/linux6.6/files/arm64-dotconfig
index 688a0dba94a1d..93b8ad6d2d835 100644
--- a/srcpkgs/linux6.6/files/arm64-dotconfig
+++ b/srcpkgs/linux6.6/files/arm64-dotconfig
@@ -12816,6 +12816,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/i386-dotconfig b/srcpkgs/linux6.6/files/i386-dotconfig
index f42b6646a248b..f79bca8495140 100644
--- a/srcpkgs/linux6.6/files/i386-dotconfig
+++ b/srcpkgs/linux6.6/files/i386-dotconfig
@@ -10567,6 +10567,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.6/files/x86_64-dotconfig b/srcpkgs/linux6.6/files/x86_64-dotconfig
index 02fe6de8db0de..f59f673ea0028 100644
--- a/srcpkgs/linux6.6/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.6/files/x86_64-dotconfig
@@ -10973,6 +10973,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From 24d84b0e6c9846a8fa58b1df70aceb4a7b3a318d Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Wed, 17 Jan 2024 15:21:45 -0800
Subject: [PATCH 38/41] linux6.7: update kernel config for gcc 13

---
 srcpkgs/linux6.7/files/arm64-dotconfig  | 1 +
 srcpkgs/linux6.7/files/i386-dotconfig   | 1 +
 srcpkgs/linux6.7/files/x86_64-dotconfig | 1 +
 3 files changed, 3 insertions(+)

diff --git a/srcpkgs/linux6.7/files/arm64-dotconfig b/srcpkgs/linux6.7/files/arm64-dotconfig
index 9b3a5816b2aa2..13b7f0b88b801 100644
--- a/srcpkgs/linux6.7/files/arm64-dotconfig
+++ b/srcpkgs/linux6.7/files/arm64-dotconfig
@@ -12909,6 +12909,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/i386-dotconfig b/srcpkgs/linux6.7/files/i386-dotconfig
index 08f008ba09097..0e5f1f2868fea 100644
--- a/srcpkgs/linux6.7/files/i386-dotconfig
+++ b/srcpkgs/linux6.7/files/i386-dotconfig
@@ -10646,6 +10646,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y
diff --git a/srcpkgs/linux6.7/files/x86_64-dotconfig b/srcpkgs/linux6.7/files/x86_64-dotconfig
index 9ec1f7922f4f9..da4f1fd47c6ee 100644
--- a/srcpkgs/linux6.7/files/x86_64-dotconfig
+++ b/srcpkgs/linux6.7/files/x86_64-dotconfig
@@ -11057,6 +11057,7 @@ CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 # CONFIG_DEBUG_INFO_REDUCED is not set
 CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
 # CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set
+# CONFIG_DEBUG_INFO_COMPRESSED_ZSTD is not set
 # CONFIG_DEBUG_INFO_SPLIT is not set
 CONFIG_DEBUG_INFO_BTF=y
 CONFIG_PAHOLE_HAS_SPLIT_BTF=y

From cfa1d2a6e20c068bfd99cff84a6520a51a4e2f2f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Sat, 27 Jan 2024 01:25:29 -0800
Subject: [PATCH 39/41] elogind: fix build on musl without basename
 compatibility decl

musl provided a compatibility basename declaration so applications
expecting GNU basename could still compile even though musl doesn't provide
GNU basename and only POSIX basename.

Prevent build failure when this is removed.
---
 srcpkgs/elogind/patches/musl-basename.patch | 42 +++++++++++++++++++++
 srcpkgs/elogind/template                    |  2 +-
 2 files changed, 43 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/elogind/patches/musl-basename.patch

diff --git a/srcpkgs/elogind/patches/musl-basename.patch b/srcpkgs/elogind/patches/musl-basename.patch
new file mode 100644
index 0000000000000..ff04009ffc4ef
--- /dev/null
+++ b/srcpkgs/elogind/patches/musl-basename.patch
@@ -0,0 +1,42 @@
+Add missing include for POSIX basename, since systemd-logind expects basename in string.h
+
+diff -rup src/basic/musl_missing.h.orig src/basic/musl_missing.h
+--- a/src/basic/musl_missing.h
++++ b/src/basic/musl_missing.h
+@@ -56,6 +54,10 @@ void elogind_set_program_name(const char
+         } ) )
+ #endif
+ 
++/* Poor man's basename */
++#define basename(path) \
++        (strrchr(path, '/') ? strrchr(path, '/')+1 : path)
++
+ /* getnameinfo(3) glibc extensions are undefined in musl libc */
+ #define NI_IDN 0
+ #define NI_IDN_USE_STD3_ASCII_RULES 0
+From c8d96ff2b87b8dfb8d521d4c2e6fb57992dbf659 Mon Sep 17 00:00:00 2001
+From: Lennart Poettering <lennart@poettering.net>
+Date: Wed, 21 Dec 2022 16:13:23 +0100
+Subject: [PATCH] tests: we don't actually use basename() anymore
+
+---
+ src/shared/tests.c | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/src/shared/tests.c b/src/shared/tests.c
+index 5a05daa643..9d8bbeea79 100644
+--- a/src/shared/tests.c
++++ b/src/shared/tests.c
+@@ -7,12 +7,6 @@
+ #include <sys/mount.h>
+ #include <sys/wait.h>
+ 
+-/* When we include libgen.h because we need dirname() we immediately
+- * undefine basename() since libgen.h defines it as a macro to the POSIX
+- * version which is really broken. We prefer GNU basename(). */
+-#include <libgen.h>
+-#undef basename
+-
+ #include "sd-bus.h"
+ 
+ #include "alloc-util.h"
diff --git a/srcpkgs/elogind/template b/srcpkgs/elogind/template
index 97d129f1f3239..ff5315b288f11 100644
--- a/srcpkgs/elogind/template
+++ b/srcpkgs/elogind/template
@@ -1,7 +1,7 @@
 # Template file for 'elogind'
 pkgname=elogind
 version=252.9
-revision=1
+revision=2
 build_style=meson
 configure_args="-Dcgroup-controller=elogind -Ddefault-hierarchy=legacy
  -Ddefault-kill-user-processes=false -Dhalt-path=/usr/bin/halt

From 25cc0db2b7803b33e75eae805ee2b5a9f0e7baed Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 01:22:09 -0800
Subject: [PATCH 40/41] iwd: fix basename on musl

musl provides a compatibility basename declaration so applications
expecting GNU basename could still compile even though musl doesn't provide
GNU basename and only POSIX basename.
---
 srcpkgs/iwd/patches/musl.patch | 13 +++++++++++++
 srcpkgs/iwd/template           |  2 +-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/iwd/patches/musl.patch

diff --git a/srcpkgs/iwd/patches/musl.patch b/srcpkgs/iwd/patches/musl.patch
new file mode 100644
index 0000000000000..37b6d749b3c8f
--- /dev/null
+++ b/srcpkgs/iwd/patches/musl.patch
@@ -0,0 +1,13 @@
+Include libgen.h for POSIX basename as musl doesn provide GNU basename in string.h.
+
+diff -rup src/wiphy.c.orig src/wiphy.c
+--- a/src/wiphy.c
++++ b/src/wiphy.c
+@@ -33,6 +33,7 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <limits.h>
++#include <libgen.h>
+ 
+ #include <ell/ell.h>
+ 
diff --git a/srcpkgs/iwd/template b/srcpkgs/iwd/template
index f70503d2a8277..8ababe905f770 100644
--- a/srcpkgs/iwd/template
+++ b/srcpkgs/iwd/template
@@ -1,7 +1,7 @@
 # Template file for 'iwd'
 pkgname=iwd
 version=2.13
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--disable-systemd-service --enable-pie
  --enable-dbus-policy --enable-wired"

From d46c81575ac4e6689ed270e0a26a2a087805c2d2 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Fri, 26 Jan 2024 03:12:05 -0800
Subject: [PATCH 41/41] connman: fix basename on musl

musl provides a compatibility basename declaration so applications
expecting GNU basename could still compile even though musl doesn't provide
GNU basename and only POSIX basename.
---
 srcpkgs/connman/patches/musl.patch | 16 ++++++++++++++++
 srcpkgs/connman/template           |  2 +-
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/connman/patches/musl.patch

diff --git a/srcpkgs/connman/patches/musl.patch b/srcpkgs/connman/patches/musl.patch
new file mode 100644
index 0000000000000..4e38a44250b53
--- /dev/null
+++ b/srcpkgs/connman/patches/musl.patch
@@ -0,0 +1,16 @@
+Add GNU basename macro for code that expects GNU basename
+
+diff -rup src/log.c.orig src/log.c
+--- a/src/log.c
++++ b/src/log.c
+@@ -34,6 +34,10 @@
+ 
+ #include "connman.h"
+ 
++#if !defined(__GLIBC__)
++#define basename(src) (strrchr(src,'/') ? strrchr(src,'/')+1 : src)
++#endif
++
+ static const char *program_exec;
+ static const char *program_path;
+ 
diff --git a/srcpkgs/connman/template b/srcpkgs/connman/template
index e908284366c43..c4969eca59277 100644
--- a/srcpkgs/connman/template
+++ b/srcpkgs/connman/template
@@ -1,7 +1,7 @@
 # Template file for 'connman'
 pkgname=connman
 version=1.42
-revision=2
+revision=3
 build_style=gnu-configure
 configure_args="--enable-polkit --enable-client --enable-pie --enable-ethernet
  --enable-wifi --enable-bluetooth --enable-loopback --enable-nmcompat

^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: [PR PATCH] [Closed]: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (55 preceding siblings ...)
  2024-01-28  5:27 ` oreo639
@ 2024-01-28 23:43 ` oreo639
  2024-01-28 23:43 ` oreo639
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-28 23:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1204 bytes --]

There's a closed pull request on the void-packages repository

gcc: update to 13.2.0.
https://github.com/void-linux/void-packages/pull/45500

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
[ci skip]
#### Testing the changes
- I tested the changes in this PR: **briefly**

You can test the ISOs here: https://drive.google.com/drive/u/0/folders/1y5dkzI9R60eDjRA4mVYBdnn9e9PDGwNt

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 59+ messages in thread

* Re: gcc: update to 13.2.0.
  2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
                   ` (56 preceding siblings ...)
  2024-01-28 23:43 ` [PR PATCH] [Closed]: " oreo639
@ 2024-01-28 23:43 ` oreo639
  57 siblings, 0 replies; 59+ messages in thread
From: oreo639 @ 2024-01-28 23:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 149 bytes --]

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/pull/45500#issuecomment-1913762865

Comment:
Merged.

^ permalink raw reply	[flat|nested] 59+ messages in thread

end of thread, other threads:[~2024-01-28 23:43 UTC | newest]

Thread overview: 59+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-09  0:09 [PR PATCH] gcc: update to 13.2.0 oreo639
2023-08-26 21:48 ` leahneukirchen
2023-09-10 22:36 ` [PR REVIEW] " tornaria
2023-09-10 22:39 ` tornaria
2023-09-11  0:51 ` [PR REVIEW] " oreo639
2023-09-11 12:57 ` leahneukirchen
2023-09-11 15:51 ` oreo639
2023-12-07 17:53 ` metaleap
2023-12-07 18:54 ` oreo639
2023-12-07 18:54 ` oreo639
2023-12-07 18:54 ` oreo639
2023-12-07 18:55 ` oreo639
2023-12-07 18:55 ` oreo639
2023-12-26 21:54 ` oreo639
2023-12-26 22:10 ` [PR PATCH] [Updated] " oreo639
2023-12-27  4:15 ` oreo639
2023-12-27  4:16 ` oreo639
2023-12-27  4:17 ` oreo639
2023-12-27  8:51 ` [PR REVIEW] " averyterrel
2023-12-27  9:05 ` [PR PATCH] [Updated] " oreo639
2023-12-27  9:05 ` [PR REVIEW] " oreo639
2023-12-27 10:56 ` oreo639
2023-12-28  2:51 ` simvux
2023-12-28  3:21 ` oreo639
2023-12-28  3:21 ` oreo639
2023-12-28  3:21 ` oreo639
2023-12-28  3:22 ` oreo639
2023-12-28  3:23 ` oreo639
2023-12-28  3:30 ` [PR PATCH] [Updated] " oreo639
2023-12-28  3:32 ` oreo639
2023-12-29  1:27 ` [PR PATCH] [Updated] " oreo639
2024-01-10 16:12 ` dataCobra
2024-01-11  0:45 ` 22h49
2024-01-16 14:39 ` [PR PATCH] [Updated] " oreo639
2024-01-16 14:40 ` oreo639
2024-01-17 18:21 ` Calandracas606
2024-01-17 18:48 ` Calandracas606
2024-01-17 23:07 ` oreo639
2024-01-17 23:31 ` oreo639
2024-01-18  7:43 ` [PR PATCH] [Updated] " oreo639
2024-01-19  1:46 ` oreo639
2024-01-19  1:47 ` oreo639
2024-01-19  1:47 ` oreo639
2024-01-22  4:44 ` [PR PATCH] [Updated] " oreo639
2024-01-22  5:44 ` oreo639
2024-01-22  5:56 ` oreo639
2024-01-22 21:41 ` oreo639
2024-01-22 21:46 ` oreo639
2024-01-22 21:55 ` oreo639
2024-01-22 21:56 ` oreo639
2024-01-24 21:09 ` oreo639
2024-01-25 14:00 ` leahneukirchen
2024-01-27  2:30 ` [PR PATCH] [Updated] " oreo639
2024-01-27  9:27 ` oreo639
2024-01-27 22:34 ` oreo639
2024-01-28  1:40 ` oreo639
2024-01-28  5:27 ` oreo639
2024-01-28 23:43 ` [PR PATCH] [Closed]: " oreo639
2024-01-28 23:43 ` oreo639

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).