ppc gas: don't leak ppc_hash memory
authorAlan Modra <amodra@gmail.com>
Thu, 7 Jul 2022 12:33:15 +0000 (22:03 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 9 Jul 2022 12:04:10 +0000 (21:34 +0930)
commita887be69963c40ced36e319e5fb14b3de4b6658b
tree4d9c7013acab4fb409bb061cf173f28cab7c6b5e
parent1309c3165cc0751f5c4657e0e0ac4335640f2f03
ppc gas: don't leak ppc_hash memory

* config/tc-ppc.c (insn_obstack): New.
(insn_calloc): New function.
(ppc_setup_opcodes): Use insn_obstack for ppc_hash.
(ppc_md_end): New function.
* config/tc-ppc.h (ppc_md_end): Declare
(md_end): Define.
gas/config/tc-ppc.c
gas/config/tc-ppc.h