From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0E24715808B for ; Sun, 29 Sep 2024 18:50:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 30357E2A17; Sun, 29 Sep 2024 18:50:11 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0E12EE2A17 for ; Sun, 29 Sep 2024 18:50:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 432743431B9 for ; Sun, 29 Sep 2024 18:50:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A617B1A09 for ; Sun, 29 Sep 2024 18:50:08 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1727635357.de8b2c94406071a5b01f9045f6ba40a99f24f893.sam@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 12.3.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 12.3.0/gentoo/78_all_PR115917-ada-lto.patch 12.3.0/gentoo/README.history X-VCS-Directories: 12.3.0/gentoo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: de8b2c94406071a5b01f9045f6ba40a99f24f893 X-VCS-Branch: master Date: Sun, 29 Sep 2024 18:50:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1248471c-3930-4706-b294-62985b370771 X-Archives-Hash: c83b19fb69fa3be8beb5ad15ff954bc7 commit: de8b2c94406071a5b01f9045f6ba40a99f24f893 Author: Sam James gentoo org> AuthorDate: Sun Sep 29 18:42:37 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sun Sep 29 18:42:37 2024 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=de8b2c94 12.3.0: add 78_all_PR115917-ada-lto.patch Signed-off-by: Sam James gentoo.org> 12.3.0/gentoo/78_all_PR115917-ada-lto.patch | 52 +++++++++++++++++++++++++++++ 12.3.0/gentoo/README.history | 4 +++ 2 files changed, 56 insertions(+) diff --git a/12.3.0/gentoo/78_all_PR115917-ada-lto.patch b/12.3.0/gentoo/78_all_PR115917-ada-lto.patch new file mode 100644 index 0000000..2e25ddf --- /dev/null +++ b/12.3.0/gentoo/78_all_PR115917-ada-lto.patch @@ -0,0 +1,52 @@ +From dd97dff998c9fc35e36397fc647f7360e1cadf70 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 47a06b96c3cf..99d06c7e5aa4 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/12.3.0/gentoo/README.history b/12.3.0/gentoo/README.history index 6699fd4..899d235 100644 --- a/12.3.0/gentoo/README.history +++ b/12.3.0/gentoo/README.history @@ -1,3 +1,7 @@ +4 29 Sept 2024 + + + 78_all_PR115917-ada-lto.patch + 3 28 Feb 2024 + 77_all_riscv_PR106271-multilib-bootstrap.patch