aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-bfin.c
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2009-09-03 16:32:42 +0000
committerJie Zhang <jie.zhang@analog.com>2009-09-03 16:32:42 +0000
commitbd03da308991692d9e3f7c60135f811f11f65e49 (patch)
treeb43e581656310475e915d2ff4a8188678fe22143 /gas/config/tc-bfin.c
parentc958a8a8fb341605fa49cb30d62e98f1b833f542 (diff)
downloadgdb-bd03da308991692d9e3f7c60135f811f11f65e49.zip
gdb-bd03da308991692d9e3f7c60135f811f11f65e49.tar.gz
gdb-bd03da308991692d9e3f7c60135f811f11f65e49.tar.bz2
* config/tc-bfin.c (md_assemble): Bump line counters if there is
EOL in the instruction. testsuite/ * gas/bfin/line_number.l, gas/bfin/line_number.s: New test. * gas/bfin/bfin.exp: Add the new test.
Diffstat (limited to 'gas/config/tc-bfin.c')
-rw-r--r--gas/config/tc-bfin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c
index 958f63d..4a02b69 100644
--- a/gas/config/tc-bfin.c
+++ b/gas/config/tc-bfin.c
@@ -712,6 +712,10 @@ md_assemble (char *line)
#ifdef OBJ_ELF
dwarf2_emit_insn (insn_size);
#endif
+
+ while (*line++ != '\0')
+ if (*line == '\n')
+ bump_line_counters ();
}
/* Parse one line of instructions, and generate opcode for it.