expr.c make_expr_symbol: use notes obstack
authorAlan Modra <amodra@gmail.com>
Tue, 5 Jul 2022 02:08:46 +0000 (11:38 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 9 Jul 2022 11:52:03 +0000 (21:22 +0930)
* expr.c (make_expr_symbol): Use notes_alloc.

gas/expr.c

index 6ad8bee2733cc44aa8cb4f6d72b70292392a42c9..f4ea24717dff6dfe0f293fe92179134e497e2993 100644 (file)
@@ -97,7 +97,7 @@ make_expr_symbol (expressionS *expressionP)
   if (expressionP->X_op == O_constant)
     resolve_symbol_value (symbolP);
 
-  n = XNEW (struct expr_symbol_line);
+  n = notes_alloc (sizeof (*n));
   n->sym = symbolP;
   n->file = as_where (&n->line);
   n->next = expr_symbol_lines;