From: Thiemo Seufer Date: Mon, 14 May 2007 12:28:46 +0000 (+0000) Subject: * config/tc-mips.c (md_parse_option): Fix parsing of -O option. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=24471d420951f088fe188f7e7db8941d26f39c51;p=binutils-gdb.git * config/tc-mips.c (md_parse_option): Fix parsing of -O option. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index a4a6419c4ed..3f0e5e8f488 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,7 +1,11 @@ +2007-05-14 Thiemo Seufer + + * config/tc-mips.c (md_parse_option): Fix parsing of -O option. + 2007-05-14 Mei Ligang - * config/tc-score.c (data_op2, validate_immediate): Fix bug for addri, addri.c, subi, and - subi.c when immediate number is hex. + * config/tc-score.c (data_op2, validate_immediate): Fix bug for + addri, addri.c, subi, and subi.c when immediate number is hex. (score_insns): Remove subis and subis.c. (do_sub_rdi16): Delete. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 09349449b31..5e8a6def85d 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -11036,7 +11036,7 @@ md_parse_option (int c, char *arg) break; case 'O': - if (arg && arg[1] == '0') + if (arg && arg[0] == '0') mips_optimize = 1; else mips_optimize = 2;