diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2000-03-03 19:48:46 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-03-03 19:48:46 -0500 |
commit | fcd7f76b289ddadbb67057154547d570b94f2b23 (patch) | |
tree | 29b58916ce9e193f2b31a39bfb2eb5cdae4dfcef /gcc/dwarfout.c | |
parent | 6db201439a6635a374ec572561d961c9cf734ee2 (diff) | |
download | gcc-fcd7f76b289ddadbb67057154547d570b94f2b23.tar.gz |
dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
* dwarf2out.c (dwarf2out_frame_debug): Add cast to silence warning.
(dwarf2out_decl): Functions can now have DECL_IGNORED_P.
(gen_decl_die): Likewise.
* dwarfout.c (dwarfout_file_scope_decl): Likewise.
(output_decl): Likewise.
* varasm.c (make_function_rtl): If we change the name used in the
rtl, update DECL_ASSEMBLER_NAME accordingly.
(make_decl_rtl): Likewise.
* toplev.c (rest_of_compilation): Tweak formatting.
* toplev.c (rest_of_compilation): find_loop_tree_blocks before
remove_unnecessary_notes.
(debug_ignore_block): New fn.
* toplev.h: Declare it.
* emit-rtl.c (remove_unncessary_notes): Call it.
* dwarf2out.c (dwarf2out_ignore_block): New fn.
* dwarf2out.h: Declare it.
* final.c (final_start_function): Don't call remove_unnecessary_notes
if we did insn scheduling.
From-SVN: r32320
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r-- | gcc/dwarfout.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index 153c684eb95..d639eb94f99 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -4787,13 +4787,9 @@ output_decl (decl, containing_scope) && (TREE_CODE (TYPE_FIELDS (TREE_TYPE (decl))) == ERROR_MARK)))) return; - /* If this ..._DECL node is marked to be ignored, then ignore it. - But don't ignore a function definition, since that would screw - up our count of blocks, and that it turn will completely screw up the - labels we will reference in subsequent AT_low_pc and AT_high_pc - attributes (for subsequent blocks). */ + /* If this ..._DECL node is marked to be ignored, then ignore it. */ - if (DECL_IGNORED_P (decl) && TREE_CODE (decl) != FUNCTION_DECL) + if (DECL_IGNORED_P (decl)) return; switch (TREE_CODE (decl)) @@ -5133,20 +5129,10 @@ dwarfout_file_scope_decl (decl, set_finalizing) if (TREE_CODE (decl) == ERROR_MARK) return; - /* If this ..._DECL node is marked to be ignored, then ignore it. We - gotta hope that the node in question doesn't represent a function - definition. If it does, then totally ignoring it is bound to screw - up our count of blocks, and that it turn will completely screw up the - labels we will reference in subsequent AT_low_pc and AT_high_pc - attributes (for subsequent blocks). (It's too bad that BLOCK nodes - don't carry their own sequence numbers with them!) */ + /* If this ..._DECL node is marked to be ignored, then ignore it. */ if (DECL_IGNORED_P (decl)) - { - if (TREE_CODE (decl) == FUNCTION_DECL && DECL_INITIAL (decl) != NULL) - abort (); - return; - } + return; switch (TREE_CODE (decl)) { |