From: H.J. Lu Date: Fri, 7 Aug 2020 13:46:42 +0000 (-0700) Subject: as: Ignore rest of line on overflow error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bb178ecf80918d664954c5f2be911d07afae474;p=binutils-gdb.git as: Ignore rest of line on overflow error * read.c (read_a_source_file): Ignore rest of line on overflow error. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index eac8ec4f9be..48e351a5e05 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2020-08-07 H.J. Lu + + * read.c (read_a_source_file): Ignore rest of line on overflow + error. + 2020-08-06 Alex Coplan * read.c (read_a_source_file): Use long for local labels, detect diff --git a/gas/read.c b/gas/read.c index bd896580e5d..cb41cc06852 100644 --- a/gas/read.c +++ b/gas/read.c @@ -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 == '$'