Commit 03f00806 by Jason Merrill

dwarf

From-SVN: r12966
parent a7a4457e
...@@ -2520,7 +2520,6 @@ compile_file (name) ...@@ -2520,7 +2520,6 @@ compile_file (name)
and definitions which have not yet been forced out. */ and definitions which have not yet been forced out. */
if (write_symbols == DWARF_DEBUG if (write_symbols == DWARF_DEBUG
&& (TREE_CODE (decl) != VAR_DECL || DECL_RTL (decl) != 0)
&& (TREE_CODE (decl) != FUNCTION_DECL || !DECL_INITIAL (decl))) && (TREE_CODE (decl) != FUNCTION_DECL || !DECL_INITIAL (decl)))
TIMEVAR (symout_time, dwarfout_file_scope_decl (decl, 1)); TIMEVAR (symout_time, dwarfout_file_scope_decl (decl, 1));
#endif #endif
...@@ -2753,12 +2752,11 @@ rest_of_type_compilation (type, toplev) ...@@ -2753,12 +2752,11 @@ rest_of_type_compilation (type, toplev)
TIMEVAR (symout_time, sdbout_symbol (TYPE_STUB_DECL (type), !toplev)); TIMEVAR (symout_time, sdbout_symbol (TYPE_STUB_DECL (type), !toplev));
#endif #endif
#ifdef DWARF_DEBUGGING_INFO #ifdef DWARF_DEBUGGING_INFO
/* If this is a file-scope or function-scope type, or a class-scope type /* If this is a file-scope type or a class-scope type
for which the containing class has already been completed, write it for which the containing class has already been completed, write it
out now to avoid ordering headaches with member functions. */ out now to avoid ordering headaches with member functions. */
if (write_symbols == DWARF_DEBUG if (write_symbols == DWARF_DEBUG
&& (TYPE_CONTEXT (type) == NULL_TREE && (TYPE_CONTEXT (type) == NULL_TREE
|| TREE_CODE_CLASS (TREE_CODE (TYPE_CONTEXT (type))) != 't'
|| TREE_ASM_WRITTEN (TYPE_CONTEXT (type)))) || TREE_ASM_WRITTEN (TYPE_CONTEXT (type))))
TIMEVAR (symout_time, dwarfout_file_scope_decl (TYPE_STUB_DECL (type), 0)); TIMEVAR (symout_time, dwarfout_file_scope_decl (TYPE_STUB_DECL (type), 0));
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment