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
/* 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. */
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 ();
}
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)