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]

[committed] MIPS/GAS: Correct `as --help' always reporting `o32' as the default ABI


Remove an issue with `as --help' always reporting `o32' as the default 
ABI regardless of what the default actually is, originally caused by 
commit cac012d6d394 ("check mips abi x linker emulation compatibility"), 
<https://sourceware.org/ml/binutils/2003-05/msg00187.html> missing an 
update here.

	gas/
	* config/tc-mips.c (md_show_usage): Correctly indicate the 
	configuration-specific default ABI.
---
 gas/config/tc-mips.c |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

binutils-mips-gas-usage-default-abi.diff
Index: binutils/gas/config/tc-mips.c
===================================================================
--- binutils.orig/gas/config/tc-mips.c	2018-01-22 20:44:45.064827808 +0000
+++ binutils/gas/config/tc-mips.c	2018-01-22 20:44:46.242664413 +0000
@@ -20047,9 +20047,14 @@ MIPS options:\n\
   fputc ('\n', stream);
 
   fprintf (stream, _("\
--32			create o32 ABI object file (default)\n\
--n32			create n32 ABI object file\n\
--64			create 64 ABI object file\n"));
+-32			create o32 ABI object file%s\n"),
+	   MIPS_DEFAULT_ABI == O32_ABI ? _(" (default)") : "");
+  fprintf (stream, _("\
+-n32			create n32 ABI object file%s\n"),
+	   MIPS_DEFAULT_ABI == N32_ABI ? _(" (default)") : "");
+  fprintf (stream, _("\
+-64			create 64 ABI object file%s\n"),
+	   MIPS_DEFAULT_ABI == N64_ABI ? _(" (default)") : "");
 }
 
 #ifdef TE_IRIX


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