ns32k: use XOBNEW in another spot
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Sun, 29 May 2016 05:04:15 +0000 (01:04 -0400)
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>
Thu, 2 Jun 2016 01:18:20 +0000 (21:18 -0400)
gas/ChangeLog:

2016-06-01  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>

* config/tc-ns32k.c (bit_fix_new): Replace obstack-alloc with XOBNEW
macro.

gas/ChangeLog
gas/config/tc-ns32k.c

index ece6e4acdd6230ed6ee23f4caf8f0b6e002f999e..0dcdcef37da52ec70ee3334f74f0fcbc3f642a91 100644 (file)
@@ -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
index 86a1de77ebbec1b3cf41403c0f3f9dc8eb516503..3c84ac228fa164db78f70bd3fe077f9e3ae65993 100644 (file)
@@ -878,7 +878,7 @@ bit_fix_new (int size,              /* Length of bitfield.  */
 {
   bit_fixS *bit_fixP;
 
-  bit_fixP = obstack_alloc (&notes, sizeof (bit_fixS));
+  bit_fixP = XOBNEW (&notes, bit_fixS);
 
   bit_fixP->fx_bit_size = size;
   bit_fixP->fx_bit_offset = offset;