OSDN Git Service

* 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 1aca240..5aeade6 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 ded84e3..6ae64e6 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;