Re: [RFC] Use DW_CC_program to indicate Fortran main subroutine

Jason Merrill
2005-11-21T16:35:14Z

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.

Jason