[gfortran] Segfault in dependency code (PR23906)

Paul Brook paul@codesourcery.com
Fri Sep 16 03:26:00 GMT 2005


The attached patch fixes a segfault in the dependency code.

The code was dividing the size of the range by the wrong stride (which may be 
NULL). The point of this function is to apply the same transformation to both 
ranges, so it's definitely the division, and the the condition that's 
incorrect.

I also updated the comment to make this clearer.

Tested on i686-linux.
Applied to mainline.

Paul

2005-09-16  Paul Brook  <paul@codesourcery.com>

	PR fortran/23906
fortran/
	* dependency.c (transform_sections): Divide by correct value.
	Elaborate comment.
testsuite/
	* gfortran.dg/dependency_1.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-diff
Size: 1527 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050916/f699e7af/attachment.bin>


More information about the Gcc-patches mailing list