]> 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>
Tue, 3 Aug 2010 18:01:52 +0000 (18:01 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Tue, 3 Aug 2010 18:01:52 +0000 (18:01 +0000)
* config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
non-NOTE insns.

From-SVN: r162845

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

index 4f689debf40f520be90ee901b94bbd04f334d8ee..d9da4e3aed5ccc190e0eadd94848a6b96bfb2906 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-03  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-08-03  Jan Hubicka  <jh@suse.cz>
 
        * ipa-split.c (struct split_point): Add split_part_set_retval.
index 689b50048ffa1f79efe2dd9e792a7bc18b1d0da7..ec788594a15a5b3e2345ee576380ee8c7c2418d9 100644 (file)
@@ -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 ();