[pach, Fortran] Improve dependency checking
Thomas Koenig
tkoenig@netcologne.de
Mon Aug 9 18:36:00 GMT 2010
Hello world,
here's another installment of dependency checking improvements.
I debated a little with myself if extending gfc_ref_dimen_size really
was the right approach, but I didn't want to duplicate its code.
Regression-tested on trunk. OK?
[If there isn't time to review this before tomorrow evening, I would
ask somebody to commit this for me].
Thomas
2010-08-09 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/44235
* array.c (gfc_ref_dimen_size): Add end argument.
If end is non-NULL, calculate it.
(ref_size): Adjust call to gfc_ref_dimen_size.
(gfc_array_dimen_size): Likewise.
(gfc_array_res_shape): Likewise.
* gfortran.h: Adjust prototype for gfc_ref_dimen_size.
* resolve.c (resolve_array_ref): For stride not equal to -1,
fill in the lowest possible end.
2010-08-09 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/44235
* dependency_32.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 3964 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100809/d542e4d6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dependency_32.f90
Type: text/x-fortran
Size: 237 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100809/d542e4d6/attachment-0001.bin>
More information about the Gcc-patches
mailing list