[Patch, fortran] [10/11] Inline transpose part 1

Mikael Morin mikael.morin@sfr.fr
Sat Sep 4 14:36:00 GMT 2010


This is the actual patch (others are regression fixes).
We special case walking transpose and invert dimensions there.
Then evaluating transpose simplifies to evaluating its argument.

The error message in transpose_2.f90 is changed
from:
      Incorrect extent in return value of TRANSPOSE intrinsic in 
dimension 1: is 2, should be 3
to:
      Array bound mismatch for dimension 1 of array 'b' (3/2)

I prefer the original message, but as the code is invalid, and we output 
a sensible error message, I've decided not to bother and update the 
testsuite pattern.


There is a last minute regression introduced by this patch.
It is fixed by the follow-up patch 11/11, which I intend to commit 
together with this one so that nothing breaks on trunk (well, hopefully).
OK for trunk?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: inline_transpose_1-10.changelog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100904/e4b85e92/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: inline_transpose_1-10.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100904/e4b85e92/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: inline_transpose_1.changelog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100904/e4b85e92/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: inline_transpose_1.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100904/e4b85e92/attachment-0003.ksh>


More information about the Fortran mailing list