From 050f0fb186ff1d2ccf7aed068135c767c6020b90 Mon Sep 17 00:00:00 2001 From: ths Date: Sat, 17 Nov 2007 14:19:19 +0000 Subject: [PATCH] * config/tc-mips.c (md_parse_option): Match mips_optimize to the -O option supplied, but still keep mips_optimize == 2 as default value. --- gas/ChangeLog | 5 +++++ gas/config/tc-mips.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 0a182bf67b..6604e8e256 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 2007-11-17 Thiemo Seufer + * config/tc-mips.c (md_parse_option): Match mips_optimize to the -O + option supplied, but still keep mips_optimize == 2 as default value. + +2007-11-17 Thiemo Seufer + * doc/as.texinfo: Document the new attribute value. 2007-11-16 Eric B. Weddington diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 722c47ec48..dfc1646128 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; -- 2.11.0