Commit 13684373 by Richard Kenner

(record_label_references): Check for undefined label.

From-SVN: r11454
parent 8d95e9ad
...@@ -483,6 +483,10 @@ record_label_references (insn, pat) ...@@ -483,6 +483,10 @@ record_label_references (insn, pat)
if (GET_CODE (label) != CODE_LABEL) if (GET_CODE (label) != CODE_LABEL)
abort (); abort ();
/* If this is an undefined label, LABEL_REFS (label) contains garbage. */
if (INSN_UID (label) == 0)
return;
/* Don't make a duplicate in the code_label's chain. */ /* Don't make a duplicate in the code_label's chain. */
for (ref = LABEL_REFS (label); for (ref = LABEL_REFS (label);
......
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