public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/29635] debug info of modules
Date: Fri, 29 Aug 2008 18:43:00 -0000	[thread overview]
Message-ID: <20080829184237.19419.qmail@sourceware.org> (raw)
In-Reply-To: <bug-29635-10259@http.gcc.gnu.org/bugzilla/>



------- Comment #10 from jakub at gcc dot gnu dot org  2008-08-29 18:42 -------
Subject: Bug 29635

Author: jakub
Date: Fri Aug 29 18:41:19 2008
New Revision: 139773

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139773
Log:
        PR fortran/29635
        PR fortran/23057
        * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
        arguments to imported_module_or_decl.
        (debug_nothing_tree_tree): Removed.
        (debug_nothing_tree_tree_tree_bool): New prototype.
        * debug.c (do_nothing_debug_hooks): Adjust.
        (debug_nothing_tree_tree): Removed.
        (debug_nothing_tree_tree_tree_bool): New function.
        * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
        (gen_variable_die): Put all common vars for the
        same COMMON block under one DW_TAG_common_block.
        (declare_in_namespace): Return new context_die, for Fortran
        return the module DIE instead of adding extra declarations into
        the namespace.
        (gen_type_die_with_usage): Adjust declare_in_namespace caller.
        (gen_namespace_die): If is_fortran (), generate DW_TAG_module
        instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
        DW_AT_declaration.
        (dwarf2out_global_decl): Don't skip Fortran global vars.
        (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
        (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
        If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
        DW_TAG_imported_declaration as child of previous
        DW_TAG_imported_module.
        * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
        * sdbout.c (sdb_debug_hooks): Likewise.
        * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.

        * name-lookup.c (do_using_directive, cp_emit_debug_info_for_using):
        Adjust debug_hooks->imported_module_or_decl callers.

        * f95-lang.c (gfc_init_ts): New function.
        (LANG_HOOKS_INIT_TS): Define.
        * gfortran.h (gfc_use_rename): New type, moved from module.c.
        (gfc_get_use_rename): New macro, moved from module.c.
        (gfc_use_list): New type.
        (gfc_get_use_list): New macro.
        (gfc_namespace): Add use_stmts field.
        (gfc_free_use_stmts): New prototype.
        * Make-lang.in (fortran/trans-decl.o): Depend on debug.h.
        * module.c (gfc_use_rename, gfc_get_use_rename): Moved to
        gfortran.h.
        (gfc_use_module): Chain the USE statement info to
        ns->use_stmts.
        (gfc_free_use_stmts): New function.
        * symbol.c (gfc_free_namespace): Call gfc_free_use_stmts.
        * trans.h (struct module_htab_entry): New type.
        (gfc_find_module, gfc_module_add_decl): New functions.
        * trans.c (gfc_generate_module_code): Create NAMESPACE_DECL for
        the module, adjust DECL_CONTEXTs of module procedures and
        call gfc_module_add_decl for them.
        * trans-common.c (build_common_decl): Set DECL_IGNORED_P
        on the common variable.
        (create_common): Set DECL_IGNORED_P for use associated vars.
        * trans-decl.c: Include debug.h.
        (gfc_get_symbol_decl): Set DECL_IGNORED_P on use_assoc vars from
        modules.
        (build_function_decl): Allow current_function_decl's context
        to be a NAMESPACE_DECL.
        (module_htab, cur_module): New variables.
        (module_htab_do_hash, module_htab_eq, module_htab_decls_hash,
        module_htab_decls_eq, gfc_find_module, gfc_module_add_decl): New
        functions.
        (gfc_create_module_variable): Adjust DECL_CONTEXTs of module
        variables and types and call gfc_module_add_decl for them.
        (gfc_generate_module_vars): Temporarily set cur_module.
        (gfc_trans_use_stmts): New function.
        (gfc_generate_function_code): Call it.
        (gfc_generate_block_data): Set DECL_IGNORED_P on decl.
        * trans-types.c (gfc_get_derived_type): Adjust DECL_CONTEXT
        and TYPE_CONTEXT of module derived types.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/dbxout.c
    trunk/gcc/debug.c
    trunk/gcc/debug.h
    trunk/gcc/dwarf2out.c
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/Make-lang.in
    trunk/gcc/fortran/f95-lang.c
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/module.c
    trunk/gcc/fortran/symbol.c
    trunk/gcc/fortran/trans-common.c
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/fortran/trans-types.c
    trunk/gcc/fortran/trans.c
    trunk/gcc/fortran/trans.h
    trunk/gcc/sdbout.c
    trunk/gcc/vmsdbgout.c


-- 


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


  parent reply	other threads:[~2008-08-29 18:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-29 14:02 [Bug fortran/29635] New: " fxcoudert at gcc dot gnu dot org
2006-10-29 14:04 ` [Bug fortran/29635] " steven at gcc dot gnu dot org
2007-01-02 14:35 ` fxcoudert at gcc dot gnu dot org
2007-01-02 15:27 ` stevenb dot gcc at gmail dot com
2007-08-11 22:09 ` dfranke at gcc dot gnu dot org
2007-08-12 10:36 ` stevenb dot gcc at gmail dot com
2008-08-15 18:30 ` jakub at gcc dot gnu dot org
2008-08-15 20:20 ` jakub at gcc dot gnu dot org
2008-08-18  8:13 ` jakub at gcc dot gnu dot org
2008-08-18  8:44 ` jakub at gcc dot gnu dot org
2008-08-18 12:40 ` drow at gcc dot gnu dot org
2008-08-29 18:43 ` jakub at gcc dot gnu dot org [this message]
2009-04-10 21:39 ` dfranke at gcc dot gnu dot org
2009-05-29  7:45 ` burnus at gcc dot gnu dot org
2009-05-29  8:52 ` jakub at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080829184237.19419.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).