From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id qOIzKFcncmVcbQEAauVa8A:P1 (envelope-from ) for ; Thu, 07 Dec 2023 21:13:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qOIzKFcncmVcbQEAauVa8A (envelope-from ) for ; Thu, 07 Dec 2023 21:13:11 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BED2056CBC for ; Thu, 7 Dec 2023 21:13:10 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=nrjNNlEZ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701979991; a=rsa-sha256; cv=none; b=QDSh29RoW8Lp8nUMLAROU5PaebO24nmcYNd8ZK2tkFBPfSrv8aT+0n8RQS3hUrdnsQlPxk xcU+cGeQBO0JUDJJsi/OJSl8d2w2Lwm2ukklJgDRg+SE0Q9uwGXM8crgiutbsyVEnKimkr eHNtOoXf1HxjMmEIu9le0KjYqAgd7gDyL8I5mugxZZOXlYKPIZLk4rCDwbhjQeriGhUrAc a/ghoXZK1eQoOJoPYxkM1rfwPcW6iTBz2+d6MBWXsYvqSLAL7M6KjvGlI3YLNHCFno+IAl VQ0cF7sKQE2Z9zLHGArBS+KDV6YA4IlYyzln1n1QJvTYtgVZWuJWQ5WxUtsgdg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=nrjNNlEZ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701979991; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=xpLE8uM/pyr1EJZ7nBsFXwz+LT9sHXdyXh9tNGmgJX8=; b=P4RgHxQy1wFxlUbnmoDcy1Do9QuP4aR2pCDfhwlD5pBYw1CnAUfajMRd+qv8/oApMjkltd w552YXpPoddgRBuAys3bZYKzAVvTThNHhsPU6a/lK8PBoKSBKAJWwnUcs+B8Lp+6EUvrJl jFpVURpyi3ymIA90RZB/cCy4xL2y1g+1XT6/u6Uj9R2THOx3LQm+wrg7iyApIO+JJTsCeo ux5QMGXiMmbGoZsV0+kQXdYdw6Xyt585gMLeNItJTbQZ7JrpwFz0dQUWDmZMce4Sj6FuKo oWkiaLQDrWb9dgreEKOFln9fbd6QKRhQxo05ZoaF60yf3FVc5gWgfcGsYQKizg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBKju-0001Wy-8J; Thu, 07 Dec 2023 15:12:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBKjp-0001Wj-UY for guix-patches@gnu.org; Thu, 07 Dec 2023 15:12:50 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBKjp-00055i-Bi for guix-patches@gnu.org; Thu, 07 Dec 2023 15:12:49 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rBKk1-000739-Ra for guix-patches@gnu.org; Thu, 07 Dec 2023 15:13:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67686] [PATCH core-updates 1/5] gnu: gcc@11: Update to 11.4.0. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Dec 2023 20:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67686 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 67686@debbugs.gnu.org, Greg Hogan Received: via spool by 67686-submit@debbugs.gnu.org id=B67686.170197994327040 (code B ref 67686); Thu, 07 Dec 2023 20:13:01 +0000 Received: (at 67686) by debbugs.gnu.org; 7 Dec 2023 20:12:23 +0000 Received: from localhost ([127.0.0.1]:43215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBKjO-000722-TU for submit@debbugs.gnu.org; Thu, 07 Dec 2023 15:12:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBKjK-00071g-Gs for 67686@debbugs.gnu.org; Thu, 07 Dec 2023 15:12:21 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBKj1-000427-9X; Thu, 07 Dec 2023 15:11:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=xpLE8uM/pyr1EJZ7nBsFXwz+LT9sHXdyXh9tNGmgJX8=; b=nrjNNlEZoxMHfhYlAIxO BbxfdfwMNQJVrHtt+i2b0k/hGEhLXdQdtOfm3Pqd0XlrraBq0rrIGI59NSPKWvcXhpn6djmgsAnFa Lp1lvW72ewa6YcRbUcbO+I6AJ4ZdLwys6X/+Eccwj7usAfNyKAViDhpUl3LxxEtGhF1dy3RWpPev1 A5dnRs0XZ1oBJmdaQT9QHI0zy62lco5YRFjl2jlOgPMq/kUELUSIbDWh8tcsVpN+afCxIWkDb1LB3 mMzCIFAkTnVSxyvE39V//5kZcIpo6gHMRLFdV9XcUycZnn3hHqcIP5ECyMOOh8IIDm1PDBdHZB811 cf1ZKVX26g7lRQ==; From: Janneke Nieuwenhuizen In-Reply-To: <84287ec2c97471228f0b4e1db1ae14b155bbde88.1701943221.git.ludo@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Thu, 7 Dec 2023 11:22:44 +0100") Organization: AvatarAcademy.nl References: <84287ec2c97471228f0b4e1db1ae14b155bbde88.1701943221.git.ludo@gnu.org> X-Url: http://AvatarAcademy.nl Date: Thu, 07 Dec 2023 21:11:54 +0100 Message-ID: <8734wd93hx.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.85 X-Spam-Score: -6.85 X-Migadu-Queue-Id: BED2056CBC X-TUID: wCf7jTHGgJjx --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > From: Greg Hogan > > * gnu/packages/gcc.scm (gcc-11): Update to 11.4.0. > Remove =E2=80=98gcc-10-tree-sra-union-handling.patch=E2=80=99. > * gnu/local.mk: Delist patch. > * gnu/packages/patches/gcc-10-tree-sra-union-handling.patch: Delete. [On core-updates] this patch is still used, I recommend the attatched squash commit. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-squash-gnu-gcc-11-Update-to-11.4.0.patch >From aa0896545b283adc2c7451bbccca2b391a5affb8 Mon Sep 17 00:00:00 2001 Message-ID: From: Janneke Nieuwenhuizen Date: Thu, 7 Dec 2023 21:04:31 +0100 Subject: [PATCH] squash! gnu: gcc@11: Update to 11.4.0. Do not remove and delist this patch, it's still used by gcc-10. * gnu/packages/patches/gcc-10-tree-sra-union-handling.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Change-Id: Iff8c9151326c87cb13db9c5b1a00c44b8eef95e3 --- gnu/local.mk | 1 + .../gcc-10-tree-sra-union-handling.patch | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 gnu/packages/patches/gcc-10-tree-sra-union-handling.patch diff --git a/gnu/local.mk b/gnu/local.mk index 7ecc828003..231488a1be 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1250,6 +1250,7 @@ dist_patch_DATA = \ %D%/packages/patches/gcc-10-cross-environment-variables.patch \ %D%/packages/patches/gcc-11-libstdc++-hurd-libpthread.patch \ %D%/packages/patches/gcc-12-cross-environment-variables.patch \ + %D%/packages/patches/gcc-10-tree-sra-union-handling.patch \ %D%/packages/patches/gcc-11-libstdc++-powerpc.patch \ %D%/packages/patches/gcc-13.2.0-libstdc++-docbook-xsl-uri.patch \ %D%/packages/patches/gcc-13.2.0-libstdc++-info-install-fix.patch \ diff --git a/gnu/packages/patches/gcc-10-tree-sra-union-handling.patch b/gnu/packages/patches/gcc-10-tree-sra-union-handling.patch new file mode 100644 index 0000000000..aae5fc9f72 --- /dev/null +++ b/gnu/packages/patches/gcc-10-tree-sra-union-handling.patch @@ -0,0 +1,33 @@ +Fix a regression in GCC 10/11/12 where some union structures +could get miscompiled when optimizations are enabled: + + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105860 + +Taken from upstream: + + https://gcc.gnu.org/g:16afe2e2862f3dd93c711d7f8d436dee23c6c34d + +diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c +index 09d951a261b..420329f63f6 100644 +--- a/gcc/tree-sra.c ++++ b/gcc/tree-sra.c +@@ -1647,7 +1647,18 @@ build_ref_for_offset (location_t loc, tree base, poly_int64 offset, + static tree + build_reconstructed_reference (location_t, tree base, struct access *model) + { +- tree expr = model->expr, prev_expr = NULL; ++ tree expr = model->expr; ++ /* We have to make sure to start just below the outermost union. */ ++ tree start_expr = expr; ++ while (handled_component_p (expr)) ++ { ++ if (TREE_CODE (TREE_TYPE (TREE_OPERAND (expr, 0))) == UNION_TYPE) ++ start_expr = expr; ++ expr = TREE_OPERAND (expr, 0); ++ } ++ ++ expr = start_expr; ++ tree prev_expr = NULL_TREE; + while (!types_compatible_p (TREE_TYPE (expr), TREE_TYPE (base))) + { + if (!handled_component_p (expr)) base-commit: 941456404cc52da9492836150cbcfa44f6a476e7 -- 2.41.0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Janneke Nieuwenhuizen | GNU LilyPond https://LilyPond.org Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade= my.com --=-=-=--