/* itbl-ops.c
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
#include "itbl-ops.h"
#include "itbl-parse.h"
-#define DEBUG
+/* #define DEBUG */
#ifdef DEBUG
#include <assert.h>
e_processor procn;
e_type type;
+ if (!itbl_have_entries)
+ return;
+
/* Since register names don't have a prefix, put them in the symbol table so
they can't be used as symbols. This simplifies argument parsing as
we can let gas parse registers for us. */
struct itbl_entry *e, **es;
int n, id, size, new_size, new_num_opcodes;
- ASSERT (itbl_num_opcodes > 0);
+ if (!itbl_have_entries)
+ return;
+
if (!itbl_num_opcodes) /* no new instructions to add! */
{
return;
new_opcodes = (struct ITBL_OPCODE_STRUCT *) malloc (new_size);
if (!new_opcodes)
{
- printf ("Unable to allocate memory for new instructions\n");
+ printf (_("Unable to allocate memory for new instructions\n"));
return;
}
if (size) /* copy prexisting opcodes table */