This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Don't complain about dbCC to long branch conversion
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: binutils at sourceware dot org
- Date: Mon, 14 Jul 2014 21:11:23 +0200
- Subject: [PATCH] Don't complain about dbCC to long branch conversion
- Authentication-results: sourceware.org; auth=none
When the m68k assembler sees a dbCC insn that jumps to an address
outside of the 16 bit range it converts it to a sequence using a long
branch. This is still pc-relative code, so don't complain with --pcrel.
Andreas.
* config/tc-m68k.c (md_convert_frag_1): Don't complain with
--pcrel about TAB (DBCCLBR, LONG) conversion.
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c
index 2005cd2..56db083 100644
--- a/gas/config/tc-m68k.c
+++ b/gas/config/tc-m68k.c
@@ -5166,10 +5166,6 @@ md_convert_frag_1 (fragS *fragP)
/* Only DBcc instructions can come here.
Change dbcc into dbcc/bral.
JF: these used to be fr_opcode[2-7], but that's wrong. */
- if (flag_keep_pcrel)
- as_bad_where (fragP->fr_file, fragP->fr_line,
- _("Conversion of DBcc to absolute jump"));
-
*buffer_address++ = 0x00; /* Branch offset = 4. */
*buffer_address++ = 0x04;
*buffer_address++ = 0x60; /* Put in bra pc+6. */
--
2.0.1
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."