aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mips.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@mips.com>2018-01-23 14:51:22 +0000
committerMaciej W. Rozycki <macro@mips.com>2018-01-23 14:51:22 +0000
commitb4f6242e95340a31b0519187c5fc329056ddecfd (patch)
tree43d5d7cb3cd9a9661e40a8e6653cf5573f1c1e86 /gas/config/tc-mips.c
parentf866b262e8ffaa4339dac8698932e097756a8880 (diff)
downloadgdb-b4f6242e95340a31b0519187c5fc329056ddecfd.zip
gdb-b4f6242e95340a31b0519187c5fc329056ddecfd.tar.gz
gdb-b4f6242e95340a31b0519187c5fc329056ddecfd.tar.bz2
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.
Diffstat (limited to 'gas/config/tc-mips.c')
-rw-r--r--gas/config/tc-mips.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 8653e88..487ee78 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -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