public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6862] Fortran: remove dead code [PR104321]
@ 2023-03-25 19:04 Harald Anlauf
  0 siblings, 0 replies; only message in thread
From: Harald Anlauf @ 2023-03-25 19:04 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:b5fce899dbbd7246d003209b2fe3b04f8738dddd

commit r13-6862-gb5fce899dbbd7246d003209b2fe3b04f8738dddd
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Sat Mar 25 19:59:45 2023 +0100

    Fortran: remove dead code [PR104321]
    
    gcc/fortran/ChangeLog:
    
            PR fortran/104321
            * trans-decl.cc (gfc_conv_cfi_to_gfc): Remove dead code.

Diff:
---
 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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-25 19:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-25 19:04 [gcc r13-6862] Fortran: remove dead code [PR104321] Harald Anlauf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).