| commit | af3d7ab74f0aff2eb2af68d0d1df2e27e5757ecd | [log] [tgz] |
|---|---|---|
| author | Alan Modra <amodra@gmail.com> | Thu Jul 07 13:32:30 2022 +0930 |
| committer | Alan Modra <amodra@gmail.com> | Sat Jul 09 21:22:51 2022 +0930 |
| tree | e37876fc4fd3989ca030a8ca183631258e1f177d | |
| parent | f1307e43df8e1784416822e6dd67cb2f4215bc1f [diff] |
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.