[ARC] Add XY registers, update neg instruction.
[deliverable/binutils-gdb.git] / gas / config / tc-moxie.c
index 24c9aec05aaab0a209092e8cfc0456f1d5d85feb..9201cb58262e97ae1969b073b315c25ffdef9ba5 100644 (file)
@@ -771,9 +771,8 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixP)
       return 0;
     }
 
-  relP = xmalloc (sizeof (arelent));
-  gas_assert (relP != 0);
-  relP->sym_ptr_ptr = xmalloc (sizeof (asymbol *));
+  relP = XNEW (arelent);
+  relP->sym_ptr_ptr = XNEW (asymbol *);
   *relP->sym_ptr_ptr = symbol_get_bfdsym (fixP->fx_addsy);
   relP->address = fixP->fx_frag->fr_address + fixP->fx_where;
 
This page took 0.024211 seconds and 4 git commands to generate.