* config/tc-m68k.c (s_reg): Ignore comment field in MRI mode.
authorIan Lance Taylor <ian@airs.com>
Mon, 18 Sep 1995 19:23:53 +0000 (19:23 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 18 Sep 1995 19:23:53 +0000 (19:23 +0000)
gas/ChangeLog
gas/config/tc-m68k.c

index 4f86c10..2d5da34 100644 (file)
@@ -1,3 +1,7 @@
+Mon Sep 18 15:22:28 1995  Ian Lance Taylor  <ian@cygnus.com>
+
+       * config/tc-m68k.c (s_reg): Ignore comment field in MRI mode.
+
 Mon Sep 18 14:44:04 1995  Arne H. Juul  <arnej@pvv.unit.no>
 
        * configure.in (mips-dec-netbsd*): New target.
index 25aabdc..d68ac46 100644 (file)
@@ -4542,6 +4542,13 @@ s_reg (ignore)
   S_SET_VALUE (line_label, mask);
   line_label->sy_frag = &zero_address_frag;
 
+  if (flag_mri)
+    {
+      /* Ignore the comment field.  */
+      while (! is_end_of_line[(unsigned char) *input_line_pointer])
+       ++input_line_pointer;
+    }
+
   demand_empty_rest_of_line ();
 }