From: quzar <qu...@us...> - 2025-05-04 06:59:27
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via 2762ceff10c06ff491290630faeee1584b7c96a3 (commit) via 386b3ab28592b499fbfdb7edfed1e0f375ebc5f8 (commit) via ef6fe371ba87e9312674b9596937932ee3433f85 (commit) from 22ce1e63c2ae8f7a27dcea1d7d379ac6e6c5726c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 2762ceff10c06ff491290630faeee1584b7c96a3 Author: Paul Cercueil <pa...@cr...> Date: Thu May 1 11:53:07 2025 +0200 maple: Fix maple_enum_type() In C, the binary AND takes precedence over the logical AND. Signed-off-by: Paul Cercueil <pa...@cr...> commit 386b3ab28592b499fbfdb7edfed1e0f375ebc5f8 Author: Paul Cercueil <pa...@cr...> Date: Fri Apr 25 17:31:07 2025 +0200 sound: Fix loading of ARM firmware The offending commit 1d507167d ("Use proper typing for pointer math.") had the following change: -extern uint8_t snd_stream_drv[]; -extern uint8_t snd_stream_drv_end[]; +extern uintptr_t snd_stream_drv; +extern uintptr_t snd_stream_drv_end; and was later computing the size of the firmware by doing the difference (snd_stream_drv_end - snd_stream_drv). However, the behaviour was changed; before, it computed the difference between two addresses, and now computed the difference between the two uintptr_t values located at these addresses. Therefore the difference should have been changed to (&snd_stream_drv_end - &snd_stream_drv). Instead of just reverting the commit, update the code to use a blob generated by bin2c instead of bin2o, since we already moved to bin2c for romdisks. The source blob generated by bin2c can be included directly, which means that the symbols can be used directly without having to use "extern". Signed-off-by: Paul Cercueil <pa...@cr...> commit ef6fe371ba87e9312674b9596937932ee3433f85 Author: darc <da...@pr...> Date: Thu Apr 17 17:21:07 2025 -0500 Add 15.1.0 release profile and 15.1.1/16.0.0 dev profiles. All dev profiles upgraded to Binutils 2.44 and GDB 16.2 ----------------------------------------------------------------------- Summary of changes: kernel/arch/dreamcast/hardware/maple/maple_enum.c | 2 +- kernel/arch/dreamcast/sound/Makefile | 9 +++- kernel/arch/dreamcast/sound/snd_iface.c | 13 +++--- utils/dc-chain/Makefile.default.cfg | 4 +- utils/dc-chain/README.md | 10 +++-- utils/dc-chain/doc/CHANGELOG.md | 1 + utils/dc-chain/patches/gcc-14.2.1-kos.diff | 34 +++++++-------- .../{gcc-15.0.1-kos.diff => gcc-15.1.0-kos.diff} | 50 +++++++++++----------- .../{gcc-15.0.1-kos.diff => gcc-15.1.1-kos.diff} | 50 +++++++++++----------- .../{gcc-15.0.1-kos.diff => gcc-16.0.0-kos.diff} | 50 +++++++++++----------- utils/dc-chain/profiles/profile.13.3.1-dev.mk | 8 ++-- utils/dc-chain/profiles/profile.14.2.1-dev.mk | 8 ++-- .../{profile.13.3.0.mk => profile.15.1.0.mk} | 8 ++-- ...profile.15.0.1-dev.mk => profile.15.1.1-dev.mk} | 12 +++--- ...profile.15.0.1-dev.mk => profile.16.0.0-dev.mk} | 10 ++--- 15 files changed, 139 insertions(+), 130 deletions(-) copy utils/dc-chain/patches/{gcc-15.0.1-kos.diff => gcc-15.1.0-kos.diff} (73%) copy utils/dc-chain/patches/{gcc-15.0.1-kos.diff => gcc-15.1.1-kos.diff} (73%) rename utils/dc-chain/patches/{gcc-15.0.1-kos.diff => gcc-16.0.0-kos.diff} (73%) copy utils/dc-chain/profiles/{profile.13.3.0.mk => profile.15.1.0.mk} (93%) copy utils/dc-chain/profiles/{profile.15.0.1-dev.mk => profile.15.1.1-dev.mk} (89%) rename utils/dc-chain/profiles/{profile.15.0.1-dev.mk => profile.16.0.0-dev.mk} (91%) diff --git a/kernel/arch/dreamcast/hardware/maple/maple_enum.c b/kernel/arch/dreamcast/hardware/maple/maple_enum.c index 2e7fe4d6..57565101 100644 --- a/kernel/arch/dreamcast/hardware/maple/maple_enum.c +++ b/kernel/arch/dreamcast/hardware/maple/maple_enum.c @@ -38,7 +38,7 @@ maple_device_t * maple_enum_type(int n, uint32 func) { for(u = 0; u < MAPLE_UNIT_COUNT; u++) { dev = maple_enum_dev(p, u); - if(dev != NULL && dev->info.functions & func) { + if(dev != NULL && (dev->info.functions & func)) { if(!n) return dev; n--; diff --git a/kernel/arch/dreamcast/sound/Makefile b/kernel/arch/dreamcast/sound/Makefile index 6c061cd1..c6e8dbd7 100644 --- a/kernel/arch/dreamcast/sound/Makefile +++ b/kernel/arch/dreamcast/sound/Makefile @@ -20,5 +20,10 @@ include $(KOS_BASE)/Makefile.prefab arm/stream.drv: subdirs -snd_stream_drv.o: arm/stream.drv - $(KOS_BASE)/utils/bin2o/bin2o arm/stream.drv snd_stream_drv snd_stream_drv.o +snd_iface.c: snd_stream_drv.c + +snd_stream_drv.c: arm/stream.drv $(KOS_BASE)/utils/bin2c/bin2c + $(KOS_BASE)/utils/bin2c/bin2c $< $@ snd_stream_drv + +clean: + -rm -f snd_stream_drv.c diff --git a/kernel/arch/dreamcast/sound/snd_iface.c b/kernel/arch/dreamcast/sound/snd_iface.c index 47443892..ba57e0f8 100644 --- a/kernel/arch/dreamcast/sound/snd_iface.c +++ b/kernel/arch/dreamcast/sound/snd_iface.c @@ -20,13 +20,12 @@ #include "arm/aica_cmd_iface.h" +/* Include the default firmware blob */ +#include "snd_stream_drv.c" + /* Are we initted? */ static int initted = 0; -/* This will come from a separately linked object file */ -extern uintptr_t snd_stream_drv; -extern uintptr_t snd_stream_drv_end; - /* The queue processing mutex for snd_sh4_to_aica_start and snd_sh4_to_aica_stop. There are some cases like stereo stream control + stereo sfx control at the same time in separate threads. */ @@ -41,13 +40,13 @@ int snd_init(void) { if(!initted) { spu_disable(); spu_memset_sq(0, 0, AICA_RAM_START); - amt = snd_stream_drv_end - snd_stream_drv; + amt = snd_stream_drv_size; if(amt % 4) amt = (amt + 4) & ~3; - dbglog(DBG_DEBUG, "snd_init(): loading %u bytes into SPU RAM\n", amt); - spu_memload_sq(0, (void* )snd_stream_drv, amt); + dbglog(DBG_DEBUG, "snd_init(): loading %zu bytes into SPU RAM\n", amt); + spu_memload_sq(0, (void *)snd_stream_drv_data, amt); /* Enable the AICA and give it a few ms to start up */ spu_enable(); diff --git a/utils/dc-chain/Makefile.default.cfg b/utils/dc-chain/Makefile.default.cfg index 8838a514..73cb0a19 100644 --- a/utils/dc-chain/Makefile.default.cfg +++ b/utils/dc-chain/Makefile.default.cfg @@ -11,10 +11,12 @@ # - stable: Stable: Well-tested; based on GCC 13.2.0, released 2023-07-27. # - 13.3.0: Testing: Latest release in the GCC 13 series, released 2024-05-21. # - 14.2.0: Testing: Latest release in the GCC 14 series, released 2024-08-01. +# - 15.1.0: Testing: Latest release in the GCC 15 series, released 2025-04-25. # Development toolchains: # - 13.3.1-dev Bleeding edge GCC 13 series from git. # - 14.2.1-dev Bleeding edge GCC 14 series from git. -# - 15.0.1-dev Bleeding edge GCC 15 series from git. +# - 15.1.1-dev Bleeding edge GCC 15 series from git. +# - 16.0.0-dev Bleeding edge GCC 16 series from git. # If unsure, select stable. See README.md for more detailed descriptions. toolchain_profile=stable diff --git a/utils/dc-chain/README.md b/utils/dc-chain/README.md index 8a6663c5..8156425b 100644 --- a/utils/dc-chain/README.md +++ b/utils/dc-chain/README.md @@ -102,9 +102,11 @@ The following toolchain profiles are available for users to select in | **stable** | **13.2.0** | **4.3.0** | **2.43** | **8.5.0** | **2.43** | **Tested stable; based on GCC 13.2.0, released 2023-07-27** | | 13.3.0 | 13.3.0 | 4.5.0 | 2.43.1 | 8.5.0 | 2.43.1 | Latest release in the GCC 13 series, released 2024-05-21 | | 14.2.0 | 14.2.0 | 4.5.0 | 2.43.1 | 8.5.0 | 2.43.1 | Latest release in the GCC 14 series, released 2024-08-01 | -| 13.3.1-dev | 13.3.1 (git) | 4.5.0 | 2.43.1 | 8.5.0 | 2.43.1 | Bleeding edge GCC 13 series from git | -| 14.2.1-dev | 14.2.1 (git) | 4.5.0 | 2.43.1 | 8.5.0 | 2.43.1 | Bleeding edge GCC 14 series from git | -| 15.0.1-dev | 15.0.1 (git) | 4.5.0 | 2.43.1 | 8.5.0 | 2.43.1 | Bleeding edge GCC 15 series from git | +| 15.1.0 | 15.1.0 | 4.5.0 | 2.44 | 8.5.0 | 2.44 | Latest release in the GCC 15 series, released 2025-04-25 | +| 13.3.1-dev | 13.3.1 (git) | 4.5.0 | 2.44 | 8.5.0 | 2.44 | Bleeding edge GCC 13 series from git | +| 14.2.1-dev | 14.2.1 (git) | 4.5.0 | 2.44 | 8.5.0 | 2.44 | Bleeding edge GCC 14 series from git | +| 15.1.1-dev | 15.1.1 (git) | 4.5.0 | 2.44 | 8.5.0 | 2.44 | Bleeding edge GCC 15 series from git | +| 16.0.0-dev | 16.0.0 (git) | 4.5.0 | 2.44 | 8.5.0 | 2.44 | Bleeding edge GCC 16 series from git | The **stable** profile is the primary, widely tested target for KallistiOS, and is the most recent toolchain profile known to work with all example programs. @@ -113,7 +115,7 @@ useful in compiling older software. The alternative and development profiles are maintained at a lower priority and are not guaranteed to build, but feel free to open a bug report if issues are encountered building one of these profiles. -As of 2024, the use of any versions of GCC prior to 9.3.0 is deprecated for the +As of 2025, the use of any versions of GCC prior to 9.5.0 is deprecated for the SH4 toolchain, and only GCC 8 series is supported for use with the ARM toolchain. diff --git a/utils/dc-chain/doc/CHANGELOG.md b/utils/dc-chain/doc/CHANGELOG.md index fb2fa151..86534f89 100644 --- a/utils/dc-chain/doc/CHANGELOG.md +++ b/utils/dc-chain/doc/CHANGELOG.md @@ -2,6 +2,7 @@ | Date<br/>_____________ | Author(s)<br/>_____________ | Changes<br/>_____________ | |:-----------------------|:----------------------------|---------------------------| +| 2025-04-18 | Eric Fradella | Add 15.1.0 release profile and 15.1.1/16.0.0 dev profiles. All dev profiles upgraded to Binutils 2.44 and GDB 16.2 | | 2025-02-19 | Eric Fradella | Remove profiles and patches for older toolchains (9.3.0, 10.5.0, 11.5.0, 12.4.0) and Rust dev toolchains. Support for Newlib versions prior to 4.x now deprecated. | | 2025-01-26 | Mickaël Cardoso | Update documentations. | | 2025-01-05 | Eric Fradella | Add support and update toolchain profiles for Newlib 4.5.0, Binutils 2.43.1, and GDB 15.2. | diff --git a/utils/dc-chain/patches/gcc-14.2.1-kos.diff b/utils/dc-chain/patches/gcc-14.2.1-kos.diff index a9033017..a3f559bb 100644 --- a/utils/dc-chain/patches/gcc-14.2.1-kos.diff +++ b/utils/dc-chain/patches/gcc-14.2.1-kos.diff @@ -1,6 +1,6 @@ diff -ruN gcc-14.2.1/gcc/config/sh/sh-c.cc gcc-14.2.1-kos/gcc/config/sh/sh-c.cc ---- gcc-14.2.1/gcc/config/sh/sh-c.cc 2024-01-04 16:01:33.790051712 -0600 -+++ gcc-14.2.1-kos/gcc/config/sh/sh-c.cc 2024-01-04 16:01:42.910094466 -0600 +--- gcc-14.2.1/gcc/config/sh/sh-c.cc 2025-04-18 16:01:33.790051712 -0600 ++++ gcc-14.2.1-kos/gcc/config/sh/sh-c.cc 2025-04-18 16:01:42.910094466 -0600 @@ -141,4 +141,11 @@ cpp_define_formatted (pfile, "__SH_ATOMIC_MODEL_%s__", @@ -14,8 +14,8 @@ diff -ruN gcc-14.2.1/gcc/config/sh/sh-c.cc gcc-14.2.1-kos/gcc/config/sh/sh-c.cc + builtin_define ("__KOS_GCC_32MB__"); } diff -ruN gcc-14.2.1/gcc/configure gcc-14.2.1-kos/gcc/configure ---- gcc-14.2.1/gcc/configure 2024-01-04 16:01:33.801051764 -0600 -+++ gcc-14.2.1-kos/gcc/configure 2024-01-04 16:01:42.913094480 -0600 +--- gcc-14.2.1/gcc/configure 2025-04-18 16:01:33.801051764 -0600 ++++ gcc-14.2.1-kos/gcc/configure 2025-04-18 16:01:42.913094480 -0600 @@ -13220,7 +13220,7 @@ target_thread_file='single' ;; @@ -26,8 +26,8 @@ diff -ruN gcc-14.2.1/gcc/configure gcc-14.2.1-kos/gcc/configure ;; *) diff -ruN gcc-14.2.1/libgcc/config/sh/t-sh gcc-14.2.1-kos/libgcc/config/sh/t-sh ---- gcc-14.2.1/libgcc/config/sh/t-sh 2024-01-04 16:01:37.134067388 -0600 -+++ gcc-14.2.1-kos/libgcc/config/sh/t-sh 2024-01-04 16:01:42.914094485 -0600 +--- gcc-14.2.1/libgcc/config/sh/t-sh 2025-04-18 16:01:37.134067388 -0600 ++++ gcc-14.2.1-kos/libgcc/config/sh/t-sh 2025-04-18 16:01:42.914094485 -0600 @@ -23,6 +23,8 @@ $(LIB1ASMFUNCS_CACHE) LIB1ASMFUNCS_CACHE = _ic_invalidate _ic_invalidate_array @@ -38,9 +38,9 @@ diff -ruN gcc-14.2.1/libgcc/config/sh/t-sh gcc-14.2.1-kos/libgcc/config/sh/t-sh $(gcc_compile) -c $< diff -ruN gcc-14.2.1/libgcc/configure gcc-14.2.1-kos/libgcc/configure ---- gcc-14.2.1/libgcc/configure 2024-01-04 16:01:37.139067412 -0600 -+++ gcc-14.2.1-kos/libgcc/configure 2024-01-04 16:01:42.914094485 -0600 -@@ -5763,6 +5763,7 @@ +--- gcc-14.2.1/libgcc/configure 2025-04-18 16:01:37.139067412 -0600 ++++ gcc-14.2.1-kos/libgcc/configure 2025-04-18 16:01:42.914094485 -0600 +@@ -5764,6 +5764,7 @@ tpf) thread_header=config/s390/gthr-tpf.h ;; vxworks) thread_header=config/gthr-vxworks.h ;; win32) thread_header=config/i386/gthr-win32.h ;; @@ -49,8 +49,8 @@ diff -ruN gcc-14.2.1/libgcc/configure gcc-14.2.1-kos/libgcc/configure esac diff -ruN gcc-14.2.1/libobjc/configure gcc-14.2.1-kos/libobjc/configure ---- gcc-14.2.1/libobjc/configure 2024-01-04 16:01:37.499069099 -0600 -+++ gcc-14.2.1-kos/libobjc/configure 2024-01-04 16:01:42.915094489 -0600 +--- gcc-14.2.1/libobjc/configure 2025-04-18 16:01:37.499069099 -0600 ++++ gcc-14.2.1-kos/libobjc/configure 2025-04-18 16:01:42.915094489 -0600 @@ -2924,11 +2924,9 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -64,8 +64,8 @@ diff -ruN gcc-14.2.1/libobjc/configure gcc-14.2.1-kos/libobjc/configure return 0; } diff -ruN gcc-14.2.1/libobjc/Makefile.in gcc-14.2.1-kos/libobjc/Makefile.in ---- gcc-14.2.1/libobjc/Makefile.in 2024-01-04 16:01:37.499069099 -0600 -+++ gcc-14.2.1-kos/libobjc/Makefile.in 2024-01-04 16:01:42.915094489 -0600 +--- gcc-14.2.1/libobjc/Makefile.in 2025-04-18 16:01:37.499069099 -0600 ++++ gcc-14.2.1-kos/libobjc/Makefile.in 2025-04-18 16:01:42.915094489 -0600 @@ -308,14 +308,16 @@ $(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) @@ -97,8 +97,8 @@ diff -ruN gcc-14.2.1/libobjc/Makefile.in gcc-14.2.1-kos/libobjc/Makefile.in mostlyclean: -$(LIBTOOL_CLEAN) rm -f libobjc$(libsuffix).la libobjc_gc$(libsuffix).la *.lo diff -ruN gcc-14.2.1/libstdc++-v3/config/cpu/sh/atomicity.h gcc-14.2.1-kos/libstdc++-v3/config/cpu/sh/atomicity.h ---- gcc-14.2.1/libstdc++-v3/config/cpu/sh/atomicity.h 2024-01-04 16:01:37.608069611 -0600 -+++ gcc-14.2.1-kos/libstdc++-v3/config/cpu/sh/atomicity.h 2024-01-04 16:01:42.916094494 -0600 +--- gcc-14.2.1/libstdc++-v3/config/cpu/sh/atomicity.h 2025-04-18 16:01:37.608069611 -0600 ++++ gcc-14.2.1-kos/libstdc++-v3/config/cpu/sh/atomicity.h 2025-04-18 16:01:42.916094494 -0600 @@ -22,14 +22,40 @@ // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // <http://www.gnu.org/licenses/>. @@ -150,8 +150,8 @@ diff -ruN gcc-14.2.1/libstdc++-v3/config/cpu/sh/atomicity.h gcc-14.2.1-kos/libst +_GLIBCXX_END_NAMESPACE_VERSION +} // namespace diff -ruN gcc-14.2.1/libstdc++-v3/configure gcc-14.2.1-kos/libstdc++-v3/configure ---- gcc-14.2.1/libstdc++-v3/configure 2024-01-04 16:01:37.616069648 -0600 -+++ gcc-14.2.1-kos/libstdc++-v3/configure 2024-01-04 16:01:42.919094508 -0600 +--- gcc-14.2.1/libstdc++-v3/configure 2025-04-18 16:01:37.616069648 -0600 ++++ gcc-14.2.1-kos/libstdc++-v3/configure 2025-04-18 16:01:42.919094508 -0600 @@ -15974,6 +15974,7 @@ tpf) thread_header=config/s390/gthr-tpf.h ;; vxworks) thread_header=config/gthr-vxworks.h ;; diff --git a/utils/dc-chain/patches/gcc-15.0.1-kos.diff b/utils/dc-chain/patches/gcc-15.1.0-kos.diff similarity index 73% copy from utils/dc-chain/patches/gcc-15.0.1-kos.diff copy to utils/dc-chain/patches/gcc-15.1.0-kos.diff index d1ccd1fe..05b68919 100644 --- a/utils/dc-chain/patches/gcc-15.0.1-kos.diff +++ b/utils/dc-chain/patches/gcc-15.1.0-kos.diff @@ -1,6 +1,6 @@ -diff -ruN gcc-15.0.1/gcc/config/sh/sh-c.cc gcc-15.0.1-kos/gcc/config/sh/sh-c.cc ---- gcc-15.0.1/gcc/config/sh/sh-c.cc 2024-01-04 16:01:33.790051712 -0600 -+++ gcc-15.0.1-kos/gcc/config/sh/sh-c.cc 2024-01-04 16:01:42.910094466 -0600 +diff -ruN gcc-15.1.0/gcc/config/sh/sh-c.cc gcc-15.1.0-kos/gcc/config/sh/sh-c.cc +--- gcc-15.1.0/gcc/config/sh/sh-c.cc 2025-04-18 16:01:33.790051712 -0600 ++++ gcc-15.1.0-kos/gcc/config/sh/sh-c.cc 2025-04-18 16:01:42.910094466 -0600 @@ -141,4 +141,11 @@ cpp_define_formatted (pfile, "__SH_ATOMIC_MODEL_%s__", @@ -13,10 +13,10 @@ diff -ruN gcc-15.0.1/gcc/config/sh/sh-c.cc gcc-15.0.1-kos/gcc/config/sh/sh-c.cc + /* Toolchain supports setting up stack for 32MB */ + builtin_define ("__KOS_GCC_32MB__"); } -diff -ruN gcc-15.0.1/gcc/configure gcc-15.0.1-kos/gcc/configure ---- gcc-15.0.1/gcc/configure 2024-01-04 16:01:33.801051764 -0600 -+++ gcc-15.0.1-kos/gcc/configure 2024-01-04 16:01:42.913094480 -0600 -@@ -13122,7 +13122,7 @@ +diff -ruN gcc-15.1.0/gcc/configure gcc-15.1.0-kos/gcc/configure +--- gcc-15.1.0/gcc/configure 2025-04-18 16:01:33.801051764 -0600 ++++ gcc-15.1.0-kos/gcc/configure 2025-04-18 16:01:42.913094480 -0600 +@@ -13165,7 +13165,7 @@ target_thread_file='single' ;; aix | dce | lynx | mipssde | posix | rtems | \ @@ -25,9 +25,9 @@ diff -ruN gcc-15.0.1/gcc/configure gcc-15.0.1-kos/gcc/configure target_thread_file=${enable_threads} ;; *) -diff -ruN gcc-15.0.1/libgcc/config/sh/t-sh gcc-15.0.1-kos/libgcc/config/sh/t-sh ---- gcc-15.0.1/libgcc/config/sh/t-sh 2024-01-04 16:01:37.134067388 -0600 -+++ gcc-15.0.1-kos/libgcc/config/sh/t-sh 2024-01-04 16:01:42.914094485 -0600 +diff -ruN gcc-15.1.0/libgcc/config/sh/t-sh gcc-15.1.0-kos/libgcc/config/sh/t-sh +--- gcc-15.1.0/libgcc/config/sh/t-sh 2025-04-18 16:01:37.134067388 -0600 ++++ gcc-15.1.0-kos/libgcc/config/sh/t-sh 2025-04-18 16:01:42.914094485 -0600 @@ -23,6 +23,8 @@ $(LIB1ASMFUNCS_CACHE) LIB1ASMFUNCS_CACHE = _ic_invalidate _ic_invalidate_array @@ -37,9 +37,9 @@ diff -ruN gcc-15.0.1/libgcc/config/sh/t-sh gcc-15.0.1-kos/libgcc/config/sh/t-sh crt1.o: $(srcdir)/config/sh/crt1.S $(gcc_compile) -c $< -diff -ruN gcc-15.0.1/libgcc/configure gcc-15.0.1-kos/libgcc/configure ---- gcc-15.0.1/libgcc/configure 2024-01-04 16:01:37.139067412 -0600 -+++ gcc-15.0.1-kos/libgcc/configure 2024-01-04 16:01:42.914094485 -0600 +diff -ruN gcc-15.1.0/libgcc/configure gcc-15.1.0-kos/libgcc/configure +--- gcc-15.1.0/libgcc/configure 2025-04-18 16:01:37.139067412 -0600 ++++ gcc-15.1.0-kos/libgcc/configure 2025-04-18 16:01:42.914094485 -0600 @@ -5733,6 +5733,7 @@ tpf) thread_header=config/s390/gthr-tpf.h ;; vxworks) thread_header=config/gthr-vxworks.h ;; @@ -48,9 +48,9 @@ diff -ruN gcc-15.0.1/libgcc/configure gcc-15.0.1-kos/libgcc/configure mcf) thread_header=config/i386/gthr-mcf.h ;; esac -diff -ruN gcc-15.0.1/libobjc/configure gcc-15.0.1-kos/libobjc/configure ---- gcc-15.0.1/libobjc/configure 2024-01-04 16:01:37.499069099 -0600 -+++ gcc-15.0.1-kos/libobjc/configure 2024-01-04 16:01:42.915094489 -0600 +diff -ruN gcc-15.1.0/libobjc/configure gcc-15.1.0-kos/libobjc/configure +--- gcc-15.1.0/libobjc/configure 2025-04-18 16:01:37.499069099 -0600 ++++ gcc-15.1.0-kos/libobjc/configure 2025-04-18 16:01:42.915094489 -0600 @@ -2924,11 +2924,9 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -63,9 +63,9 @@ diff -ruN gcc-15.0.1/libobjc/configure gcc-15.0.1-kos/libobjc/configure ; return 0; } -diff -ruN gcc-15.0.1/libobjc/Makefile.in gcc-15.0.1-kos/libobjc/Makefile.in ---- gcc-15.0.1/libobjc/Makefile.in 2024-01-04 16:01:37.499069099 -0600 -+++ gcc-15.0.1-kos/libobjc/Makefile.in 2024-01-04 16:01:42.915094489 -0600 +diff -ruN gcc-15.1.0/libobjc/Makefile.in gcc-15.1.0-kos/libobjc/Makefile.in +--- gcc-15.1.0/libobjc/Makefile.in 2025-04-18 16:01:37.499069099 -0600 ++++ gcc-15.1.0-kos/libobjc/Makefile.in 2025-04-18 16:01:42.915094489 -0600 @@ -308,14 +308,16 @@ $(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) @@ -96,9 +96,9 @@ diff -ruN gcc-15.0.1/libobjc/Makefile.in gcc-15.0.1-kos/libobjc/Makefile.in mostlyclean: -$(LIBTOOL_CLEAN) rm -f libobjc$(libsuffix).la libobjc_gc$(libsuffix).la *.lo -diff -ruN gcc-15.0.1/libstdc++-v3/config/cpu/sh/atomicity.h gcc-15.0.1-kos/libstdc++-v3/config/cpu/sh/atomicity.h ---- gcc-15.0.1/libstdc++-v3/config/cpu/sh/atomicity.h 2024-01-04 16:01:37.608069611 -0600 -+++ gcc-15.0.1-kos/libstdc++-v3/config/cpu/sh/atomicity.h 2024-01-04 16:01:42.916094494 -0600 +diff -ruN gcc-15.1.0/libstdc++-v3/config/cpu/sh/atomicity.h gcc-15.1.0-kos/libstdc++-v3/config/cpu/sh/atomicity.h +--- gcc-15.1.0/libstdc++-v3/config/cpu/sh/atomicity.h 2025-04-18 16:01:37.608069611 -0600 ++++ gcc-15.1.0-kos/libstdc++-v3/config/cpu/sh/atomicity.h 2025-04-18 16:01:42.916094494 -0600 @@ -22,14 +22,40 @@ // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // <http://www.gnu.org/licenses/>. @@ -149,9 +149,9 @@ diff -ruN gcc-15.0.1/libstdc++-v3/config/cpu/sh/atomicity.h gcc-15.0.1-kos/libst + +_GLIBCXX_END_NAMESPACE_VERSION +} // namespace -diff -ruN gcc-15.0.1/libstdc++-v3/configure gcc-15.0.1-kos/libstdc++-v3/configure ---- gcc-15.0.1/libstdc++-v3/configure 2024-01-04 16:01:37.616069648 -0600 -+++ gcc-15.0.1-kos/libstdc++-v3/configure 2024-01-04 16:01:42.919094508 -0600 +diff -ruN gcc-15.1.0/libstdc++-v3/configure gcc-15.1.0-kos/libstdc++-v3/configure +--- gcc-15.1.0/libstdc++-v3/configure 2025-04-18 16:01:37.616069648 -0600 ++++ gcc-15.1.0-kos/libstdc++-v3/configure 2025-04-18 16:01:42.919094508 -0600 @@ -15974,6 +15974,7 @@ tpf) thread_header=config/s390/gthr-tpf.h ;; vxworks) thread_header=config/gthr-vxworks.h ;; diff --git a/utils/dc-chain/patches/gcc-15.0.1-kos.diff b/utils/dc-chain/patches/gcc-15.1.1-kos.diff similarity index 73% copy from utils/dc-chain/patches/gcc-15.0.1-kos.diff copy to utils/dc-chain/patches/gcc-15.1.1-kos.diff index d1ccd1fe..adb10945 100644 --- a/utils/dc-chain/patches/gcc-15.0.1-kos.diff +++ b/utils/dc-chain/patches/gcc-15.1.1-kos.diff @@ -1,6 +1,6 @@ -diff -ruN gcc-15.0.1/gcc/config/sh/sh-c.cc gcc-15.0.1-kos/gcc/config/sh/sh-c.cc ---- gcc-15.0.1/gcc/config/sh/sh-c.cc 2024-01-04 16:01:33.790051712 -0600 -+++ gcc-15.0.1-kos/gcc/config/sh/sh-c.cc 2024-01-04 16:01:42.910094466 -0600 +diff -ruN gcc-15.1.1/gcc/config/sh/sh-c.cc gcc-15.1.1-kos/gcc/config/sh/sh-c.cc +--- gcc-15.1.1/gcc/config/sh/sh-c.cc 2025-04-18 16:01:33.790051712 -0600 ++++ gcc-15.1.1-kos/gcc/config/sh/sh-c.cc 2025-04-18 16:01:42.910094466 -0600 @@ -141,4 +141,11 @@ cpp_define_formatted (pfile, "__SH_ATOMIC_MODEL_%s__", @@ -13,10 +13,10 @@ diff -ruN gcc-15.0.1/gcc/config/sh/sh-c.cc gcc-15.0.1-kos/gcc/config/sh/sh-c.cc + /* Toolchain supports setting up stack for 32MB */ + builtin_define ("__KOS_GCC_32MB__"); } -diff -ruN gcc-15.0.1/gcc/configure gcc-15.0.1-kos/gcc/configure ---- gcc-15.0.1/gcc/configure 2024-01-04 16:01:33.801051764 -0600 -+++ gcc-15.0.1-kos/gcc/configure 2024-01-04 16:01:42.913094480 -0600 -@@ -13122,7 +13122,7 @@ +diff -ruN gcc-15.1.1/gcc/configure gcc-15.1.1-kos/gcc/configure +--- gcc-15.1.1/gcc/configure 2025-04-18 16:01:33.801051764 -0600 ++++ gcc-15.1.1-kos/gcc/configure 2025-04-18 16:01:42.913094480 -0600 +@@ -13165,7 +13165,7 @@ target_thread_file='single' ;; aix | dce | lynx | mipssde | posix | rtems | \ @@ -25,9 +25,9 @@ diff -ruN gcc-15.0.1/gcc/configure gcc-15.0.1-kos/gcc/configure target_thread_file=${enable_threads} ;; *) -diff -ruN gcc-15.0.1/libgcc/config/sh/t-sh gcc-15.0.1-kos/libgcc/config/sh/t-sh ---- gcc-15.0.1/libgcc/config/sh/t-sh 2024-01-04 16:01:37.134067388 -0600 -+++ gcc-15.0.1-kos/libgcc/config/sh/t-sh 2024-01-04 16:01:42.914094485 -0600 +diff -ruN gcc-15.1.1/libgcc/config/sh/t-sh gcc-15.1.1-kos/libgcc/config/sh/t-sh +--- gcc-15.1.1/libgcc/config/sh/t-sh 2025-04-18 16:01:37.134067388 -0600 ++++ gcc-15.1.1-kos/libgcc/config/sh/t-sh 2025-04-18 16:01:42.914094485 -0600 @@ -23,6 +23,8 @@ $(LIB1ASMFUNCS_CACHE) LIB1ASMFUNCS_CACHE = _ic_invalidate _ic_invalidate_array @@ -37,9 +37,9 @@ diff -ruN gcc-15.0.1/libgcc/config/sh/t-sh gcc-15.0.1-kos/libgcc/config/sh/t-sh crt1.o: $(srcdir)/config/sh/crt1.S $(gcc_compile) -c $< -diff -ruN gcc-15.0.1/libgcc/configure gcc-15.0.1-kos/libgcc/configure ---- gcc-15.0.1/libgcc/configure 2024-01-04 16:01:37.139067412 -0600 -+++ gcc-15.0.1-kos/libgcc/configure 2024-01-04 16:01:42.914094485 -0600 +diff -ruN gcc-15.1.1/libgcc/configure gcc-15.1.1-kos/libgcc/configure +--- gcc-15.1.1/libgcc/configure 2025-04-18 16:01:37.139067412 -0600 ++++ gcc-15.1.1-kos/libgcc/configure 2025-04-18 16:01:42.914094485 -0600 @@ -5733,6 +5733,7 @@ tpf) thread_header=config/s390/gthr-tpf.h ;; vxworks) thread_header=config/gthr-vxworks.h ;; @@ -48,9 +48,9 @@ diff -ruN gcc-15.0.1/libgcc/configure gcc-15.0.1-kos/libgcc/configure mcf) thread_header=config/i386/gthr-mcf.h ;; esac -diff -ruN gcc-15.0.1/libobjc/configure gcc-15.0.1-kos/libobjc/configure ---- gcc-15.0.1/libobjc/configure 2024-01-04 16:01:37.499069099 -0600 -+++ gcc-15.0.1-kos/libobjc/configure 2024-01-04 16:01:42.915094489 -0600 +diff -ruN gcc-15.1.1/libobjc/configure gcc-15.1.1-kos/libobjc/configure +--- gcc-15.1.1/libobjc/configure 2025-04-18 16:01:37.499069099 -0600 ++++ gcc-15.1.1-kos/libobjc/configure 2025-04-18 16:01:42.915094489 -0600 @@ -2924,11 +2924,9 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -63,9 +63,9 @@ diff -ruN gcc-15.0.1/libobjc/configure gcc-15.0.1-kos/libobjc/configure ; return 0; } -diff -ruN gcc-15.0.1/libobjc/Makefile.in gcc-15.0.1-kos/libobjc/Makefile.in ---- gcc-15.0.1/libobjc/Makefile.in 2024-01-04 16:01:37.499069099 -0600 -+++ gcc-15.0.1-kos/libobjc/Makefile.in 2024-01-04 16:01:42.915094489 -0600 +diff -ruN gcc-15.1.1/libobjc/Makefile.in gcc-15.1.1-kos/libobjc/Makefile.in +--- gcc-15.1.1/libobjc/Makefile.in 2025-04-18 16:01:37.499069099 -0600 ++++ gcc-15.1.1-kos/libobjc/Makefile.in 2025-04-18 16:01:42.915094489 -0600 @@ -308,14 +308,16 @@ $(srcdir)/aclocal.m4: @MAINT@ $(aclocal_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) @@ -96,9 +96,9 @@ diff -ruN gcc-15.0.1/libobjc/Makefile.in gcc-15.0.1-kos/libobjc/Makefile.in mostlyclean: -$(LIBTOOL_CLEAN) rm -f libobjc$(libsuffix).la libobjc_gc$(libsuffix).la *.lo -diff -ruN gcc-15.0.1/libstdc++-v3/config/cpu/sh/atomicity.h gcc-15.0.1-kos/libstdc++-v3/config/cpu/sh/atomicity.h ---- gcc-15.0.1/libstdc++-v3/config/cpu/sh/atomicity.h 2024-01-04 16:01:37.608069611 -0600 -+++ gcc-15.0.1-kos/libstdc++-v3/config/cpu/sh/atomicity.h 2024-01-04 16:01:42.916094494 -0600 +diff -ruN gcc-15.1.1/libstdc++-v3/config/cpu/sh/atomicity.h gcc-15.1.1-kos/libstdc++-v3/config/cpu/sh/atomicity.h +--- gcc-15.1.1/libstdc++-v3/config/cpu/sh/atomicity.h 2025-04-18 16:01:37.608069611 -0600 ++++ gcc-15.1.1-kos/libstdc++-v3/config/cpu/sh/atomicity.h 2025-04-18 16:01:42.916094494 -0600 @@ -22,14 +22,40 @@ // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see // <http://www.gnu.org/licenses/>. @@ -149,9 +149,9 @@ diff -ruN gcc-15.0.1/libstdc++-v3/config/cpu/sh/atomicity.h gcc-15.0.1-kos/libst + +_GLIBCXX_END_NAMESPACE_VERSION +} // namespace -diff -ruN gcc-15.0.1/libstdc++-v3/configure gcc-15.0.1-kos/libstdc++-v3/configure ---- gcc-15.0.1/libstdc++-v3/configure 2024-01-04 16:01:37.616069648 -0600 -+++ gcc-15.0.1-kos/libstdc++-v3/configure 2024-01-04 16:01:42.919094508 -0600 +diff -ruN gcc-15.1.1/libstdc++-v3/configure gcc-15.1.1-kos/libstdc++-v3/configure +--- gcc-15.1.1/libstdc++-v3/configure 2025-04-18 16:01:37.616069648 -0600 ++++ gcc-15.1.1-kos/libstdc++-v3/configure 2025-04-18 16:01:42.919094508 -0600 @@ -15974,6 +15974,7 @@ tpf) thread_header=config/s390/gthr-tpf.h ;; vxworks) thread_header=config/gthr-vxworks.h ;; diff --git a/utils/dc-chain/patches/gcc-15.0.1-kos.diff b/utils/dc-chain/patches/gcc-16.0.0-kos.diff similarity index 73% rename from utils/dc-chain/patches/gcc-15.0.1-kos.diff rename to utils/dc-chain/patches/gcc-16.0.0-kos.diff index d1ccd1fe..8837af93 100644 --- a/utils/dc-chain/patches/gcc-15.0.1-kos.diff +++ b/utils/dc-chain/patches/gcc-16.0.0-kos.diff @@ -1,6 +1,6 @@ -diff -ruN gcc-15.0.1/gcc/config/sh/sh-c.cc gcc-15.0.1-kos/gcc/config/sh/sh-c.cc ---- gcc-15.0.1/gcc/config/sh/sh-c.cc 2024-01-04 16:01:33.790051712 -0600 -+++ gcc-15.0.1-kos/gcc/config/sh/sh-c.cc 2024-01-04 16:01:42.910094466 -0600 +diff -ruN gcc-16.0.0/gcc/config/sh/sh-c.cc gcc-16.0.0-kos/gcc/config/sh/sh-c.cc +--- gcc-16.0.0/gcc/config/sh/sh-c.cc 2025-04-17 16:01:33.790051712 -0600 ++++ gcc-16.0.0-kos/gcc/config/sh/sh-c.cc 2025-04-17 16:01:42.910094466 -0600 @@ -141,4 +141,11 @@ cpp_define_formatted (pfile, "__SH_ATOMIC_MODEL_%s__", @@ -13,10 +13,10 @@ diff -ruN gcc-15.0.1/gcc/config/sh/sh-c.cc gcc-15.0.1-kos/gcc/config/sh/sh-c.cc + /* Toolchain supports setting up stack for 32MB */ + builtin_define ("__KOS_GCC_32MB__"); } -diff -ruN gcc-15.0.1/gcc/configure gcc-15.0.1-kos/gcc/configure ---- gcc-15.0.1/gcc/configure 2024-01-04 16:01:33.801051764 -0600 -+++ gcc-15.0.1-kos/gcc/configure 2024-01-04 16:01:42.913094480 -0600 -@@ -13122,7 +13122,7 @@ +diff -ruN gcc-16.0.0/gcc/configure gcc-16.0.0-kos/gcc/configure +--- gcc-16.0.0/gcc/configure 2025-04-17 16:01:33.801051764 -0600 ++++ gcc-16.0.0-kos/gcc/configure 2025-04-17 16:01:42.913094480 -0600 +@@ -13165,7 +13165,7 @@ target_thread_file='single' ;; aix | dce | lynx | mipssde | posix | rtems | \ @@ -25,9 +25,9 @@ diff -ruN gcc-15.0.1/gcc/configure gcc-15.0.1-kos/gcc/configure target_thread_file=${enable_threads} ;; *) -diff -ruN gcc-15.0.1/libgcc/config/sh/t-sh gcc-15.0.1-kos/libgcc/config/sh/t-sh ---- gcc-15.0.1/libgcc/config/sh/t-sh 2024-01-04 16:01:37.134067388 -0600 -+++ gcc-15.0.1-kos/libgcc/config/sh/t-sh 2024-01-04 16:01:42.914094485 -0600 +diff -ruN gcc-16.0.0/libgcc/config/sh/t-sh gcc-16.0.0-kos/libgcc/config/sh/t-sh +--- gcc-16.0.0/libgcc/config/sh/t-sh 2025-04-17 16:01:37.134067388 -0600 ++++ gcc-16.0.0-kos/libgcc/config/sh/t-sh 2025-04-17 16:01:42.914094485 -0600 @@ -23,6 +23,8 @@ $(LIB1ASMFUNCS_CACHE) LIB1ASMFUNCS_CACHE = _ic_invalidate _ic_invalidate_array @@ -37,9 +37,9 @@ diff -ruN gcc-15.0.1/libgcc/config/sh/t-sh gcc-15.0.1-kos/libgcc/config/sh/t-sh crt1.o: $(srcdir)/config/sh/crt1.S $(gcc_compile) -c $< -diff -ruN gcc-15.0.1/libgcc/configure gcc-15.0.1-kos/libgcc/configure ---- gcc-15.0.1/libgcc/configure 2024-01-04 16:01:37.139067412 -0600 ...<truncated>... hooks/post-receive -- A pseudo Operating System for the Dreamcast. |