]> git.ipfire.org Git - thirdparty/gcc.git/commit
fortran: Remove premature initialization of a function result's span
authorMikael Morin <morin-mikael@orange.fr>
Tue, 5 Aug 2025 12:58:01 +0000 (14:58 +0200)
committerMikael Morin <mikael@gcc.gnu.org>
Tue, 5 Aug 2025 20:35:07 +0000 (22:35 +0200)
commit8d2e44fa19959e8452d500f264f4c96e13ec3617
tree8f0be5bc15bbfcc196c9c3feb88ea52bcca6ab50
parentacb0fa251abf55bfdd50e90b2c97ab084204ca6c
fortran: Remove premature initialization of a function result's span

Setting just the span in an otherwise uninitialized array descriptor to
pass to a function that will use the descriptor for its result (thus do
the initialization) doesn't seem to be useful.

gcc/fortran/ChangeLog:

* trans-array.cc (gfc_conv_expr_descriptor): Remove
isolated initialization of the span field before passing to
the function that will do the initialization.
gcc/fortran/trans-array.cc