From dd3f1f765f40b50d6812bde3c6c1afaa37637804 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 14 Oct 1993 21:06:52 +0000 Subject: [PATCH] * 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. --- gas/ChangeLog | 4 ++++ gas/config/tc-mips.c | 24 +++++++++++++++++++----- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index e81c0e0..1905790 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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 diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 31af840..176276f 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -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) -- 2.7.4