X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-iq2000.c;h=f150e19d028805563f9ac25ff676c98343854e08;hb=945e0f82dad31db89a107b496532886fe215c011;hp=f1f7945c59d11c6f98986dfbaa2a040caf682fbd;hpb=6d4af3c269e64b0093b23bd63d302bd9f90de6a9;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/config/tc-iq2000.c b/gas/config/tc-iq2000.c index f1f7945c59..f150e19d02 100644 --- a/gas/config/tc-iq2000.c +++ b/gas/config/tc-iq2000.c @@ -233,7 +233,7 @@ iq2000_add_macro (const char * name, sb macro_name; const char *namestr; - macro = xmalloc (sizeof (macro_entry)); + macro = XNEW (macro_entry); sb_new (& macro->sub); sb_new (& macro_name); @@ -253,7 +253,7 @@ iq2000_add_macro (const char * name, { formal_entry *formal; - formal = xmalloc (sizeof (formal_entry)); + formal = XNEW (formal_entry); sb_new (& formal->name); sb_new (& formal->def); @@ -535,7 +535,7 @@ iq2000_record_hi16 (int reloc_type, gas_assert (reloc_type == BFD_RELOC_HI16); - hi_fixup = xmalloc (sizeof * hi_fixup); + hi_fixup = XNEW (struct iq2000_hi_fixup); hi_fixup->fixp = fixP; hi_fixup->seg = now_seg; hi_fixup->next = iq2000_hi_fixup_list;