diff options
author | Nick Clifton <nickc@redhat.com> | 2005-01-12 10:57:15 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-01-12 10:57:15 +0000 |
commit | b8b80cf7d57d69c9827552fe8001bbbed7467d92 (patch) | |
tree | 85356e46282fd659421020fff544fe7b5c262f0f | |
parent | 5356adc8d25d58f4a9b6b36bcb55aae6a20702ed (diff) | |
download | gdb-b8b80cf7d57d69c9827552fe8001bbbed7467d92.zip gdb-b8b80cf7d57d69c9827552fe8001bbbed7467d92.tar.gz gdb-b8b80cf7d57d69c9827552fe8001bbbed7467d92.tar.bz2 |
(s_iq2000_set): Fix thinko parsing ignored_arguments array.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-iq2000.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 8a528ed..670e5f0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2005-01-12 Nick Clifton <nickc@redhat.com> + + * config/tc-iq2000.c (s_iq2000_set): Fix thinko parsing + ignored_arguments array. + 2005-01-10 H.J. Lu <hongjiu.lu@intel.com> * write.c (write_object_file): Disallow a symbol equated to diff --git a/gas/config/tc-iq2000.c b/gas/config/tc-iq2000.c index 3ca9621..21deee0 100644 --- a/gas/config/tc-iq2000.c +++ b/gas/config/tc-iq2000.c @@ -686,7 +686,7 @@ s_iq2000_set (int x ATTRIBUTE_UNUSED) "nobopt", NULL }; - const char * ignored; + const char ** ignored; char *name = input_line_pointer, ch; char *save_ILP = input_line_pointer; @@ -695,10 +695,10 @@ s_iq2000_set (int x ATTRIBUTE_UNUSED) ch = *input_line_pointer; *input_line_pointer = '\0'; - for (ignored = ignored_arguments[0]; ignored; ignored ++) - if (strcmp (ignored, name) == 0) + for (ignored = ignored_arguments; * ignored; ignored ++) + if (strcmp (* ignored, name) == 0) break; - if (ignored == NULL) + if (* ignored == NULL) { /* We'd like to be able to use .set symbol, expn */ input_line_pointer = save_ILP; |