projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
714ccde
)
expr.c make_expr_symbol: use notes obstack
author
Alan Modra
<amodra@gmail.com>
Tue, 5 Jul 2022 02:08:46 +0000
(11:38 +0930)
committer
Alan 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
patch
|
blob
|
history
diff --git
a/gas/expr.c
b/gas/expr.c
index 6ad8bee2733cc44aa8cb4f6d72b70292392a42c9..f4ea24717dff6dfe0f293fe92179134e497e2993 100644
(file)
--- 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;