]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* config/picochip/picochip.c (picochip_reorg): Check for note_p for
authorhariharans <hariharans@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Sep 2010 13:59:42 +0000 (13:59 +0000)
committerhariharans <hariharans@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Sep 2010 13:59:42 +0000 (13:59 +0000)
          epilogue instruction move.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164108 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/picochip/picochip.c

index 1aca240d980f79d40ad606f53c0c17d071ab0bdd..5aeade6683039c99823c2cfbcc782bc4ff3e267e 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-09  Hariharan Sandanagobalane <hariharan@picochip.com>
+
+       * config/picochip/picochip.c (picochip_reorg): Check for note_p for
+       epilogue instruction move.
+
 2010-09-09  Jan Hubicka  <jh@suse.cz>
 
        * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
index ded84e32c6b4535e46acac99fe84a3e42029ff5f..6ae64e6615941f6769cccec82bfed9ae2815d853 100644 (file)
@@ -3290,7 +3290,7 @@ picochip_reorg (void)
       for (insn = get_insns (); insn; insn = next_insn (insn))
        {
          /* The prologue end must be moved to the end of the VLIW packet. */
-         if (NOTE_KIND (insn) == NOTE_INSN_PROLOGUE_END)
+         if (NOTE_P (insn) && NOTE_KIND (insn) == NOTE_INSN_PROLOGUE_END)
            {
              prologue_end_note = insn;
              break;