Hi Mikael,

Am 10.07.25 um 22:01 schrieb Mikael Morin:
From: Mikael Morin <mik...@gcc.gnu.org>

Hello,

here are three patches as follow-up to this message.
These started as an attempt to remove the PR fortran/108889 workaround,
which I didn't understand.
I had to keep it in the end but this is what I could save from that
failed attempt.

Regression tested on x86_64-pc-linux-gnu.
OK for master?

Mikael Morin (3):
   fortran: Generate array reallocation out of loops
   fortran: Delay evaluation of array bounds after reallocation
   fortran: Amend descriptor bounds init if unallocated

  gcc/fortran/gfortran.h     |   4 -
  gcc/fortran/trans-array.cc | 229 +++++++++++++++++++++++--------------
  gcc/fortran/trans-expr.cc  |  35 +++---
  3 files changed, 165 insertions(+), 103 deletions(-)


this seems to make a lot of sense and looks good to me.  OK for trunk.

Thanks for the patch!

Harald

Reply via email to