This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] ns32k: use XOBNEW in another spot
- From: tbsaunde+binutils at tbsaunde dot org
- To: binutils at sourceware dot org
- Cc: Trevor Saunders <tbsaunde+binutils at tbsaunde dot org>
- Date: Tue, 31 May 2016 07:49:11 -0400
- Subject: [PATCH] ns32k: use XOBNEW in another spot
- Authentication-results: sourceware.org; auth=none
From: Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
Hi,
built and regtested ns32k-netbsd, ok?
Trev
gas/ChangeLog:
2016-05-31 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-ns32k.c (bit_fix_new): Replace obstack-alloc with XOBNEW
macro.
---
gas/config/tc-ns32k.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.7.4