From: Ulrich Weigand Date: Thu, 5 Aug 2010 00:08:11 +0000 (+0000) Subject: spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of non-NOTE insns. X-Git-Tag: releases/gcc-4.3.6~395 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43879f5d2b62f7d0b13a0de69cc1249b0263a4e5;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: r162892 --- 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 ();