]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of non-NOTE insns.
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 5 Aug 2010 00:08:11 +0000 (00:08 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Thu, 5 Aug 2010 00:08:11 +0000 (00:08 +0000)
* config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
non-NOTE insns.

From-SVN: r162892

gcc/ChangeLog
gcc/config/spu/spu.c

index 2b464009110c2f9dc5db9072ff530f062d66654d..b3bc6ff3d8d25fec567ccae4668584d3ffb790c6 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-05  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-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        PR target/44597
index 8c9a8d287e68fae6153706258435fa33ef385808..0f531050d50163f1ec561170e8541d401908ea8c 100644 (file)
@@ -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 ();