[patch, Fortran] Fix some string temporaries

Thomas Koenig tkoenig@netcologne.de
Tue Jul 19 21:27:00 GMT 2016


Hi Mikael,

> Then handle the GFC_DEP_ERROR here. Or initialize fin_dep with
> GFC_DEP_NODEP at the beginning, as you prefer.
> OK with either (and the unreachable assertions).

Here is the pacth the way I committed it.

Thanks for the review and the comments.

Regards

	Thomas

2016-07-19  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/71902
	* dependency.c (gfc_check_dependency): Use dep_ref.  Handle case
	if identical is true and two array element references differ.
	(gfc_dep_resovler):  Move most of the code to dep_ref.
	(dep_ref):  New function.
	* frontend-passes.c (realloc_string_callback):  Name temporary
	variable "realloc_string".

2016-07-19  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/71902
	* gfortran.dg/dependency_47.f90:  New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p4.diff
Type: text/x-patch
Size: 4656 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160719/ec7eb4a3/attachment.bin>


More information about the Gcc-patches mailing list