From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iHoDDhjmQmehaQEAqHPOHw:P1 (envelope-from ) for ; Sun, 24 Nov 2024 08:38:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id iHoDDhjmQmehaQEAqHPOHw (envelope-from ) for ; Sun, 24 Nov 2024 09:38:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=dTZwxe85; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WsHGP4aB; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732437528; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: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=BVm5Zb7pzY+EdGpPmReBiK5VXpxD069JAF12x72F+ig=; b=L3AFxjqQic2WG1rW3zpkRQ+MvW0/lLnnC5W5tJ22OjyKrfqZRh7CP2aiaD0wR0cllZlG98 Q3r4KNFdEV39z+8dBCQPYT5/f+0yTHhE2EsuQwHLBpbZl1NZY++q8VpplRHnuzN5hu+6Ii Lneh5mLEmCJ2kaGlqgFwEnhAFe0EBcDIbuvOdqI+K0N6gkiJIGia17JtgzvyEbiSzxabWh f5nc0G0ysqBHHZlYSGtVQKOk7vkxtdC3wlwPQVQRqLEgRkql4fx0d7vKWiU/a69qusRfMn Ol9sCyMYQ0V7qjdYAhPUKIkwnpKpZDShIEs0SAQeSxv8/WEe0wchNrLI3RcJcA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=dTZwxe85; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WsHGP4aB; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732437528; a=rsa-sha256; cv=none; b=Fo7ABJ8c0XVHYn90333p9ZqhdnboVYcrFimnB2yBWOZhrt2zYzwYvsg6Y4d9P09XN+9uCy +RZyuG3Jt1YR5m8BtTZuQdQS56ouRqiiQE1IXIdokNZE6spiyy6ENLeUo5WFV70t1v1+uk 4BAvI25GiNf9TTu5iT88oI2kKSvayE+x7xEUHCMYytJqBaotthQg65LkZEb8oyHOq0UBjJ lhxZBz5N0gCXvN0QUfqt/YTTth0A5xKYLVjVcIu6qTvPBiF06IOn+iV7z4fMK0jr4EJ3pQ Ss1DSoEYa1x04u/EqnZ+XddkbalzZE5j38BLLOtr+mtbj2R7gy6j1tFyubBztQ== 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 09DA07C49A for ; Sun, 24 Nov 2024 09:38:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tF7Ui-0000Pm-UJ; Sun, 24 Nov 2024 02:57:24 -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 1tF7Uc-0000Hq-L3 for guix-patches@gnu.org; Sun, 24 Nov 2024 02:57:18 -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 1tF7Ua-0002LZ-8D; Sun, 24 Nov 2024 02:57:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=BVm5Zb7pzY+EdGpPmReBiK5VXpxD069JAF12x72F+ig=; b=dTZwxe85kyRd1Nvqm05T6YbQoVLPdtgeyvFK+WMTqswZwFLjgmJjkqK/PwLywdsAsBTmSYP9AZJ0/TSoFanB0XqtunmGZRTkZQ2Xzjrc3ie9lfR1T8YlxeruHZySL5nbyKvVtcbQfcLmyoKLAA1CzH/na/buTAd/B8UuD5Ki66wVNjnRex3xWZoc+fkLilx5jYKiuE1drjxTeRUd9v13G6mkO+wGkBIJvfWb+VqCqdw3Tk9WO66pzo8PPPpgPUnNNs423j3KW0+s7pzPb9o9yFDMRgAGg+bgMDFWSFSMZcgxnEK0rmDVA+YcJLRUMPShoai25v+CbTFaqlMXT6gy5A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tF7Ua-0004j3-2Y; Sun, 24 Nov 2024 02:57:16 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74290] [PATCH v4 26/58] gnu: glibc/hurd: Add patch for the 64bit Hurd, fixing "raise". Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Sun, 24 Nov 2024 07:57:15 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74290 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74290@debbugs.gnu.org Cc: Andreas Enge , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Andreas Enge , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 74290-submit@debbugs.gnu.org id=B74290.173243500917810 (code B ref 74290); Sun, 24 Nov 2024 07:57:15 +0000 Received: (at 74290) by debbugs.gnu.org; 24 Nov 2024 07:56:49 +0000 Received: from localhost ([127.0.0.1]:60771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tF7U9-0004d6-34 for submit@debbugs.gnu.org; Sun, 24 Nov 2024 02:56:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tF7Tj-0004Yn-GM for 74290@debbugs.gnu.org; Sun, 24 Nov 2024 02:56:24 -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 1tF7Te-00029q-9X; Sun, 24 Nov 2024 02:56:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=BVm5Zb7pzY+EdGpPmReBiK5VXpxD069JAF12x72F+ig=; b=WsHGP4aBzY0E2WGmcXen cz7D8TDwUab8vzf7jtmk0196dRxKJ40bQJHvHB0QH4Fs/RbJf/ruV9mbbwft6XcYTYt0GjJ9EpyUP mfhQKpO9XhdVKcbWUHYciUQErGsCjAlq+SHE49mWcG28L7UojUu68AB3GbCVeATwXcImpPXfreYAG 9S0oRkyhalEEP4hlmMM1XqZhmkxfRSyrhfyyqeCclXZ0T4BxHEh8x2eLFuDOPXwllcVp3iXd9JQEb XxlchX42hqaCg2i4v9SSUF3w+DMk+1P4RNFwrRY+62eDOqDvJk1qrEBUBCRlhNq/JYCwJEmlSLf/G thUBg/OrPTs99w==; From: Janneke Nieuwenhuizen Date: Sun, 24 Nov 2024 08:54:49 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: mx11.migadu.com X-Migadu-Spam-Score: -0.33 X-Spam-Score: -0.33 X-Migadu-Queue-Id: 09DA07C49A X-TUID: bxBt8e0ZJ0I3 This fixes findutil's gnulib-tests's test-sigaction's raise call, by working around an alleged gcc-14.2 optimization bug. See . * gnu/packages/patches/glibc-hurd64-gcc-14.2-tls-bug.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/base.scm (glibc/hurd): Use it. Change-Id: I11e683f521f34dedeb7f739a2545f5d1d866922a --- gnu/local.mk | 1 + gnu/packages/base.scm | 3 +- .../glibc-hurd64-gcc-14.2-tls-bug.patch | 28 +++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/glibc-hurd64-gcc-14.2-tls-bug.patch diff --git a/gnu/local.mk b/gnu/local.mk index 3df0d4effa..6164ee45c7 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1439,6 +1439,7 @@ dist_patch_DATA = \ %D%/packages/patches/glibc-hurd-mach-print.patch \ %D%/packages/patches/glibc-hurd-pthread_setcancelstate.patch \ %D%/packages/patches/glibc-hurd-signal-sa-siginfo.patch \ + %D%/packages/patches/glibc-hurd64-gcc-14.2-tls-bug.patch \ %D%/packages/patches/glibc-hurd64-fault.patch \ %D%/packages/patches/glibc-hurd64-intr-msg-clobber.patch \ %D%/packages/patches/glibc-hurd64-sgms-context.patch \ diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 80e53c2e52..cbce8bd634 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -1598,7 +1598,8 @@ (define-public glibc/hurd (search-patches "glibc-hurd-pthread_setcancelstate.patch" "glibc-hurd64-fault.patch" "glibc-hurd64-intr-msg-clobber.patch" - "glibc-hurd64-sgms-context.patch"))))))) + "glibc-hurd64-sgms-context.patch" + "glibc-hurd64-gcc-14.2-tls-bug.patch"))))))) (define-public glibc/hurd-headers (package/inherit glibc/hurd diff --git a/gnu/packages/patches/glibc-hurd64-gcc-14.2-tls-bug.patch b/gnu/packages/patches/glibc-hurd64-gcc-14.2-tls-bug.patch new file mode 100644 index 0000000000..5823a230fd --- /dev/null +++ b/gnu/packages/patches/glibc-hurd64-gcc-14.2-tls-bug.patch @@ -0,0 +1,28 @@ +From 0b23ab98d25d880ee602af91e62aa39564510cac Mon Sep 17 00:00:00 2001 +From: Janneke Nieuwenhuizen +Date: Fri, 22 Nov 2024 16:26:08 +0100 +Subject: [PATCH] x86_64-hurd: sigreturn: Hack around gcc-14.2 optimization + bug. + +See: . + +* sysdeps/mach/hurd/x86_64/sigreturn.c (__sigreturn2): Add nop. +--- + sysdeps/mach/hurd/x86_64/sigreturn.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/sysdeps/mach/hurd/x86_64/sigreturn.c b/sysdeps/mach/hurd/x86_64/sigreturn.c +index 7a0193497d..256cc1268a 100644 +--- a/sysdeps/mach/hurd/x86_64/sigreturn.c ++++ b/sysdeps/mach/hurd/x86_64/sigreturn.c +@@ -45,6 +45,7 @@ __sigreturn2 (struct hurd_sigstate *ss, uintptr_t *usp, + (void) __mach_port_mod_refs (__mach_task_self (), reply_port, + MACH_PORT_RIGHT_RECEIVE, -1); + THREAD_SETMEM (THREAD_SELF, reply_port, sc_reply_port); ++ asm ("nop"); // See . + + asm volatile ( + /* Point the stack to the register dump. */ +-- +2.46.0 + -- 2.46.0