Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2219301/?format=api
{ "id": 2219301, "url": "http://patchwork.ozlabs.org/api/patches/2219301/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260402192817.2745507-1-torbjorn.svensson@foss.st.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": "<20260402192817.2745507-1-torbjorn.svensson@foss.st.com>", "list_archive_url": null, "date": "2026-04-02T19:27:49", "name": "config: increase stack reserve to 16MB for the toolchain on Windows", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "0e23f4e1e22447f762e7324315b26a962460b4de", "submitter": { "id": 84848, "url": "http://patchwork.ozlabs.org/api/people/84848/?format=api", "name": "Torbjorn SVENSSON", "email": "torbjorn.svensson@foss.st.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260402192817.2745507-1-torbjorn.svensson@foss.st.com/mbox/", "series": [ { "id": 498546, "url": "http://patchwork.ozlabs.org/api/series/498546/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=498546", "date": "2026-04-02T19:27:49", "name": "config: increase stack reserve to 16MB for the toolchain on Windows", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498546/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2219301/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2219301/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=foss.st.com header.i=@foss.st.com header.a=rsa-sha256\n header.s=selector2 header.b=RDSuTCgc;\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=foss.st.com header.i=@foss.st.com header.a=rsa-sha256\n header.s=selector2 header.b=RDSuTCgc", "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=foss.st.com", "sourceware.org; spf=pass smtp.mailfrom=foss.st.com", "server2.sourceware.org;\n arc=pass smtp.remote-ip=52.101.65.24" ], "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 4fmsNp52Srz1yCt\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 06:29:13 +1100 (AEDT)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id A8EFD4BA23D4\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 2 Apr 2026 19:29:11 +0000 (GMT)", "from DU2PR03CU002.outbound.protection.outlook.com\n (mail-northeuropeazon11011024.outbound.protection.outlook.com [52.101.65.24])\n by sourceware.org (Postfix) with ESMTPS id 4C91E4BA2E11\n for <gcc-patches@gcc.gnu.org>; Thu, 2 Apr 2026 19:28:43 +0000 (GMT)", "from DUZPR01CA0011.eurprd01.prod.exchangelabs.com\n (2603:10a6:10:3c3::19) by VI1PR10MB3150.EURPRD10.PROD.OUTLOOK.COM\n (2603:10a6:803:13d::12) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.17; Thu, 2 Apr\n 2026 19:28:39 +0000", "from DB1PEPF000509EA.eurprd03.prod.outlook.com\n (2603:10a6:10:3c3:cafe::f1) by DUZPR01CA0011.outlook.office365.com\n (2603:10a6:10:3c3::19) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9745.30 via Frontend Transport; Thu,\n 2 Apr 2026 19:28:38 +0000", "from smtpO365.st.com (164.130.1.59) by\n DB1PEPF000509EA.mail.protection.outlook.com (10.167.242.68) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9745.21 via Frontend Transport; Thu, 2 Apr 2026 19:28:38 +0000", "from STKDAG1NODE2.st.com (10.75.128.133) by smtpo365.st.com\n (10.250.44.71) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Thu, 2 Apr\n 2026 21:31:37 +0200", "from jkgcxl0012.jkg.st.com (10.74.22.122) by STKDAG1NODE2.st.com\n (10.75.128.133) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Thu, 2 Apr\n 2026 21:28:37 +0200" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org A8EFD4BA23D4", "OpenDKIM Filter v2.11.0 sourceware.org 4C91E4BA2E11" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 4C91E4BA2E11", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 4C91E4BA2E11", "ARC-Seal": [ "i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1775158123; cv=pass;\n b=HggQ1TgOsMF5cHqvoaRmW6YAXGaO5sXvc2XJuru1ZrYeOC7mPLnCuOaWoy1b1V0E6hiqnf1UP2IhMWjLbXMyMg/MtcjLmQfMtl+mbpi/5hj+H8R0fXYtpFiBzZlORh0X8waIAYbMXYhqgmopdEs6Rz7mJtroqrQhGt88WYCWr3E=", "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=ccMfmTh5OEk2GjZl19V/MuyEWqTdDqBryHPlJplnrRwffhnAzLIK8RZ82UDyVyW1js+94per+sUCMCgYRw/qcd3azhn/xb5DgC2+Be90sZ9KMHzNs4iDDQrc6c2fF5y/zrStgj5xES2WPKWddsdxZxhTlkrYfKpvORNk3fI8EZvaU12LWi0btc/md8bleaAfUgd2/0qKA3Kf4Mplj7udIGyTnHcwvTKZ4cDfy1n8Kodz+ZDOrvXaQSqDbdVwEW3QKflScOEnuJaAa3mbsMA7upNQe7TEG2799ZdzcatMhnmvBYRQB6R7HAYsAnezxCm+bgbgfjvROKDnNf5O/a4wEg==" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775158123; c=relaxed/simple;\n bh=IHbm6TExDPrhmiBnWD8TSdSVVOyeGhIMlPawp0GEPYg=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=oP/R3Voq4GQ5W+OJkF1FeeFtAMJ3+oqah7WLyq7EsgvJk+RHQe3O6nN5Ox+zpMGUb6x6pgEE0dgBdvTDWWGcOWfuGHGQB44pGJIX5bBKeIsl9A0loM4kCtNDlwDvebhElmhqaeDgB2TkYc6GPQv4jMST/wGFIWsmfITFzte2oiw=", "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=fHCnZ76ZKwxrM+ocRNbH+IGv5oFnOBTpUTA4R1kTyiY=;\n b=JcURUVhdpyirr65OifWsY3L9XRuagzZEt6mH8DSAcYtGUZtCWYp4E123LhDEg7VI6leYChLaIo7bu2peeJqH04FtihR0lIIZE6Ja/tHM7eUBGjyXQ5Qdp2bcO53DDbndU2xxenUQynPFSYEkQqLUTT1uf/SGBxUeoYmoT2H/aa4f0ERxxq7jb220Bknkst2dEm3rnCu0QNtczClpFxYWFD3Xvr83KrV2Hir7H5LPIE+WfXfbEWnWr9JexgilIh0EfhXJdl8tcnomrc/eVVgxA7P0MgfueyJRhBi78PHz0zkJKTAdQbg2tYiB9pC/48BKgg3eWQenRy9umy1UqACilA==" ], "ARC-Authentication-Results": [ "i=2; server2.sourceware.org", "i=1; mx.microsoft.com 1; spf=fail (sender ip is\n 164.130.1.59) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=foss.st.com;\n dmarc=fail (p=none sp=none pct=100) action=none header.from=foss.st.com;\n dkim=none (message not signed); arc=none (0)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=fHCnZ76ZKwxrM+ocRNbH+IGv5oFnOBTpUTA4R1kTyiY=;\n b=RDSuTCgcGuD+FgSJd7bx727OBV5zB/+8wdxyfSVmvdgFceq5HSpA/TxD+nbZUe/hmW7OVi4Hd/hf9/lqdtA3/9n0KPcIyCXH0KhRTxmoxCM0uQuQJffoOMxGz1myhkzdvBld3uVtigTcCa33zFN5iLxy8u3J/M+ur8jOwcQb5DU8u5ZhaYwg6sWpbiUZbD4yr5xSIXK1Op508y19ox1I7pMJtlWqzM0MKD+ENFligrhAwPuH3J7Qe0Fb23AEY2DeiOF3uEdhS/r4HaCA0aOPV/0YMj2ulNTrd9SPWAq28NSswFX5e2uLmUOwlJ6jZQ7GPm6CiO0Gvrhb1dX4HcMPCw==", "X-MS-Exchange-Authentication-Results": "spf=fail (sender IP is 164.130.1.59)\n smtp.mailfrom=foss.st.com; dkim=none (message not signed)\n header.d=none;dmarc=fail action=none header.from=foss.st.com;", "Received-SPF": "Fail (protection.outlook.com: domain of foss.st.com does not\n designate 164.130.1.59 as permitted sender) receiver=protection.outlook.com;\n client-ip=164.130.1.59; helo=smtpO365.st.com;", "From": "=?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com>", "To": "<gcc-patches@gcc.gnu.org>", "CC": "<jakub@redhat.com>,\n =?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com>", "Subject": "[PATCH] config: increase stack reserve to 16MB for the toolchain on\n Windows", "Date": "Thu, 2 Apr 2026 21:27:49 +0200", "Message-ID": "<20260402192817.2745507-1-torbjorn.svensson@foss.st.com>", "X-Mailer": "git-send-email 2.43.0", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"UTF-8\"", "Content-Transfer-Encoding": "8bit", "X-Originating-IP": "[10.74.22.122]", "X-ClientProxiedBy": "STKCAS1NODE1.st.com (10.75.128.134) To STKDAG1NODE2.st.com\n (10.75.128.133)", "X-EOPAttributedMessage": "0", "X-MS-PublicTrafficType": "Email", "X-MS-TrafficTypeDiagnostic": "DB1PEPF000509EA:EE_|VI1PR10MB3150:EE_", "X-MS-Office365-Filtering-Correlation-Id": "85ef4749-3728-4ec5-f0db-08de90ee0aa3", "X-MS-Exchange-SenderADCheck": "1", "X-MS-Exchange-AntiSpam-Relay": "0", "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|42112799006|36860700016|376014|82310400026|1800799024|56012099003|18002099003;", "X-Microsoft-Antispam-Message-Info": "\n tYU6JCBfp/KNJUC0IzTrvW/7aeIklA5q927hH9Fl/5Jbm63/u+DML2R4K97yFBSjpCp9fYtSCUC3IRxFGGTanQzdrT4qNcq+OR26n40PK7EuRvqdxeFprSmq6WzjBmVu4nUFDy05DW70bhIN05qxoIlEhalF6sxwkeXX1F9hflL7UbTkVkSewep/cAQiJfUSEXLC3rglGx3TRr/yXgZFRUSo+wTbM3L75Eg4q7+heZlZ6Xj+7izG8gpSeGGd1waw3licU+L/HBNYwdrWiUCbh4d9albl4Wu4ksIkI/orQRshitoMEFEzYNlntK9qL4IpGS3jdeNiPQ/aq0LbqZ2UGNOVPcX0aiZBD+TGypyXpn1SVK+h9pF3bHYvrixhfFyufviNH0cwHGhjOljIwuesS3tsSa7xxfIq2p+Vjz0NAw/So8BQ+mHUg+8JwA6VBZke5U8KGKEBCbF//RWPZR2nK6bJYOuq3DJtIDUDFEtWjiN01owNtwzmUrdvK3XTlkxefS8stqV7sSQJNaZJNYenk+mIRlSRaWKoB3hVych74prNrWMPfywEaF/L9+2mPWw5jtUTlr5ddWSgcBdjGd1W91LqGPWR83/ZXD3WeLVQBRYNR1nskeXvQKtEFowKZFJRNUmRnE0K0UvOmkLTF4h+mslZ8nhsBkHy0sB7HuQs8OTcLMLDV7KVtuLJR8B6NFmbWl4NCSb3om7+HmK/Hdydxp6waaxAJqYblJS34kpprarca6pKXp2IvMToXK5G3VKFTkr5VVVqxfqy58mIIe/hrw==", "X-Forefront-Antispam-Report": "CIP:164.130.1.59; CTRY:IT; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:smtpO365.st.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230040)(42112799006)(36860700016)(376014)(82310400026)(1800799024)(56012099003)(18002099003);\n DIR:OUT; SFP:1101;", "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1", "X-MS-Exchange-AntiSpam-MessageData-0": "\n 3vJwNd91fCpPfU3a9FfZDotOKf3IKkh+A3DVCghaw7WT5hyFekeY4uJFQ30VyVYKrk8UhacQgeLqSLGDKijLxtUV6OFXQPl0xF9NrHs0CfnJ/QJxcte+USYN9mUd1pkQmdSfsLLOELwdYptGR12WQmgh2ygt4dhCAzRsd6Uy1ihAjuJQ4NIrKZyC42hUD9SM3pHTxooUcjcuykIS+1BN2gSkmqbQqSyyapzBsHuTvUmvB7kt0xNYjDnXq4ElU0oIBdduosy1A41CYnsszan1wL+v187bNQF2Wx79m87Ls5ZaXACtZ8h4XeteZn9JqLEFWA9GCWvNtS8EacmsBuu47Ec1J0Vu2ogJyzCIiRSrezwet+MkYkRlV3B1h66RFQZmR58uHbvO2N7w4aQRR0xI+OfME7ktc3t3B8cnldnc7cY1BAj/I78xYRllbXaSbRDl", "X-OriginatorOrg": "foss.st.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "02 Apr 2026 19:28:38.7190 (UTC)", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 85ef4749-3728-4ec5-f0db-08de90ee0aa3", "X-MS-Exchange-CrossTenant-Id": "75e027c9-20d5-47d5-b82f-77d7cd041e8f", "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=75e027c9-20d5-47d5-b82f-77d7cd041e8f; Ip=[164.130.1.59];\n Helo=[smtpO365.st.com]", "X-MS-Exchange-CrossTenant-AuthSource": "\n DB1PEPF000509EA.eurprd03.prod.outlook.com", "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "VI1PR10MB3150", "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": "In PR49756 back in 2011, RLIMIT_STACK was increased but it does not work\nfor Windows. For Windows, the stack size needs to be set during linking\nand not during runtime.\nAccording to some initial testing (have not gone though all failures for\nmy Windows tests yet), I see a large improvement by bumping to 16MB.\n\nI'm not sure if 16MB is fine or if we should aim to algning with Linux\nwhere RLIMIT_STACK is set to 64MB. Unless I've missunderstood, on Windows,\nthe stack size set via --stack= linker option is the amount of memory that\nthe process will consume regardless if needed or not, so setting a too\nhigh value might have a performance impact.\n\nOk for trunk and releases/gcc-15?\n\nKind regards,\nTorbjörn\n\n--\n\nThis fixes fails like below on Windows.\n\nFAIL: gcc.c-torture/compile/limits-exprparen.c -O0 (test for excess errors)\n\nOn Linux, maybe also other targets, the stack limit is dynamically\nchanged when the application launches.\n\nconfig/ChangeLog:\n\n\t* mh-cygwin: Increase to 16MB stack reserve.\n\t* mh-mingw: Likewise.\n\nSigned-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>\n---\n config/mh-cygwin | 4 ++--\n config/mh-mingw | 4 ++--\n 2 files changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/config/mh-cygwin b/config/mh-cygwin\nindex 1f746bdea84..3be1cfe5dc3 100644\n--- a/config/mh-cygwin\n+++ b/config/mh-cygwin\n@@ -1,4 +1,4 @@\n # Increase stack limit to a figure based on the Linux default, with 4MB added\n # as GCC turns out to need that much more to pass all the limits-* tests.\n-LDFLAGS += -Wl,--stack,12582912\n-BOOT_LDFLAGS += -Wl,--stack,12582912\n+LDFLAGS += -Wl,--stack,167772160\n+BOOT_LDFLAGS += -Wl,--stack,167772160\ndiff --git a/config/mh-mingw b/config/mh-mingw\nindex f5fb064813f..787719a06c8 100644\n--- a/config/mh-mingw\n+++ b/config/mh-mingw\n@@ -10,5 +10,5 @@ STAGE4_CXXFLAGS += -D__USE_MINGW_ACCESS\n \n # Increase stack limit to a figure based on the Linux default, with 4MB added\n # as GCC turns out to need that much more to pass all the limits-* tests.\n-LDFLAGS += -Wl,--stack,12582912\n-BOOT_LDFLAGS += -Wl,--stack,12582912\n+LDFLAGS += -Wl,--stack,167772160\n+BOOT_LDFLAGS += -Wl,--stack,167772160\n", "prefixes": [] }