aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-vax.c
diff options
context:
space:
mode:
authorMatt Thomas <matt@3am-software.com>2009-04-02 00:10:46 +0000
committerMatt Thomas <matt@3am-software.com>2009-04-02 00:10:46 +0000
commit745435b680590fff37a8312cdfddd3d6b802610e (patch)
tree695535f65a3d545efd43218fff8c0e67506ed820 /gas/config/tc-vax.c
parent9ad7ca0088bff371c20feb5a458966ef60331ad8 (diff)
downloadgdb-745435b680590fff37a8312cdfddd3d6b802610e.zip
gdb-745435b680590fff37a8312cdfddd3d6b802610e.tar.gz
gdb-745435b680590fff37a8312cdfddd3d6b802610e.tar.bz2
2009-04-01 Matt Thomas <matt@netbsd.org>
* config/tc-vax.c (synthetic_votstrs): add "jbbcci" and "jbbssi" (md_assemble): emit symbol name when used as immediate in PIC mode. (md_assemble): fix LP64 bug (use sizeof (valueT) instead 4).
Diffstat (limited to 'gas/config/tc-vax.c')
-rw-r--r--gas/config/tc-vax.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gas/config/tc-vax.c b/gas/config/tc-vax.c
index b8cdec9..db2055e 100644
--- a/gas/config/tc-vax.c
+++ b/gas/config/tc-vax.c
@@ -852,6 +852,8 @@ static const struct vot
{"jbcs", {"rlvbb?", 0x800000e3}},
{"jbsc", {"rlvbb?", 0x800000e4}},
{"jbcc", {"rlvbb?", 0x800000e5}},
+ {"jbssi", {"rlvbb?", 0x800000e6}},
+ {"jbcci", {"rlvbb?", 0x800000e7}},
{"jlbs", {"rlb?", 0x800000e8}},
{"jlbc", {"rlb?", 0x800000e9}},
@@ -3152,7 +3154,8 @@ md_assemble (char *instruction_string)
if (flag_want_pic && operandP->vop_mode == 8
&& this_add_symbol != NULL)
{
- as_warn (_("Symbol used as immediate operand in PIC mode."));
+ as_warn (_("Symbol %s used as immediate operand in PIC mode."),
+ S_GET_NAME (this_add_symbol));
}
#endif
p[0] = (operandP->vop_mode << 4) | 0xF;
@@ -3168,7 +3171,8 @@ md_assemble (char *instruction_string)
min (sizeof (valueT),
(size_t) nbytes));
if ((size_t) nbytes > sizeof (valueT))
- memset (p + 5, '\0', nbytes - sizeof (valueT));
+ memset (p + 1 + sizeof (valueT),
+ '\0', nbytes - sizeof (valueT));
}
else
{