[Fortran, gcc-5, patch, pr69268, v1] [5 Regression] Sourced allocation calls function twice

Andre Vehreschild vehre@gmx.de
Tue Jan 26 12:28:00 GMT 2016


Hi all,

please find attached a patch to solve the issue of evaluating a source=
expression of an allocate() twice in gcc-5. The patch is a combination
and partial back port of several prs of the mainline (namely, but not
the complete list: pr44672, pr65548).

The patch needed the counts of builtin_mallocs/frees in
allocatable_scalar_13 to be adapted. There are now fewer calls to the
memory management routines. Valgrind does not report any memory issues
in the modified code, but that does not mean there aren't any. I am
happy to hear about any issue, this patch causes (still having issues
getting the sanitizer to work).

Bootstrapped and regtested on x86_64-linux-gnu/F23.

Ok, for gcc-5-branch?

Regards,
	Andre
-- 
Andre Vehreschild * Email: vehre ad gmx dot de 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr69268_1.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160126/42986e96/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr69268_1.patch
Type: text/x-patch
Size: 8195 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160126/42986e96/attachment.bin>


More information about the Gcc-patches mailing list