Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2217434/?format=api
{ "id": 2217434, "url": "http://patchwork.ozlabs.org/api/patches/2217434/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/or8qbb9qhf.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": "<or8qbb9qhf.fsf@lxoliva.fsfla.org>", "list_archive_url": null, "date": "2026-03-29T05:03:40", "name": "testsuite: drop loop optimizations in fstack-protector-strong.c", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "b69f6b94e69f5c200dc91bde6045ddc6715d4f35", "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/or8qbb9qhf.fsf@lxoliva.fsfla.org/mbox/", "series": [ { "id": 497901, "url": "http://patchwork.ozlabs.org/api/series/497901/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=497901", "date": "2026-03-29T05:03:40", "name": "testsuite: drop loop optimizations in fstack-protector-strong.c", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497901/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2217434/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2217434/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=PbhRgbkQ;\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 secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256\n header.s=google header.b=PbhRgbkQ", "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.174" ], "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 4fk2Np4K7Zz1xrn\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 29 Mar 2026 16:04:26 +1100 (AEDT)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 713204BA9003\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 29 Mar 2026 05:04:24 +0000 (GMT)", "from mail-dy1-f174.google.com (mail-dy1-f174.google.com\n [74.125.82.174])\n by sourceware.org (Postfix) with ESMTPS id C99124BA23D1\n for <gcc-patches@gcc.gnu.org>; Sun, 29 Mar 2026 05:03:56 +0000 (GMT)", "by mail-dy1-f174.google.com with SMTP id\n 5a478bee46e88-2c4db6bca03so205911eec.1\n for <gcc-patches@gcc.gnu.org>; Sat, 28 Mar 2026 22:03:56 -0700 (PDT)", "from free.home ([2804:14c:4d1:41a6::1455])\n by smtp.gmail.com with ESMTPSA id\n 5a478bee46e88-2c3c6e9ca80sm4214130eec.22.2026.03.28.22.03.54\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 28 Mar 2026 22:03:55 -0700 (PDT)", "from livre (livre.home [172.31.160.2])\n by free.home (8.15.2/8.15.2) with ESMTPS id 62T53ebK016599\n (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);\n Sun, 29 Mar 2026 02:03:40 -0300" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 713204BA9003", "OpenDKIM Filter v2.11.0 sourceware.org C99124BA23D1" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org C99124BA23D1", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org C99124BA23D1", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774760637; cv=none;\n b=HLE1JyccgpEsfuv/YxVZ9TJI2KZTxl1gEzbPRo9NdkP1UgHQmDgF9e6H/KUMz2Di1irKDPpUgz/Z9XRIRJjHRtFrL0MS5SS3dNagGsWTYpWaKP05pfbHWMxLK+BY1BVDQf91bMst2ag1aLlxXBXMO/koVP6Nx1cspZsgVZIXlxI=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1774760637; c=relaxed/simple;\n bh=BP7OXYr8zjvbD0YLl4EtUC3yx639aGA9wnOkrTB4398=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=j9JWg7wqtfH/TT7sLjpxsFQmHocn1pSfINLz+ws2ygbTNE74YaRg4Y9REJ7Za99oReyYcm/2/mOrFVEd+cxicP2h/rsTvqmkoWPLRm3d3L8s/xMi54WU4601IpmEZ/oLNV2AWz40HtlyoNWRELUm46e3cofbZI+2T8qSfbp2+w8=", "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=1774760636; x=1775365436; darn=gcc.gnu.org;\n h=mime-version:user-agent:message-id:date:organization:subject:cc:to\n :from:from:to:cc:subject:date:message-id:reply-to;\n bh=pOOQCs27vmwll8j6mzxqIv986vcsTJOZmJ1o3PFAuBQ=;\n b=PbhRgbkQwkl65fmpYfX4uMy84LejxAwE2R5XEKgGo1QVRho5nugJOGUABMhc7Diuyx\n I0BCjw2EH/Wowz1YIUUMLgtX7Ft9mn8vnBDF8xYx9zOXlbpzloGds/PYQkS6R/pp82UQ\n ZL+vusjYC1mmmjr4RsybgK4KS2eBqDzxFppfC5G8uNuiZtEw4iJE1zsTWei6KtLHQVjq\n Oq/p3uO2H6d4AWh8xAfAiJ+kzHsKOxdA47r7jYOjhx9iGng770F8JvRPoyGc6dnZHsdu\n GaxDNl3dhLrSKiFQa/u35Udi5aUKzqGIsXAo5Nv1czG19R6eTZE0MW+lQnVZmEK1WYVN\n uYoA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774760636; x=1775365436;\n h=mime-version:user-agent:message-id:date:organization:subject:cc:to\n :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=pOOQCs27vmwll8j6mzxqIv986vcsTJOZmJ1o3PFAuBQ=;\n b=h4FAymZ6lFwSkTu52bod0I54mYzb+bd4Qt2wExpvn6IXEnIo5TQUovJ8JcPt4yRslx\n /WdD3XmH7RuK6zgxPpGBIgxsu0l8EwDgrb+GaGTw97CwClQuVH1DogOcvKhU9JJPkMKD\n OVL4WKPcrdoHYCFPOb30zwuCBbzm2l9vx34H8AblDcnAKQoa94DlBzIm/P97ndy0pFhP\n WiNPGmjGl6HG2ZGLWjypE65iNAlhiGraYnG2Vysu0yVxrw1XGUNHUq6mibEa/0tVr+kg\n i6Q3GVtdIAB2ubXlzQ9zCyEcWI1KO7/Bh+raFXOymQj1vC5wL0yXP35kcq+r+tfaxEfO\n 4bKg==", "X-Gm-Message-State": "AOJu0YxuKw/y+BrtTTZZlO/UNKFqVJGEGmnIV4oY3LDz1XQq9cyvQ0qw\n qabzk6oNak70wQqRal4/DhlhJ1KgQ9vg42KfGXzmrIx6NsmNxJlIyeKb3OYnEAvNyJTe956wzHD\n yGJ0=", "X-Gm-Gg": "ATEYQzzXX94H7M4mNEONmz0GpJx4f2P8H83k+o1jm5b8xPWokUmDvDVH8z4NVBzmhPw\n lKjmjn7SxddzMNkPOepBTcSit1oLQNr/OxsWSvukt7iQ5uXUCFJkxb5txpTmtpJaYQBH1y6patS\n faXgt07u1I6OVR2Z5g4fQdQPQstsk+3fRbssT0FBf/g3+duTpeu3EysWcrEHB8kS+xpNDKF2lFW\n u3JL8bdzMGqeUcLnxjyjPeq2G+olS+adMFiP2gCeMN9Jg0zMqRE4tuO6xBbGXcXSuLbbUUPjT+a\n ZNCM3QD4guzw3iXKilIEBt7z++tpPviFyzbma/m49S9imZaKghh7lV2FeRrSQIU9X1kDr/mEP3T\n 1IdP5aK88HUOm7OBioYtUAACrCf78c85ale7DZlgQf5itkPjJUWvR4hU2XDoLPprs7CdwNlBHoX\n o=", "X-Received": "by 2002:a05:7301:1010:b0:2ba:9cc4:aebb with SMTP id\n 5a478bee46e88-2c186eb44c9mr3174155eec.10.1774760635739;\n Sat, 28 Mar 2026 22:03:55 -0700 (PDT)", "From": "Alexandre Oliva <oliva@adacore.com>", "To": "gcc-patches@gcc.gnu.org", "Cc": "Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>, Mike Stump\n <mikestump@comcast.net>, Richard Biener <rguenther@suse.de>,\n Tamar Christina <tamar.christina@arm.com>, Zdenek Dvorak <ook@ucw.cz>,\n Bin Cheng <bin.cheng@linux.alibaba.com>", "Subject": "[PATCH] testsuite: drop loop optimizations in\n fstack-protector-strong.c", "Organization": "Free thinker, does not speak for AdaCore", "Date": "Sun, 29 Mar 2026 02:03:40 -0300", "Message-ID": "<or8qbb9qhf.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": "gcc.dg/fstack-protector-strong.c used to expect one stack_chk_fail per\nfunction. When vectorizer improvements caused foo2 to get vectorized\nto the point of enabling the loop and the automatic array-containing\ndata structure to be optimized away entirely, it no longer required\nstack protection, and the expected pattern count was decreased.\n\nHowever, on platforms that don't or can't vectorize the loop, it isn't\noptimized away, and then we find the wrong pattern count.\n\nReverse the decrease and disable optimizations of the loop that could\ncause it to be optimized out, so that we get the originally-expected\nstack protection everywhere.\n\n\nfor gcc/testsuite/ChangeLog\n\n\t* gcc.dg/fstack-protector-strong.c (foo2): Prevent loop\n\toptimizations. Expect stack protection again.\n---\n gcc/testsuite/gcc.dg/fstack-protector-strong.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)", "diff": "diff --git a/gcc/testsuite/gcc.dg/fstack-protector-strong.c b/gcc/testsuite/gcc.dg/fstack-protector-strong.c\nindex b9f63966b7ccc..52485b5252ddb 100644\n--- a/gcc/testsuite/gcc.dg/fstack-protector-strong.c\n+++ b/gcc/testsuite/gcc.dg/fstack-protector-strong.c\n@@ -43,6 +43,8 @@ foo2 ()\n {\n struct AA aa;\n int i;\n+#pragma GCC novector\n+#pragma GCC unroll 0\n for (i = 0; i < 10; ++i)\n {\n aa.as.array[i] = i * (i-1) + i / 2;\n@@ -154,4 +156,4 @@ void foo12 ()\n global3 ();\n }\n \n-/* { dg-final { scan-assembler-times \"stack_chk_fail\" 11 } } */\n+/* { dg-final { scan-assembler-times \"stack_chk_fail\" 12 } } */\n", "prefixes": [] }