gas: set up notes obstack earlier
authorAlan Modra <amodra@gmail.com>
Thu, 7 Jul 2022 04:02:30 +0000 (13:32 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 9 Jul 2022 11:52:51 +0000 (21:22 +0930)
commitaf3d7ab74f0aff2eb2af68d0d1df2e27e5757ecd
treee37876fc4fd3989ca030a8ca183631258e1f177d
parentf1307e43df8e1784416822e6dd67cb2f4215bc1f
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.
gas/as.c
gas/read.c
gas/subsegs.c