diff options
author | Alan Modra <amodra@gmail.com> | 2022-07-05 10:52:17 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-07-09 21:21:56 +0930 |
commit | 714ccdeb998adb67cf4e7e8515e7e6f0aadf813a (patch) | |
tree | bc73992a091219158d465b45c78f8f0ea82c8ac4 | |
parent | 825816f1cc401b4aa65df9eeaaa39cd657328716 (diff) | |
download | gdb-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.
-rw-r--r-- | gas/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |