This is the mail archive of the binutils@sources.redhat.com 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]

[PATCH] Let MIPS gas complain about bad -mabi option


Hi All,

gas currently treats bad input for the -mabi option as having no
ABI specified. This patch makes it an fatal error.


Thiemo


2002-02-19  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>

	/gas/ChangeLog
	* config/tc-mips.c (md_parse_option): Complain about invalid -mabi
	option input.


diff -BurpN source-orig/gas/config/tc-mips.c source/gas/config/tc-mips.c
--- source-orig/gas/config/tc-mips.c	Tue Feb 12 17:04:35 2002
+++ source/gas/config/tc-mips.c	Sun Feb 17 14:04:54 2002
@@ -10080,7 +10111,10 @@ md_parse_option (c, arg)
       else if (strcmp (arg, "eabi") == 0)
 	mips_opts.abi = EABI_ABI;
       else
-	mips_opts.abi = NO_ABI;
+	{
+	  as_fatal (_("invalid abi -mabi=%s"), arg);
+	  return 0;
+	}
       break;
 #endif /* OBJ_ELF */
 


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