summaryrefslogtreecommitdiff
path: root/gcc/config/picochip
diff options
context:
space:
mode:
authorhariharans <hariharans@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-27 08:27:23 +0000
committerhariharans <hariharans@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-27 08:27:23 +0000
commit0b80d316d671568e50dc7dc5cc18d76084529ced (patch)
tree3bc843614ecd8e1e886c03f23754b7f335fee31a /gcc/config/picochip
parentb1da9d720dd96587a53632b5e988a3ffad911e7d (diff)
downloadgcc-0b80d316d671568e50dc7dc5cc18d76084529ced.tar.gz
* config/picochip/picochip.c (reorder_var_tracking_notes): Drop
call_arg_location instructions down the floor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174322 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/picochip')
-rw-r--r--gcc/config/picochip/picochip.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/gcc/config/picochip/picochip.c b/gcc/config/picochip/picochip.c
index 8c2a61bb7ef..f7f1646901d 100644
--- a/gcc/config/picochip/picochip.c
+++ b/gcc/config/picochip/picochip.c
@@ -3243,13 +3243,20 @@ reorder_var_tracking_notes (void)
}
}
}
- else if (NOTE_P (insn) && NOTE_KIND (insn) == NOTE_INSN_VAR_LOCATION)
+ else if (NOTE_P (insn))
{
rtx prev = PREV_INSN (insn);
PREV_INSN (next) = prev;
NEXT_INSN (prev) = next;
- PREV_INSN (insn) = queue;
- queue = insn;
+ /* Ignore call_arg notes. They are expected to be just after the
+ call insn. If the call is start of a long VLIW, labels are
+ emitted in the middle of a VLIW, which our assembler can not
+ handle. */
+ if (NOTE_KIND (insn) != NOTE_INSN_CALL_ARG_LOCATION)
+ {
+ PREV_INSN (insn) = queue;
+ queue = insn;
+ }
}
}
/* Make sure we are not dropping debug instructions.*/