This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
ia64 template selection tweek
- To: binutils at sources dot redhat dot com
- Subject: ia64 template selection tweek
- From: Richard Henderson <rth at cygnus dot com>
- Date: Sun, 3 Sep 2000 02:39:38 -0700
We were letting insns after a label control the template for the
bundle before the label. This is of course less than helpful.
r~
* config/tc-ia64.c (emit_one_bundle): Stop collecting insns
for template selection when a label is needed.
Index: tc-ia64.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ia64.c,v
retrieving revision 1.16
diff -c -p -d -r1.16 tc-ia64.c
*** tc-ia64.c 2000/09/03 00:04:40 1.16
--- tc-ia64.c 2000/09/03 09:36:36
*************** emit_one_bundle ()
*** 5233,5243 ****
user_template = template = md.slot[first].user_template;
else
{
! /* auto select appropriate template */
memset (type, 0, sizeof (type));
curr = first;
for (i = 0; i < n; ++i)
{
type[i] = md.slot[curr].idesc->type;
curr = (curr + 1) % NUM_SLOTS;
}
--- 5233,5245 ----
user_template = template = md.slot[first].user_template;
else
{
! /* Auto select appropriate template. */
memset (type, 0, sizeof (type));
curr = first;
for (i = 0; i < n; ++i)
{
+ if (md.slot[curr].label_fixups && i != 0)
+ break;
type[i] = md.slot[curr].idesc->type;
curr = (curr + 1) % NUM_SLOTS;
}