From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23020 invoked by alias); 21 Nov 2005 16:37:43 -0000 Received: (qmail 23013 invoked by uid 22791); 21 Nov 2005 16:37:42 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 21 Nov 2005 16:37:41 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EeEfd-0006C8-Vl; Mon, 21 Nov 2005 11:37:34 -0500 Date: Mon, 21 Nov 2005 22:03:00 -0000 From: Daniel Jacobowitz To: Jason Merrill Cc: Wu Zhou , gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org, pinskia@gcc.gnu.org Subject: Re: [RFC] Use DW_CC_program to indicate Fortran main subroutine Message-ID: <20051121163733.GA23783@nevyn.them.org> Mail-Followup-To: Jason Merrill , Wu Zhou , gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org, pinskia@gcc.gnu.org References: <20051121051017.GA12030@nevyn.them.org> <4381F707.5080703@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4381F707.5080703@redhat.com> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00394.txt.bz2 On Mon, Nov 21, 2005 at 11:34:15AM -0500, Jason Merrill wrote: > Daniel Jacobowitz wrote: > >As for calling set_main_name, I don't know if this is right or not. I > >guess it depends what the DWARF folks meant by "not intended as a way > >of finding the entry address for the program". Can a Fortran binary > >have more than one "main program"? > > > >If they only meant "it does not indicate the address you can jump to in > >order to start", then this seems quite reasonable. > > This makes sense to me. The "entry address" sounds like _start, not main. > > It does seem a bit odd to put this under the calling convention > attribute, though, as the main function might be callable using the > normal calling convention in some languages. Java, for instance. Right - and it might not be, e.g. DW_CC_GNU_renesas_sh. I think Dan's got the right idea; we should just make up a tag for this, and submit it for dwarf4. -- Daniel Jacobowitz CodeSourcery, LLC