From 051de0eb4fb3abfce4863ea88afeffd2bc35cbed Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Tue, 3 Aug 2010 18:01:52 +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: r162845 --- 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 4f689de..d9da4e3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-08-03 Ulrich Weigand + + * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of + non-NOTE insns. + 2010-08-03 Jan Hubicka * ipa-split.c (struct split_point): Add split_part_set_retval. diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index 689b500..ec78859 100644 --- a/gcc/config/spu/spu.c +++ b/gcc/config/spu/spu.c @@ -2330,7 +2330,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.7.4