From 85f341221b37b1b472419cc79f125a3fdd7643cc Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 18 Sep 1995 19:23:53 +0000 Subject: [PATCH] * config/tc-m68k.c (s_reg): Ignore comment field in MRI mode. --- gas/ChangeLog | 4 ++++ gas/config/tc-m68k.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 4f86c10b941..2d5da34f7ed 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +Mon Sep 18 15:22:28 1995 Ian Lance Taylor + + * config/tc-m68k.c (s_reg): Ignore comment field in MRI mode. + Mon Sep 18 14:44:04 1995 Arne H. Juul * configure.in (mips-dec-netbsd*): New target. diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index 25aabdc2c3d..d68ac46e449 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -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 (); } -- 2.30.2