diff options
author | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-03-28 04:57:40 -0400 |
---|---|---|
committer | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-03-29 07:33:25 -0400 |
commit | aff7ae12a660fc3c7269530eadcb06e2db06a240 (patch) | |
tree | 17e730263447a1915464bc963be886064b0ee77f /gas/config/tc-m68k.c | |
parent | ef0d8ffc45aa32ed1e49051a344fa6c8cff583f4 (diff) | |
download | gdb-aff7ae12a660fc3c7269530eadcb06e2db06a240.zip gdb-aff7ae12a660fc3c7269530eadcb06e2db06a240.tar.gz gdb-aff7ae12a660fc3c7269530eadcb06e2db06a240.tar.bz2 |
replace some obstack_alloc () calls with the XOBNEW wrapper
gas/ChangeLog:
2016-03-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-bfin.c (gencode): Use XOBNEW obstack_alloc () wrapper.
* config/tc-hppa.c (fix_new_hppa): Likewise.
(pa_vtable_entry): Likewise.
(pa_vtable_inherit): Likewise.
* config/tc-m68k.c (md_begin): Likewise.
Diffstat (limited to 'gas/config/tc-m68k.c')
-rw-r--r-- | gas/config/tc-m68k.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index bd6eac6..8d5a8d7 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -4615,7 +4615,7 @@ md_begin (void) 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]; @@ -4645,7 +4645,7 @@ md_begin (void) 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 @@ -4762,7 +4762,7 @@ md_begin (void) 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; |