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

commit b850be7f2f961a2521836930581f98112c67ffb1
Author: Mikael Morin <mik...@gcc.gnu.org>
Date:   Mon Feb 17 14:43:06 2025 +0100

    Suppression modif offset trans_associate_var
    
    Correction bootstrap suppression variables inutilisées

Diff:
---
 gcc/fortran/trans-stmt.cc | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/gcc/fortran/trans-stmt.cc b/gcc/fortran/trans-stmt.cc
index ddd0a120229c..edfed1d264bc 100644
--- a/gcc/fortran/trans-stmt.cc
+++ b/gcc/fortran/trans-stmt.cc
@@ -1877,9 +1877,6 @@ trans_associate_var (gfc_symbol *sym, gfc_wrapped_block 
*block)
   bool class_target;
   bool unlimited;
   tree desc;
-  tree offset;
-  tree dim;
-  int n;
   tree charlen;
   bool need_len_assign;
   bool whole_array = true;
@@ -2299,21 +2296,6 @@ trans_associate_var (gfc_symbol *sym, gfc_wrapped_block 
*block)
 
          desc = gfc_class_data_get (se.expr);
 
-         /* Set the offset.  */
-         offset = gfc_index_zero_node;
-         for (n = 0; n < e->rank; n++)
-           {
-             dim = gfc_rank_cst[n];
-             tmp = fold_build2_loc (input_location, MULT_EXPR,
-                                    gfc_array_index_type,
-                                    gfc_conv_descriptor_stride_get (desc, dim),
-                                    gfc_conv_descriptor_lbound_get (desc, 
dim));
-             offset = fold_build2_loc (input_location, MINUS_EXPR,
-                                       gfc_array_index_type,
-                                       offset, tmp);
-           }
-         gfc_conv_descriptor_offset_set (&se.pre, desc, offset);
-
          if (need_len_assign)
            {
              if (e->symtree

Reply via email to