diff options
author | Kuan-Lin Chen <kuanlinchentw@gmail.com> | 2015-01-29 15:49:02 +0800 |
---|---|---|
committer | Kuan-Lin Chen <kuanlinchentw@gmail.com> | 2015-01-29 16:29:42 +0800 |
commit | ea16498d5a740e2888feb2f8bce92d9565baf244 (patch) | |
tree | 6011e41ba6f6daf9eb0258ae19ad385ebfde5a6d /opcodes/nds32-asm.c | |
parent | 3d7ad9b42685b426329370cdb8bebc9cda6d8911 (diff) | |
download | gdb-ea16498d5a740e2888feb2f8bce92d9565baf244.zip gdb-ea16498d5a740e2888feb2f8bce92d9565baf244.tar.gz gdb-ea16498d5a740e2888feb2f8bce92d9565baf244.tar.bz2 |
NDS32: Set branch instruction to relaxable.
Relaxable fragments can be relaxed when there are alignment requirements.
Besides, insert a dummy fragment in the final to make sure that all
alignment is traversed. Finally, convert these fragments
in md_convert_frag with relax_table.
Diffstat (limited to 'opcodes/nds32-asm.c')
-rw-r--r-- | opcodes/nds32-asm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/nds32-asm.c b/opcodes/nds32-asm.c index 9a63291..406cc7c 100644 --- a/opcodes/nds32-asm.c +++ b/opcodes/nds32-asm.c @@ -2270,7 +2270,8 @@ retry_dot: pinsn->opcode = opc; if (opc == NULL) { - pdesc->result = NASM_ERR_SYNTAX; + if (pdesc->result == NASM_OK) + pdesc->result = NASM_ERR_SYNTAX; goto out; } |