gnu/gcc.git/bb5c3bfcb28b423544676b30df5a3bc97e91c41f
fortran: Remove always false dummy pointer conditional
After the previous change, the `formal_ptr' argument of
gfc_conv_subref_array_arg is false everywhere the function is used.
Remove it.
The argument was controling the generation of one-based array descriptor
bounds when the dummy argument had the pointer attribute, which is excluded
in the contexts where the function is used, that is when a copy-in and/or
copy-out of the argument is to be generated. Remove that as well.
gcc/fortran/ChangeLog:
* trans.h (gfc_conv_subref_array_arg): Remove argument formal_ptr.
* trans-expr.cc (gfc_conv_subref_array_arg): Likewise. Remove
code depending on the argument being true.
(gfc_conv_gfc_desc_to_cfi_desc, gfc_conv_procedure_call): Update
callers.
* trans-array.cc (gfc_conv_array_parameter): Likewise.
* trans-io.cc (set_internal_unit, gfc_trans_transfer): Likewise.
* trans-stmt.cc (trans_associate_var,
forall_make_variable_temp): Likewise.
5 files changed