https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66503

--- Comment #2 from pmderodat at gcc dot gnu.org ---
Author: pmderodat
Date: Thu Jun 11 12:40:10 2015
New Revision: 224371

URL: https://gcc.gnu.org/viewcvs?rev=224371&root=gcc&view=rev
Log:
Restore DW_AT_abstract_origin for cross-unit call sites

PR debug/66503

gcc/ChangeLog:
        * debug.h (struct gcc_debug_hooks): Add a
        register_main_translation_unit hook.
        * debug.c (do_nothing_debug_hooks): Provide a function for this
        new hook.
        * dbxout.c (dbx_debug_hooks): Likewise.
        * sdbout.c (sdb_debug_hooks): Likewise.
        * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
        * dwarf2out.c (main_translation_unit): New global variable.
        (dwarf2out_register_main_translation_unit): New function
        implementing the new hook.
        (dwarf2_debug_hooks): Assign
        dwarf2out_register_main_translation_unit to this new hook.
        (dwarf2out_init): Associate any main translation unit to
        comp_unit_die ().
        * c/c-decl.c (pop_scope): Register the main translation unit
        through the new debug hook.
        * cp/decl.c (cxx_init_decl_processing): Likewise.

gcc/ada/ChangeLog:
        * gcc-interface/utils.c (get_global_context): Register the main
        translation unit through the new debug hook.

gcc/fortran/ChangeLog:
        * f95-lang.c (gfc_create_decls): Register the main translation
        unit through the new debug hook.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/gcc-interface/utils.c
    trunk/gcc/c/c-decl.c
    trunk/gcc/cp/decl.c
    trunk/gcc/dbxout.c
    trunk/gcc/debug.c
    trunk/gcc/debug.h
    trunk/gcc/dwarf2out.c
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/f95-lang.c
    trunk/gcc/sdbout.c
    trunk/gcc/vmsdbgout.c

Reply via email to