mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
(s_iq2000_set): Fix thinko parsing ignored_arguments array.
This commit is contained in:
@ -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>
|
2005-01-10 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* write.c (write_object_file): Disallow a symbol equated to
|
* write.c (write_object_file): Disallow a symbol equated to
|
||||||
|
@ -686,7 +686,7 @@ s_iq2000_set (int x ATTRIBUTE_UNUSED)
|
|||||||
"nobopt",
|
"nobopt",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
const char * ignored;
|
const char ** ignored;
|
||||||
char *name = input_line_pointer, ch;
|
char *name = input_line_pointer, ch;
|
||||||
char *save_ILP = input_line_pointer;
|
char *save_ILP = input_line_pointer;
|
||||||
|
|
||||||
@ -695,10 +695,10 @@ s_iq2000_set (int x ATTRIBUTE_UNUSED)
|
|||||||
ch = *input_line_pointer;
|
ch = *input_line_pointer;
|
||||||
*input_line_pointer = '\0';
|
*input_line_pointer = '\0';
|
||||||
|
|
||||||
for (ignored = ignored_arguments[0]; ignored; ignored ++)
|
for (ignored = ignored_arguments; * ignored; ignored ++)
|
||||||
if (strcmp (ignored, name) == 0)
|
if (strcmp (* ignored, name) == 0)
|
||||||
break;
|
break;
|
||||||
if (ignored == NULL)
|
if (* ignored == NULL)
|
||||||
{
|
{
|
||||||
/* We'd like to be able to use .set symbol, expn */
|
/* We'd like to be able to use .set symbol, expn */
|
||||||
input_line_pointer = save_ILP;
|
input_line_pointer = save_ILP;
|
||||||
|
Reference in New Issue
Block a user