Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2225714/?format=api
{ "id": 2225714, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2225714/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260421133641.969451-1-jwakely@redhat.com/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/1.1/projects/17/?format=api", "name": "GNU Compiler Collection", "link_name": "gcc", "list_id": "gcc-patches.gcc.gnu.org", "list_email": "gcc-patches@gcc.gnu.org", "web_url": null, "scm_url": null, "webscm_url": null }, "msgid": "<20260421133641.969451-1-jwakely@redhat.com>", "date": "2026-04-21T13:26:58", "name": "libstdc++: Use 32-bit platform wait type for OpenBSD and DragonFly [PR120527]", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "bd36fdb8fe796800551c1bcd0ebcaa2afcfd336c", "submitter": { "id": 48004, "url": "http://patchwork.ozlabs.org/api/1.1/people/48004/?format=api", "name": "Jonathan Wakely", "email": "jwakely@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260421133641.969451-1-jwakely@redhat.com/mbox/", "series": [ { "id": 500806, "url": "http://patchwork.ozlabs.org/api/1.1/series/500806/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=500806", "date": "2026-04-21T13:26:58", "name": "libstdc++: Use 32-bit platform wait type for OpenBSD and DragonFly [PR120527]", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500806/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2225714/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2225714/checks/", "tags": {}, "headers": { "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=Vv8VMcWx;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)", "sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=Vv8VMcWx", "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com", "sourceware.org; spf=pass smtp.mailfrom=redhat.com", "server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.133.124" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0Nh945vMz1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 23:37:28 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 41BEC4BA9016\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 13:37:26 +0000 (GMT)", "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by sourceware.org (Postfix) with ESMTP id 4A2B24BA23E8\n for <gcc-patches@gcc.gnu.org>; Tue, 21 Apr 2026 13:36:49 +0000 (GMT)", "from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-32-7ckEun7oOI6wJ1IwRAycJA-1; Tue,\n 21 Apr 2026 09:36:47 -0400", "from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id B4C3018002CA; Tue, 21 Apr 2026 13:36:44 +0000 (UTC)", "from zen.kayari.org (unknown [10.44.50.46])\n by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id A4B201956095; Tue, 21 Apr 2026 13:36:42 +0000 (UTC)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 41BEC4BA9016", "OpenDKIM Filter v2.11.0 sourceware.org 4A2B24BA23E8" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 4A2B24BA23E8", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 4A2B24BA23E8", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776778609; cv=none;\n b=blZHJYHDuXGPVhL9kC9PUQDrCOuh9INEn8aENf/VkrX2nRi1QWpzPyc+JUMSWMPenN8Jhc5oi2NjTwXLGC5p5xK8iK7bSX0Fb1zmz4/BgjbYxcC73C1APS36Z8MAuhkPEKJ9mz+FE2dFGgBByqkCXIKlE3aT4Tq/bMK/3yeIogI=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776778609; c=relaxed/simple;\n bh=fpapjA6dbWT2ckKpx4Dlh+OEZJ/1RrYRRmy3gaQfiRQ=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=rpnwcbEzO4XE9cPwyGxiJ1bgRjxocgcPNtUShevcVuFyBWOmBNyfaZfcjqxPanrqbOElDY9Kosk9qofLcJt3B6nMt1jZ6rtydVBPsOGS3jZ/NAz8eU7QF340RO8u5OzrUmVTaFkTVdFpX45F7aVMbzK5FGPIyt82JVcdWSL8NwM=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1776778609;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=fw0Kt9rppe4WvhPjlAhGp9WBmcO52TEdOUjEvNe/mW4=;\n b=Vv8VMcWx8DVj5xTmQl7PMJBIz1t7nCabRCp0E897V32L1a29sKG1zvEe1zNTnvTvHSiLoV\n UpBZriWg77iZSoKHEkjTYNdso3p6kQkekoNxDuCcRT34tR+xvyJDiad4NW2WCmug1Sf1PW\n pP8w7C/llMViSFPbFy10iN0QPDzTsfU=", "X-MC-Unique": "7ckEun7oOI6wJ1IwRAycJA-1", "X-Mimecast-MFC-AGG-ID": "7ckEun7oOI6wJ1IwRAycJA_1776778605", "From": "Jonathan Wakely <jwakely@redhat.com>", "To": "gcc-patches@gcc.gnu.org,\n\tlibstdc++@gcc.gnu.org", "Cc": "Marc Espie <espie@cvs.openbsd.org>,\n\tJohn Marino <gnugcc@marino.st>", "Subject": "[PATCH] libstdc++: Use 32-bit platform wait type for OpenBSD and\n DragonFly [PR120527]", "Date": "Tue, 21 Apr 2026 14:26:58 +0100", "Message-ID": "<20260421133641.969451-1-jwakely@redhat.com>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 3.0 on 10.30.177.17", "X-Mimecast-Spam-Score": "0", "X-Mimecast-MFC-PROC-ID": "o7GQRnsqAugDm0lNbC7s8qxf2G5-bpTZuhTSVSjCPqs_1776778605", "X-Mimecast-Originator": "redhat.com", "Content-Type": "text/plain", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "gcc-patches@gcc.gnu.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>", "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>", "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>", "List-Post": "<mailto:gcc-patches@gcc.gnu.org>", "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>", "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>", "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org" }, "content": "This defines __platform_wait_t as unsigned int for OpenBSD and\nDragonFly. This means that std::semaphore will use unsigned int by\ndefault, and so will benefit from more efficient wait/notify ops if we\nstart to use the OpenBSD futex(2) syscall or the DragonFly umtx(2)\nsyscalls. We don't currently use them, but if we start to in future, it\nwould be an ABI break to change __platform_wait_t later.\n\nlibstdc++-v3/ChangeLog:\n\n\tPR libstdc++/120527\n\t* include/bits/atomic_wait.h [__OpenBSD__ || __DragonFly]: Use\n\tunsigned int for __platform_wait_t.\n---\n\nTested DragonFly 6.4 and x86_64-linux.\n\n libstdc++-v3/include/bits/atomic_wait.h | 6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)", "diff": "diff --git a/libstdc++-v3/include/bits/atomic_wait.h b/libstdc++-v3/include/bits/atomic_wait.h\nindex 3d10b0a155e5..c874d6097304 100644\n--- a/libstdc++-v3/include/bits/atomic_wait.h\n+++ b/libstdc++-v3/include/bits/atomic_wait.h\n@@ -108,7 +108,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION\n // a mutex/condvar based wait.\n namespace __detail\n {\n-# if ATOMIC_LONG_LOCK_FREE == 2\n+# if defined __OpenBSD__ || defined __DragonFly__\n+ // These targets provide 32-bit futex-like syscalls.\n+ // We don't currently make use of them, but we want to in future.\n+ using __platform_wait_t = unsigned int;\n+# elif ATOMIC_LONG_LOCK_FREE == 2\n using __platform_wait_t = unsigned long;\n # else\n using __platform_wait_t = unsigned int;\n", "prefixes": [] }