commit: 9bb90d6a35c8ab572372dfcff42a0ecd7dd53952 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Nov 11 19:44:42 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Nov 11 19:44:42 2024 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=9bb90d6a
15.0.0: add 33_all_PR80677-cross-limits.patch I needed this with a cross from amd64->s390 after doing crossdev as normal but then upgrading them to 15 snapshots. Bug: https://gcc.gnu.org/PR80677 Signed-off-by: Sam James <sam <AT> gentoo.org> 15.0.0/gentoo/33_all_PR80677-cross-limits.patch | 38 +++++++++++++++++++++++++ 15.0.0/gentoo/README.history | 4 +++ 2 files changed, 42 insertions(+) diff --git a/15.0.0/gentoo/33_all_PR80677-cross-limits.patch b/15.0.0/gentoo/33_all_PR80677-cross-limits.patch new file mode 100644 index 0000000..3cbef01 --- /dev/null +++ b/15.0.0/gentoo/33_all_PR80677-cross-limits.patch @@ -0,0 +1,38 @@ +https://gcc.gnu.org/PR80677 +--- a/gcc/limitx.h ++++ b/gcc/limitx.h +@@ -29,7 +29,7 @@ + #ifndef _GCC_LIMITS_H_ /* Terminated in limity.h. */ + #define _GCC_LIMITS_H_ + +-#ifndef _LIBC_LIMITS_H_ ++#if !defined(_LIBC_LIMITS_H_) && __has_include_next(<limits.h>) + /* Use "..." so that we find syslimits.h only in this same directory. */ + #include "syslimits.h" + #endif +--- a/gcc/limity.h ++++ b/gcc/limity.h +@@ -3,7 +3,7 @@ + + #else /* not _GCC_LIMITS_H_ */ + +-#ifdef _GCC_NEXT_LIMITS_H ++#if defined(_GCC_NEXT_LIMITS_H) && __has_include_next(<limits.h>) + #include_next <limits.h> /* recurse down to the real one */ + #endif + +--- a/gcc/Makefile.in ++++ b/gcc/Makefile.in +@@ -3344,11 +3344,7 @@ stmp-int-hdrs: $(STMP_FIXINC) $(T_GLIMITS_H) $(T_STDINT_GCC_H) $(USER_H) fixinc_ + sysroot_headers_suffix=`echo $${ml} | sed -e 's/;.*$$//'`; \ + multi_dir=`echo $${ml} | sed -e 's/^[^;]*;//'`; \ + include_dir=include$${multi_dir}; \ +- if $(LIMITS_H_TEST) ; then \ +- cat $(srcdir)/limitx.h $(T_GLIMITS_H) $(srcdir)/limity.h > tmp-xlimits.h; \ +- else \ +- cat $(T_GLIMITS_H) > tmp-xlimits.h; \ +- fi; \ ++ cat $(srcdir)/limitx.h $(T_GLIMITS_H) $(srcdir)/limity.h > tmp-xlimits.h; \ + $(mkinstalldirs) $${include_dir}; \ + chmod a+rx $${include_dir} || true; \ + $(SHELL) $(srcdir)/../move-if-change \ diff --git a/15.0.0/gentoo/README.history b/15.0.0/gentoo/README.history index 25ab12b..dbf2b56 100644 --- a/15.0.0/gentoo/README.history +++ b/15.0.0/gentoo/README.history @@ -1,3 +1,7 @@ +23 11 November 2024 + + + 33_all_PR80677-cross-limits.patch + 22 10 November 2024 + 72_all_PR117476-revert.patch
