This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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: Fortran: Intel vs G77


On Wed, Jan 15, 2003 at 09:51:04PM +0000, David Lecomber wrote:
> The current situation with g77 and Intel meets gdb is as follows for
> multi-dim arrays
> 
> Intel compiled code:
>   whatis -- wrong way round real(4 * 5 ) is reported as real (5 * 4)
>   indexing -- correct 
>   print elements -- boundaries not aligned properly ( it prints a 5 * 4 
> as a 4 * 5 )
> 
> 
> g77 fortran compilers compiled code:
>   whatis -- correct
>   print elements -- correct
>   indexing -- 'print A(1,2)' will get the wrong answer.
> 
> So, unless there is a method to check what the compiler was used, we are
> left with
> 
>   1. status quo
> or
>   2. compile up two different versions -- one for gdb + intel, the
> other for gdb + g77
> 
> Does anyone know of the existence of such a check?

Sure, via gcc_compiled, but that's not the right way to approach this
problem.

First of all, what version of G77 did you test with?  And what format
of debug information?

Secondly, which compiler's debug information is correct?  Or are they
just different and triggering different bugs?

Third, it really sounds like we're going to need copyright assignment
papers from you.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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