Added missing sanitization markers.
[deliverable/binutils-gdb.git] / gas / itbl-ops.c
index 95df3ac8144e98f5f66fc0f91aeb677582a6a74e..4eaf08b9a2f91d57a6fdc9e580572d96440ccb19 100644 (file)
@@ -1,6 +1,4 @@
-
 /* itbl-ops.c
-
    Copyright (C) 1997  Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
@@ -288,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. */
@@ -331,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;
This page took 0.023217 seconds and 4 git commands to generate.