aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-10-14 21:06:52 +0000
committerIan Lance Taylor <ian@airs.com>1993-10-14 21:06:52 +0000
commitdd3f1f765f40b50d6812bde3c6c1afaa37637804 (patch)
tree293961131897cabfd4995d3cbfd698f14b8ee610 /gas
parent478826389ea7b05ef778f52a44ea5df72900165c (diff)
downloadgdb-dd3f1f765f40b50d6812bde3c6c1afaa37637804.zip
gdb-dd3f1f765f40b50d6812bde3c6c1afaa37637804.tar.gz
gdb-dd3f1f765f40b50d6812bde3c6c1afaa37637804.tar.bz2
* 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.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/config/tc-mips.c24
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)