Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2221789/?format=api
{ "id": 2221789, "url": "http://patchwork.ozlabs.org/api/patches/2221789/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/oro6jr10tw.fsf@lxoliva.fsfla.org/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/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, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<oro6jr10tw.fsf@lxoliva.fsfla.org>", "list_archive_url": null, "date": "2026-04-10T12:01:15", "name": "libstdc++: follow std in numeric_limits<bool>::traps", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "0ad5146bed72f4d6ad279ec3d0fb14fc3f486713", "submitter": { "id": 74937, "url": "http://patchwork.ozlabs.org/api/people/74937/?format=api", "name": "Alexandre Oliva", "email": "oliva@adacore.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/oro6jr10tw.fsf@lxoliva.fsfla.org/mbox/", "series": [ { "id": 499446, "url": "http://patchwork.ozlabs.org/api/series/499446/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=499446", "date": "2026-04-10T12:01:15", "name": "libstdc++: follow std in numeric_limits<bool>::traps", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499446/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2221789/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2221789/checks/", "tags": {}, "related": [], "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 (2048-bit key;\n secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256\n header.s=google header.b=OLB6rFrZ;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.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 (2048-bit key,\n secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256\n header.s=google header.b=OLB6rFrZ", "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=adacore.com", "sourceware.org; spf=pass smtp.mailfrom=adacore.com", "server2.sourceware.org;\n arc=none smtp.remote-ip=74.125.82.54" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org [38.145.34.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 4fsb5X4cWwz1yGS\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 22:02:23 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 38A994BA2E08\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 12:02:21 +0000 (GMT)", "from mail-dl1-f54.google.com (mail-dl1-f54.google.com\n [74.125.82.54])\n by sourceware.org (Postfix) with ESMTPS id 32E604BA2E18\n for <gcc-patches@gcc.gnu.org>; Fri, 10 Apr 2026 12:01:44 +0000 (GMT)", "by mail-dl1-f54.google.com with SMTP id\n a92af1059eb24-128e4d0cc48so9302096c88.1\n for <gcc-patches@gcc.gnu.org>; Fri, 10 Apr 2026 05:01:44 -0700 (PDT)", "from free.home ([2804:14c:4d1:41a6::1455])\n by smtp.gmail.com with ESMTPSA id\n a92af1059eb24-12c34352490sm2996281c88.0.2026.04.10.05.01.41\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 10 Apr 2026 05:01:41 -0700 (PDT)", "from livre (livre.home [172.31.160.2])\n by free.home (8.15.2/8.15.2) with ESMTPS id 63AC1FRX341741\n (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);\n Fri, 10 Apr 2026 09:01:16 -0300" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 38A994BA2E08", "OpenDKIM Filter v2.11.0 sourceware.org 32E604BA2E18" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 32E604BA2E18", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 32E604BA2E18", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775822504; cv=none;\n b=SSVq1ejbwLfiaJOMGEQMfwWSbGLE9RQgl90LOu+u2AnS36vMXT9sUR4l5m/OT9gBmh8Gcl6PjM1AVERHY5yTbQ/K614t7eQipIgUeTa0uLpe919atV/tdORXVAcLm214KbB/G9ZP+ENPmnn15s8AHy1vl1s053NsUElktfB1RZ4=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775822504; c=relaxed/simple;\n bh=YEx2LInpKbB01lS2aMVXDaMzciQZA7wezv/yu/vXZuM=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=tF8lbpLO4cUleJPtH7Bc2hkRnVjoW4YsAe7+0H/gXjswJzPLTkqJMOO0qflyfKJa1sog2XnIYxyIm7fFb0KX74cwiQLAx8CTR1Pi01AixYTueKJynCyxKGGSU6Fj6aterkAg5arc6IXdqDn7do404rJUI53rENzT+nNjW5U5WYY=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=adacore.com; s=google; t=1775822503; x=1776427303; darn=gcc.gnu.org;\n h=mime-version:user-agent:message-id:date:organization:subject:to\n :from:from:to:cc:subject:date:message-id:reply-to;\n bh=cJArN3Zjc/IADHAsyuz20JrGeReqmAQPwQ/49u0bxgs=;\n b=OLB6rFrZQ6ZnSWTHjnd0tnf0AUoAJpyVNObMdOUv3e+mqZfFvyxcB5ERLeItSHRXA0\n HQvojzeBmBdNr2ACpSrgsM2eUtz+ohy2ZAzvftSmpsBs40WiV9hLZRniAKDU3MsqE+wx\n YuL8mpGwCCsOhNDc4kPG3nsupShRZ4U1IvVP1i6T+A/L8OzetmyX1+c80N2D4/NECPje\n E6F1NpAZzTVwa4i+/XP5k0YuWdxdzdGMETCGJgtNr/5WlGZUMxq5L7Mh1biSRQoDbNME\n j78Jo6VjLT/neqITTjNSthMw3sWtp9riCaQXtGR4F9zj6FdMnySRanBg63SbYWG7PvjF\n Mlhg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775822503; x=1776427303;\n h=mime-version:user-agent:message-id:date:organization:subject:to\n :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=cJArN3Zjc/IADHAsyuz20JrGeReqmAQPwQ/49u0bxgs=;\n b=o5ZQM25DxpDIpjLqCgEJh3qfZ/lmDEImPJonNzVst0UP9d07XZ28RJkD+jZOUSE+/+\n jsOTiBb/Ys5zIdshMn0CpvnEn6DKN9ko7pwxRzaHZhwNU1Tot276hS/uXdCBVBuMZFCG\n diOrciooeT2dq/KVp6c6+Ce5NRzhmGF9sESwBssE2SHiqJjROAA2LaAarf3UlZWX6Sue\n 5SjCXxCzbiZwuJhTEJyJvJ3t5elJf2UqH7pdOHRMgDpqyOPyRYM2aIrGhPP47hVDEZfH\n 0nlQ1K+n5mx5BmeTXAiBzDEIPBPUaqvHiM5GI5542M67qEoIanKQjnmmSEDA+U4TKq5b\n A8qg==", "X-Gm-Message-State": "AOJu0Yy3Ho/orYsP80pUjHc74kC3SyrgYBJUczDKL3eJ6pRiRyQ//qZo\n odpFXJyZ8OWfNd9GkNVaB3NlEuc4T/usJnlvsuk2Aq28ocbkSvpvNw7Iyx8+zE7a1My3iP6t4vu\n Cho5kLg==", "X-Gm-Gg": "AeBDieu7zzAi30JfDJIStPdk6/b82lxckVFy9+LDXSiznX8cp7xooBdzzcDkOamrKkR\n mdXj/YBDnHMijE7LNDuGSKQqmYT7uF3rftIpjWbgY0wCb8dXqN1NuPKAQxEcRHMwdRvF4pIu4Qn\n mIE+3IqX7M3a42AYL3oPLROHl3MkXUuSClSrEuPIgceSFKDuVtNC+lO+7AnpBsn8kSpS5uww86p\n pM7WTRhi2/EhJ4YU13zDu09s5lLPbjOnrUhIZN0JPZWLDp17aa7Y4zMa1JMP7T3PsnxY5EohaPh\n bEanhmf/1xDJ+hs3UyYcMSxtuIJQ6OjN+27LBjdEkxCHzYmD+9y6OhYP59pgB8/wnx8jGWZC6wK\n 4VWKD2eXWSeHmyelxhBplVCDwY//tsI/Q5QSmdSklwBlje7ze04O4QIJ0C55Db9DCFKrtKwrUGz\n 8=", "X-Received": "by 2002:a05:7022:48e:b0:128:df3d:cd97 with SMTP id\n a92af1059eb24-12c34f07477mr1655848c88.35.1775822502681;\n Fri, 10 Apr 2026 05:01:42 -0700 (PDT)", "From": "Alexandre Oliva <oliva@adacore.com>", "To": "gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org", "Subject": "[PATCH] libstdc++: follow std in numeric_limits<bool>::traps", "Organization": "Free thinker, does not speak for AdaCore", "Date": "Fri, 10 Apr 2026 09:01:15 -0300", "Message-ID": "<oro6jr10tw.fsf@lxoliva.fsfla.org>", "User-Agent": "Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Scanned-By": "MIMEDefang 2.84", "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": "There's a comment from 2002 suggesting that\nnumeric_limits<bool>::traps was in a DR, but C++ standards including\n11, 17 and 23 explicitly set it to false. I suppose whatever DR that\ncomment referred to must have long been resolved in favor of what's in\nthese much newer releases of the standard. So align it with the\nstandards, and drop the comment.\n\nRegstrapped on x86_64-linux-gnu. Ok to install? Not a regression\nAFAICT; perhaps for stage1?\n\n\nfor libstdc++-v3/ChangeLog\n\n\t* include/std/limits (numeric_limits<bool>::traps): Set to\n\tfalse.\n---\n libstdc++-v3/include/std/limits | 5 +----\n 1 file changed, 1 insertion(+), 4 deletions(-)", "diff": "diff --git a/libstdc++-v3/include/std/limits b/libstdc++-v3/include/std/limits\nindex f0ba2851a0a2e..c160503e0a826 100644\n--- a/libstdc++-v3/include/std/limits\n+++ b/libstdc++-v3/include/std/limits\n@@ -446,10 +446,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION\n static _GLIBCXX_USE_CONSTEXPR bool is_bounded = true;\n static _GLIBCXX_USE_CONSTEXPR bool is_modulo = false;\n \n- // It is not clear what it means for a boolean type to trap.\n- // This is a DR on the LWG issue list. Here, I use integer\n- // promotion semantics.\n- static _GLIBCXX_USE_CONSTEXPR bool traps = __glibcxx_integral_traps;\n+ static _GLIBCXX_USE_CONSTEXPR bool traps = false;\n static _GLIBCXX_USE_CONSTEXPR bool tinyness_before = false;\n static _GLIBCXX_USE_CONSTEXPR float_round_style round_style\n = round_toward_zero;\n", "prefixes": [] }