diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2014-09-04 16:38:21 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2014-09-04 16:38:21 +0000 |
commit | 989f386cf019cc7892918f98715c3bfcaaaab071 (patch) | |
tree | 38c73c56bbac89e21b9f6655eab3eb84116acdd1 /gcc/debug.h | |
parent | 177e6c965a78cbe94d589f87b18af3618acbd98a (diff) | |
download | gcc-989f386cf019cc7892918f98715c3bfcaaaab071.zip gcc-989f386cf019cc7892918f98715c3bfcaaaab071.tar.gz gcc-989f386cf019cc7892918f98715c3bfcaaaab071.tar.bz2 |
+ * c/c-decl.c (write_global_declarations_1): Call global_decl() + with early=true.
+ * c/c-decl.c (write_global_declarations_1): Call global_decl()
+ with early=true.
+ (write_global_declarations_2): Call global_decl() with
+ early=false.
+ * dbxout.c (dbxout_global_decl): New argument.
+ * debug.c (do_nothing_debug_hooks): Use debug_nothing_tree_bool
+ for global_decl hook.
+ (debug_nothing_tree_bool): New.
+ (struct gcc_debug_hooks): New argument to global_decl.
+ * dwarf2out.c (output_die): Add misc debugging information.
+ (gen_variable_die): Do not reparent children.
+ (dwarf2out_global_decl): Add new documentation. Add EARLY
+ argument.
+ (dwarf2out_decl): Make sure we don't generate new DIEs if we
+ already have a DIE.
+ * cp/name-lookup.c (do_namespace_alias): New argument to
+ global_decl debug hook.
+ * fortran/trans-decl.c (gfc_emit_parameter_debug_info): Same.
+ * godump.c (go_global_decl): Same.
+ * lto/lto-lang.c (lto_write_globals): Same.
+ * sdbout.c (sdbout_global_decl): Same.
+ * toplev.c (emit_debug_global_declarations): Same.
+ * vmsdbgout.c (vmsdbgout_global_decl): Same.
+ * tree.c (free_lang_data_in_decl): Do not call
+ dwarf2out_early_decl from here.
From-SVN: r214911
Diffstat (limited to 'gcc/debug.h')
-rw-r--r-- | gcc/debug.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/debug.h b/gcc/debug.h index 28bc210..9440515 100644 --- a/gcc/debug.h +++ b/gcc/debug.h @@ -93,8 +93,11 @@ struct gcc_debug_hooks void (* function_decl) (tree decl); /* Debug information for a global DECL. Called from toplev.c after - compilation proper has finished. */ - void (* global_decl) (tree decl); + compilation proper has finished. EARLY is true if global_decl() + is being called early on in the compilation process (i.e., before + cgraph information is available and before code is + generated). */ + void (* global_decl) (tree decl, bool early); /* Debug information for a type DECL. Called from toplev.c after compilation proper, also from various language front ends to @@ -156,6 +159,7 @@ extern void debug_nothing_int_charstar_int_bool (unsigned int, const char *, extern void debug_nothing_int (unsigned int); extern void debug_nothing_int_int (unsigned int, unsigned int); extern void debug_nothing_tree (tree); +extern void debug_nothing_tree_bool (tree, bool); extern void debug_nothing_tree_tree (tree, tree); extern void debug_nothing_tree_int (tree, int); extern void debug_nothing_tree_tree_tree_bool (tree, tree, tree, bool); |