diff options
author | Maciej W. Rozycki <macro@imgtec.com> | 2016-04-09 13:27:30 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@imgtec.com> | 2016-04-09 13:27:30 +0100 |
commit | 41065f5e080b6e8521e49cfd5bb3fb0db49aa71d (patch) | |
tree | 97f8d72deeef932e52ba7df4cbc90a3ab59d5ae2 /gas | |
parent | 08918cc8c5eec064009133d8e0458de86805ed08 (diff) | |
download | gdb-41065f5e080b6e8521e49cfd5bb3fb0db49aa71d.zip gdb-41065f5e080b6e8521e49cfd5bb3fb0db49aa71d.tar.gz gdb-41065f5e080b6e8521e49cfd5bb3fb0db49aa71d.tar.bz2 |
MIPS/GAS: Correct call formatting in `can_swap_branch_p'
gas/
* config/tc-mips.c (can_swap_branch_p): Correct call formatting.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/config/tc-mips.c | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 498fa2c..ee54c5c 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,9 @@ 2016-04-09 Maciej W. Rozycki <macro@imgtec.com> + * config/tc-mips.c (can_swap_branch_p): Correct call formatting. + +2016-04-09 Maciej W. Rozycki <macro@imgtec.com> + * messages.c (as_bad): Fix a typo in description. 2016-04-09 Maciej W. Rozycki <macro@imgtec.com> diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index f616f8e..dff78ac 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -6733,11 +6733,11 @@ can_swap_branch_p (struct mips_cl_insn *ip, expressionS *address_expr, /* Parameter must be 16 bit. */ && (*reloc_type == BFD_RELOC_16_PCREL_S2) /* Branch to same segment. */ - && (S_GET_SEGMENT(address_expr->X_add_symbol) == now_seg) + && (S_GET_SEGMENT (address_expr->X_add_symbol) == now_seg) /* Branch to same code fragment. */ - && (symbol_get_frag(address_expr->X_add_symbol) == frag_now) + && (symbol_get_frag (address_expr->X_add_symbol) == frag_now) /* Can only calculate branch offset if value is known. */ - && symbol_constant_p(address_expr->X_add_symbol) + && symbol_constant_p (address_expr->X_add_symbol) /* Check if branch is really conditional. */ && !((ip->insn_opcode & 0xffff0000) == 0x10000000 /* beq $0,$0 */ || (ip->insn_opcode & 0xffff0000) == 0x04010000 /* bgez $0 */ @@ -6746,7 +6746,7 @@ can_swap_branch_p (struct mips_cl_insn *ip, expressionS *address_expr, int distance; /* Check if loop is shorter than 6 instructions including branch and delay slot. */ - distance = frag_now_fix() - S_GET_VALUE(address_expr->X_add_symbol); + distance = frag_now_fix () - S_GET_VALUE (address_expr->X_add_symbol); if (distance <= 20) { int i; @@ -6758,7 +6758,7 @@ can_swap_branch_p (struct mips_cl_insn *ip, expressionS *address_expr, for (i = 0; i < (distance / 4); i++) { if ((history[i].cleared_p) - || delayed_branch_p(&history[i])) + || delayed_branch_p (&history[i])) { rv = TRUE; break; |