INSTR_T
gencode (unsigned long x)
{
- INSTR_T cell = obstack_alloc (&mempool, sizeof (struct bfin_insn));
+ INSTR_T cell = XOBNEW (&mempool, struct bfin_insn);
memset (cell, 0, sizeof (struct bfin_insn));
cell->value = (x);
return cell;
int unwind_bits ATTRIBUTE_UNUSED)
{
fixS *new_fix;
- struct hppa_fix_struct *hppa_fix = obstack_alloc (¬es, sizeof (struct hppa_fix_struct));
+ struct hppa_fix_struct *hppa_fix = XOBNEW (¬es, struct hppa_fix_struct);
if (exp != NULL)
new_fix = fix_new_exp (frag, where, size, exp, pcrel, r_type);
if (new_fix)
{
- struct hppa_fix_struct * hppa_fix = obstack_alloc (¬es, sizeof (struct hppa_fix_struct));
+ struct hppa_fix_struct * hppa_fix = XOBNEW (¬es, struct hppa_fix_struct);
hppa_fix->fx_r_type = R_HPPA;
hppa_fix->fx_r_field = e_fsel;
if (new_fix)
{
- struct hppa_fix_struct * hppa_fix = obstack_alloc (¬es, sizeof (struct hppa_fix_struct));
+ struct hppa_fix_struct * hppa_fix = XOBNEW (¬es, struct hppa_fix_struct);
hppa_fix->fx_r_type = R_HPPA;
hppa_fix->fx_r_field = e_fsel;
obstack_begin (&robyn, 4000);
for (i = 0; i < m68k_numopcodes; i++)
{
- hack = slak = obstack_alloc (&robyn, sizeof (struct m68k_incant));
+ hack = slak = XOBNEW (&robyn, struct m68k_incant);
do
{
ins = m68k_sorted_opcodes[i];
if (i + 1 != m68k_numopcodes
&& !strcmp (ins->name, m68k_sorted_opcodes[i + 1]->name))
{
- slak->m_next = obstack_alloc (&robyn, sizeof (struct m68k_incant));
+ slak->m_next = XOBNEW (&robyn, struct m68k_incant);
i++;
}
else
while (mote_pseudo_table[n].poc_name)
{
- hack = obstack_alloc (&robyn, sizeof (struct m68k_incant));
+ hack = XOBNEW (&robyn, struct m68k_incant);
hash_insert (op_hash,
mote_pseudo_table[n].poc_name, (char *) hack);
hack->m_operands = 0;