spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of non-NOTE insns.

* config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
	non-NOTE insns.

From-SVN: r162870
This commit is contained in:
Ulrich Weigand 2010-08-04 18:40:05 +00:00 committed by Ulrich Weigand
parent 47433429cf
commit 295128cc5e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-08-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
non-NOTE insns.
2010-07-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
Backport from mainline:

View File

@ -2291,7 +2291,7 @@ spu_emit_branch_hint (rtx before, rtx branch, rtx target,
return;
/* If we have a Basic block note, emit it after the basic block note. */
if (NOTE_KIND (before) == NOTE_INSN_BASIC_BLOCK)
if (NOTE_INSN_BASIC_BLOCK_P (before))
before = NEXT_INSN (before);
branch_label = gen_label_rtx ();