Remove use of alloca.
[deliverable/binutils-gdb.git] / gas / config / tc-nds32.c
index 774c470411501cbab654a206ff34f93f8d88661e..66b8136346edf9ad7bf3112b7d93db3b765a2805 100644 (file)
@@ -5141,6 +5141,7 @@ void
 md_assemble (char *str)
 {
   struct nds32_asm_insn insn;
+  expressionS expr;
   char *out;
   struct nds32_pseudo_opcode *popcode;
   const struct nds32_field *fld = NULL;
@@ -5176,7 +5177,7 @@ md_assemble (char *str)
     }
 
   label_exist = 0;
-  insn.info = (expressionS *) alloca (sizeof (expressionS));
+  insn.info = & expr;
   asm_desc.result = NASM_OK;
   nds32_assemble (&asm_desc, &insn, str);
 
This page took 0.024955 seconds and 4 git commands to generate.