(s_iq2000_set): Fix thinko parsing ignored_arguments array.
authorNick Clifton <nickc@redhat.com>
Wed, 12 Jan 2005 10:57:15 +0000 (10:57 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 12 Jan 2005 10:57:15 +0000 (10:57 +0000)
gas/ChangeLog
gas/config/tc-iq2000.c

index 8a528ed7939a3c1179fd0622fdbd10e0737e8fa4..670e5f0fea99d70296c68d4c9fa972d595c940f7 100644 (file)
@@ -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
index 3ca96215de621679c7c5be2ad3ca48d80bc6e792..21deee0250839d5dad06ce6e4f96e9789a64e3d0 100644 (file)
@@ -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;