From patchwork Sat Mar 25 19:13:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harald Anlauf X-Patchwork-Id: 74976 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp568120vqo; Sat, 25 Mar 2023 12:14:23 -0700 (PDT) X-Google-Smtp-Source: AKy350Ze5px9g0GPSmApQ0JsiGlecyBO+GTpwyv2bMCGX1RGSlOF+fC7vgqcZXTlBLgvu1O9yN+p X-Received: by 2002:a05:6402:4c3:b0:4fb:fd9f:737a with SMTP id n3-20020a05640204c300b004fbfd9f737amr7475443edw.4.1679771662878; Sat, 25 Mar 2023 12:14:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679771662; cv=none; d=google.com; s=arc-20160816; b=qnmvkXidMTZLUkpYGujYGbUQiXNawa1CEQio8mhVrzJe47qadoD0q0T0/X7QjBYRPV GRgt5LhXxK2yWXvWeuIQ4bvxGFgLKe9HY2qJcu33g0WdtEgRPaoSoqlCzSvduVKBL/Xi 1JEFWDMHx69XCUygM2X2hWlrm+UQ9wt1Xe4c/QpvwGPx+k44xdnDult/GfRx7/Tw3iPO ZDDZvsiWZbyFoBgJEES7kje6ewdSQxVF2YtRdYh0JCzT0ap6xaziuWbhJPSszAmFjlsC rl6kmb7BGZc9PEyBza7RcPvjmbZ86tOWowDP91LWxPCaaHUqZXwG08JhKHr0aXwUterE f9yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:ui-outboundreport :sensitivity:importance:date:subject:to:message-id:mime-version :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=IHXFiyjqSLSIoDcngt+/HTvT0muQLhzDLOxQN+zX5KE=; b=qtd9FZJPzm2IRzC7k72FMItKA+CIx6LZzq43bIUU7PQX4KG684VOaOlrK7ivZDdSbQ 5h/p/sj+SC1+d8HF9GpAMrhLcwdGPGblDpzBEMCRBaGkXdfu8gC/QHAsGFL5BRmRRk1g afhPCzb3KSAUdNqTn6b/+wZVvxCIM9uh+uTbVGz6FMYDZhBAmxiyQa4jyZwK7a+3W6+j qDcLNcZwjuGj9vwmF4ke37+XDh+G76iieOrSnPLWUpdokRq0d6nACpntH2d2MMg2v1tE TjvZH8TCC7/veMGhBKcA/njZfb/sZF67Zj89kVsEsyNT/2D8FwogdmJd8YtdB60Mnqwa 7Kbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=TMdd+kxV; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d19-20020a056402079300b00501da04d094si14716782edy.523.2023.03.25.12.14.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Mar 2023 12:14:22 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=TMdd+kxV; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 B40FD385843A for ; Sat, 25 Mar 2023 19:14:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B40FD385843A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679771661; bh=IHXFiyjqSLSIoDcngt+/HTvT0muQLhzDLOxQN+zX5KE=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=TMdd+kxVLNAmoXwR12FCGJMuTvj3DNUaylyKG9/rEKLfwVfCFmX7XU5YQZMqcKBUo dgfd6nLKnbS2pCQXgcA3735r4h5s4N6g3Q0297k2VzdusHNZFR5wo6DWG8sWfl8jE/ UyBIitVB8SDGVtaQi5r8PkXUNu6feH7va1gaGM9I= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by sourceware.org (Postfix) with ESMTPS id 7080F3858D20; Sat, 25 Mar 2023 19:13:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7080F3858D20 X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [79.232.144.118] ([79.232.144.118]) by web-mail.gmx.net (3c-app-gmx-bs65.server.lan [172.19.170.209]) (via HTTP); Sat, 25 Mar 2023 20:13:36 +0100 MIME-Version: 1.0 Message-ID: To: fortran , gcc-patches Subject: [PATCH, commited] Fortran: remove dead code [PR104321] Date: Sat, 25 Mar 2023 20:13:36 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:kT7CS+ItBOmsu6V9Q0GRZ/e7gQEJZ8HtKsJSwpAua1Z2qkxuv1lwHkBbqDlw7Bk9YUxhu Rs+MIvO/UXXe0PFcoZTUJ+UeJOvrBe0xLg1AYVxCWNRGtsmLzcuKdLKr/nTBR7NsfVrYgT/DUo2a WquANMm6jl4c8GLseQEF9LlSMdM3tvYl+uyq70at+VtcJKq/KOgfLIh/Gh46UtUOX1o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REEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Harald Anlauf via Gcc-patches From: Harald Anlauf Reply-To: Harald Anlauf 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?1761368251229218820?= X-GMAIL-MSGID: =?utf-8?q?1761368251229218820?= Dear all, I've committed the attached patch from the PR that removes a dead code snippet, see discussion. Regtested originally by Tobias, and reconfirmed on x86_64-pc-linux-gnu. Pushed as r13-6862-gb5fce899dbbd72 . Thanks, Harald From b5fce899dbbd7246d003209b2fe3b04f8738dddd Mon Sep 17 00:00:00 2001 From: Harald Anlauf Date: Sat, 25 Mar 2023 19:59:45 +0100 Subject: [PATCH] Fortran: remove dead code [PR104321] gcc/fortran/ChangeLog: PR fortran/104321 * trans-decl.cc (gfc_conv_cfi_to_gfc): Remove dead code. --- gcc/fortran/trans-decl.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/gcc/fortran/trans-decl.cc b/gcc/fortran/trans-decl.cc index 77610df340b..25737881ae0 100644 --- a/gcc/fortran/trans-decl.cc +++ b/gcc/fortran/trans-decl.cc @@ -7165,9 +7165,6 @@ gfc_conv_cfi_to_gfc (stmtblock_t *init, stmtblock_t *finally, size_var, LT_EXPR, build_int_cst (TREE_TYPE (idx), 1), gfc_finish_block (&loop_body)); /* if (cond) { block2 } */ - tmp = fold_build2_loc (input_location, MODIFY_EXPR, void_type_node, - data, fold_convert (TREE_TYPE (data), - null_pointer_node)); tmp = build3_v (COND_EXPR, cond_var, gfc_finish_block (&block2), build_empty_stmt (input_location)); gfc_add_expr_to_block (&block, tmp); -- 2.35.3