[Patch, Fortran, committed] Fixed one issue with -fcoarray=lib
Tobias Burnus
burnus@net-b.de
Mon Jun 23 17:09:00 GMT 2014
The issue fixed by the attached test case was that an automatic array
wasn't properly initialized with -fcoarray=lib. As the code is for
explicit-size arrays, it isn't reachable for allocatable coarrays. On
the other hand, for coarrays with SAVE attribute, already the condition
before should be triggered:
else if (sym->attr.codimension && TREE_STATIC (sym->backend_decl))
Thus, removing the condition for good should be fine. (Alternatively,
one could add an "|| !sym->attr.codimension".)
Build and regtested on x86-64-gnu-linux.
Committed as Rev. 211907.
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: caf.diff
Type: text/x-patch
Size: 1453 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20140623/cf9565d9/attachment.bin>
More information about the Fortran
mailing list