[Fortran, Patch, pr77663, v1] libgfortran/caf/single.c: three minor problems and a lost token

Andre Vehreschild vehre@gmx.de
Sat Oct 1 11:30:00 GMT 2016


Hi all,

attached patch fixes some issue in caf/single.c that were reported as pure
style issues, but uncovered at least one significant error when handling sending
data to a remote image when the memory and associated token was not allocated
yet. The send_by_ref-routine stored the new token only on the stack when the
component to allocate was scalar which lead to crashes, when that token was
later on accessed. Furthermore was the memory and the token lost. This patch
fixes the issue.

Bootstraps and regtests ok on x86_64-linux/F23. Ok for trunk?

Regards,
	Andre
-- 
Andre Vehreschild * Email: vehre ad gmx dot de 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr77663_v1.clog
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161001/1d1510fe/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr77663_v1.patch
Type: text/x-patch
Size: 3755 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161001/1d1510fe/attachment.bin>


More information about the Gcc-patches mailing list