diff options
author | Mikael Morin <mikael@gcc.gnu.org> | 2023-07-17 14:13:48 +0200 |
---|---|---|
committer | Mikael Morin <mikael@gcc.gnu.org> | 2023-07-17 14:13:48 +0200 |
commit | 8ac448ebffab64ba90a6da2949e18a915046b232 (patch) | |
tree | 3d1478e57aeba14f33f1a60b26be9dc717c04ae0 /gcc/fortran/st.cc | |
parent | 243a6b61418f47a9d04b6c3fe376e266e6cb00c0 (diff) | |
download | gcc-8ac448ebffab64ba90a6da2949e18a915046b232.zip gcc-8ac448ebffab64ba90a6da2949e18a915046b232.tar.gz gcc-8ac448ebffab64ba90a6da2949e18a915046b232.tar.bz2 |
fortran: Push element size expression generation close to its usage
gfc_add_finalizer_call creates one expression which is only used
by the get_final_proc_ref function. Move the expression generation
there.
gcc/fortran/ChangeLog:
* trans.cc (gfc_add_finalizer_call): Remove local variable
elem_size. Pass expression to get_elem_size and move the
element size expression generation close to its usage there.
(get_elem_size): Add argument expr, remove class_size argument
and rebuild it from expr. Remove ts argument and use the
type of expr instead.
Diffstat (limited to 'gcc/fortran/st.cc')
0 files changed, 0 insertions, 0 deletions