diff options
author | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-05-29 01:04:15 -0400 |
---|---|---|
committer | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-06-01 21:18:20 -0400 |
commit | 5e429f4cdcf2e0bf12309c843ffb3b2619bcb287 (patch) | |
tree | ea4355ab3d675c0c7f946ce789b8d1fd425fe6fb | |
parent | 65ce606bc4e69aee57c5624c855b718f71daacf7 (diff) | |
download | gdb-5e429f4cdcf2e0bf12309c843ffb3b2619bcb287.zip gdb-5e429f4cdcf2e0bf12309c843ffb3b2619bcb287.tar.gz gdb-5e429f4cdcf2e0bf12309c843ffb3b2619bcb287.tar.bz2 |
ns32k: use XOBNEW in another spot
gas/ChangeLog:
2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-ns32k.c (bit_fix_new): Replace obstack-alloc with XOBNEW
macro.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-ns32k.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index ece6e4a..0dcdcef 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> + + * config/tc-ns32k.c (bit_fix_new): Replace obstack-alloc with XOBNEW + macro. + 2016-06-01 Graham Markall <graham.markall@embecosm.com> * testsuite/gas/arc/nps-400-1.s: Add rflt variants with diff --git a/gas/config/tc-ns32k.c b/gas/config/tc-ns32k.c index 86a1de7..3c84ac2 100644 --- a/gas/config/tc-ns32k.c +++ b/gas/config/tc-ns32k.c @@ -878,7 +878,7 @@ bit_fix_new (int size, /* Length of bitfield. */ { bit_fixS *bit_fixP; - bit_fixP = obstack_alloc (¬es, sizeof (bit_fixS)); + bit_fixP = XOBNEW (¬es, bit_fixS); bit_fixP->fx_bit_size = size; bit_fixP->fx_bit_offset = offset; |