aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2006-05-23 06:01:12 +0000
committerJie Zhang <jie.zhang@analog.com>2006-05-23 06:01:12 +0000
commit8b64503a9833cf14ea84a47ac057be45bdf2aeec (patch)
tree85d80013650f97d09f5ae9163019b6172b584da0 /gas
parent8aafe8b463c3c254ab29594ae82d516fa6627ad1 (diff)
downloadgdb-8b64503a9833cf14ea84a47ac057be45bdf2aeec.zip
gdb-8b64503a9833cf14ea84a47ac057be45bdf2aeec.tar.gz
gdb-8b64503a9833cf14ea84a47ac057be45bdf2aeec.tar.bz2
* config/tc-bfin.c (bfin_start_line_hook): Bump line counters
if needed.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-bfin.c13
2 files changed, 17 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 073a1283..5232ad4 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2006-05-23 Jie Zhang <jie.zhang@analog.com>
+ * config/tc-bfin.c (bfin_start_line_hook): Bump line counters
+ if needed.
+
+2006-05-23 Jie Zhang <jie.zhang@analog.com>
+
* config/bfin-defs.h (bfin_equals): Remove declaration.
* config/bfin-parse.y (asm_1): Remove "expr ASSIGN expr".
* config/tc-bfin.c (bfin_name_is_register): Remove.
diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c
index f70a94d..03e733a 100644
--- a/gas/config/tc-bfin.c
+++ b/gas/config/tc-bfin.c
@@ -834,9 +834,14 @@ bfin_start_line_hook ()
char *c1, *label_name;
symbolS *line_label;
char *c = input_line_pointer;
+ int cr_num = 0;
while (ISSPACE (*c))
- c++;
+ {
+ if (*c == '\n')
+ cr_num++;
+ c++;
+ }
/* Look for Loop_Begin or Loop_End statements. */
@@ -902,6 +907,12 @@ bfin_start_line_hook ()
c1 = c;
while (ISALPHA (*c) || ISDIGIT (*c) || *c == '_') c++;
+ if (input_line_pointer[-1] == '\n')
+ bump_line_counters ();
+
+ while (cr_num--)
+ bump_line_counters ();
+
input_line_pointer = c;
if (maybe_end)
{