aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-08-07 06:46:42 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-08-07 06:47:56 -0700
commit7bb178ecf80918d664954c5f2be911d07afae474 (patch)
tree06d905ffd9bcfbe48c5462d2598a74636e869d41 /gas
parent4b48e6d46d7b5cf8758001aded9e74b1eca42c7d (diff)
downloadgdb-7bb178ecf80918d664954c5f2be911d07afae474.zip
gdb-7bb178ecf80918d664954c5f2be911d07afae474.tar.gz
gdb-7bb178ecf80918d664954c5f2be911d07afae474.tar.bz2
as: Ignore rest of line on overflow error
* read.c (read_a_source_file): Ignore rest of line on overflow error.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/read.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index eac8ec4..48e351a 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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
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 == '$'