Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2227596/?format=api
{ "id": 2227596, "url": "http://patchwork.ozlabs.org/api/patches/2227596/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260424015547.67E362044B@pchp3.se.axis.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": "<20260424015547.67E362044B@pchp3.se.axis.com>", "list_archive_url": null, "date": "2026-04-24T01:55:47", "name": "[1/2] testsuite: New effective-target sleep", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "f07b43356b204a6db22c99cd49957f8540c2df43", "submitter": { "id": 78298, "url": "http://patchwork.ozlabs.org/api/people/78298/?format=api", "name": "Hans-Peter Nilsson", "email": "hp@axis.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260424015547.67E362044B@pchp3.se.axis.com/mbox/", "series": [ { "id": 501276, "url": "http://patchwork.ozlabs.org/api/series/501276/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501276", "date": "2026-04-24T01:55:47", "name": "[1/2] testsuite: New effective-target sleep", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501276/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2227596/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2227596/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 (1024-bit key;\n unprotected) header.d=axis.com header.i=@axis.com header.a=rsa-sha256\n header.s=selector1 header.b=hPkCWtnC;\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=axis.com header.i=@axis.com header.a=rsa-sha256\n header.s=selector1 header.b=hPkCWtnC", "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=axis.com", "sourceware.org; spf=pass smtp.mailfrom=axis.com", "server2.sourceware.org;\n arc=pass smtp.remote-ip=52.101.66.30" ], "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 4g1wzs0jHRz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 11:56:23 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id EBB8D4B99F5B\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 01:56:21 +0000 (GMT)", "from DUZPR83CU001.outbound.protection.outlook.com\n (mail-northeuropeazon11012030.outbound.protection.outlook.com [52.101.66.30])\n by sourceware.org (Postfix) with ESMTPS id CF0F04B99F59;\n Fri, 24 Apr 2026 01:55:52 +0000 (GMT)", "from DB9PR02CA0025.eurprd02.prod.outlook.com (2603:10a6:10:1d9::30)\n by DU2PR02MB10111.eurprd02.prod.outlook.com (2603:10a6:10:493::5)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9846.22; Fri, 24 Apr\n 2026 01:55:49 +0000", "from DB1PEPF00039232.eurprd03.prod.outlook.com\n (2603:10a6:10:1d9:cafe::c3) by DB9PR02CA0025.outlook.office365.com\n (2603:10a6:10:1d9::30) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9846.22 via Frontend Transport; Fri,\n 24 Apr 2026 01:55:48 +0000", "from mail.axis.com (195.60.68.100) by\n DB1PEPF00039232.mail.protection.outlook.com (10.167.8.105) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9791.48 via Frontend Transport; Fri, 24 Apr 2026 01:55:47 +0000", "from SE-MAILARCH01W.axis.com (10.20.40.15) by se-mail10w.axis.com\n (10.20.40.10) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1748.39; Fri, 24 Apr\n 2026 03:55:47 +0200", "from se-mail10w.axis.com (10.20.40.10) by SE-MAILARCH01W.axis.com\n (10.20.40.15) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Fri, 24 Apr\n 2026 03:55:47 +0200", "from se-intmail02x.se.axis.com (10.4.0.28) by se-mail10w.axis.com\n (10.20.40.10) with Microsoft SMTP Server id 15.2.1748.39 via Frontend\n Transport; Fri, 24 Apr 2026 03:55:47 +0200", "from pchp3.se.axis.com (pchp3.se.axis.com [10.88.21.53])\n by se-intmail02x.se.axis.com (Postfix) with ESMTP id 74E382C37;\n Fri, 24 Apr 2026 03:55:47 +0200 (CEST)", "by pchp3.se.axis.com (Postfix, from userid 171)\n id 67E362044B; Fri, 24 Apr 2026 03:55:47 +0200 (CEST)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org EBB8D4B99F5B", "OpenDKIM Filter v2.11.0 sourceware.org CF0F04B99F59" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org CF0F04B99F59", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org CF0F04B99F59", "ARC-Seal": [ "i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1776995753; cv=pass;\n b=OjrcFOmbcqCHJnlq9lBzND8vDPD04Gd4HA07VTl/Q+jfBz2haIldgoV6Y1J7X6ill+agHO/r/cEwce+TdBGuP7m9m7UBpFvtcjhdhT9MCR6hLhmk46YkMIDjghZBeFV1NDzX8bphnbjKMA+QkV1LBRrj0Fpqzs49H6Wxxb2yXA0=", "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=y4QByHUp+3Cvm/8dytBjhB4Ef2ebSY2NnLnKs37euvNwJKYPCvIk4lRsSzCLSp0hZ2c1sUBtMPTPSMuO5U66bCUEWLq/a8qvGsaioCxiCnz/8RLAB+SvTrqxdbcUfFMzyFai2vfbQWYqaX+bEt5CLSX6WdSwBMZDRf/bwTGtkyl4Crp+FBXBgnqDm3nKmZieY98K6rfaaEwODv3uJ+FSyZFhYiHao5Jbmmgk1EglLyoGzkpNafi9L2TTvT+f/aKZY64ycvxgFYwtLyUWI6MVGiVRT/q++94/i7q5CxnUPQ1GaE1zcuDzEBp/ZsszC5WBoSyHn3SpWN5miWy1YbeVtA==" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776995753; c=relaxed/simple;\n bh=mjpGx62tAG1h/k03+rzG9jKvGZPUUVHbirzlXOYnTGI=;\n h=DKIM-Signature:From:To:Subject:MIME-Version:Message-ID:Date;\n b=Rsct5T0NUZQ7KA+Wlt4yZUo7WHvh+okJg++eCE4iFaom//QLk2ye3TgydA8Vzm4mdkfB2GeWxMLtI4eGhah1ih57kXAYnWbWayKLx5rIxLwD7m5VscmmhZUSy0raGSEoglK4lyP8fCMzZyNYY1f3Y1j+bgMT/CFqoUgnKLVK6bE=", "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=QqD6YhAZWVzSUBt/mAqhqkJs2lOuiHUfF4Jape6o11A=;\n b=YTJvesNaC/nScUFWD119YmqG+OFbYFiThMlioUW6Vog+MwUzjgaBi6XzzTqTaHcS/zG20fESrwr4coWxYfo/2TqKXNxGPXgc0ucdvJgR1yCPZnHlXKEi+YSEfZ+JPjabiM0A4YKDIu99EVo8/2g3VDWLgqjgfLCAVdPf54Dt6VQSLJgTcSsm9COAbWXX2ut1iygk3fpy8xz01lSjDmB/0N7i4QB0irDNdOPQICa8/V23xLc6tNON+WKOCY77lEGVGqS0xwSzp+KnN6Nd8ikYLKhQ93KQXDu6EIucWROB9LbyIJdxPqY38EJH1L2UjEVrT8PJ9REh2KPVzkbyhY6Rhg==" ], "ARC-Authentication-Results": [ "i=2; server2.sourceware.org", "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 195.60.68.100) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=axis.com;\n dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com;\n dkim=none (message not signed); arc=none (0)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=QqD6YhAZWVzSUBt/mAqhqkJs2lOuiHUfF4Jape6o11A=;\n b=hPkCWtnCE5fOvJ8Gluy9nVFCxKIBz7WCQBaiXNbwqfBHOUgC6eIkkFih0scqNfBWEisg1xXIEOaQqt+8xI0BTZbrA0P9J3sMp76CJwbMiTxFLCrzPNOvWCPlksn3z86ecUMrDikpnJXfWsalBZIC2WEUxDYph3Z/2nAOVMmXLuA=", "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 195.60.68.100)\n smtp.mailfrom=axis.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=axis.com;", "Received-SPF": "Pass (protection.outlook.com: domain of axis.com designates\n 195.60.68.100 as permitted sender) receiver=protection.outlook.com;\n client-ip=195.60.68.100; helo=mail.axis.com; pr=C", "From": "Hans-Peter Nilsson <hp@axis.com>", "To": "<gcc-patches@gcc.gnu.org>", "CC": "<fortran@gcc.gnu.org>, <jvdelisle2@gmail.com>, <vehre@gmx.de>", "Subject": "[PATCH 1/2] testsuite: New effective-target sleep", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"iso-8859-1\"", "Content-Transfer-Encoding": "8BIT", "Message-ID": "<20260424015547.67E362044B@pchp3.se.axis.com>", "Date": "Fri, 24 Apr 2026 03:55:47 +0200", "X-EOPAttributedMessage": "0", "X-MS-PublicTrafficType": "Email", "X-MS-TrafficTypeDiagnostic": "DB1PEPF00039232:EE_|DU2PR02MB10111:EE_", "X-MS-Office365-Filtering-Correlation-Id": "6bf82a0d-fee1-4b6b-cd1d-08dea1a49afa", "X-MS-Exchange-SenderADCheck": "1", "X-MS-Exchange-AntiSpam-Relay": "0", "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|1800799024|82310400026|376014|36860700016|18002099003|56012099003;", "X-Microsoft-Antispam-Message-Info": "\n vc3AYbARyWkCONVnpTOVWoTwttem6rHkUTWfPUQoe+a3YEzbRGE4smQpTx71Y7q9bV8r99KAxZAvJhIdQHGAzvSHkBM7+ShqcUMCFfbT7vAv1gKKqRGhL3ed0fuYSCCa5/mg9y8/CNNpM7PnbVRhtJTLzaOnfe4IYy0u70BK7cGtntnt+w0z/sFRwRrI6gWLTE+pGnpzlXJJGL3jSLwuJphtjQfZULTD/HO/JSmNp9ixLtJWPdJqAEDwBDx4cPveUPy3YRWNkcOjlhvP1K9sfj67pyzVCCe1V58F8bKdK3FsUsXetlwPxFqwvfpNj9DWrUyJ+obVpSOgDNWQfJ4ySz1mIJT7MeZEXnbekJmmNKgX96Rku2t55kpilGfW2Ju6iTNJAWbmTJr7YipoDCmWY580rbQqfQZ5KkIMqVXViIYHsrCHw8Nb9foIdWeMIvL55jymRbHofjmlPSkXhSCK07IFRUtQYmroluSPKuP1L5XCXhemXOhsfNopP9jkHXMKOhumsl/y0IQ8cA9K0K2FX0+qzYS84KPx+fPd2eCyYu7MTC1iCoqWoxnIt4XPa0j9lKpHP5QBVq1yn7tQ9VQy1PGxhqFYvnLqFDjbU+gtDHkxm8ZSJ39Cz0tzUDqHM4pqKQK9G2QPl0dWbQoSC7E5pIXrA5u3IGbAqzD7NOqOMe2PvW+KPp1Ns7uKqnYaYcGOLLcsy/8rUVgcuGSKXiAxS1HhJXrimWXANGDi9e3ESkMhtbm01vbNwUwSNK10MgdB6ZF61hsy5i9k8l+kbjDYzA==", "X-Forefront-Antispam-Report": "CIP:195.60.68.100; CTRY:SE; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230040)(1800799024)(82310400026)(376014)(36860700016)(18002099003)(56012099003);\n DIR:OUT; SFP:1101;", "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1", "X-MS-Exchange-AntiSpam-MessageData-0": "\n 5NLCXYWgUA9nJg6JeUGuKSSWgYnyr5DLBQW9xenpxu9LgiAKsZjvy3hzvNTr7esi1zo91AKQLhIBKWS3P4woGRNf9+P9Lt5sURbZO6/GHOZnaA7gFHMx70Ws/xiIr14PjMGthtdy9yK9dpd/m69y8ZriEERkyunl9O8EB0sPcqcMKl6LqATK0AlH5gmjRw3UTdqmUqkz8ngS5lGYbBs/N0dNfx9Jz7bhJsXwvh95DLVexjnqSGlX1koYAiXRuqUyl/P1i7CtJKSvayeVoBp5xSTHxLZPMlLhVJT0amt2oXCnAyXn5u/rmTdJEDUCzMOSCV6LK0C9S+1H3FfFg6U030F//UHJ0tdHmUKhEzhyYoa4Rf9eune2DM1hk4AKZUQWyqJIMK4wyKmkQwbx1vyBGAL+80AxWLfCBohYeGC+liMgmZ4LYsUz41tIAXWwJFhh", "X-OriginatorOrg": "axis.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "24 Apr 2026 01:55:47.9514 (UTC)", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 6bf82a0d-fee1-4b6b-cd1d-08dea1a49afa", "X-MS-Exchange-CrossTenant-Id": "78703d3c-b907-432f-b066-88f7af9ca3af", "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=78703d3c-b907-432f-b066-88f7af9ca3af; Ip=[195.60.68.100];\n Helo=[mail.axis.com]", "X-MS-Exchange-CrossTenant-AuthSource": "\n DB1PEPF00039232.eurprd03.prod.outlook.com", "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DU2PR02MB10111", "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": "See also PR libfortran/125005. Ok for trunk and gcc-16?\n-- >8 --\nlibgfortran calls sleep, which is not available on all targets.\n\ngcc:\n\t* doc/sourcebuild.texi (Effective-Target Keywords): Document 'sleep'.\n\ngcc/testsuite:\n\t* lib/target-supports.exp (check_effective_target_sleep): New.\n---\n gcc/doc/sourcebuild.texi | 3 +++\n gcc/testsuite/lib/target-supports.exp | 11 +++++++++++\n 2 files changed, 14 insertions(+)", "diff": "diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi\nindex 3bccb1384d9f..4ca7a0810ec7 100644\n--- a/gcc/doc/sourcebuild.texi\n+++ b/gcc/doc/sourcebuild.texi\n@@ -2838,6 +2838,9 @@ both scalar and vector modes.\n @item alarm\n Target supports @code{alarm}.\n \n+@item sleep\n+Target supports @code{sleep}.\n+\n @item c\n The language for the compiler under test is C.\n \ndiff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp\nindex e7165e2e1b8c..1dd2e164daa5 100644\n--- a/gcc/testsuite/lib/target-supports.exp\n+++ b/gcc/testsuite/lib/target-supports.exp\n@@ -14823,6 +14823,17 @@ proc check_effective_target_alarm { } {\n }]\n }\n \n+# Return true if sleep is supported on the target.\n+\n+proc check_effective_target_sleep { } {\n+ return [check_no_compiler_messages sleep executable {\n+\t#include <unistd.h>\n+\tint main (void) { \n+\t sleep (1);\n+\t}\n+ }]\n+}\n+\n # Return true if a speculation barrier is defined on the target.\n proc check_effective_target_speculation_barrier_defined { } {\n return [check_no_compiler_messages speculation_barrier_defined assembly {\n", "prefixes": [ "1/2" ] }