]> git.ipfire.org Git - thirdparty/gcc.git/commit
fortran: Factor scalar descriptor generation
authorMikael Morin <mikael@gcc.gnu.org>
Mon, 17 Jul 2023 12:14:14 +0000 (14:14 +0200)
committerMikael Morin <mikael@gcc.gnu.org>
Mon, 17 Jul 2023 12:14:14 +0000 (14:14 +0200)
commitf60231e35d8d3f84f2ab6b3c19c254faa9519cf4
tree2cf1b7312fe1357c04431da1a92d94dc03c9daad
parent3693adaf0809fa5c91ee5534abb9c6bc59b2406d
fortran: Factor scalar descriptor generation

The same scalar descriptor generation code is present twice, in the
case of derived type entities, and in the case of polymorphic
non-coarray entities.  Factor it in preparation for a future third case
that will also need the same code for scalar descriptor generation.

gcc/fortran/ChangeLog:

* trans.cc (get_var_descr): Factor scalar descriptor generation.
gcc/fortran/trans.cc