From 8b9286ecf1671b0e57ffaa17284306c8b2cba757 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 9 Jun 1998 19:22:21 +0000 Subject: [PATCH] * config/tc-dvp.c (assemble_vu): Print better error message if lower insn is missing. --- gas/ChangeLog | 7 +++++++ gas/config/tc-dvp.c | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index f152c7f1927..b602852a3d9 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +start-sanitize-sky +Tue Jun 9 12:20:44 1998 Doug Evans + + * config/tc-dvp.c (assemble_vu): Print better error message if + lower insn is missing. + +end-sanitize-sky Tue Jun 9 13:52:53 1998 Ian Lance Taylor * Makefile.am: Rebuild dependencies. diff --git a/gas/config/tc-dvp.c b/gas/config/tc-dvp.c index 292e21ac625..fddf0eefa40 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. */ -- 2.30.2