aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2006-03-13 21:46:53 +0000
committerBob Wilson <bob.wilson@acm.org>2006-03-13 21:46:53 +0000
commit80ca4e2ca22274e88acc03a6703c62c6ebda5ac2 (patch)
tree6f16d151008cd10128bca02ed8cadaecff5be162 /gas/config
parent9223c9457dfba4e1516b2e206446f1cea1a42a57 (diff)
downloadgdb-80ca4e2ca22274e88acc03a6703c62c6ebda5ac2.zip
gdb-80ca4e2ca22274e88acc03a6703c62c6ebda5ac2.tar.gz
gdb-80ca4e2ca22274e88acc03a6703c62c6ebda5ac2.tar.bz2
* config/tc-xtensa.c (xg_translate_sysreg_op): Remove has_underbar
flag and avoid double underscore prefixes.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-xtensa.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c
index 8c84172..5a7f202 100644
--- a/gas/config/tc-xtensa.c
+++ b/gas/config/tc-xtensa.c
@@ -2180,14 +2180,10 @@ xg_translate_sysreg_op (char **popname, int *pnum_args, char **arg_strings)
char *opname, *new_opname;
const char *sr_name;
int is_user, is_write;
- bfd_boolean has_underbar = FALSE;
opname = *popname;
if (*opname == '_')
- {
- has_underbar = TRUE;
- opname += 1;
- }
+ opname += 1;
is_user = (opname[1] == 'u');
is_write = (opname[0] == 'w');
@@ -2233,8 +2229,7 @@ xg_translate_sysreg_op (char **popname, int *pnum_args, char **arg_strings)
if (is_write && !is_user && !strcasecmp ("interrupt", sr_name))
sr_name = "intset";
new_opname = (char *) xmalloc (strlen (sr_name) + 6);
- sprintf (new_opname, "%s%s.%s", (has_underbar ? "_" : ""),
- *popname, sr_name);
+ sprintf (new_opname, "%s.%s", *popname, sr_name);
free (*popname);
*popname = new_opname;