Commit ae32f34a by Richard Henderson Committed by Richard Henderson

* jump.c (delete_insn): Don't delete user labels at -O0.

From-SVN: r31885
parent 7e1878ef
2000-02-09 Richard Henderson <rth@cygnus.com>
* jump.c (delete_insn): Don't delete user labels at -O0.
2000-02-09 Robert Lipe <robertl@sco.com> 2000-02-09 Robert Lipe <robertl@sco.com>
* Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS. * Makefile.in (gen-protos): Don't depend on HOST_LIBDEPS.
......
...@@ -4223,16 +4223,20 @@ delete_insn (insn) ...@@ -4223,16 +4223,20 @@ delete_insn (insn)
if (was_code_label) if (was_code_label)
remove_node_from_expr_list (insn, &nonlocal_goto_handler_labels); remove_node_from_expr_list (insn, &nonlocal_goto_handler_labels);
/* Don't delete user-declared labels. Convert them to special NOTEs /* Don't delete user-declared labels. When optimizing, convert them
instead. */ to special NOTEs instead. When not optimizing, leave them alone. */
if (was_code_label && LABEL_NAME (insn) != 0 if (was_code_label && LABEL_NAME (insn) != 0)
&& optimize && ! dont_really_delete) {
if (! optimize)
dont_really_delete = 1;
else if (! dont_really_delete)
{ {
PUT_CODE (insn, NOTE); PUT_CODE (insn, NOTE);
NOTE_LINE_NUMBER (insn) = NOTE_INSN_DELETED_LABEL; NOTE_LINE_NUMBER (insn) = NOTE_INSN_DELETED_LABEL;
NOTE_SOURCE_FILE (insn) = 0; NOTE_SOURCE_FILE (insn) = 0;
dont_really_delete = 1; dont_really_delete = 1;
} }
}
else else
/* Mark this insn as deleted. */ /* Mark this insn as deleted. */
INSN_DELETED_P (insn) = 1; INSN_DELETED_P (insn) = 1;
......
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