Message ID | AS1P195MB13982812469EE1DEFDF83A24AE16A@AS1P195MB1398.EURP195.PROD.OUTLOOK.COM |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2340942vqi; Sun, 13 Aug 2023 12:20:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFSNF0mMkNZ0rPIP1CNLliLWbl1pJefn6TbTYb2UzjQhJeLW+2CBaHAb0R6EDNA6Yx+h4lm X-Received: by 2002:a05:6402:395:b0:522:31d5:ee8e with SMTP id o21-20020a056402039500b0052231d5ee8emr6754664edv.8.1691954428854; Sun, 13 Aug 2023 12:20:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691954428; cv=pass; d=google.com; s=arc-20160816; b=dG33BBRUyT2Opfww5P+qnpWI5H8NIf2fDf8CwTpfu0cZjAOF8KmOTAzJV+i3YDjdNM RpoesxvlzzUlZJhyOo3GPd3odLcHtG1COsTRMSLrUQKjF5P+O5sbeXLXpVeBsF6v8WrI LMR92C4aQdlmFG99Br0X1kNbga3AStBCqWDxWklRwF1xZu9BMecDrgpX1l0nQOVsY9Zr ErefLChdvhSnc3It2bgleSThy6AT0E99xuZphYuHSTiC+RFvDyS3Ig6Zz+kRt9tLhrOI AeoGQoxA3hpzVLjfNPu2bRWp8cbR3kMdN/RFTY3WKvTonhoiO/4Ve/qC+x759LE6QiJT n4Ng== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-disposition:message-id:subject:to:from:date:dmarc-filter :delivered-to; bh=zJ8BzzALNKFZwoJy/E4SPYNe49ImQH+nZ9Gk3k65Jck=; fh=S0IhdiVxAtGIG1/RuU0hGDg/GHm618in8sLinpeplHI=; b=YX3jXwu0pxNhaaMe1LeTWxPosKOAfzF1YlEl+ZAWRn5G8sfsnwuyz943HNIFHQcqsm oTPfjRfJKlbdo4K30GDLrBvMMETpbH9lfwlz7rahDLqL3ZOMAWwxOlTbJLr9xvySgKpm Sz9sdQwEqj5/x+6L5UEaSUrdpwulTgDq+E1MMBgy3OrkB1fj7PC2IRiWqHrvQe4h8Xm1 KC8q0GcuB9NmsW4QYUYvAlKIjnAXJDo174RoKLLXJDs02G0aI5tR99deUA+MkkspVtyr /8Gm/w868Liis5GNAV6/GjA9wU46GZbJwgD0GidmJUAPtqcqgqUAr5eKsag8qd7bUfw8 hSgA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id k22-20020aa7d8d6000000b005256886827esi187313eds.607.2023.08.13.12.20.28 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Aug 2023 12:20:28 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C26783858C36 for <ouuuleilei@gmail.com>; Sun, 13 Aug 2023 19:20:23 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05olkn2025.outbound.protection.outlook.com [40.92.91.25]) by sourceware.org (Postfix) with ESMTPS id 860203858D32 for <gcc-patches@gcc.gnu.org>; Sun, 13 Aug 2023 19:19:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 860203858D32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=priscimon.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=priscimon.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D1sfugAZ3p9j4SSF1wU+9zBaSaX3g/Uy+8FDXCxHj13MWsZWbwaYeAWEG2+nQdhW//3b4tLf6/bW2+hjdnuAMeHxKmx69VQNXQO3OueTQrpdCdBbRUDOiE7/98plDZ0J9wThaCK+eYh4oPiy5dIU1kKVWC1aZ0zy8usmjk9vZnJK0VDYG1Q8mmSaMnlBhAoNfNOOEU3Qxzn+YGmY4GyCpXs1n+mP8WjelwzUGpWaTE5u7wt6KLYgFNF+ZqUtFykW2b85j0Z1glmEDMPqhOLjo2NXbfZiwGiqHexmGAs166iEpqAGLs2JuBHMaa3vcvkCb6Tr3txxmd65LMhMcrq8SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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; bh=zJ8BzzALNKFZwoJy/E4SPYNe49ImQH+nZ9Gk3k65Jck=; b=P5h9Iiwnpyjk8cW03cPew6OA7DTymBD2nnvOhJeEISYmOyjHU6X9d2M8IW9IOGJM6ApnXnG3qDSwkWdqRyVp6+3S+aGbHjP/VUmUVGfn691XDkvYfmlmpGmshpbq8eB4eXeaA7AYuWiu1sUJNUIEm6Qa3N2anQLKUTzHZa1S2h3jf1pNx3cwwm9TTyTEha5jlqUH5HRjPk/rKIfEjbmARFS0JAoLWngpMe63xBN7C3FQ4YsNZiEtvgomqc4L7XiPNjMsZeeuao4n5JyjEymm9Ux7Fs9GY851qwFmSvDaWbJ8AX28CD05R8lvmrFg30vdcdU6BuIPj4t8yZnEzXxWiQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from AS1P195MB1398.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:4ac::5) by DU0P195MB2095.EURP195.PROD.OUTLOOK.COM (2603:10a6:10:408::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.24; Sun, 13 Aug 2023 19:19:58 +0000 Received: from AS1P195MB1398.EURP195.PROD.OUTLOOK.COM ([fe80::d689:6705:e527:ea4]) by AS1P195MB1398.EURP195.PROD.OUTLOOK.COM ([fe80::d689:6705:e527:ea4%6]) with mapi id 15.20.6678.022; Sun, 13 Aug 2023 19:19:58 +0000 Date: Sun, 13 Aug 2023 20:19:56 +0100 From: Eddy Young <jeyoung@priscimon.com> To: gcc-patches@gcc.gnu.org Subject: [PATCH] gcc/reload.h: Change type of x_spill_indirect_levels Message-ID: <AS1P195MB13982812469EE1DEFDF83A24AE16A@AS1P195MB1398.EURP195.PROD.OUTLOOK.COM> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-TMN: [frwuruqwAMfrRmDU9QarDtb28qRnR5pY] X-ClientProxiedBy: LO4P123CA0268.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:194::21) To AS1P195MB1398.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:4ac::5) X-Microsoft-Original-Message-ID: <ZNks3NyXUdybmfxB@LENNY.local.priscimon.net> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS1P195MB1398:EE_|DU0P195MB2095:EE_ X-MS-Office365-Filtering-Correlation-Id: a69894ca-e090-4c5f-bf3d-08db9c32482a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BD3mMf2z0QUYJ0Mz4eeUlxMiHLIiwz1z2SW9Jv4N9nnjQD7wjLixPfYd5sSi3V1Uz4xpNUtkzcfYp+naCgwkpBheiRj3cztU2G6tqa0Okj0CYIz2cZxCEs26GkfwWR7vGlZTX+7fQdIcNXqQlxSoDBuymrMUE37LhAYLs7vPr5frjz1huDxvQPtyurHQ+6bNsLUIho7vmDJkYMv61O8BzJ0ivT2+dWoXj9k9l3s15U+p1GNXbbM5lP6htMbxMf3i3h50W7RJJUffvFd9eYsYaZDEE61H2/ADec9k0dGJMYbSMZWgiUaLwrk8+Hz7qQ71ckHSHz5GlDz3oCbkS1400nFQX9u3TeIlC0ZCcaZkqcIkEol+kM7X/cDxLWE6VHGF5mPhJpeDIsiEgYLLAhPbcXZUt4oQq1KHPFFFmm/vNPVIKj+cabxCBhByxw/37oBOREzA5816TBMtHLXO6cvy0n9i+w0k1lrt8M7ciEe2Xdo2M653BJgl32p129D4+5PxmW1jX2zfSHuqv9AFZd3UOmRoFkcCItmnrrGliMfqHVfddVHRB72mxQljLAzWr+fT X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: XsN1Pn1StNkrymOnJAhj/wBcrpP8FVlZCxBUAK0JSfScKJFVBfZVLJct47izWXYEpm1F5gYrV6wsJjzhB7kDVUyHF+MqPDC+NkLOd47Ju2ut/yb50okDN7QM75SSV37Ml7TFrQK43Ju+wLvJSLMaUwBykPaePN8ze0RES2dqi8Bepn10VE3a3M1oE2fVMVKYlIaPdEXAGB8cd1nLvWirFXvKGIHVk/i9U6kNf3c4ZH+b1OZZvTF7TAvzojW9pUyD0fVuRC0Z0AlJiatHG4t5/80ArxiHdF5QUQz3JEkKIHTJ/ONjwElHL37qdwxDsf6qOCkdFMivxLGNteXs4A3eH5Qn9pjS8mkfs768jA0BIjnr0TLR8a+nm9zgoJ1UvdsQGgVSCCYJ6zW7nP8zWGoicUe8RMzpjLHiu+P3a71DYTvwWoVhGw5TkCnRXzFeQ2m5hjOXOiF2V7/CXBPyFFF4EUa/oNUnlFSshd/fBjxZbEZxR9rOc9GFAFD6a+K8ZntcvuhaZ4DIAfhnZbBh2ZKNHIeKvXSNIsIWOJPpRZXuh+WEvn6tPZWzGZaoWR/5DrWmWk+Xs3OrY8mEIyZukKosQtee6h5lfJq+imprRaACEzc0on56FJtq7UZ+Iz202/3KWn8l27a3dKXvK09/2Y81b4pAFBolhvrIBkk1vbpxUaIpLywlj3JbA70lan7Eb7A0LHcx61x1MIhfRiyeWZwZcaUs96jIXuYEONAqYKrrGXiohUxk8VNuHkVkQ2znZ17Xbk6PVETyZev90FiUibU9Z3sm5JXt0m0wuF2/4c7ktvDpXAVq+p7VBFFVFcg7jtfFAzS1eVSoP+vElDX8k0lAVmeiSRo5RJZUO6E8VtQFLJ8suMqJgnjVy5Be3wwI7MkgVaEbNqiqNqtMOfrUYy1h/sGLILUSr7nMEiOHKJuF4SUOrTyemqyRaKuWdCJVThRkqgtkKDqHttPL9hUrlfN8i3ANNyV4+PEyChU1BN2ooRHx+4kOoIU/lKIdfZq9PBOGwRIkGqeeTPiBVO8eoa+6UL+/6j8r+HNMnr6ixqzGkmAyPFgzw+CGdSM8M4syNvjBuJCX8PfGCu3Lc8ryl4TOF+0g13fXwBtwjYG2n+MWBgYyys7rgkBBYXuzjsUNspZOyrYJJpZePKuI9x7/eMDYYIFmulFY25SZv8IrFMI4tD8wzMBcs/6DzOdtE/JIhKORN8FRL+7ytZVOqfzbRM+13g== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-49ed2.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: a69894ca-e090-4c5f-bf3d-08db9c32482a X-MS-Exchange-CrossTenant-AuthSource: AS1P195MB1398.EURP195.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Aug 2023 19:19:57.9483 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0P195MB2095 X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <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>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774142806971892432 X-GMAIL-MSGID: 1774142806971892432 |
Series |
gcc/reload.h: Change type of x_spill_indirect_levels
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Eddy Young Tie Yang
Aug. 13, 2023, 7:19 p.m. UTC
This patch changes the type of `x_spill_indirect_levels` member of `struct target reload` from `bool` to `unsigned char`. Without this change, the build of esp-open-sdk fails with GCC 11 and above. (Please bear with me, this is my first patch submission.) Cheers, Eddy --- ChangeLog | 5 +++++ gcc/reload.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)
Comments
On Sun, Aug 13, 2023 at 12:20 PM Eddy Young <jeyoung@priscimon.com> wrote: > > This patch changes the type of `x_spill_indirect_levels` member of > `struct target reload` from `bool` to `unsigned char`. > > Without this change, the build of esp-open-sdk fails with GCC 11 and > above. This was done back in d57c99458933 for GCC 6. https://gcc.gnu.org/r6-535-gd57c99458933a2 . Why are you posting a patch against a branch which has not been supported for years now? Thanks, Andrew Pinski > > (Please bear with me, this is my first patch submission.) > > Cheers, > Eddy > > --- > ChangeLog | 5 +++++ > gcc/reload.h | 2 +- > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git a/ChangeLog b/ChangeLog > index 3dd1ce544af..442aa9192a9 100644 > --- a/ChangeLog > +++ b/ChangeLog > @@ -1,3 +1,8 @@ > +2015-08-13 Eddy Young <jeyoung@priscimon.com> > + > + * gcc/reload.h: Change type of x_spill_indirect_levels of struct > + target_reload to support C++17 build. > + > 2015-06-23 Release Manager > > * GCC 4.8.5 released. > diff --git a/gcc/reload.h b/gcc/reload.h > index 7a13ad30e82..1e94d8ea93b 100644 > --- a/gcc/reload.h > +++ b/gcc/reload.h > @@ -166,7 +166,7 @@ struct target_reload { > value indicates the level of indirect addressing supported, e.g., two > means that (MEM (MEM (REG n))) is also valid if (REG n) does not get > a hard register. */ > - bool x_spill_indirect_levels; > + unsigned char x_spill_indirect_levels; > > /* True if caller-save has been reinitialized. */ > bool x_caller_save_initialized_p; > -- > 2.39.2 >
On Sun, Aug 13, 2023 at 12:24:28PM -0700, Andrew Pinski wrote: > Date: Sun, 13 Aug 2023 12:24:28 -0700 > From: Andrew Pinski <pinskia@gmail.com> > To: Eddy Young <jeyoung@priscimon.com> > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH] gcc/reload.h: Change type of x_spill_indirect_levels > > On Sun, Aug 13, 2023 at 12:20 PM Eddy Young <jeyoung@priscimon.com> wrote: > > > > This patch changes the type of `x_spill_indirect_levels` member of > > `struct target reload` from `bool` to `unsigned char`. > > > > Without this change, the build of esp-open-sdk fails with GCC 11 and > > above. > > This was done back in d57c99458933 for GCC 6. > https://gcc.gnu.org/r6-535-gd57c99458933a2 . > Why are you posting a patch against a branch which has not been > supported for years now? > > Thanks, > Andrew Pinski Hi, Andrew, Project esp-open-sdk (https://github.com/pfalcon/esp-open-sdk) builds GCC 4.8.5 from source to install its toolchain. With GCC 11 and newer, the build fails without this patch. esp-open-sdk is used for development on the ESP8266 MCU and boards based on it. I hope this helps. Cheers, Eddy
diff --git a/ChangeLog b/ChangeLog index 3dd1ce544af..442aa9192a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-08-13 Eddy Young <jeyoung@priscimon.com> + + * gcc/reload.h: Change type of x_spill_indirect_levels of struct + target_reload to support C++17 build. + 2015-06-23 Release Manager * GCC 4.8.5 released. diff --git a/gcc/reload.h b/gcc/reload.h index 7a13ad30e82..1e94d8ea93b 100644 --- a/gcc/reload.h +++ b/gcc/reload.h @@ -166,7 +166,7 @@ struct target_reload { value indicates the level of indirect addressing supported, e.g., two means that (MEM (MEM (REG n))) is also valid if (REG n) does not get a hard register. */ - bool x_spill_indirect_levels; + unsigned char x_spill_indirect_levels; /* True if caller-save has been reinitialized. */ bool x_caller_save_initialized_p;