diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2010-08-03 18:01:52 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2010-08-03 18:01:52 +0000 |
commit | 051de0eb4fb3abfce4863ea88afeffd2bc35cbed (patch) | |
tree | 34d04712ea2eda59e3af837a5bffb2bc0072540c | |
parent | 241a2b9ec29d1c240874090c995273eca522ffda (diff) | |
download | gcc-051de0eb4fb3abfce4863ea88afeffd2bc35cbed.zip gcc-051de0eb4fb3abfce4863ea88afeffd2bc35cbed.tar.gz gcc-051de0eb4fb3abfce4863ea88afeffd2bc35cbed.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/spu/spu.c | 2 |
2 files changed, 6 insertions, 1 deletions
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 <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. 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 (); |