From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18307 invoked by alias); 22 Nov 2005 02:31:08 -0000 Received: (qmail 18288 invoked by uid 22791); 22 Nov 2005 02:31:07 -0000 X-Spam-Check-By: sourceware.org Received: from ausmtp01.au.ibm.com (HELO ausmtp01.au.ibm.com) (202.81.18.186) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 22 Nov 2005 02:31:04 +0000 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp01.au.ibm.com (8.12.10/8.12.10) with ESMTP id jAM2XxJQ145652 for ; Tue, 22 Nov 2005 13:33:59 +1100 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.250.244]) by sd0208e0.au.ibm.com (8.12.10/NCO/VERS6.8) with ESMTP id jAM2XhNQ111890 for ; Tue, 22 Nov 2005 13:33:44 +1100 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.12.11/8.13.3) with ESMTP id jAM2UZj5009497 for ; Tue, 22 Nov 2005 13:30:36 +1100 Received: from [9.181.133.252] ([9.181.133.252]) by d23av03.au.ibm.com (8.12.11/8.12.11) with ESMTP id jAM2UW6Z009433; Tue, 22 Nov 2005 13:30:33 +1100 Date: Tue, 22 Nov 2005 08:15:00 -0000 From: Wu Zhou To: Daniel Jacobowitz cc: Jason Merrill , gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org, pinskia@gcc.gnu.org, dberlin@dberlin.org, jimb@red-bean.com Subject: Re: [RFC] Use DW_CC_program to indicate Fortran main subroutine In-Reply-To: <20051121163733.GA23783@nevyn.them.org> Message-ID: References: <20051121051017.GA12030@nevyn.them.org> <4381F707.5080703@redhat.com> <20051121163733.GA23783@nevyn.them.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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/msg00401.txt.bz2 Hi, Thank you all for your kind input. I had a look at all your comments. It seems that no one is 100% convinced that DW_CC_program is the proper solution. In fact I am also a little odd about the usage of DW_CC_program to indicate the main function. But the text in DWARF 3.3.1 really induce me to think that it is currently the only feasible solution. Now that most of you concur to make up a new attribute or tag for this. I think it is more correct too. Maybe it is time for us to discuss the detail of this new tag or attribute? My vote is to use a new attribute Dan Berlin proposed: DW_AT_GNU_main. We can use it in GNU toolchain first, gcc, gdb, binutils and so on. If the DWARF committee can reach agreement on the final name, we can switch to it then. What is your point on this? Thanks. Regards - Wu Zhou On Mon, 21 Nov 2005, Daniel Jacobowitz wrote: > 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 > >