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 10F8B15808B for ; Sun, 29 Sep 2024 19:20:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5AA0DE2A4A; Sun, 29 Sep 2024 19:20:52 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 38D0BE2A4A for ; Sun, 29 Sep 2024 19:20:52 +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 3A4703431E8 for ; Sun, 29 Sep 2024 19:20:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9CD881F30 for ; Sun, 29 Sep 2024 19:20:49 +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: <1727636571.badbdc155d678ece9a71c2bd7c4506600aace07c.sam@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 14.2.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 14.2.0/gentoo/78_all_PR115917-ada-lto.patch 14.2.0/gentoo/README.history X-VCS-Directories: 14.2.0/gentoo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: badbdc155d678ece9a71c2bd7c4506600aace07c X-VCS-Branch: master Date: Sun, 29 Sep 2024 19:20:49 +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: 35219c15-7b29-480a-ac77-a0154f338124 X-Archives-Hash: c5fa9e8c4547da1f431d10bf89af3852 commit: badbdc155d678ece9a71c2bd7c4506600aace07c Author: Sam James gentoo org> AuthorDate: Sun Sep 29 19:02:51 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sun Sep 29 19:02:51 2024 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=badbdc15 14.2.0: add 78_all_PR115917-ada-lto.patch Signed-off-by: Sam James gentoo.org> 14.2.0/gentoo/78_all_PR115917-ada-lto.patch | 52 +++++++++++++++++++++++++++++ 14.2.0/gentoo/README.history | 1 + 2 files changed, 53 insertions(+) diff --git a/14.2.0/gentoo/78_all_PR115917-ada-lto.patch b/14.2.0/gentoo/78_all_PR115917-ada-lto.patch new file mode 100644 index 0000000..f4bac9c --- /dev/null +++ b/14.2.0/gentoo/78_all_PR115917-ada-lto.patch @@ -0,0 +1,52 @@ +From b56e463bd20beca5609dee69837a6b3dfaa542e2 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 29238362cc04..f2082ece0965 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/14.2.0/gentoo/README.history b/14.2.0/gentoo/README.history index 8bdcb12..26b4c96 100644 --- a/14.2.0/gentoo/README.history +++ b/14.2.0/gentoo/README.history @@ -22,3 +22,4 @@ + 29_all_msgfmt-libstdc++-link.patch + 30_all_tar_libstdc++-link.patch + 77_all_m2_docs_sandbox.patch + + 78_all_PR115917-ada-lto.patch