Commit 33bc3ff5 by Richard Kenner

(fixup_gotos): Use DECL_ERROR_ISSUED instead of DECL_REGISTER.

From-SVN: r10910
parent 70f75202
......@@ -1148,12 +1148,12 @@ fixup_gotos (thisblock, stack_level, cleanup_list, first_insn, dont_jump_in)
&& (after_label == 0
|| INSN_UID (first_insn) < INSN_UID (after_label))
&& INSN_UID (first_insn) > INSN_UID (f->before_jump)
&& ! DECL_REGISTER (f->target))
&& ! DECL_ERROR_ISSUED (f->target))
{
error_with_decl (f->target,
"label `%s' used before containing binding contour");
/* Prevent multiple errors for one label. */
DECL_REGISTER (f->target) = 1;
DECL_ERROR_ISSUED (f->target) = 1;
}
/* We will expand the cleanups into a sequence of their own and
......
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