diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-09-02 05:50:40 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-09-02 05:50:40 +0000 |
commit | 28e1e54d139cdbd9a02c62dcce33b6f8c2154887 (patch) | |
tree | c395e5c68ed6f13a7367c59a0a6384fb452d4eec | |
parent | 2d89f63ec21693cb53caec82f93dd2f9363fbaba (diff) | |
download | gdb-28e1e54d139cdbd9a02c62dcce33b6f8c2154887.zip gdb-28e1e54d139cdbd9a02c62dcce33b6f8c2154887.tar.gz gdb-28e1e54d139cdbd9a02c62dcce33b6f8c2154887.tar.bz2 |
* config/tc-v850.c (md_assemble): Use opcode->name instead of
opcode->opcode as the sentinal. Zero is a valid opcode.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-v850.c | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index f7ad61c..a6b86d9 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Tue Sep 2 15:40:56 1997 Andrew Cagney <cagney@b1.cygnus.com> + + * config/tc-v850.c (md_assemble): Use opcode->name instead of + opcode->opcode as the sentinal. Zero is a valid opcode. + start-sanitize-v850 Tue Aug 26 16:51:14 1997 Ian Lance Taylor <ian@cygnus.com> diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c index 6662b9f..0f4117b 100644 --- a/gas/config/tc-v850.c +++ b/gas/config/tc-v850.c @@ -1088,6 +1088,7 @@ md_assemble (str) errmsg = "invalid condition code name"; } } + /* start-sanitize-v850e */ else if (operand->flags & V850E_PUSH_POP) { errmsg = parse_register_list (& insn, operand); @@ -1096,6 +1097,8 @@ md_assemble (str) ex.X_op = O_constant; ex.X_add_number = 0; } + /* end-sanitize-v850e */ + /* start-sanitize-v850e */ else if (operand->flags & V850E_IMMEDIATE16) { expression (& ex); @@ -1117,6 +1120,8 @@ md_assemble (str) extra_data = ex.X_add_number; ex.X_add_number = 0; } + /* end-sanitize-v850e */ + /* start-sanitize-v850e */ else if (operand->flags & V850E_IMMEDIATE32) { expression (& ex); @@ -1129,6 +1134,7 @@ md_assemble (str) extra_data = ex.X_add_number; ex.X_add_number = 0; } + /* end-sanitize-v850e */ else if (register_name (&ex) && (operand->flags & V850_OPERAND_REG) == 0) { @@ -1214,7 +1220,7 @@ md_assemble (str) if (match == 0) { next_opcode = opcode + 1; - if (next_opcode->opcode != 0 && !strcmp (next_opcode->name, opcode->name)) + if (next_opcode->name != NULL && strcmp (next_opcode->name, opcode->name) == 0) { opcode = next_opcode; continue; |