as: Ignore rest of line on overflow error

* read.c (read_a_source_file): Ignore rest of line on overflow
	error.
This commit is contained in:
H.J. Lu 2020-08-07 06:46:42 -07:00
parent 4b48e6d46d
commit 7bb178ecf8
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2020-08-07 H.J. Lu <hongjiu.lu@intel.com>
* read.c (read_a_source_file): Ignore rest of line on overflow
error.
2020-08-06 Alex Coplan <alex.coplan@arm.com>
* read.c (read_a_source_file): Use long for local labels, detect

View File

@ -1227,7 +1227,10 @@ read_a_source_file (const char *name)
/* Overflow: stop processing the label. */
if (temp == -1)
continue;
{
ignore_rest_of_line ();
continue;
}
if (LOCAL_LABELS_DOLLAR
&& *input_line_pointer == '$'