aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-06-09 19:22:21 +0000
committerDoug Evans <dje@google.com>1998-06-09 19:22:21 +0000
commit8b9286ecf1671b0e57ffaa17284306c8b2cba757 (patch)
treed6981ee802a9b4cbc773f508cbd6f685822953fe /gas/config
parent9d0a6b0089ccb78053bb96a17119d3adc08f8fcb (diff)
downloadgdb-8b9286ecf1671b0e57ffaa17284306c8b2cba757.zip
gdb-8b9286ecf1671b0e57ffaa17284306c8b2cba757.tar.gz
gdb-8b9286ecf1671b0e57ffaa17284306c8b2cba757.tar.bz2
* config/tc-dvp.c (assemble_vu): Print better error message if
lower insn is missing.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-dvp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gas/config/tc-dvp.c b/gas/config/tc-dvp.c
index 292e21a..fddf0ee 100644
--- a/gas/config/tc-dvp.c
+++ b/gas/config/tc-dvp.c
@@ -951,7 +951,7 @@ assemble_vu (str)
if (p == NULL)
{
- as_bad ("lower slot missing in `%s'", str);
+ as_bad ("lower instruction missing");
return;
}
@@ -971,6 +971,12 @@ assemble_vu (str)
if (opcode == NULL)
return;
+ if (*str == 0)
+ {
+ as_bad ("lower instruction missing");
+ return;
+ }
+
/* Assemble the lower insn.
Pass `fixup_count' for `init_fixup_count' so that we don't clobber
any fixups the upper insn had. */