This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, picochip] Fix for a dejagnu failure
- From: Hariharan Sandanagobalane <hariharans at picochip dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 09 Sep 2010 15:00:31 +0100
- Subject: [PATCH, picochip] Fix for a dejagnu failure
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:
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;
break;