From 7bb178ecf80918d664954c5f2be911d07afae474 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 7 Aug 2020 06:46:42 -0700 Subject: as: Ignore rest of line on overflow error * read.c (read_a_source_file): Ignore rest of line on overflow error. --- gas/read.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gas/read.c') diff --git a/gas/read.c b/gas/read.c index bd89658..cb41cc0 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 == '$' -- cgit v1.1