get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2196553/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2196553,
    "url": "http://patchwork.ozlabs.org/api/patches/2196553/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/c84a86f8-e064-4116-9b8e-081bd766664a@gmail.com/",
    "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": "<c84a86f8-e064-4116-9b8e-081bd766664a@gmail.com>",
    "list_archive_url": null,
    "date": "2026-02-14T19:50:42",
    "name": "[caf_shmem] Test fails without explicit SYNC ALL",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "5ff3d446625c2776fc7b75d9c5807db1e1c23c92",
    "submitter": {
        "id": 78264,
        "url": "http://patchwork.ozlabs.org/api/people/78264/?format=api",
        "name": "Jerry D",
        "email": "jvdelisle2@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/c84a86f8-e064-4116-9b8e-081bd766664a@gmail.com/mbox/",
    "series": [
        {
            "id": 492194,
            "url": "http://patchwork.ozlabs.org/api/series/492194/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=492194",
            "date": "2026-02-14T19:50:42",
            "name": "[caf_shmem] Test fails without explicit SYNC ALL",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492194/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196553/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196553/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 unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=Ux7RCA6H;\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 (2048-bit key,\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=Ux7RCA6H",
            "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "sourceware.org; spf=pass smtp.mailfrom=gmail.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=209.85.210.181"
        ],
        "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 4fD05x3cQ2z1xwj\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 15 Feb 2026 06:51:17 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 61F774B9DB7F\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 14 Feb 2026 19:51:15 +0000 (GMT)",
            "from mail-pf1-f181.google.com (mail-pf1-f181.google.com\n [209.85.210.181])\n by sourceware.org (Postfix) with ESMTPS id 7333D4B9DB7F\n for <gcc-patches@gcc.gnu.org>; Sat, 14 Feb 2026 19:50:46 +0000 (GMT)",
            "by mail-pf1-f181.google.com with SMTP id\n d2e1a72fcca58-82418b0178cso1142371b3a.1\n for <gcc-patches@gcc.gnu.org>; Sat, 14 Feb 2026 11:50:46 -0800 (PST)",
            "from [10.168.168.23] ([50.37.179.80])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-824c6bb3549sm6390027b3a.59.2026.02.14.11.50.43\n (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n Sat, 14 Feb 2026 11:50:43 -0800 (PST)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 61F774B9DB7F",
            "OpenDKIM Filter v2.11.0 sourceware.org 7333D4B9DB7F"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 7333D4B9DB7F",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 7333D4B9DB7F",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771098646; cv=none;\n b=Vt35Dtv9M+rvOVLNAN9Ie1cSGwe9PlMJM9qARtaugE45f7pU/I3Sf+/RkTw45I20UDy6aDvGzNvo1abXh9WILdZKWeDVSFDh11ivhg5yyRr+XpyKHwFUolbr86e1xnyBN6vs/OIZ426nVy0kxLi483whH/VyYRrPX0nTHNOGjJg=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1771098646; c=relaxed/simple;\n bh=CKfc5b1mDTsMgV1q5Zp+0gTg2ZYgA0nQfEnPcmminrQ=;\n h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject;\n b=VeXzNDEBbllLp3A73blTxGRJaHu6JFZzkOAVbNookc1JAuQGqlNQuaLW+VntQvwET8tX6NFmatVR9PpmYm5z28nECqz6Csf4wfENSCW/pxBS/gv7KhDvgtVk6nMVvwtkDZJ+tgnhlwe+122flGUELTlhT+SGOGIepaLqbEq0pGA=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20230601; t=1771098645; x=1771703445; darn=gcc.gnu.org;\n h=autocrypt:subject:from:to:content-language:user-agent:mime-version\n :date:message-id:from:to:cc:subject:date:message-id:reply-to;\n bh=V1s8C5qtJO4wivCytbcFo9WvyY3XtMSuE0JdOlnkcNg=;\n b=Ux7RCA6HvhbvvfD2ZjBwm/Ilndfiq6P3swxHDOmY0zeZ8lAYuwaRnf+93exqC/QIN5\n Gg9PwrQy3ixp05ZcLFKnfxh3fFuE3KxaZE4eqQ8YNvca3xy0c67MaVZXCGg0uFO5miWa\n Ww4aY9rkSqTwPXTTTvddFVeef7nk/I4wTVuTNHWXoTA7YUL2bOnD86qnl8y4Nwo5JAQK\n WQ8F0TFOj38UkXUdZE4j0U02YChBX9sw+8Mzu8gOaf4KRTNNkqAlhcAe7fy9JElOVM/P\n y6iw/7mD/thatNYHfAQlURskJ7C48q4cFKvLTdH375p2/pvpHhVDrfoTAGRqAL8aiXgJ\n RJNA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771098645; x=1771703445;\n h=autocrypt:subject:from:to:content-language:user-agent:mime-version\n :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=V1s8C5qtJO4wivCytbcFo9WvyY3XtMSuE0JdOlnkcNg=;\n b=xRQGnhupsTQXaNwQyy0frrq1rMN1aAn16cOaGFyHotAGFBOz/Pgq2bdxu3iJvdHn3T\n jm1yoWCuYGn6uXDTDgGNJ8I9mtGLKCWvT9lGKWo1GjZOftrEORHaISCWB15nFPzdp6K5\n /FkeyDYrwxNCIgQmYUcUYfjwG4PTv8H5JvCm6t6iDKEDxQmd9ocM9VidknSacnD7k4W2\n 53z3zUTONZlbOgqrY2xaCPiGp/nJ7rllA7yetUJ8FXUjsPipPRdVgE0ZbxFJTNzVUXcW\n IorpKnWGV9gmKipJ4ZJK32ec4bZBA60spT+g4LXsqaJF6QNIsOMA7TnrlbzFcFle+IRY\n jgWw==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCU4LQlM4rU8GiS2w8UikKYNw3/p3TG3G43oNggbTxzYVBDqh7vld8K8oRIfa67NOvXJ+52cIOK5kLmAwQ==@gcc.gnu.org",
        "X-Gm-Message-State": "AOJu0YyM6Qkuxkrhn9DwCrzJtS0W+5WSxJjC7AxyZrrJlE6aOkXZkXPk\n NQLcg7ox2VAfOaIhW65g83JVqtYjSk3VwWLSvPETREXftCwt9Zsay/ZA",
        "X-Gm-Gg": "AZuq6aJ446h0QB3LJMogVyPKyiM1YCrgRk7K22ej0NpQ3kWpZIIiCduUtSxSvVsp+Gt\n GW+Wu/rLUKfeeZLtF131qI/4wPj6gul1n3EB48s8z7gjKoxofSExYOc1bgO0Jb1mm7HIJDoTO7+\n 2wsXyInjcnbEvnzOhv2XwAlMPEZa9c/srjZzteVJ513pHDLiT6gsB6K+yn7pFh1/2f/vXSW8887\n YiuO8zE4C204LquVbX8bNFYsirSwKz0CUaCzzIsE5wwBABZ0kbRahgu9wOFILd5imopj+8dsuR3\n sOmHKCwCwx8aX12k5R2wyNdMbqtROiKV/wCgJqPu3jb66uUPNNgEtsdxxP44u8s25TVr3qOFIUN\n DQRP1pNz7GHndVqD+7tAc7HNK6XpZGXuJxVcai0zN8D2Xg8nNa+/DpZFXy8PXvBourGb10O+hvx\n rPkAnBSeYFjMIm0ZozKje6PB/xITG5DG78p3AYHQ==",
        "X-Received": "by 2002:a05:6a00:1784:b0:81f:3c77:a24c with SMTP id\n d2e1a72fcca58-824c964c895mr5976727b3a.66.1771098645337;\n Sat, 14 Feb 2026 11:50:45 -0800 (PST)",
        "Content-Type": "multipart/mixed; boundary=\"------------wwSjZO1oOTS5Jkd6X32IwedG\"",
        "Message-ID": "<c84a86f8-e064-4116-9b8e-081bd766664a@gmail.com>",
        "Date": "Sat, 14 Feb 2026 11:50:42 -0800",
        "MIME-Version": "1.0",
        "User-Agent": "Mozilla Thunderbird",
        "Content-Language": "en-US",
        "To": "gfortran <fortran@gcc.gnu.org>, gcc-patches <gcc-patches@gcc.gnu.org>",
        "From": "Jerry D <jvdelisle2@gmail.com>",
        "Subject": "[PATCH] [caf_shmem] Test fails without explicit SYNC ALL",
        "Autocrypt": "addr=jvdelisle2@gmail.com; keydata=\n xjMEY5TlkxYJKwYBBAHaRw8BAQdAyrkRDhmJhSTTlV/50gJLlvliU6/Lm5C9ViKV8T9y1GnN\n HkplcnJ5IEQgPGp2ZGVsaXNsZTJAZ21haWwuY29tPsKJBBMWCAAxFiEEOFR0TS0390uh8dRV\n uWXAJaWpwWoFAmOU5ZMCGwMECwkIBwUVCAkKCwUWAgMBAAAKCRC5ZcAlpanBalsJAP4wdCiH\n 2Of9oZv1QWgZ/AVdbWFM3Fv47/WZQHOXfoZ9HgD6AkXrKeJ+6usST7PEaDJjptaViT1fLiYY\n V/6XaOKSsgLOOARjlOWTEgorBgEEAZdVAQUBAQdAdA7PczYnl07vnOT9oP/wvvMDd4HP09Zl\n g3LzwXQJWT8DAQgHwngEGBYIACAWIQQ4VHRNLTf3S6Hx1FW5ZcAlpanBagUCY5TlkwIbDAAK\n CRC5ZcAlpanBasF/AQCa5WjlsVpLsEiggZyT18MOJNAdeRd7wkGDUrwedHrvawD/cE1H+/Ms\n L1ZwvQiLfGdx8crigQqWTQyos4kH8Wx82wc=",
        "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": "The attached patch from Andre fixes this issue. It goes on top of the other \ncaf_shmem patches.\n\nNew test case which skips it for -fcoarray=single and otherwise verified that \ncaf.exp is indeed setting the GFORTRAN_NUM_IMAGES to 8.\n\nAuthor: Andre Vehreschild <vehre@gcc.gnu.org>\nDate:   Sat Feb 14 11:37:07 2026 -0800\n\n     Fortran: Fix coarray shared mem [PR121429]\n\n             PR fortran/121429\n\n     libgfortran/ChangeLog:\n\n             * caf/shmem.c (_gfortran_caf_deregister): Add a call to\n             sync_team.\n\n     gcc/testsuite/ChangeLog:\n\n             * gfortran.dg/coarray/deallocate_sync.f90: New test.\n\nOK for mainline after we get the whole patch set approved. I am working through \ncomments and fixes as I go so we have a trail.\n\nRegards,\n\nJerry",
    "diff": "commit 0acfae43f7b093c8d52bfbcea3a758bc24519416\nAuthor: Andre Vehreschild <vehre@gcc.gnu.org>\nDate:   Sat Feb 14 11:37:07 2026 -0800\n\n    Fortran: Fix coarray shared mem [PR121429]\n    \n            PR fortran/121429\n    \n    libgfortran/ChangeLog:\n    \n            * caf/shmem.c (_gfortran_caf_deregister): Add a call to\n            sync_team.\n    \n    gcc/testsuite/ChangeLog:\n    \n            * gfortran.dg/coarray/deallocate_sync.f90: New test.\n\ndiff --git a/gcc/testsuite/gfortran.dg/coarray/deallocate_sync.f90 b/gcc/testsuite/gfortran.dg/coarray/deallocate_sync.f90\nnew file mode 100644\nindex 00000000000..8c6f2b79fb1\n--- /dev/null\n+++ b/gcc/testsuite/gfortran.dg/coarray/deallocate_sync.f90\n@@ -0,0 +1,26 @@\n+! { dg-do run }\n+! Test case from pr121429 which failed because the deallocate was not\n+! doing an implicit sync all.\n+program main\n+  implicit none\n+  integer, allocatable, codimension[:] :: a(:), b(:)\n+  integer :: n, i, left, right\n+  integer :: k\n+  n = num_images()\n+  i = this_image()\n+  !   We skip this test for -fcoarray=single\n+  if (n .ne. 1) then\n+    ! Verify in the testsuite that num_images = 8 as set in caf.exp\n+    if (n .ne. 8) error stop \"Need at least three images\"\n+    left = modulo(i+n-2,n)+1\n+    right = modulo(i,n)+1\n+    do k=1,1000\n+       allocate(a(k+5)[*])\n+       allocate(b(k)[*])\n+       b(:)[right] = right + 1000 * k\n+       deallocate (a)  ! This synchronizes automatically\n+       if (any(b(:)[left] /= left + 1000 * k)) error stop \"Test failed\"\n+       deallocate (b)\n+    end do\n+  end if\n+end program main\ndiff --git a/libgfortran/caf/shmem.c b/libgfortran/caf/shmem.c\nindex 9913db6d709..de6a2b23017 100644\n--- a/libgfortran/caf/shmem.c\n+++ b/libgfortran/caf/shmem.c\n@@ -465,6 +465,7 @@ _gfortran_caf_deregister (caf_token_t *token, caf_deregister_t type, int *stat,\n       free (ca);\n       free (TOKEN (*token));\n       *token = NULL;\n+      sync_team (caf_current_team);\n     }\n   else\n     {\n",
    "prefixes": [
        "caf_shmem"
    ]
}