[Patch] Fortran: Fix absent-optional handling for nondescriptor arrays (PR94672)

Tobias Burnus tobias@codesourcery.com
Wed Aug 26 16:29:40 GMT 2020


This fixes an issue caused by the patch for PR 94672, which
affects both GCC 10 and GCC 11.

Only 'sVal' of 'subroutine foo' was affected, the rest is
only a crosscheck that it worked for those code paths.

(I did check against the dump – which looks fine. I could
add dump tests as well. The 'foo' test was failing with
'stop 5' (absent argument) at runtime before the patch;
the report was for the 'stop 4' case, which is probably
harder to trigger as run-time fail as the stack memory
is likely zero-initialized. → -fdump-tree-original scan
test useful?)

OK for mainline and GCC 10?

Tobias

-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-optional.diff
Type: text/x-patch
Size: 2629 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200826/18b85f97/attachment.bin>


More information about the Gcc-patches mailing list