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-bfin.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-bfin.c')
-rw-r--r-- | gas/config/tc-bfin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c index e14fbe1..c7b9d8d 100644 --- a/gas/config/tc-bfin.c +++ b/gas/config/tc-bfin.c @@ -937,7 +937,7 @@ note_reloc2 (INSTR_T code, const char *symbol, int reloc, int value, int pcrel) 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; |