This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Let MIPS gas complain about bad -mabi option
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: binutils at sources dot redhat dot com
- Date: Tue, 19 Feb 2002 14:19:09 +0100
- Subject: [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 */