This is the mail archive of the
mailing list for the GCC project.
Re: [patch, fortran] PR32382 missed optimization in internal read
- From: Jerry DeLisle <jvdelisle at verizon dot net>
- To: gfortran <fortran at gcc dot gnu dot org>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 13 Feb 2010 08:49:53 -0800
- Subject: Re: [patch, fortran] PR32382 missed optimization in internal read
- References: <4B76D5A8.email@example.com>
Jerry DeLisle wrote:
Some more quiet time allowed me to see this simple solution. This
modifies the DO LOOP code for implied loops in I/O statements (READ and
WRITE) by adding a simple exit condition at the end of the loop block.
It only comes into play while translating I/O statements.
Regression tested on x86_64. No need for new test case in testsuite. I
have attached the case from the PR for convenience.
OK for trunk?
Of course, after I submit the patch I see it only works if the implied do is on
the first variable in the IO list. I am updating the patch to work more generally.