From: Ulrich Weigand Date: Tue, 3 Aug 2010 18:01:52 +0000 (+0000) Subject: spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of non-NOTE insns. X-Git-Tag: releases/gcc-4.6.0~5274 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=051de0eb4fb3abfce4863ea88afeffd2bc35cbed;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f689debf40f..d9da4e3aed5c 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 689b50048ffa..ec788594a15a 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 ();