Patchwork [picochip] Fix for a dejagnu failure

login
register
mail settings
Submitter Hariharan Sandanagobalane
Date Sept. 9, 2010, 2 p.m.
Message ID <4C88E87F.8040204@picochip.com>
Download mbox | patch
Permalink /patch/64302/
State New
Headers show

Comments

Hariharan Sandanagobalane - Sept. 9, 2010, 2 p.m.
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;

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;