mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 11:39:26 +08:00
h
* config/tc-hppa.c (pa_ip): Convert the opcode and all completers into lower case.
This commit is contained in:
@ -1455,6 +1455,12 @@ pa_ip (str)
|
|||||||
pa_check_current_space_and_subspace ();
|
pa_check_current_space_and_subspace ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Convert everything up to the first whitespace character into lower
|
||||||
|
case. */
|
||||||
|
for (s = str; *s != ' ' && *s != '\t' && *s != '\n' && *s != '\0'; s++)
|
||||||
|
if (isupper (*s))
|
||||||
|
*s = tolower (*s);
|
||||||
|
|
||||||
/* Skip to something interesting. */
|
/* Skip to something interesting. */
|
||||||
for (s = str; isupper (*s) || islower (*s) || (*s >= '0' && *s <= '3'); ++s)
|
for (s = str; isupper (*s) || islower (*s) || (*s >= '0' && *s <= '3'); ++s)
|
||||||
;
|
;
|
||||||
@ -1480,14 +1486,6 @@ pa_ip (str)
|
|||||||
|
|
||||||
save_s = str;
|
save_s = str;
|
||||||
|
|
||||||
/* Convert everything into lower case. */
|
|
||||||
while (*save_s)
|
|
||||||
{
|
|
||||||
if (isupper (*save_s))
|
|
||||||
*save_s = tolower (*save_s);
|
|
||||||
save_s++;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Look up the opcode in the has table. */
|
/* Look up the opcode in the has table. */
|
||||||
if ((insn = (struct pa_opcode *) hash_find (op_hash, str)) == NULL)
|
if ((insn = (struct pa_opcode *) hash_find (op_hash, str)) == NULL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user