aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2007-11-17 14:19:19 +0000
committerThiemo Seufer <ths@networkno.de>2007-11-17 14:19:19 +0000
commit4ffff32f75b16015df0d83c38910a75209079369 (patch)
tree62097c2b5d3d2223358b558626a2cd7889664b2a /gas/config
parent42554f6a08d8282c408f7932ade77735b18b2f8b (diff)
downloadgdb-4ffff32f75b16015df0d83c38910a75209079369.zip
gdb-4ffff32f75b16015df0d83c38910a75209079369.tar.gz
gdb-4ffff32f75b16015df0d83c38910a75209079369.tar.bz2
* config/tc-mips.c (md_parse_option): Match mips_optimize to the -O
option supplied, but still keep mips_optimize == 2 as default value.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 722c47e..dfc1646 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -11013,7 +11013,11 @@ md_parse_option (int c, char *arg)
break;
case 'O':
- if (arg && arg[0] == '0')
+ if (arg == NULL)
+ mips_optimize = 1;
+ else if (arg[0] == '0')
+ mips_optimize = 0;
+ else if (arg[0] == '1')
mips_optimize = 1;
else
mips_optimize = 2;