IA-64 patch for binutils-2.11?
Jim Wilson
wilson@cygnus.com
Fri Apr 13 21:03:00 GMT 2001
A gcc-3 bug fix today exposed a latent assembler bug. I added the following
patch to the trunk today, but it would be nice if there was a way to get
it into a 2.11 follow on release. Is there a policy for this? Can I
still check in patches to the 2.11 release branch?
2001-04-13 Jim Wilson <wilson@redhat.com>
* tc-ia64.c (is_conditional_branch): Return true for br, brl, and br.
excluding br.i.
Index: tc-ia64.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ia64.c,v
retrieving revision 1.42
diff -p -r1.42 tc-ia64.c
*** tc-ia64.c 2001/02/14 01:46:10 1.42
--- tc-ia64.c 2001/02/14 23:21:13
*************** ia64_canonicalize_symbol_name (name)
*** 6719,6737 ****
return name;
}
static int
is_conditional_branch (idesc)
struct ia64_opcode *idesc;
{
! return (strncmp (idesc->name, "br", 2) == 0
! && (strcmp (idesc->name, "br") == 0
! || strncmp (idesc->name, "br.cond", 7) == 0
! || strncmp (idesc->name, "br.call", 7) == 0
! || strncmp (idesc->name, "br.ret", 6) == 0
! || strcmp (idesc->name, "brl") == 0
! || strncmp (idesc->name, "brl.cond", 7) == 0
! || strncmp (idesc->name, "brl.call", 7) == 0
! || strncmp (idesc->name, "brl.ret", 6) == 0));
}
/* Return whether the given opcode is a taken branch. If there's any doubt,
--- 6719,6737 ----
return name;
}
+ /* Return true if idesc is a conditional branch instruction. */
+
static int
is_conditional_branch (idesc)
struct ia64_opcode *idesc;
{
! /* br is a conditional branch. Everything that starts with br. except
! br.ia is a conditional branch. Everything that starts with brl is a
! conditional branch. */
! return (idesc->name[0] == 'b' && idesc->name[1] == 'r'
! && (idesc->name[2] == '\0'
! || (idesc->name[2] == '.' && idesc->name[3] != 'i')
! || idesc->name[2] == 'l'));
}
/* Return whether the given opcode is a taken branch. If there's any doubt,
More information about the Binutils
mailing list