From 43879f5d2b62f7d0b13a0de69cc1249b0263a4e5 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 5 Aug 2010 00:08:11 +0000 Subject: [PATCH] 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: r162892 --- gcc/ChangeLog | 5 +++++ gcc/config/spu/spu.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2b464009110c..b3bc6ff3d8d2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-08-05 Ulrich Weigand + + * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of + non-NOTE insns. + 2010-07-03 John David Anglin PR target/44597 diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index 8c9a8d287e68..0f531050d501 100644 --- a/gcc/config/spu/spu.c +++ b/gcc/config/spu/spu.c @@ -2258,7 +2258,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 (); -- 2.47.2