mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-06 15:38:45 +08:00
* config/tc-bfin.c (bfin_start_line_hook): Bump line counters
if needed.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2006-05-23 Jie Zhang <jie.zhang@analog.com>
|
||||||
|
|
||||||
* config/bfin-defs.h (bfin_equals): Remove declaration.
|
* config/bfin-defs.h (bfin_equals): Remove declaration.
|
||||||
|
@ -834,9 +834,14 @@ bfin_start_line_hook ()
|
|||||||
char *c1, *label_name;
|
char *c1, *label_name;
|
||||||
symbolS *line_label;
|
symbolS *line_label;
|
||||||
char *c = input_line_pointer;
|
char *c = input_line_pointer;
|
||||||
|
int cr_num = 0;
|
||||||
|
|
||||||
while (ISSPACE (*c))
|
while (ISSPACE (*c))
|
||||||
c++;
|
{
|
||||||
|
if (*c == '\n')
|
||||||
|
cr_num++;
|
||||||
|
c++;
|
||||||
|
}
|
||||||
|
|
||||||
/* Look for Loop_Begin or Loop_End statements. */
|
/* Look for Loop_Begin or Loop_End statements. */
|
||||||
|
|
||||||
@ -902,6 +907,12 @@ bfin_start_line_hook ()
|
|||||||
c1 = c;
|
c1 = c;
|
||||||
while (ISALPHA (*c) || ISDIGIT (*c) || *c == '_') 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;
|
input_line_pointer = c;
|
||||||
if (maybe_end)
|
if (maybe_end)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user