aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans.h
diff options
context:
space:
mode:
authorMikael Morin <mikael@gcc.gnu.org>2011-11-03 22:21:36 +0000
committerMikael Morin <mikael@gcc.gnu.org>2011-11-03 22:21:36 +0000
commit1838afec3ecd649c333b89b9b30db1d275e337d2 (patch)
treec3c34dd5f923feb88d5de358a7ba30eaa8566b5f /gcc/fortran/trans.h
parent961e73ace25da06b5909b2b48e64447bea15963d (diff)
downloadgcc-1838afec3ecd649c333b89b9b30db1d275e337d2.zip
gcc-1838afec3ecd649c333b89b9b30db1d275e337d2.tar.gz
gcc-1838afec3ecd649c333b89b9b30db1d275e337d2.tar.bz2
trans.h (struct gfc_ss, [...]): Move field gfc_ss::data::info into gfc_ss_info::data and remove empty union...
* trans.h (struct gfc_ss, struct gfc_ss_info): Move field gfc_ss::data::info into gfc_ss_info::data and remove empty union gfc_ss::data. * trans-array.c (gfc_free_ss, gfc_trans_create_temp_array, gfc_trans_constant_array_constructor, gfc_trans_array_constructor, gfc_set_vector_loop_bounds, gfc_add_loop_ss_code, gfc_conv_ss_descriptor, gfc_trans_array_bound_check, gfc_conv_array_index_offset, gfc_conv_scalarized_array_ref, add_array_offset, gfc_trans_preloop_setup, gfc_trans_scalarized_boundary, gfc_conv_section_startstride, gfc_conv_ss_startstride, gfc_could_be_alias, gfc_conv_loop_setup, gfc_conv_expr_descriptor, gfc_alloc_allocatable_for_assignment, gfc_walk_array_ref): Update reference chains and factor them where possible. * trans-expr.c (gfc_conv_variable, gfc_conv_subref_array_arg, gfc_conv_procedure_call, gfc_trans_subarray_assign): Updata reference chains. * trans-intrinsic.c (gfc_conv_intrinsic_transfer): Ditto. * trans-io.c (transfer_array_component): Ditto. * trans-stmt.c (gfc_conv_elemental_dependencies, gfc_trans_pointer_assign_need_temp): Ditto. From-SVN: r180873
Diffstat (limited to 'gcc/fortran/trans.h')
-rw-r--r--gcc/fortran/trans.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/fortran/trans.h b/gcc/fortran/trans.h
index 60708e9..e74da41 100644
--- a/gcc/fortran/trans.h
+++ b/gcc/fortran/trans.h
@@ -204,6 +204,9 @@ typedef struct gfc_ss_info
tree type;
}
temp;
+
+ /* All other types. */
+ gfc_array_info array;
}
data;
}
@@ -224,13 +227,6 @@ typedef struct gfc_ss
{
gfc_ss_info *info;
- union
- {
- /* All other types. */
- gfc_array_info info;
- }
- data;
-
int dimen;
/* Translation from loop dimensions to actual array dimensions.
actual_dim = dim[loop_dim] */