[gentoo-commits] proj/gcc-patches:master commit in: 13.3.0/gentoo/

2025-08-21 Thread Sam James
commit: b6f15fbe2df8c9f317ebde782bba04f141c1dded
Author: Sam James  gentoo  org>
AuthorDate: Fri Aug 22 04:58:52 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Aug 22 05:01:01 2025 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=b6f15fbe

13.3.0: backport --enable-host-pie, --enable-host-bind-now

This makes some experiments like -mno-indirect-extern-access much easier.

Requires dropping 09_all_nopie-all-flags.patch which causes a conflict
and is obviously in contradiction to the new patches.

Signed-off-by: Sam James  gentoo.org>

 13.3.0/gentoo/09_all_nopie-all-flags.patch |   18 -
 ...7_all_configure-Implement-enable-host-pie.patch | 1464 
 ..._configure-Implement-enable-host-bind-now.patch |  599 
 13.3.0/gentoo/README.history   |5 +
 4 files changed, 2068 insertions(+), 18 deletions(-)

diff --git a/13.3.0/gentoo/09_all_nopie-all-flags.patch 
b/13.3.0/gentoo/09_all_nopie-all-flags.patch
deleted file mode 100644
index fe1cd80..000
--- a/13.3.0/gentoo/09_all_nopie-all-flags.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-We need to pass NO_PIE_CFLAGS to ALL_* so gcc don't fail when
-we compile it with older gcc and pie.
-
 a/gcc/Makefile.in
-+++ b/gcc/Makefile.in
-@@ -1054,10 +1054,10 @@ ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@)
- ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS)
- 
- # This is the variable to use when using $(COMPILER).
--ALL_COMPILERFLAGS = $(ALL_CXXFLAGS)
-+ALL_COMPILERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS)
- 
- # This is the variable to use when using $(LINKER).
--ALL_LINKERFLAGS = $(ALL_CXXFLAGS)
-+ALL_LINKERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS)
- 
- # Build and host support libraries.
- 

