From patchwork Tue Sep 6 07:00:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jose E. Marchesi" X-Patchwork-Id: 1008 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp499558wrt; Tue, 6 Sep 2022 00:02:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR4OMlIIqTUVl2jw9kP1yKbq0gIx0uKFdZikhlXm4yEF0KEx+/G0tWQYaoMdFhRg5KLtdu/J X-Received: by 2002:a17:906:4d9a:b0:73d:b425:d6b8 with SMTP id s26-20020a1709064d9a00b0073db425d6b8mr37718595eju.120.1662447734364; Tue, 06 Sep 2022 00:02:14 -0700 (PDT) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id dr14-20020a170907720e00b0073d5ae171fdsi1793349ejc.549.2022.09.06.00.02.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 00:02:14 -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; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=CpM5LJuE; arc=fail (signature failed); 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 737E63850869 for ; Tue, 6 Sep 2022 07:02:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 737E63850869 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662447723; bh=tDXcfxJ379BlrYwI4+YJK2NOXK5UbGzQPwMOWhLXcv8=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=CpM5LJuEIkx7VK71PfTSTeDIc2DdvkO7nZRFlJj/8Yew+KOUCANLp6mrKhSGcHj2p Bv9xKtJ8wI9nL6lAfUEmv003BxwqZLQkRkHeRJhu3FhJqLgvxhpei61wR5xew+VAxG yoCxHhqtS1UP029bCTrqLiSLsN/8HwH30aDTbqW4= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by sourceware.org (Postfix) with ESMTPS id 3217B385AC19 for ; Tue, 6 Sep 2022 07:01:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3217B385AC19 Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2865UQce017260 for ; Tue, 6 Sep 2022 07:01:16 GMT Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3jbwbc4um2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 06 Sep 2022 07:01:16 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2866uaUN039996 for ; Tue, 6 Sep 2022 07:01:16 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2103.outbound.protection.outlook.com [104.47.55.103]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3jbwc8r8er-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 06 Sep 2022 07:01:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KsTbfOVHK+AU9F01130c3zzUWnPw3krYjn5h70qFIWsnEmBcpYItZE46/xIKjTaGsjxEFlVctT9v+k7YLmMG74AVRJw0pPGTHi2j93TENyhJsJ2yGNs12d5WZ5pss7VCKrcGH8TbrrTSTtYKNcxdxaIL901hCAxxI6mHXM/zUevYfjwu6k+6DlcSkiDcRdCf2KMNCZ4s6K/grpGnEYFUsopaScblurShssmx+ks/sgSHbMByMOLujQtn7bLHYcGP/TWPTOg6peEfJX7lG96+kbSmWPq4GJSgK/5Z+SWQi/dmjGRehbr5hlzGRuPtwE5KhaH3DFgbNjnVY3rZuoWdPg== 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=tDXcfxJ379BlrYwI4+YJK2NOXK5UbGzQPwMOWhLXcv8=; b=MzJ2Jj2M6YoGPAP5pKwz/QQ73cGianG61VaaBdFbR1z06SqszJCjSNcXmFth6x9rAP3MFIFFOUs7mppQiYXYTjwVlNUadP34NdSrIFjyqUaVDAylhzQeGF+VarZhVo2cTlkjW8S4ksritiCmOKAjaOQFNeoBVl4xf9LxM57YvfqnrelVCCaY9FAal6KIhQ3T3xX78m+ahNqzJzOHltdAylk5pGRZC15aohUJCnkqeXTdqFGYd2OWdi+qbibM9osaHXO64IPCSumaa2UgcgsMNJV+LClhTTmkM+2488DWvYsxpq0Pm5cRVzI/teY3DbgJ7EjfaRT6BzU5wJDZciqitA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none Received: from BYAPR10MB2888.namprd10.prod.outlook.com (2603:10b6:a03:88::32) by CO1PR10MB4642.namprd10.prod.outlook.com (2603:10b6:303:6f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.10; Tue, 6 Sep 2022 07:01:13 +0000 Received: from BYAPR10MB2888.namprd10.prod.outlook.com ([fe80::3151:a4b3:aec3:b3dc]) by BYAPR10MB2888.namprd10.prod.outlook.com ([fe80::3151:a4b3:aec3:b3dc%7]) with mapi id 15.20.5588.018; Tue, 6 Sep 2022 07:01:13 +0000 To: gcc-patches@gcc.gnu.org Subject: [COMMITTED] bpf: remove unused variables from bpf_expand_{prologue,epilogue} Date: Tue, 06 Sep 2022 09:00:23 +0200 Message-ID: <8735d52diw.fsf@oracle.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) X-ClientProxiedBy: PR0P264CA0214.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1f::34) To BYAPR10MB2888.namprd10.prod.outlook.com (2603:10b6:a03:88::32) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8e13698e-28d2-484a-88dd-08da8fd595d7 X-MS-TrafficTypeDiagnostic: CO1PR10MB4642:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a3h92zyiXTUyXFL8ss480s8AuicE6/dChAHPrt7y17bJp43cFxCRw5tHJKnXjNrZnvAZX0rl2QvWhEy7SnPOV+XgyOatd1oPB0YStag9ukEcZC3WqSzNoG5xuqwfeAw1OlLhYKEwBFMP+RqwnPT5jIApA51o6qwFt//M+BcZKpj3cpsx5WEA1QvAw/WFbgbTf920Weaq7ZzPqoY9c8ScGdBa4tsFWiShOPO4XomDgbeVnVFLQobMU11ROzn63vR1XZM1bCdIsXqzhhzptJAtj88707NFY8BRQ7budPriuHaksbbBCQVh23FGWyOiUdPpJJ0KFNGms5wgpCU/VEi9yFFNkORCCFBMhrCok0NZqQGNMjHv/UknoEMiktpZq3p39HqAZEaAKu1tCM4NGjOok7mhMKGfqh7A3mCjvBsxFmXNA4DvSBUgqCXNhVHnnYtERd/9TwAvWaPOvByoT0n/HvM8pOgbtY95YqCpAVJBLwFakmRU+H7RfVKD8uS41uIJft01zHbllGx++xQQb7qPhtQPu5Rfr6HiX+10y1Eh4NjeZfQfqMDMDsPIeEv5E+uuLwWgjBeppzWEru7SVmgmQJ+bSkl5mRQKId8q3fprca9G3rEcbb3Lb2z22dkwJfEAicMUfqZFuDcdedmSlQg94Dv1T8kwHyRMuiihg24gFD2NOxSqJNMI4QXQ4oVh9+kvMv33OVWxIs+9PHp0SAgE2Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR10MB2888.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(376002)(396003)(136003)(366004)(346002)(39860400002)(41300700001)(6916009)(26005)(83380400001)(2616005)(186003)(6666004)(86362001)(6512007)(6486002)(478600001)(2906002)(8936002)(36756003)(5660300002)(316002)(8676002)(38100700002)(6506007)(66946007)(66556008)(66476007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TR/iivhMF8wwjtoSuJg6VX2uwOB//3dSoxi3mC8YXw1wgAMwiYYeHJYYcgbuqKcVopo6GaBs2UVM8rriWXUOcOgnRODEdYWWbxwYe2ADyeHvhgfuYURaPNezc5nkjyqaY4FC9bOucm5X4PJzzPeOhwrdSb2lxOQEHn4ASpWGZQhVZgqYpads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QrcodPfzo+81w6xuq6Pu0+D3F1l//w0FUOKELkfvBEYbAszFg1hRHWNm40bWyOIYsgKld8aZdQsuD0Xzzz7Z1y5d5i99FEBhQZ89TgsRtPzSuX/jniz1F1ckgRfcH854A7ruOaMlDKUjBReg/Eo/CVXkxlhWV29sVtWHPQXezP0pxGAQ4wKelf4O0Ffio+U0+9koyhWSQl0OaoQ9xmncZVn9xXJPSm9eFeNt8V5yM6Oge3ZJxXM2zXFertoUoTgX1cmbLak9Ezfqg207VO6mTtOMyIz/wiSZg8TdMHvhFxqgf3N8uwsyxAXKkvqcMnmbqg9LnD5Z7jCJ9/JmRoC1YLvj6HHp2uoVpyX3TS+S/xuw== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8e13698e-28d2-484a-88dd-08da8fd595d7 X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB2888.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2022 07:01:13.2489 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FnpKsnn5wJ8zFQmjkXq7TQWC9zFdy3Zh14MUItDX3Y1TFm1IqRbywhJNxdmlF9+UAyooWW+WXE8izzTlqEFLXiZ/cgTuuZap+dzmFAfOROc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR10MB4642 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-06_03,2022-09-05_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 spamscore=0 malwarescore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209060032 X-Proofpoint-ORIG-GUID: OiXqwS7E5gX7rmEVq8nXUbxVp9DITwpA X-Proofpoint-GUID: OiXqwS7E5gX7rmEVq8nXUbxVp9DITwpA X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: "Jose E. Marchesi via Gcc-patches" From: "Jose E. Marchesi" Reply-To: "Jose E. Marchesi" Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1743202795851046562?= X-GMAIL-MSGID: =?utf-8?q?1743202795851046562?= gcc/ChangeLog: * config/bpf/bpf.cc (bpf_expand_prologue): Remove unused automatic `insn'. (bpf_expand_epilogue): Likewise. --- gcc/config/bpf/bpf.cc | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/gcc/config/bpf/bpf.cc b/gcc/config/bpf/bpf.cc index 9cb56cfb287..51055651707 100644 --- a/gcc/config/bpf/bpf.cc +++ b/gcc/config/bpf/bpf.cc @@ -428,7 +428,6 @@ bpf_compute_frame_layout (void) void bpf_expand_prologue (void) { - rtx insn; HOST_WIDE_INT size; size = (cfun->machine->local_vars_size @@ -468,7 +467,7 @@ bpf_expand_prologue (void) plus_constant (DImode, hard_frame_pointer_rtx, fp_offset - 8)); - insn = emit_move_insn (mem, gen_rtx_REG (DImode, regno)); + emit_move_insn (mem, gen_rtx_REG (DImode, regno)); fp_offset -= 8; } } @@ -481,15 +480,15 @@ bpf_expand_prologue (void) accessor. */ if (cfun->calls_alloca) { - insn = emit_move_insn (stack_pointer_rtx, - hard_frame_pointer_rtx); + emit_move_insn (stack_pointer_rtx, + hard_frame_pointer_rtx); if (size > 0) { - insn = emit_insn (gen_rtx_SET (stack_pointer_rtx, - gen_rtx_PLUS (Pmode, - stack_pointer_rtx, - GEN_INT (-size)))); + emit_insn (gen_rtx_SET (stack_pointer_rtx, + gen_rtx_PLUS (Pmode, + stack_pointer_rtx, + GEN_INT (-size)))); } } } @@ -504,7 +503,6 @@ bpf_expand_epilogue (void) not restoring callee-saved registers in BPF. */ if (TARGET_XBPF) { - rtx insn; int regno; int fp_offset = -cfun->machine->local_vars_size; @@ -528,7 +526,7 @@ bpf_expand_epilogue (void) plus_constant (DImode, hard_frame_pointer_rtx, fp_offset - 8)); - insn = emit_move_insn (gen_rtx_REG (DImode, regno), mem); + emit_move_insn (gen_rtx_REG (DImode, regno), mem); fp_offset -= 8; } }