Fred Fish <fnf@be.com>
[deliverable/binutils-gdb.git] / gas / itbl-ops.c
index 9117f3120e1af5cdb0588c9f8b0b44b7102ebe8f..f008dcafebc4aa060769c2166cb5ec6ff97cc4a0 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
 
@@ -94,7 +94,7 @@
 #include "itbl-ops.h"
 #include "itbl-parse.h"
 
-#define DEBUG
+/* #define DEBUG */
 
 #ifdef DEBUG
 #include <assert.h>
@@ -286,6 +286,9 @@ itbl_init (void)
   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. */
@@ -329,7 +332,9 @@ append_insns_as_macros (void)
   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;
@@ -351,7 +356,7 @@ append_insns_as_macros (void)
   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 */
This page took 0.023209 seconds and 4 git commands to generate.