This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

tweak m68k assembler error message


I've applied this patch to make an error message more specific. When I changed the other diagnostics in md_convert_frag_1 some time back, I missed this one, for some reason.

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery

2008-03-28  Nathan Sidwell  <nathan@codesourcery.com>

	* config/tc-m68k.c (md_convert_frag_1): Replace as_fatal with
	as_bad_where.

Index: gas/config/tc-m68k.c
===================================================================
--- gas/config/tc-m68k.c	(revision 197924)
+++ gas/config/tc-m68k.c	(working copy)
@@ -5037,7 +5037,8 @@ md_convert_frag_1 (fragS *fragP)
       break;
     case TAB (ABSTOPCREL, LONG):
       if (flag_keep_pcrel)
-	as_fatal (_("Conversion of PC relative displacement to absolute"));
+	as_bad_where (fragP->fr_file, fragP->fr_line,
+		      _("Conversion of PC relative displacement to absolute"));
       /* The thing to do here is force it to ABSOLUTE LONG, since
 	 ABSTOPCREL is really trying to shorten an ABSOLUTE address anyway.  */
       if ((fragP->fr_opcode[1] & 0x3F) != 0x3A)

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