Re: [patch, fortran] Some corrections for DO loop index warnings

2019-08-13 Thread Thomas Koenig
Hi Steve, Ok. If it regression cleanly on gcc9, go ahead an commit there as well. Committed to both (after doing a regression test on gcc 9 and also waiting for gcc-testresults containing the revision). Thanks for the review!

Re: [patch, fortran] Some corrections for DO loop index warnings

2019-08-12 Thread Steve Kargl
On Mon, Aug 12, 2019 at 05:18:18PM +0200, Thomas Koenig wrote: > Hello world, > > the attached patch fixes three problems with DO loop index warnings: > > - DO loops in contained procedures were not checked > > - Zero-trip loops gave a false positive > > - DO loops in blocks gave the same warni

[patch, fortran] Some corrections for DO loop index warnings

2019-08-12 Thread Thomas Koenig
Hello world, the attached patch fixes three problems with DO loop index warnings: - DO loops in contained procedures were not checked - Zero-trip loops gave a false positive - DO loops in blocks gave the same warning twice plus it fixes the resulting fallout from the test suite. Regression-t