aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-07-05 10:52:17 +0930
committerAlan Modra <amodra@gmail.com>2022-07-09 21:21:56 +0930
commit714ccdeb998adb67cf4e7e8515e7e6f0aadf813a (patch)
treebc73992a091219158d465b45c78f8f0ea82c8ac4 /gas/read.c
parent825816f1cc401b4aa65df9eeaaa39cd657328716 (diff)
downloadgdb-714ccdeb998adb67cf4e7e8515e7e6f0aadf813a.zip
gdb-714ccdeb998adb67cf4e7e8515e7e6f0aadf813a.tar.gz
gdb-714ccdeb998adb67cf4e7e8515e7e6f0aadf813a.tar.bz2
read.c assign_symbol: use notes obstack for dummy listing frag
* read.c (assign_symbol): Use notes_calloc for dummy_frag.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/read.c b/gas/read.c
index 71bb30e..2f9a22a 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -3094,7 +3094,7 @@ assign_symbol (char *name, int mode)
if (listing & LISTING_SYMBOLS)
{
extern struct list_info_struct *listing_tail;
- fragS *dummy_frag = XCNEW (fragS);
+ fragS *dummy_frag = notes_calloc (1, sizeof (*dummy_frag));
dummy_frag->line = listing_tail;
dummy_frag->fr_symbol = symbolP;
symbol_set_frag (symbolP, dummy_frag);