diff --git a/13.3.0/gentoo/97_all_configure-Implement-enable-host-pie.patch 
b/13.3.0/gentoo/97_all_configure-Implement-enable-host-pie.patch
new file mode 100644
index 000..33bbc70
--- /dev/null
+++ b/13.3.0/gentoo/97_all_configure-Implement-enable-host-pie.patch
@@ -0,0 +1,1464 @@
+From 6a974df8a779c8220a41919d118e3cf72829bcb9 Mon Sep 17 00:00:00 2001
+Message-ID: 
<6a974df8a779c8220a41919d118e3cf72829bcb9.1755666309.git@gentoo.org>
+From: Marek Polacek 
+Date: Wed, 3 May 2023 17:06:13 -0400
+Subject: [PATCH 1/2] configure: Implement --enable-host-pie
+
+[ This is my third attempt to add this configure option.  The first
+version was approved but it came too late in the development cycle.
+The second version was also approved, but I had to revert it:
+.
+I've fixed the problem (by moving $(PICFLAG) from INTERNAL_CFLAGS to
+ALL_COMPILERFLAGS).  Another change is that since r13-4536 I no longer
+need to touch Makefile.def, so this patch is simplified. ]
+
+This patch implements the --enable-host-pie configure option which
+makes the compiler executables PIE.  This can be used to enhance
+protection against ROP attacks, and can be viewed as part of a wider
+trend to harden binaries.
+
+It is similar to the option --enable-host-shared, except that --e-h-s
+won't add -shared to the linker flags whereas --e-h-p will add -pie.
+It is different from --enable-default-pie because that option just
+adds an implicit -fPIE/-pie when the compiler is invoked, but the
+compiler itself isn't PIE.
+
+Since r12-5768-gfe7c3ecf, PCH works well with PIE, so there are no PCH
+regressions.
+
+When building the compiler, the build process may use various in-tree
+libraries; these need to be built with -fPIE so that it's possible to
+use them when building a PIE.  For instance, when --with-included-gettext
+is in effect, intl object files must be compiled with -fPIE.  Similarly,
+when building in-tree gmp, isl, mpfr and mpc, they must be compiled with
+-fPIE.
+
+With this patch and --enable-host-pie used to configure gcc:
+
+$ file gcc/cc1{,plus,obj,gm2} gcc/f951 gcc/lto1 gcc/cpp gcc/go1 gcc/rust1 
gcc/gnat1
+gcc/cc1: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), 
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, 
BuildID[sha1]=98e22cde129d304aa6f33e61b1c39e144aeb135e, for GNU/Linux 3.2.0, 
with debug_info, not stripped
+gcc/cc1plus: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), 
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, 
BuildID[sha1]=859d1ea37e43dfe50c18fd4e3dd9a34bb1db8f77, for GNU/Linux 3.2.0, 
with debug_info, not stripped
+gcc/cc1obj:  ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), 
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, 
BuildID[sha1]=1964f8ecee6163182bc26134e2ac1f324816e434, for GNU/Linux 3.2.0, 
with debug_info, not stripped
+gcc/cc1gm2:  ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), 
dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, 
BuildID[sha1]=a396672c7ff913d21855829202e7b02ecf42ff4c, for GNU/Linux 3.2.0, 
with debug_info, not stripped
+gcc/f951:ELF 64-bit LSB pie executable, x86-64, version 1 (GNU

[gentoo-commits] proj/gcc-patches:master commit in: 13.3.0/gentoo/

2025-08-03 Thread Sam James
commit: dee36e2a3bc87096002eb97f0bd6847122bb40b1
Author: Sam James  gentoo  org>
AuthorDate: Sun Aug  3 09:03:36 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Aug  3 09:03:36 2025 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=dee36e2a

13.3.0: backport more build speed improvements

We already have a bunch so what's a few more?

Signed-off-by: Sam James  gentoo.org>

 ...ut-Accelerate-the-place_operands-function.patch |  247 
 ...nemit-Distribute-evenly-to-files-PR111600.patch |  190 +++
 ...g-Split-into-separate-partitions-PR111600.patch | 1360 
 13.3.0/gentoo/README.history   |6 +
 4 files changed, 1803 insertions(+)

diff --git 
a/13.3.0/gentoo/94_all_genoutput-Accelerate-the-place_operands-function.patch 
b/13.3.0/gentoo/94_all_genoutput-Accelerate-the-place_operands-function.patch
new file mode 100644
index 000..7663658
--- /dev/null
+++ 
b/13.3.0/gentoo/94_all_genoutput-Accelerate-the-place_operands-function.patch
@@ -0,0 +1,247 @@
+From 6b737d8e61fb341317c2cad4dbd68a9eb156c1d4 Mon Sep 17 00:00:00 2001
+Message-ID: 
<6b737d8e61fb341317c2cad4dbd68a9eb156c1d4.1754207024.git@gentoo.org>
+From: Xianmiao Qu 
+Date: Wed, 22 May 2024 15:25:16 +0800
+Subject: [PATCH 1/3] genoutput: Accelerate the place_operands function.
+
+With the increase in the number of modes and patterns for some
+backend architectures, the place_operands function becomes a
+bottleneck int the speed of genoutput, and may even become a
+bottleneck int the overall speed of building the GCC project.
+This patch aims to accelerate the place_operands function,
+the optimizations it includes are:
+1. Use a hash table to store operand information,
+   improving the lookup time for the first operand.
+2. Move mode comparison to the beginning to avoid the scenarios of most strcmp.
+
+I tested the speed improvements for the following backends,
+   Improvement Ratio
+x86_64 197.9%
+aarch64954.5%
+riscv  2578.6%
+If the build machine is slow, then this improvement can save a lot of time.
+
+I tested the genoutput output for x86_64/aarch64/riscv backends,
+and there was no difference compared to before the optimization,
+so this shouldn't introduce any functional issues.
+
+gcc/
+   * genoutput.cc (struct operand_data): Add member 'eq_next' to
+   point to the next member with the same hash value in the
+   hash table.
+   (compare_operands): Move the comparison of the mode to the very
+   beginning to accelerate the comparison of the two operands.
+   (struct operand_data_hasher): New, a class that takes into account
+   the necessary elements for comparing the equality of two operands
+   in its hash value.
+   (operand_data_hasher::hash): New.
+   (operand_data_hasher::equal): New.
+   (operand_datas): New, hash table of konwn pattern operands.
+   (place_operands): Use a hash table instead of traversing the array
+   to find the same operand.
+   (main): Add initialization of the hash table 'operand_datas'.
+
+(cherry picked from commit ca7936f7764116a39d785bb087584805072a3461)
+---
+ gcc/genoutput.cc | 111 +--
+ 1 file changed, 88 insertions(+), 23 deletions(-)
+
+diff --git a/gcc/genoutput.cc b/gcc/genoutput.cc
+index 163e8dfef4ca..b8d41d428028 100644
+--- a/gcc/genoutput.cc
 b/gcc/genoutput.cc
+@@ -91,6 +91,7 @@ along with GCC; see the file COPYING3.  If not see
+ #include "errors.h"
+ #include "read-md.h"
+ #include "gensupport.h"
++#include "hash-table.h"
+ 
+ /* No instruction can have more operands than this.  Sorry for this
+arbitrary limit, but what machine will have an instruction with
+@@ -112,6 +113,8 @@ static int next_operand_number = 1;
+ struct operand_data
+ {
+   struct operand_data *next;
++  /* Point to the next member with the same hash value in the hash table.  */
++  struct operand_data *eq_next;
+   int index;
+   const char *predicate;
+   const char *constraint;
+@@ -127,7 +130,7 @@ struct operand_data
+ 
+ static struct operand_data null_operand =
+ {
+-  0, 0, "", "", E_VOIDmode, 0, 0, 0, 0, 0
++  0, 0, 0, "", "", E_VOIDmode, 0, 0, 0, 0, 0
+ };
+ 
+ static struct operand_data *odata = &null_operand;
+@@ -173,8 +176,8 @@ static void output_operand_data (void);
+ static void output_insn_data (void);
+ static void output_get_insn_name (void);
+ static void scan_operands (class data *, rtx, int, int);
+-static int compare_operands (struct operand_data *,
+-   struct operand_data *);
++static int compare_operands (const struct operand_data *,
++   const struct operand_data *);
+ static void place_operands (class data *);
+ static void process_template (class data *, const char *);
+ static void validate_insn_alternatives (class data *);
+@@ -527,10 +530,18 @@ scan_operands (class data *d, rtx part, int 
this_address_p,
+ /* Compare two operands for

[gentoo-commits] proj/gcc-patches:master commit in: 13.3.0/gentoo/

2025-08-02 Thread Sam James
commit: 2c4fba4e9fc0bbf926deb808d4096fdf45b349fc
Author: Sam James  gentoo  org>
AuthorDate: Sat Aug  2 13:27:26 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Aug  2 13:27:26 2025 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=2c4fba4e

13.3.0: cut patchset 7

Signed-off-by: Sam James  gentoo.org>

 13.3.0/gentoo/README.history | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/13.3.0/gentoo/README.history b/13.3.0/gentoo/README.history
index f6bde9a..3424374 100644
--- a/13.3.0/gentoo/README.history
+++ b/13.3.0/gentoo/README.history
@@ -1,4 +1,4 @@
-7  
+7  2 August 2025
 
- 94_all-libsanitizer-Fix-build-with-glibc-2.42.patch
- 95_all-sanitizer_common-Remove-reference-to-obsolete-termio.patch



[gentoo-commits] proj/gcc-patches:master commit in: 13.3.0/gentoo/

2025-07-30 Thread Sam James
commit: 636d9ed6c929921b4705e9fc9eb3dd3d8ac04bfd
Author: Sam James  gentoo  org>
AuthorDate: Thu Jul 31 01:11:35 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Jul 31 01:11:35 2025 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=636d9ed6

13.3.0: drop upstreamed libsanitizer fixes

Signed-off-by: Sam James  gentoo.org>

 ...ll-libsanitizer-Fix-build-with-glibc-2.42.patch | 82 --
 ...ommon-Remove-reference-to-obsolete-termio.patch | 76 
 13.3.0/gentoo/README.history   |  5 ++
 3 files changed, 5 insertions(+), 158 deletions(-)

diff --git a/13.3.0/gentoo/94_all-libsanitizer-Fix-build-with-glibc-2.42.patch 
b/13.3.0/gentoo/94_all-libsanitizer-Fix-build-with-glibc-2.42.patch
deleted file mode 100644
index 40c3e67..000
--- a/13.3.0/gentoo/94_all-libsanitizer-Fix-build-with-glibc-2.42.patch
+++ /dev/null
@@ -1,82 +0,0 @@
-From faf929fcc361d3ca64c6acb0ee9660c79b5905d2 Mon Sep 17 00:00:00 2001
-Message-ID: 

-From: Florian Weimer 
-Date: Fri, 2 May 2025 17:41:43 +0200
-Subject: [PATCH 1/2] libsanitizer: Fix build with glibc 2.42
-
-The termio structure will be removed from glibc 2.42.  It has
-been deprecated since the late 80s/early 90s.
-
-Cherry-picked from LLVM commit 59978b21ad9c65276ee8e14f26759691b8a65763
-("[sanitizer_common] Remove interceptors for deprecated struct termio
-(#137403)").
-
-Co-Authored-By: Tom Stellard 
-
-libsanitizer/
-
-   * sanitizer_common/sanitizer_common_interceptors_ioctl.inc: Cherry
-   picked from LLVM commit 59978b21ad9c65276ee8e14f26759691b8a65763.
-   * sanitizer_common/sanitizer_platform_limits_posix.cpp: Likewise.
-   * sanitizer_common/sanitizer_platform_limits_posix.h: Likewise.
-
-(cherry picked from commit 1789c57dc97ea2f9819ef89e28bf17208b6208e7)

- .../sanitizer_common_interceptors_ioctl.inc   | 8 
- .../sanitizer_common/sanitizer_platform_limits_posix.cpp  | 3 ---
- .../sanitizer_common/sanitizer_platform_limits_posix.h| 1 -
- 3 files changed, 12 deletions(-)
-
-diff --git 
a/libsanitizer/sanitizer_common/sanitizer_common_interceptors_ioctl.inc 
b/libsanitizer/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
-index 49ec4097c900..dda11daa77f4 100644
 a/libsanitizer/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
-+++ b/libsanitizer/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
-@@ -338,17 +338,9 @@ static void ioctl_table_fill() {
-   _(SOUND_PCM_WRITE_CHANNELS, WRITE, sizeof(int));
-   _(SOUND_PCM_WRITE_FILTER, WRITE, sizeof(int));
-   _(TCFLSH, NONE, 0);
--#if SANITIZER_GLIBC
--  _(TCGETA, WRITE, struct_termio_sz);
--#endif
-   _(TCGETS, WRITE, struct_termios_sz);
-   _(TCSBRK, NONE, 0);
-   _(TCSBRKP, NONE, 0);
--#if SANITIZER_GLIBC
--  _(TCSETA, READ, struct_termio_sz);
--  _(TCSETAF, READ, struct_termio_sz);
--  _(TCSETAW, READ, struct_termio_sz);
--#endif
-   _(TCSETS, READ, struct_termios_sz);
-   _(TCSETSF, READ, struct_termios_sz);
-   _(TCSETSW, READ, struct_termios_sz);
-diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp 
b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-index c85cf1626a75..c13811e39a44 100644
 a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
-@@ -467,9 +467,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
-   unsigned struct_input_id_sz = sizeof(struct input_id);
-   unsigned struct_mtpos_sz = sizeof(struct mtpos);
-   unsigned struct_rtentry_sz = sizeof(struct rtentry);
--#if SANITIZER_GLIBC || SANITIZER_ANDROID
--  unsigned struct_termio_sz = sizeof(struct termio);
--#endif
-   unsigned struct_vt_consize_sz = sizeof(struct vt_consize);
-   unsigned struct_vt_sizes_sz = sizeof(struct vt_sizes);
-   unsigned struct_vt_stat_sz = sizeof(struct vt_stat);
-diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h 
b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-index 44dd3d9e22d1..45c1e1302f8f 100644
 a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h
-@@ -998,7 +998,6 @@ extern unsigned struct_hd_geometry_sz;
- extern unsigned struct_input_absinfo_sz;
- extern unsigned struct_input_id_sz;
- extern unsigned struct_mtpos_sz;
--extern unsigned struct_termio_sz;
- extern unsigned struct_vt_consize_sz;
- extern unsigned struct_vt_sizes_sz;
- extern unsigned struct_vt_stat_sz;
-
-base-commit: e8e9c25cbaee08f54b7be3051ba5c444a042a958
--- 
-2.50.1
-

diff --git 
a/13.3.0/gentoo/95_all-sanitizer_common-Remove-reference-to-obsolete-termio.patch
 
b/13.3.0/gentoo/95_all-sanitizer_common-Remove-reference-to-obsolete-termio.patch
deleted file mode 100644
index 589c948..000
--- 
a/13.3.0/gentoo/95_all-sanitizer_common-Remove-reference-to-obsolete-termio.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-Fr

[gentoo-commits] proj/gcc-patches:master commit in: 13.3.0/gentoo/

2025-07-25 Thread Sam James
commit: 1c1cc4bbe7f7ae10bf28c09b4e6142a2c481270a
Author: Sam James  gentoo  org>
AuthorDate: Fri Jul 25 21:00:40 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jul 25 21:02:25 2025 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=1c1cc4bb

13.3.0: cut patchset 6 w/ glibc-2.42 libsanitizer fixes

Bug: https://bugs.gentoo.org/953044
Signed-off-by: Sam James  gentoo.org>

 ...h-Reject-non-ssa-name-min-invariants-in-g.patch | 288 -
 ...ll-libsanitizer-Fix-build-with-glibc-2.42.patch |  82 ++
 ...ommon-Remove-reference-to-obsolete-termio.patch |  76 ++
 13.3.0/gentoo/README.history   |   7 +-
 4 files changed, 164 insertions(+), 289 deletions(-)

diff --git 
a/13.3.0/gentoo/32_all_Revert-match-Reject-non-ssa-name-min-invariants-in-g.patch
 
b/13.3.0/gentoo/32_all_Revert-match-Reject-non-ssa-name-min-invariants-in-g.patch
index 76f40ec..9e262d3 100644
--- 
a/13.3.0/gentoo/32_all_Revert-match-Reject-non-ssa-name-min-invariants-in-g.patch
+++ 
b/13.3.0/gentoo/32_all_Revert-match-Reject-non-ssa-name-min-invariants-in-g.patch
@@ -53,294 +53,6 @@ index 3bc26ecd8b83..
 -}
 
 base-commit: e8e9c25cbaee08f54b7be3051ba5c444a042a958
-prerequisite-patch-id: 4000f228fd3953eb9877fab7b9493cd86f6bc771
-prerequisite-patch-id: d61e09af01bb7358c1df6abf5d2c4b7849ab4676
-prerequisite-patch-id: 54a4cfb376547141937d7e321d7b4554c1e3afe7
-prerequisite-patch-id: f33957dc1b64edeb4a61c8cab68f8d3d83364a29
-prerequisite-patch-id: 7ce45196fe80b18512fadb50fc103fab4428d4fc
-prerequisite-patch-id: 91222abe57fbe0d242ef3c8c9d2b3c90434ca452
-prerequisite-patch-id: c121f50ebb95ace4d0265345daa0e7dc7b7f32e3
-prerequisite-patch-id: 10defea0d9b839e7a1dbacb051fa9228c4fb4625
-prerequisite-patch-id: 19438a1e2a41164df78f94a8c4ccd7720201b546
-prerequisite-patch-id: 6bc290482177e8770fcc08796a829b92a889b8c8
-prerequisite-patch-id: 51d285ed9ee0440cf1b3c7e5951ee7d72b8037ff
-prerequisite-patch-id: 6c9d8dee84130dc5654c6cdbe79cadc1c8c6ea01
-prerequisite-patch-id: c29ac39a9aa0b2f57b8630f94068de3c615c2aff
-prerequisite-patch-id: 39267d318bda1c6274f085b6ad0fa6033ba91775
-prerequisite-patch-id: aa5f357645bad3e273e9ad8c46909741b8645df5
-prerequisite-patch-id: 13e454b7c162f4fa60cc8f3a16923cb5b36e45b5
-prerequisite-patch-id: 1060dae5225651943f0407eba3dcce8086b8bde8
-prerequisite-patch-id: 26881a346914ff9c275ca61ab3a568c03cf9bbe9
-prerequisite-patch-id: 063c13e33fbdf446f7f28b26c88c60536ee56519
-prerequisite-patch-id: fe9ba680bbfc289ca761c3861cff1811e74eb4b0
-prerequisite-patch-id: 09d88e096bf253c83e6ebdc0b642826e9879942d
-prerequisite-patch-id: a84430c6349f1ce57b286dadec379dc165e67272
-prerequisite-patch-id: 1b83a611e9c183aef02cdba17bc27e1bf46b6a82
-prerequisite-patch-id: b350801c3eeeb3c80130687e8985f74188fc994f
-prerequisite-patch-id: 18ed2ed229344f5bdc6a533189452d61a7b9e0c6
-prerequisite-patch-id: 678cf62a5f3f39c471bf5edaedf6e59939294158
-prerequisite-patch-id: 73c6eff6ab4f6306617ae5899f8368ce59205084
-prerequisite-patch-id: 201acda3e16c581f13d9348fdfc4a4325c86ec78
-prerequisite-patch-id: ee35d1ccc78b44a74f630328981b8d9cf46e9468
-prerequisite-patch-id: 0c66af4c70e7009524b7d16c79599d6878f13d1e
-prerequisite-patch-id: 9b9f795264fb537d7a0b523529eb94bc2f28a912
-prerequisite-patch-id: e64a9e239738ff1af9753893372bb0fff907d8e6
-prerequisite-patch-id: edab03f98cda6e515b46641380a89363fb348f27
-prerequisite-patch-id: 28c6a5c9c0794adf089c24e5f59586631c5d6b4c
-prerequisite-patch-id: 1592351558023ed19f4d4cce450a7e5405c4c477
-prerequisite-patch-id: 1f6ceda2c5f0cc58d7792c113786168d26ded64e
-prerequisite-patch-id: ec4f5a1f5caad415297ed94fa087ac1b1794edec
-prerequisite-patch-id: accea82f9287261c369823223dfaf4fcb8b0b04b
-prerequisite-patch-id: 7f04c14f63aa50e011361fba1c2c0b179ae89926
-prerequisite-patch-id: 58c2460e281789a969f88192db772864c849b43a
-prerequisite-patch-id: 3d876e98b0d481d6c7e2b52a554af0453b09061e
-prerequisite-patch-id: fa6ade15971b59c537df92a80bac5db80c73eeda
-prerequisite-patch-id: b9dc7fcafec64cc21b25e6d562cbfd0da53ada13
-prerequisite-patch-id: 31e4c4ece4f81f8a56cb1dc9dd2c6a2b2b189e41
-prerequisite-patch-id: c714645ae913506bbbc8c6f830f34495f09887ad
-prerequisite-patch-id: 45ab2bc42bd191cfb931e411b7470a11d54c60b6
-prerequisite-patch-id: 3e4db23ce7ced910d59208fda696f160d443e39e
-prerequisite-patch-id: ed5b4dfd1b1553d5e2b865c4191a992c30c21132
-prerequisite-patch-id: dfee1a6a00ebca2d5cb7a2eee81a340cc89b7d49
-prerequisite-patch-id: fea03dfb92db40bca9bd07688d5d3d3c8ce896d1
-prerequisite-patch-id: 15025215942f585a037956d31abe7f2b373ee13f
-prerequisite-patch-id: 7263cf35bd75fbe9833a5f88de04ffdfcb5f253b
-prerequisite-patch-id: e285aa1cbf2a4e243d14e4cdff950f30a5789c71
-prerequisite-patch-id: a3a7f88920dcaec397cdce89680dd341da6b7d50
-prerequisite-patch-id: 7600dcc6bf999fab9607d4c2cba27189ee0564a5
-prerequisite-patch-id: 7402bf8989dddb67dd1559acca2e01aa83140123
-prerequisite-patch-id: cfea7aa3c6017fdbfc11f1a08806db122fc5295c
-prerequisite-patch-id: 9e2538496d48ee88c8bc71a45

[gentoo-commits] proj/gcc-patches:master commit in: 13.3.0/gentoo/

2025-05-27 Thread Sam James
commit: 6daca622f1773923ccb770f7e8c4b24d53a7920f
Author: Sam James  gentoo  org>
AuthorDate: Tue May 27 14:15:01 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Tue May 27 14:15:01 2025 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=6daca622

13.3.0: cut patchset 5, time64 patches

Backport time64 bits to 13 on request of dilfridge because 14/15 are broken
on m68k, and this will make it easier to test time64 + new int alignment.

Signed-off-by: Sam James  gentoo.org>

 13.3.0/gentoo/33_all_time64.patch | 39 
 13.3.0/gentoo/34_all_time64_ssemath.patch | 43 +++
 13.3.0/gentoo/README.history  |  5 
 3 files changed, 87 insertions(+)

diff --git a/13.3.0/gentoo/33_all_time64.patch 
b/13.3.0/gentoo/33_all_time64.patch
new file mode 100644
index 000..ac972b9
--- /dev/null
+++ b/13.3.0/gentoo/33_all_time64.patch
@@ -0,0 +1,39 @@
+From b2ee3846dfcea638e0fbf2d550234f1c7594fcdb Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= 
+Date: Fri, 1 Nov 2024 07:48:37 +0100
+Subject: [PATCH] Support forcing _TIME_BITS=64 for time64 profiles
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Support forcing _TIME_BITS=64 and _FILE_OFFSET_BITS=64
+via -D_GENTOO_TIME64_FORCE=1, for time64 profiles.
+
+Signed-off-by: Michał Górny 
+---
+ gcc/c-family/c-cppbuiltin.cc | 9 +
+ 1 file changed, 9 insertions(+)
+
+diff --git a/gcc/c-family/c-cppbuiltin.cc b/gcc/c-family/c-cppbuiltin.cc
+index 8bbfe84b2..962cbd414 100644
+--- a/gcc/c-family/c-cppbuiltin.cc
 b/gcc/c-family/c-cppbuiltin.cc
+@@ -1593,6 +1593,15 @@ c_cpp_builtins (cpp_reader *pfile)
+ builtin_define_with_int_value ("_FORTIFY_SOURCE", 
GENTOO_FORTIFY_SOURCE_LEVEL);
+ #endif
+ 
++#ifndef _GENTOO_TIME64_FORCE
++  #define _GENTOO_TIME64_FORCE 0
++#endif
++
++  if (_GENTOO_TIME64_FORCE) {
++cpp_define (pfile, "_FILE_OFFSET_BITS=64");
++cpp_define (pfile, "_TIME_BITS=64");
++  }
++
+   /* Misc.  */
+   if (flag_gnu89_inline)
+ cpp_define (pfile, "__GNUC_GNU_INLINE__");
+-- 
+2.47.0
+

diff --git a/13.3.0/gentoo/34_all_time64_ssemath.patch 
b/13.3.0/gentoo/34_all_time64_ssemath.patch
new file mode 100644
index 000..3701b6b
--- /dev/null
+++ b/13.3.0/gentoo/34_all_time64_ssemath.patch
@@ -0,0 +1,43 @@
+From 33ba5944f2b887fe8bddd541790645b74f1f2655 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= 
+Date: Sun, 24 Nov 2024 14:45:37 +0100
+Subject: [PATCH] Default to -mfpmath=sse on x86 with time64
+
+Our time64 stages already default to `-mfpmath=sse`, so let's have
+the time64 flag implicitly enable it as the default to make things more
+consistent.  Furthermore, this also improves compatibility with clang
+that always enables it whenever the target architectures supports SSE.
+
+Note that this works only if `-march=` with SSE support is specified.
+We could technically improve the consistency even further by raising
+the default `-march=`, but that seems a bit intrusive and probably
+unnecessary, given that the vast majority of Gentoo users and/or
+upstream projects will specify `-march=`.
+
+See also:
+https://public-inbox.gentoo.org/gentoo-dev/[email protected]/
+https://public-inbox.gentoo.org/gentoo-dev/[email protected]/
+---
+ gcc/config/i386/i386-options.cc | 6 +-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/gcc/config/i386/i386-options.cc b/gcc/config/i386/i386-options.cc
+index 6c212a8ed..03801f382 100644
+--- a/gcc/config/i386/i386-options.cc
 b/gcc/config/i386/i386-options.cc
+@@ -2881,7 +2881,11 @@ ix86_option_override_internal (bool main_args_p,
+  Also -mfpmath=387 is overall a lot more compact (bout 4-5%) than SSE
+  codegen.  We may switch to 387 with -ffast-math for size optimized
+  functions. */
+-  else if (fast_math_flags_set_p (&global_options)
++#ifndef _GENTOO_TIME64_FORCE
++  #define _GENTOO_TIME64_FORCE 0
++#endif
++
++  else if ((fast_math_flags_set_p (&global_options) || _GENTOO_TIME64_FORCE)
+  && TARGET_SSE2_P (opts->x_ix86_isa_flags))
+ opts->x_ix86_fpmath = FPMATH_SSE;
+   else
+-- 
+2.47.0
+

diff --git a/13.3.0/gentoo/README.history b/13.3.0/gentoo/README.history
index d5fadb0..bfbf4d7 100644
--- a/13.3.0/gentoo/README.history
+++ b/13.3.0/gentoo/README.history
@@ -1,3 +1,8 @@
+5  27 May 2025
+
+   + 33_all_time64.patch
+   + 34_all_time64_ssemath.patcho
+
 4  25 April 2025
 
U 81_all_match.pd-Use-splits-in-makefile-and-make-configurabl.patch



[gentoo-commits] proj/gcc-patches:master commit in: 13.3.0/gentoo/

2025-04-24 Thread Sam James
commit: 93f36c1b921e531fd4cdc6aee7af55e1d6eb9d39
Author: Sam James  gentoo  org>
AuthorDate: Thu Apr 24 23:30:16 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Apr 24 23:30:16 2025 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=93f36c1b

13.3.0: rebase patches, cut patchset 4

We should really switch to the proper git workflow...

Signed-off-by: Sam James  gentoo.org>

 ...d-Use-splits-in-makefile-and-make-configurabl.patch | 18 --
 ...7_all_Remove-DEFAULT_MATCHPD_PARTITIONS-macro.patch | 18 --
 ...179_genemit-Split-insn-emit.cc-into-ten-files.patch | 18 --
 13.3.0/gentoo/README.history   |  6 ++
 4 files changed, 6 insertions(+), 54 deletions(-)

diff --git 
a/13.3.0/gentoo/81_all_match.pd-Use-splits-in-makefile-and-make-configurabl.patch
 
b/13.3.0/gentoo/81_all_match.pd-Use-splits-in-makefile-and-make-configurabl.patch
index f525f63..00991c9 100644
--- 
a/13.3.0/gentoo/81_all_match.pd-Use-splits-in-makefile-and-make-configurabl.patch
+++ 
b/13.3.0/gentoo/81_all_match.pd-Use-splits-in-makefile-and-make-configurabl.patch
@@ -227,24 +227,6 @@ index ade0af23e8cc..542d100c2b73 100755
  # Enable __cxa_atexit for C++.
  # Check whether --enable-__cxa_atexit was given.
  if test "${enable___cxa_atexit+set}" = set; then :
-@@ -19871,7 +19896,7 @@ else
-   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
-   lt_status=$lt_dlunknown
-   cat > conftest.$ac_ext <<_LT_EOF
--#line 19874 "configure"
-+#line 19899 "configure"
- #include "confdefs.h"
- 
- #if HAVE_DLFCN_H
-@@ -19977,7 +20002,7 @@ else
-   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
-   lt_status=$lt_dlunknown
-   cat > conftest.$ac_ext <<_LT_EOF
--#line 19980 "configure"
-+#line 20005 "configure"
- #include "confdefs.h"
- 
- #if HAVE_DLFCN_H
 diff --git a/gcc/configure.ac b/gcc/configure.ac
 index bf8ff4d63906..31aa8566a3e7 100644
 --- a/gcc/configure.ac

diff --git a/13.3.0/gentoo/87_all_Remove-DEFAULT_MATCHPD_PARTITIONS-macro.patch 
b/13.3.0/gentoo/87_all_Remove-DEFAULT_MATCHPD_PARTITIONS-macro.patch
index 1f47154..0382989 100644
--- a/13.3.0/gentoo/87_all_Remove-DEFAULT_MATCHPD_PARTITIONS-macro.patch
+++ b/13.3.0/gentoo/87_all_Remove-DEFAULT_MATCHPD_PARTITIONS-macro.patch
@@ -54,24 +54,6 @@ index 542d100c2b73..cc8247037569 100755
  
  # Enable __cxa_atexit for C++.
  # Check whether --enable-__cxa_atexit was given.
-@@ -19896,7 +19891,7 @@ else
-   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
-   lt_status=$lt_dlunknown
-   cat > conftest.$ac_ext <<_LT_EOF
--#line 19899 "configure"
-+#line 19894 "configure"
- #include "confdefs.h"
- 
- #if HAVE_DLFCN_H
-@@ -20002,7 +19997,7 @@ else
-   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
-   lt_status=$lt_dlunknown
-   cat > conftest.$ac_ext <<_LT_EOF
--#line 20005 "configure"
-+#line 2 "configure"
- #include "confdefs.h"
- 
- #if HAVE_DLFCN_H
 diff --git a/gcc/configure.ac b/gcc/configure.ac
 index 31aa8566a3e7..d02ffc22a3a3 100644
 --- a/gcc/configure.ac

diff --git 
a/13.3.0/gentoo/90_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch 
b/13.3.0/gentoo/90_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch
index f6ded53..edba21b 100644
--- 
a/13.3.0/gentoo/90_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch
+++ 
b/13.3.0/gentoo/90_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch
@@ -219,24 +219,6 @@ index cc8247037569..c98088bea90d 100755
  # Enable __cxa_atexit for C++.
  # Check whether --enable-__cxa_atexit was given.
  if test "${enable___cxa_atexit+set}" = set; then :
-@@ -19891,7 +19911,7 @@ else
-   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
-   lt_status=$lt_dlunknown
-   cat > conftest.$ac_ext <<_LT_EOF
--#line 19894 "configure"
-+#line 19914 "configure"
- #include "confdefs.h"
- 
- #if HAVE_DLFCN_H
-@@ -19997,7 +20017,7 @@ else
-   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
-   lt_status=$lt_dlunknown
-   cat > conftest.$ac_ext <<_LT_EOF
--#line 2 "configure"
-+#line 20020 "configure"
- #include "confdefs.h"
- 
- #if HAVE_DLFCN_H
 diff --git a/gcc/configure.ac b/gcc/configure.ac
 index d02ffc22a3a3..7021f95da3ee 100644
 --- a/gcc/configure.ac

diff --git a/13.3.0/gentoo/README.history b/13.3.0/gentoo/README.history
index a99da58..d5fadb0 100644
--- a/13.3.0/gentoo/README.history
+++ b/13.3.0/gentoo/README.history
@@ -1,3 +1,9 @@
+4  25 April 2025
+
+   U 81_all_match.pd-Use-splits-in-makefile-and-make-configurabl.patch
+   U 87_all_Remove-DEFAULT_MATCHPD_PARTITIONS-macro.patch
+   U 90_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch
+
 3  18 April 2025
 
+ 32_all_Revert-match-Reject-non-ssa-name-min-invariants-in-g.patch



[gentoo-commits] proj/gcc-patches:master commit in: 13.3.0/gentoo/

2025-04-18 Thread Sam James
commit: 05d9c70131be267bfe5b36e663acda8729da6456
Author: Sam James  gentoo  org>
AuthorDate: Fri Apr 18 23:00:00 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Apr 18 23:03:26 2025 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=05d9c701

13.3.0: tweak backport for gimple match

Signed-off-by: Sam James  gentoo.org>

 ...h-Reject-non-ssa-name-min-invariants-in-g.patch | 346 +
 ...t-non-ssa-name-min-invariants-in-gimple_e.patch |  77 +
 13.3.0/gentoo/README.history   |   5 +
 3 files changed, 428 insertions(+)

diff --git 
a/13.3.0/gentoo/32_all_Revert-match-Reject-non-ssa-name-min-invariants-in-g.patch
 
b/13.3.0/gentoo/32_all_Revert-match-Reject-non-ssa-name-min-invariants-in-g.patch
new file mode 100644
index 000..76f40ec
--- /dev/null
+++ 
b/13.3.0/gentoo/32_all_Revert-match-Reject-non-ssa-name-min-invariants-in-g.patch
@@ -0,0 +1,346 @@
+From 9dd5291b00687516217068d9e9500f59c42e906c Mon Sep 17 00:00:00 2001
+Message-ID: 
<9dd5291b00687516217068d9e9500f59c42e906c.1745017007.git@gentoo.org>
+From: Sam James 
+Date: Fri, 18 Apr 2025 23:54:56 +0100
+Subject: [PATCH] Revert "match: Reject non-ssa name/min invariants in
+ gimple_extract [PR116412]"
+
+This reverts commit de622c307743cc03f45f1ba7b0c2f8df0b378206.
+
+Let's apply the version from master instead as it applies cleanly
+with our gimple split backports.
+---
+ gcc/gimple-match-head.cc  | 6 --
+ gcc/testsuite/gcc.dg/torture/pr116412-1.c | 6 --
+ 2 files changed, 12 deletions(-)
+ delete mode 100644 gcc/testsuite/gcc.dg/torture/pr116412-1.c
+
+diff --git a/gcc/gimple-match-head.cc b/gcc/gimple-match-head.cc
+index b3e7792a8fae..21843d7870b3 100644
+--- a/gcc/gimple-match-head.cc
 b/gcc/gimple-match-head.cc
+@@ -945,9 +945,6 @@ gimple_extract (gimple *stmt, gimple_match_op *res_op,
+   || code == VIEW_CONVERT_EXPR)
+ {
+   tree op0 = TREE_OPERAND (gimple_assign_rhs1 (stmt), 0);
+-  /* op0 needs to be a SSA name or an min invariant. */
+-  if (TREE_CODE (op0) != SSA_NAME && !is_gimple_min_invariant 
(op0))
+-return false;
+   res_op->set_op (code, type, valueize_op (op0));
+   return true;
+ }
+@@ -955,9 +952,6 @@ gimple_extract (gimple *stmt, gimple_match_op *res_op,
+ {
+   tree rhs1 = gimple_assign_rhs1 (stmt);
+   tree op0 = valueize_op (TREE_OPERAND (rhs1, 0));
+-  /* op0 needs to be a SSA name or an min invariant. */
+-  if (TREE_CODE (op0) != SSA_NAME && !is_gimple_min_invariant 
(op0))
+-return false;
+   res_op->set_op (code, type, op0,
+   TREE_OPERAND (rhs1, 1),
+   TREE_OPERAND (rhs1, 2),
+diff --git a/gcc/testsuite/gcc.dg/torture/pr116412-1.c 
b/gcc/testsuite/gcc.dg/torture/pr116412-1.c
+deleted file mode 100644
+index 3bc26ecd8b83..
+--- a/gcc/testsuite/gcc.dg/torture/pr116412-1.c
 /dev/null
+@@ -1,6 +0,0 @@
+-/* { dg-do compile } */
+-double f(_Complex double a, _Complex double *b, int c)
+-{
+-  if (c) return __real__ a;
+-  return __real__ *b;
+-}
+
+base-commit: e8e9c25cbaee08f54b7be3051ba5c444a042a958
+prerequisite-patch-id: 4000f228fd3953eb9877fab7b9493cd86f6bc771
+prerequisite-patch-id: d61e09af01bb7358c1df6abf5d2c4b7849ab4676
+prerequisite-patch-id: 54a4cfb376547141937d7e321d7b4554c1e3afe7
+prerequisite-patch-id: f33957dc1b64edeb4a61c8cab68f8d3d83364a29
+prerequisite-patch-id: 7ce45196fe80b18512fadb50fc103fab4428d4fc
+prerequisite-patch-id: 91222abe57fbe0d242ef3c8c9d2b3c90434ca452
+prerequisite-patch-id: c121f50ebb95ace4d0265345daa0e7dc7b7f32e3
+prerequisite-patch-id: 10defea0d9b839e7a1dbacb051fa9228c4fb4625
+prerequisite-patch-id: 19438a1e2a41164df78f94a8c4ccd7720201b546
+prerequisite-patch-id: 6bc290482177e8770fcc08796a829b92a889b8c8
+prerequisite-patch-id: 51d285ed9ee0440cf1b3c7e5951ee7d72b8037ff
+prerequisite-patch-id: 6c9d8dee84130dc5654c6cdbe79cadc1c8c6ea01
+prerequisite-patch-id: c29ac39a9aa0b2f57b8630f94068de3c615c2aff
+prerequisite-patch-id: 39267d318bda1c6274f085b6ad0fa6033ba91775
+prerequisite-patch-id: aa5f357645bad3e273e9ad8c46909741b8645df5
+prerequisite-patch-id: 13e454b7c162f4fa60cc8f3a16923cb5b36e45b5
+prerequisite-patch-id: 1060dae5225651943f0407eba3dcce8086b8bde8
+prerequisite-patch-id: 26881a346914ff9c275ca61ab3a568c03cf9bbe9
+prerequisite-patch-id: 063c13e33fbdf446f7f28b26c88c60536ee56519
+prerequisite-patch-id: fe9ba680bbfc289ca761c3861cff1811e74eb4b0
+prerequisite-patch-id: 09d88e096bf253c83e6ebdc0b642826e9879942d
+prerequisite-patch-id: a84430c6349f1ce57b286dadec379dc165e67272
+prerequisite-patch-id: 1b83a611e9c183aef02cdba17bc27e1bf46b6a82
+prerequisite-patch-id: b350801c3eeeb3c80130687e8985f74188fc994f
+prerequisite-patch-id: 18ed2ed229344f5bdc6a533189452d61a7b9e0c6
+prerequisite-patch-id: 678cf62a5f3f39c471b

[gentoo-commits] proj/gcc-patches:master commit in: 13.3.0/gentoo/

2024-11-29 Thread Sam James
commit: 4ca89bc1fa1f0a9a8cd941290c4fe7c953bf917a
Author: Sam James  gentoo  org>
AuthorDate: Fri Nov 29 22:41:05 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Nov 29 22:41:05 2024 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=4ca89bc1

13.3.0: cut patchset 2

Signed-off-by: Sam James  gentoo.org>

 13.3.0/gentoo/README.history | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/13.3.0/gentoo/README.history b/13.3.0/gentoo/README.history
index 988e8a8..d17cd25 100644
--- a/13.3.0/gentoo/README.history
+++ b/13.3.0/gentoo/README.history
@@ -1,4 +1,4 @@
-2  ???
+2  29 Nov 2024
 
- 93_all_PR115917-ada-lto.patch
 



[gentoo-commits] proj/gcc-patches:master commit in: 13.3.0/gentoo/

2024-11-27 Thread Sam James
commit: 60e9233876493cf6024a950684e836a7387ed88d
Author: Sam James  gentoo  org>
AuthorDate: Wed Nov 27 15:57:31 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Nov 27 15:57:39 2024 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=60e92338

13.3.0: drop upstreamed 93_all_PR115917-ada-lto.patch

Signed-off-by: Sam James  gentoo.org>

 13.3.0/gentoo/93_all_PR115917-ada-lto.patch | 52 -
 13.3.0/gentoo/README.history|  4 +++
 2 files changed, 4 insertions(+), 52 deletions(-)

diff --git a/13.3.0/gentoo/93_all_PR115917-ada-lto.patch 
b/13.3.0/gentoo/93_all_PR115917-ada-lto.patch
deleted file mode 100644
index 023c0d1..000
--- a/13.3.0/gentoo/93_all_PR115917-ada-lto.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From f55ac7e8ceabaf54ba9fc3ca4393abeae2ee1c19 Mon Sep 17 00:00:00 2001
-Message-ID: 

-From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= 
-Date: Thu, 15 Aug 2024 19:17:41 +0200
-Subject: [PATCH] gnat: fix lto-type-mismatch between C_Version_String and
- gnat_version_string [PR115917]
-
-gcc/ada/ChangeLog:
-
-   PR ada/115917
-   * gnatvsn.ads: Add note about the duplication of this value in
-   version.c.
-   * version.c (VER_LEN_MAX): Define to the same value as
-   Gnatvsn.Ver_Len_Max.
-   (gnat_version_string): Use VER_LEN_MAX as bound.
-
-(cherry picked from commit 9cbcf8d1de159e6113fafb5dc2feb4a7e467a302)

- gcc/ada/gnatvsn.ads | 3 ++-
- gcc/ada/version.c   | 5 -
- 2 files changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/gcc/ada/gnatvsn.ads b/gcc/ada/gnatvsn.ads
-index b6edc9dabed9..308986afc182 100644
 a/gcc/ada/gnatvsn.ads
-+++ b/gcc/ada/gnatvsn.ads
-@@ -83,7 +83,8 @@ package Gnatvsn is
---  space to store any possible version string value for checks. This
---  value should never be decreased in the future, but it would be
---  OK to increase it if absolutely necessary. If it is increased,
--   --  be sure to increase GNAT.Compiler.Version.Ver_Len_Max as well.
-+   --  be sure to increase GNAT.Compiler.Version.Ver_Len_Max, and to update
-+   --  the VER_LEN_MAX define in version.c as well.
- 
-Ver_Prefix : constant String := "GNAT Version: ";
---  Prefix generated by binder. If it is changed, be sure to change
-diff --git a/gcc/ada/version.c b/gcc/ada/version.c
-index 5e64edd0b17d..2fa9b8c2c859 100644
 a/gcc/ada/version.c
-+++ b/gcc/ada/version.c
-@@ -31,4 +31,7 @@
- 
- #include "version.h"
- 
--char gnat_version_string[] = version_string;
-+/* Logically a reference to Gnatvsn.Ver_Len_Max.  Please keep in sync.  */
-+#define VER_LEN_MAX 256
-+
-+char gnat_version_string[VER_LEN_MAX] = version_string;
--- 
-2.46.2
-

diff --git a/13.3.0/gentoo/README.history b/13.3.0/gentoo/README.history
index a1120c2..988e8a8 100644
--- a/13.3.0/gentoo/README.history
+++ b/13.3.0/gentoo/README.history
@@ -1,3 +1,7 @@
+2  ???
+
+   - 93_all_PR115917-ada-lto.patch
+
 1  29 Sept 2024
 
+ 01_all_default-fortify-source.patch