[gcc(refs/users/mikael/heads/refactor_descriptor_v08)] Reindentation retour à la ligne set_descriptor_with_shape
Mikael Morin
mikael@gcc.gnu.org
Wed Sep 17 10:40:36 GMT 2025
https://gcc.gnu.org/g:baad800a3d24158edf9f995b71d160553760297c
commit baad800a3d24158edf9f995b71d160553760297c
Author: Mikael Morin <mikael@gcc.gnu.org>
Date: Sun Aug 17 19:43:40 2025 +0200
Reindentation retour à la ligne set_descriptor_with_shape
Diff:
---
gcc/fortran/trans-descriptor.cc | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/gcc/fortran/trans-descriptor.cc b/gcc/fortran/trans-descriptor.cc
index 60cb6f1b9798..d283c741767f 100644
--- a/gcc/fortran/trans-descriptor.cc
+++ b/gcc/fortran/trans-descriptor.cc
@@ -1755,11 +1755,12 @@ gfc_set_descriptor_with_shape (stmtblock_t *block, tree desc, tree ptr,
gfc_conv_expr (&shapese, shape);
gfc_add_block_to_block (&body, &shapese.pre);
- tree ubound = fold_build2_loc (
- input_location, MINUS_EXPR, gfc_array_index_type,
- fold_build2_loc (input_location, PLUS_EXPR, gfc_array_index_type, lbound,
- fold_convert (gfc_array_index_type, shapese.expr)),
- gfc_index_one_node);
+ tmp = fold_build2_loc (input_location, MINUS_EXPR, gfc_array_index_type,
+ lbound, gfc_index_one_node);
+ tree ubound = fold_build2_loc (input_location, PLUS_EXPR,
+ gfc_array_index_type, tmp,
+ fold_convert (gfc_array_index_type,
+ shapese.expr));
gfc_conv_descriptor_ubound_set (&body, desc, dim, ubound);
gfc_add_block_to_block (&body, &shapese.post);
@@ -1771,10 +1772,11 @@ gfc_set_descriptor_with_shape (stmtblock_t *block, tree desc, tree ptr,
gfc_array_index_type, offset, tmp));
/* Update stride. */
- gfc_add_modify (
- &body, stride,
- fold_build2_loc (input_location, MULT_EXPR, gfc_array_index_type, stride,
- fold_convert (gfc_array_index_type, shapese.expr)));
+ gfc_add_modify (&body, stride,
+ fold_build2_loc (input_location, MULT_EXPR,
+ gfc_array_index_type, stride,
+ fold_convert (gfc_array_index_type,
+ shapese.expr)));
/* Finish scalarization loop. */
gfc_trans_scalarizing_loops (&loop, &body);
gfc_add_block_to_block (block, &loop.pre);
More information about the Gcc-cvs
mailing list