summaryrefslogtreecommitdiff
path: root/patches/gcc-16.1.0-x86_64-pc-elf
diff options
context:
space:
mode:
Diffstat (limited to 'patches/gcc-16.1.0-x86_64-pc-elf')
-rw-r--r--patches/gcc-16.1.0-x86_64-pc-elf/0001-platform.patch15
-rw-r--r--patches/gcc-16.1.0-x86_64-pc-elf/0002-libstdc++-ranges.patch36
2 files changed, 51 insertions, 0 deletions
diff --git a/patches/gcc-16.1.0-x86_64-pc-elf/0001-platform.patch b/patches/gcc-16.1.0-x86_64-pc-elf/0001-platform.patch
new file mode 100644
index 0000000..2b7961b
--- /dev/null
+++ b/patches/gcc-16.1.0-x86_64-pc-elf/0001-platform.patch
@@ -0,0 +1,15 @@
+--- /dev/null
++++ gcc/config/i386/t-x86_64-pc-elf
+@@ -0,0 +1,2 @@
++MULTILIB_EXTRA_OPTS += mno-red-zone mcmodel=kernel
++CRTSTUFF_T_CFLAGS = -mno-red-zone -mcmodel=kernel
+--- gcc/config.gcc 2024-08-01 10:17:14.000000000 +0200
++++ gcc/config.gcc 2024-09-16 14:03:02.049140896 +0200
+@@ -1960,6 +1960,7 @@
+ tm_file="${tm_file} i386/unix.h i386/att.h elfos.h newlib-stdint.h i386/i386elf.h"
+ ;;
+ x86_64-*-elf*)
++ tmake_file="${tmake_file} i386/t-x86_64-pc-elf"
+ tm_file="${tm_file} i386/unix.h i386/att.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h"
+ ;;
+ x86_64-*-rtems*)
diff --git a/patches/gcc-16.1.0-x86_64-pc-elf/0002-libstdc++-ranges.patch b/patches/gcc-16.1.0-x86_64-pc-elf/0002-libstdc++-ranges.patch
new file mode 100644
index 0000000..5d06ad2
--- /dev/null
+++ b/patches/gcc-16.1.0-x86_64-pc-elf/0002-libstdc++-ranges.patch
@@ -0,0 +1,36 @@
+--- libstdc++-v3/include/Makefile.am 2026-04-30 10:33:29.000000000 +0200
++++ libstdc++-v3/include/Makefile.am 2026-04-30 17:31:44.158748323 +0200
+@@ -129,6 +129,7 @@
+ ${bits_srcdir}/alloc_traits.h \
+ ${bits_srcdir}/atomic_base.h \
+ ${bits_srcdir}/c++0x_warning.h \
++ ${bits_srcdir}/binders.h \
+ ${bits_srcdir}/boost_concept_check.h \
+ ${bits_srcdir}/concept_check.h \
+ ${bits_srcdir}/char_traits.h \
+@@ -201,7 +202,6 @@
+ ${bits_srcdir}/basic_ios.tcc \
+ ${bits_srcdir}/basic_string.h \
+ ${bits_srcdir}/basic_string.tcc \
+- ${bits_srcdir}/binders.h \
+ ${bits_srcdir}/charconv.h \
+ ${bits_srcdir}/chrono.h \
+ ${bits_srcdir}/chrono_io.h \
+--- libstdc++-v3/include/Makefile.in 2026-04-30 10:33:29.000000000 +0200
++++ libstdc++-v3/include/Makefile.in 2026-04-30 17:31:25.624360666 +0200
+@@ -488,6 +488,7 @@
+ ${bits_srcdir}/atomic_base.h \
+ ${bits_srcdir}/c++0x_warning.h \
+ ${bits_srcdir}/boost_concept_check.h \
++ ${bits_srcdir}/binders.h \
+ ${bits_srcdir}/concept_check.h \
+ ${bits_srcdir}/char_traits.h \
+ ${bits_srcdir}/cpp_type_traits.h \
+@@ -557,7 +558,6 @@
+ @GLIBCXX_HOSTED_TRUE@ ${bits_srcdir}/basic_ios.tcc \
+ @GLIBCXX_HOSTED_TRUE@ ${bits_srcdir}/basic_string.h \
+ @GLIBCXX_HOSTED_TRUE@ ${bits_srcdir}/basic_string.tcc \
+-@GLIBCXX_HOSTED_TRUE@ ${bits_srcdir}/binders.h \
+ @GLIBCXX_HOSTED_TRUE@ ${bits_srcdir}/charconv.h \
+ @GLIBCXX_HOSTED_TRUE@ ${bits_srcdir}/chrono.h \
+ @GLIBCXX_HOSTED_TRUE@ ${bits_srcdir}/chrono_io.h \