From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30698 invoked by alias); 14 Jul 2014 19:11:36 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 30668 invoked by uid 89); 14 Jul 2014 19:11:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 14 Jul 2014 19:11:28 +0000 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3hBvbc5bPPz3hhw2 for ; Mon, 14 Jul 2014 21:11:24 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3hBvbc1mB2z7S6Rj for ; Mon, 14 Jul 2014 21:11:24 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 9qNdM6diFcTO for ; Mon, 14 Jul 2014 21:11:23 +0200 (CEST) X-Auth-Info: GemeMUsR6ULE+s0QDoHDn8yNves02TsvPqEzY1fZ7rE= Received: from igel.home (host-188-174-220-231.customer.m-online.net [188.174.220.231]) by mail.mnet-online.de (Postfix) with ESMTPA for ; Mon, 14 Jul 2014 21:11:23 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 3027E2C3A01; Mon, 14 Jul 2014 21:11:23 +0200 (CEST) From: Andreas Schwab To: binutils@sourceware.org Subject: [PATCH] Don't complain about dbCC to long branch conversion X-Yow: A shapely CATHOLIC SCHOOLGIRL is FIDGETING inside my costume.. Date: Mon, 14 Jul 2014 19:11:00 -0000 Message-ID: <877g3f92n8.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2014-07/txt/msg00142.txt.bz2 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."