Commit d0585b99 by Richard Henderson Committed by Richard Henderson

* dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.

From-SVN: r73431
parent 6ce4806b
2003-11-10 Richard Henderson <rth@redhat.com>
* dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
2003-11-10 Matt Austern <austern@apple.com> 2003-11-10 Matt Austern <austern@apple.com>
* config/darwin-protos.h (darwin_assemble_visibility): Declare. * config/darwin-protos.h (darwin_assemble_visibility): Declare.
......
...@@ -10916,14 +10916,15 @@ gen_label_die (tree decl, dw_die_ref context_die) ...@@ -10916,14 +10916,15 @@ gen_label_die (tree decl, dw_die_ref context_die)
equate_decl_number_to_die (decl, lbl_die); equate_decl_number_to_die (decl, lbl_die);
else else
{ {
insn = DECL_RTL (decl); insn = DECL_RTL_IF_SET (decl);
/* Deleted labels are programmer specified labels which have been /* Deleted labels are programmer specified labels which have been
eliminated because of various optimizations. We still emit them eliminated because of various optimizations. We still emit them
here so that it is possible to put breakpoints on them. */ here so that it is possible to put breakpoints on them. */
if (GET_CODE (insn) == CODE_LABEL if (insn
|| ((GET_CODE (insn) == NOTE && (GET_CODE (insn) == CODE_LABEL
&& NOTE_LINE_NUMBER (insn) == NOTE_INSN_DELETED_LABEL))) || ((GET_CODE (insn) == NOTE
&& NOTE_LINE_NUMBER (insn) == NOTE_INSN_DELETED_LABEL))))
{ {
/* When optimization is enabled (via -O) some parts of the compiler /* When optimization is enabled (via -O) some parts of the compiler
(e.g. jump.c and cse.c) may try to delete CODE_LABEL insns which (e.g. jump.c and cse.c) may try to delete CODE_LABEL insns which
......
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