diff options
author | Jie Zhang <jie.zhang@analog.com> | 2006-05-23 06:01:12 +0000 |
---|---|---|
committer | Jie Zhang <jie.zhang@analog.com> | 2006-05-23 06:01:12 +0000 |
commit | 8b64503a9833cf14ea84a47ac057be45bdf2aeec (patch) | |
tree | 85d80013650f97d09f5ae9163019b6172b584da0 /gas/config/tc-bfin.c | |
parent | 8aafe8b463c3c254ab29594ae82d516fa6627ad1 (diff) | |
download | gdb-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/config/tc-bfin.c')
-rw-r--r-- | gas/config/tc-bfin.c | 13 |
1 files changed, 12 insertions, 1 deletions
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) { |