This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Debug support for Fortran 90 assumed shape and other descriptor using arrays (PR fortran/22244)


Jakub Jelinek wrote:
> On Fri, Nov 16, 2007 at 02:06:42PM +0100, Tobias Burnus wrote:
>   
>> Jakub Jelinek wrote:
>>     
>>> Can you look at with idb on gfortran (vanilla or patched) generated MAIN__
>>> x and y arrays after the bar subroutine returns and see if they are
>>> displayed in the expected order or not?  
>>>       
>> For the a5.f90 test case, compiled with ifort (!) I get:
>>     
> Ok, can you retry with the following additional patch on top of the previous
> one?

Now I get with gfortran (both patches) and idb (using a4.f90):

(idb) ptype varx
type = REAL(4)(6)(11)(12)

Which looks ok. The problem with the <no value> seems to be that the
deallocate comes too early - or that I cannot operate the debugger:

(idb) next
6         varx(2, 6, 18) = 8
(idb) p varx
$6 = {{{7, 6, 6, 6, 6, 6}, {6
(idb) next
7         varx(6, 15, 28) = 9
(idb) p varx
$8 = {{{7, 6, 6, 6, 6, 6}, {6
(idb) next
8         deallocate (varx)
(idb) p varx
$9 = {{{<no value>, <no value>,

 * * *

Regarding the test case a4.f90 and a4.f90: I get for x(3,1) with
gfortran a "10.0" but with g95, nag f95 and ifort a "4.0", which
indicates a bug in gfortran.

Tobias


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]