* config/tc-mips.c (md_pseudo_table): Ignore .livereg pseudo-op.
authorIan Lance Taylor <ian@airs.com>
Thu, 14 Oct 1993 21:06:52 +0000 (21:06 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 14 Oct 1993 21:06:52 +0000 (21:06 +0000)
(s_option): Ignore .option O* and .option pic*.
(s_ent): Skip whitespace between symbol and optional digit.

gas/ChangeLog
gas/config/tc-mips.c

index e81c0e0..1905790 100644 (file)
@@ -1,5 +1,9 @@
 Thu Oct 14 16:51:00 1993  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
+       * config/tc-mips.c (md_pseudo_table): Ignore .livereg pseudo-op.
+       (s_option): Ignore .option O* and .option pic*.
+       (s_ent): Skip whitespace between symbol and optional digit.
+
        * app.c (do_scrub_next_char): Always accept 'x' and 'X' as escape
        characters in state 6.
        * read.c (next_char_of_string): Accept \Xh* and \xh* where h* are
index 31af840..176276f 100644 (file)
@@ -247,8 +247,9 @@ const pseudo_typeS md_pseudo_table[] =
  /* MIPS specific pseudo-ops.  */
   {"option", s_option, 0},
   {"set", s_mipsset, 0},
-  {"rdata", s_change_sec, 'r',},
-  {"sdata", s_change_sec, 's',},
+  {"rdata", s_change_sec, 'r'},
+  {"sdata", s_change_sec, 's'},
+  {"livereg", s_ignore, 0},
 
  /* Relatively generic pseudo-ops that happen to be used on MIPS
      chips.  */
@@ -4284,9 +4285,21 @@ static void
 s_option (x)
      int x;
 {
-  if (strcmp (input_line_pointer, "O1") != 0
-      && strcmp (input_line_pointer, "O2") != 0)
-    as_warn ("Unrecognized option");
+  char *opt;
+  char c;
+
+  opt = input_line_pointer;
+  c = get_symbol_end ();
+
+  /* FIXME: What do these options mean?  */
+  if (*opt == 'O')
+    ;
+  else if (strncmp (opt, "pic", 3) == 0)
+    ;
+  else
+    as_warn ("Unrecognized option \"%s\"", opt);
+
+  *input_line_pointer = c;
   demand_empty_rest_of_line ();
 }
 
@@ -4676,6 +4689,7 @@ s_ent (aent)
   symbolP = get_symbol ();
   if (*input_line_pointer == ',')
     input_line_pointer++;
+  SKIP_WHITESPACE ();
   if (isdigit (*input_line_pointer) || *input_line_pointer == '-')
     number = get_number ();
   if (now_seg != text_section)