as: Ignore rest of line on overflow error
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 7 Aug 2020 13:46:42 +0000 (06:46 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 7 Aug 2020 13:47:56 +0000 (06:47 -0700)
* read.c (read_a_source_file): Ignore rest of line on overflow
error.

gas/ChangeLog
gas/read.c

index eac8ec4f9be1a7efd8f9bb5a1f52606938200362..48e351a5e05f7b1151461454d3c616d788b90627 100644 (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
index bd896580e5db04c7b4099c3a972f75de31a5cdab..cb41cc068524b033a6cd5bb77e5cb6f5e1006d91 100644 (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 == '$'