From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20567 invoked by alias); 15 Jan 2003 22:09:07 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 20560 invoked from network); 15 Jan 2003 22:09:06 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 15 Jan 2003 22:09:06 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18Yxb5-0003tK-00; Wed, 15 Jan 2003 18:09:27 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18YviF-0003D4-00; Wed, 15 Jan 2003 17:08:43 -0500 Date: Wed, 15 Jan 2003 22:09:00 -0000 From: Daniel Jacobowitz To: David Lecomber Cc: gdb-patches@sources.redhat.com Subject: Re: Fortran: Intel vs G77 Message-ID: <20030115220843.GA12316@nevyn.them.org> Mail-Followup-To: David Lecomber , gdb-patches@sources.redhat.com References: <20030115215104.A17981@streamline-computing.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030115215104.A17981@streamline-computing.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-01/txt/msg00584.txt.bz2 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