public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/43414]  New: DWARF4: Use DW_AT_main_subprogram for MAIN__
@ 2010-03-17 23:08 burnus at gcc dot gnu dot org
  2010-03-17 23:14 ` [Bug fortran/43414] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-03-17 23:08 UTC (permalink / raw)
  To: gcc-bugs

DWARF4 draft: http://dwarfstd.org/doc/DWARF4-public-review.pdf

gfortran uses
  main()
to initialize the program and
  MAIN__
as actual Fortran program.

DWARF4 offers:
  DW_AT_main_subprogram   Main or starting subprogram
                          Unit containing main or starting subprogram

File: gcc/fortran/trans-decl.c:
The "main" program is generated in create_main_function; the "MAIN__"
subprogram is generated gfc_generate_function_code (only if
sym->attr.is_main_program).

gcc/dwarf2out.c already has DW_AT_main_subprogram defined.


-- 
           Summary: DWARF4: Use DW_AT_main_subprogram for MAIN__
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org
OtherBugsDependingO 24546
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43414


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-19 12:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-43414-4@http.gcc.gnu.org/bugzilla/>
2010-10-03 13:09 ` [Bug fortran/43414] DWARF4: Use DW_AT_main_subprogram for MAIN__ fxcoudert at gcc dot gnu.org
2010-10-19 12:31 ` fxcoudert at gcc dot gnu.org
2010-10-19 12:32 ` fxcoudert at gcc dot gnu.org
2010-03-17 23:08 [Bug fortran/43414] New: " burnus at gcc dot gnu dot org
2010-03-17 23:14 ` [Bug fortran/43414] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).