This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, picochip] Ignore DEBUG_INSNs introduced by VTA merge
- From: Hariharan <hariharans at picochip dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 10 Sep 2009 17:39:21 +0100
- Subject: [PATCH, picochip] Ignore DEBUG_INSNs introduced by VTA merge
Hi,
The following patch makes picochip VLIW packaging ignore debug
instructions introduced by VTA merge. Commited.
Thanks
Hari
ChangeLog:
* config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
introduced by the VTA branch merge.
Index: picochip.c
===================================================================
--- picochip.c (revision 151579)
+++ picochip.c (working copy)
@@ -2920,7 +2920,7 @@
{
next = NEXT_INSN (insn);
- if (INSN_P (insn))
+ if (NONDEBUG_INSN_P (insn))
{
/* Emit queued up notes before the first instruction of a
bundle. */
if (GET_MODE (insn) == TImode)
@@ -3016,7 +3016,7 @@
INSN_LOCATOR (insn1) = vliw_insn_location;
}
/* Tag subsequent instructions with the same location. */
- if (INSN_P (insn))
+ if (NONDEBUG_INSN_P (insn))
INSN_LOCATOR (insn) = vliw_insn_location;
}
}
@@ -3160,7 +3160,7 @@
local_insn = insn;
do
{
- if (NOTE_P (local_insn))
+ if (NOTE_P (local_insn) || DEBUG_INSN_P(local_insn))
{
local_insn = NEXT_INSN (local_insn);
continue;
@@ -3599,7 +3599,7 @@
for (local_insn = NEXT_INSN (local_insn); local_insn;
local_insn = NEXT_INSN (local_insn))
{
- if (NOTE_P (local_insn))
+ if (NOTE_P (local_insn) || DEBUG_INSN_P(local_insn))
continue;
else if (!INSN_P (local_insn))
break;
@@ -3611,7 +3611,7 @@
/* Set the continuation flag if the next instruction can be packed
with the current instruction (i.e., the next instruction is
valid, and isn't the start of a new cycle). */
- picochip_vliw_continuation = (local_insn && INSN_P (local_insn) &&
+ picochip_vliw_continuation = (local_insn && NONDEBUG_INSN_P
(local_insn) &&
(GET_MODE (local_insn) != TImode));
}