aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-07-05 11:38:46 +0930
committerAlan Modra <amodra@gmail.com>2022-07-09 21:22:03 +0930
commit951e757db69b4a6ee578f2a66075d68bf26a7ed5 (patch)
tree1271257d41d8c95f98f6fee0818d0371e489f492
parent714ccdeb998adb67cf4e7e8515e7e6f0aadf813a (diff)
downloadgdb-951e757db69b4a6ee578f2a66075d68bf26a7ed5.zip
gdb-951e757db69b4a6ee578f2a66075d68bf26a7ed5.tar.gz
gdb-951e757db69b4a6ee578f2a66075d68bf26a7ed5.tar.bz2
expr.c make_expr_symbol: use notes obstack
* expr.c (make_expr_symbol): Use notes_alloc.
-rw-r--r--gas/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/expr.c b/gas/expr.c
index 6ad8bee..f4ea247 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -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;