aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-hppa.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-03-28 04:57:40 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-03-29 07:33:25 -0400
commitaff7ae12a660fc3c7269530eadcb06e2db06a240 (patch)
tree17e730263447a1915464bc963be886064b0ee77f /gas/config/tc-hppa.c
parentef0d8ffc45aa32ed1e49051a344fa6c8cff583f4 (diff)
downloadgdb-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-hppa.c')
-rw-r--r--gas/config/tc-hppa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index c3e1d75..bd2357e 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -1194,7 +1194,7 @@ fix_new_hppa (fragS *frag,
int unwind_bits ATTRIBUTE_UNUSED)
{
fixS *new_fix;
- struct hppa_fix_struct *hppa_fix = obstack_alloc (&notes, sizeof (struct hppa_fix_struct));
+ struct hppa_fix_struct *hppa_fix = XOBNEW (&notes, struct hppa_fix_struct);
if (exp != NULL)
new_fix = fix_new_exp (frag, where, size, exp, pcrel, r_type);
@@ -8556,7 +8556,7 @@ pa_vtable_entry (int ignore ATTRIBUTE_UNUSED)
if (new_fix)
{
- struct hppa_fix_struct * hppa_fix = obstack_alloc (&notes, sizeof (struct hppa_fix_struct));
+ struct hppa_fix_struct * hppa_fix = XOBNEW (&notes, struct hppa_fix_struct);
hppa_fix->fx_r_type = R_HPPA;
hppa_fix->fx_r_field = e_fsel;
@@ -8577,7 +8577,7 @@ pa_vtable_inherit (int ignore ATTRIBUTE_UNUSED)
if (new_fix)
{
- struct hppa_fix_struct * hppa_fix = obstack_alloc (&notes, sizeof (struct hppa_fix_struct));
+ struct hppa_fix_struct * hppa_fix = XOBNEW (&notes, struct hppa_fix_struct);
hppa_fix->fx_r_type = R_HPPA;
hppa_fix->fx_r_field = e_fsel;