diff mbox

[picochip] Fix for a dejagnu failure

Message ID 4C88E87F.8040204@picochip.com
State New
Headers show

Commit Message

Hariharan Sandanagobalane Sept. 9, 2010, 2 p.m. UTC
Hello all,
The attached patch fixes the memset dejagnu failure in picochip. 
Committed as r164108.

Thanks
Hari

ChangeLog:
         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
         epilogue instruction move.


Patch:
               break;
diff mbox

Patch

Index: gcc/config/picochip/picochip.c
===================================================================
--- gcc/config/picochip/picochip.c      (revision 164106)
+++ gcc/config/picochip/picochip.c      (working copy)
@@ -3290,7 +3290,7 @@ 
        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;