diff options
author | Alan Modra <amodra@gmail.com> | 2022-07-07 13:32:30 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-07-09 21:22:51 +0930 |
commit | af3d7ab74f0aff2eb2af68d0d1df2e27e5757ecd (patch) | |
tree | e37876fc4fd3989ca030a8ca183631258e1f177d /gas/subsegs.c | |
parent | f1307e43df8e1784416822e6dd67cb2f4215bc1f (diff) | |
download | gdb-af3d7ab74f0aff2eb2af68d0d1df2e27e5757ecd.zip gdb-af3d7ab74f0aff2eb2af68d0d1df2e27e5757ecd.tar.gz gdb-af3d7ab74f0aff2eb2af68d0d1df2e27e5757ecd.tar.bz2 |
gas: set up notes obstack earlier
So that the notes obstack can be used for persistent storage in
parse_args.
* as.c (parse_args): Use notes_alloc and notes_strdup.
(free_notes): New function.
(main): Init notes obstack, and arrange to be freed on exit.
* read.c (read_begin): Don't init notes obstack.
(read_end): Free cond_obstack.
* subsegs.c (subsegs_end): Don't free cond_obstack or notes.
Diffstat (limited to 'gas/subsegs.c')
-rw-r--r-- | gas/subsegs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gas/subsegs.c b/gas/subsegs.c index 1776511..b1a85d3 100644 --- a/gas/subsegs.c +++ b/gas/subsegs.c @@ -50,8 +50,6 @@ subsegs_end (struct obstack **obs) for (; *obs; obs++) _obstack_free (*obs, NULL); _obstack_free (&frchains, NULL); - _obstack_free (&cond_obstack, NULL); - _obstack_free (¬es, NULL); } static void |