This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ia64 template selection tweek


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;
  	}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]