[Patch, fortran] coarray cleanup leftover

Mikael Morin mikael.morin@sfr.fr
Fri Nov 25 05:34:00 GMT 2011


Hello,

This change
http://gcc.gnu.org/viewcvs?view=revision&revision=179689
removed references to gfc_loopinfo's codimen field and one conditional 
checking against gfc_loopinfo::dimen (as we had the convention that dimensions 
above dimen were codimensions).
I have noticed two more of those conditionals which I'm proposing for removal.

This is not a bug nor a regression, so this should normally wait for the next 
stage1. It is obvious on the other hand, and safe, as the 'n < loop->dimen' 
conditions are inside a 'for (n = 0; n < loop->dimen; n++)' loop.

Regression tested on x86_64-unknown-linux-gnu (with the just posted pr51250 
patch). OK for trunk?

Mikael
-------------- next part --------------
2011-11-24  Mikael Morin  <mikael@gcc.gnu.org>

	* trans-array.c (set_loop_bounds): Remove dead conditions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cleanup_coarray.diff
Type: text/x-patch
Size: 616 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111125/78289d4d/attachment.bin>


More information about the Gcc-patches mailing list