This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Fortran: Intel vs G77
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: David Lecomber <david at streamline-computing dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 15 Jan 2003 17:08:43 -0500
- Subject: Re: Fortran: Intel vs G77
- References: <20030115215104.A17981@streamline-computing.com>
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