aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@mips.com>2018-06-11 15:27:42 +0100
committerMaciej W. Rozycki <macro@mips.com>2018-06-11 15:27:42 +0100
commit092a534fe14be3eda270256fb2799fd893a1f57c (patch)
tree63e8d06f9517ee8d76a00017216afed5d769ebf0
parentfefa175e8f518f17121a1870270a415c851cbacc (diff)
downloadgdb-092a534fe14be3eda270256fb2799fd893a1f57c.zip
gdb-092a534fe14be3eda270256fb2799fd893a1f57c.tar.gz
gdb-092a534fe14be3eda270256fb2799fd893a1f57c.tar.bz2
MIPS/GAS: Correct `-O0' and `-O' option help, add `-O1' and `-O2'
Match commit 4ffff32f75b1 ("Match mips_optimize to the -O option supplied") and adjust `--help' output for `-O0', `-O', `-O1' and `-O2' options. gas/ * config/tc-mips.c (md_show_usage): Correct help text for `-O0' and `-O'. Mention `-O1'. Add `-O2' and its description.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mips.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index fcfaf65..6747b98 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2018-06-11 Maciej W. Rozycki <macro@mips.com>
+
+ * config/tc-mips.c (md_show_usage): Correct help text for `-O0'
+ and `-O'. Mention `-O1'. Add `-O2' and its description.
+
2018-06-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/tc-arm.c (arm_cpus): Add Cortex-A76 entry.
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 6c68395..50c4deb 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -20002,8 +20002,9 @@ MIPS options:\n\
-mgp32 use 32-bit GPRs, regardless of the chosen ISA\n\
-mfp32 use 32-bit FPRs, regardless of the chosen ISA\n\
-msym32 assume all symbols have 32-bit values\n\
--O0 remove unneeded NOPs, do not swap branches\n\
--O remove unneeded NOPs and swap branches\n\
+-O0 do not remove unneeded NOPs, do not swap branches\n\
+-O, -O1 remove unneeded NOPs, do not swap branches\n\
+-O2 remove unneeded NOPs and swap branches\n\
--trap, --no-break trap exception on div by 0 and mult overflow\n\
--break, --no-trap break exception on div by 0 and mult overflow\n"));
fprintf (stream, _("\