mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-03 19:36:46 +08:00
PR/2756
* read.c (read_a_source_file): Ignore unknown text after line comment character. Fix misleading comment.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2006-07-24 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
PR/2756
|
||||||
|
* read.c (read_a_source_file): Ignore unknown text after line
|
||||||
|
comment character. Fix misleading comment.
|
||||||
|
|
||||||
2006-07-24 Ralk Wildenhues <Ralf.Wildenhues@gmx.de>
|
2006-07-24 Ralk Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||||
|
|
||||||
* doc/all.texi, doc/as.texinfo, doc/c-arc.texi, doc/c-arm.texi,
|
* doc/all.texi, doc/as.texinfo, doc/c-arc.texi, doc/c-arm.texi,
|
||||||
|
10
gas/read.c
10
gas/read.c
@ -1007,10 +1007,14 @@ read_a_source_file (char *name)
|
|||||||
unsigned int new_length;
|
unsigned int new_length;
|
||||||
char *tmp_buf = 0;
|
char *tmp_buf = 0;
|
||||||
|
|
||||||
bump_line_counters ();
|
|
||||||
s = input_line_pointer;
|
s = input_line_pointer;
|
||||||
if (strncmp (s, "APP\n", 4))
|
if (strncmp (s, "APP\n", 4))
|
||||||
continue; /* We ignore it */
|
{
|
||||||
|
/* We ignore it. */
|
||||||
|
ignore_rest_of_line ();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
bump_line_counters ();
|
||||||
s += 4;
|
s += 4;
|
||||||
|
|
||||||
sb_new (&sbuf);
|
sb_new (&sbuf);
|
||||||
@ -1109,7 +1113,7 @@ read_a_source_file (char *name)
|
|||||||
continue;
|
continue;
|
||||||
#endif
|
#endif
|
||||||
input_line_pointer--;
|
input_line_pointer--;
|
||||||
/* Report unknown char as ignored. */
|
/* Report unknown char as error. */
|
||||||
demand_empty_rest_of_line ();
|
demand_empty_rest_of_line ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user