PowerPC md_end: Don't htab_delete(NULL)
authorAlan Modra <amodra@gmail.com>
Tue, 12 Jul 2022 01:47:38 +0000 (11:17 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 12 Jul 2022 02:35:28 +0000 (12:05 +0930)
commita14413ddff3009418711b9f78a7d3dc7ac10dab0
tree613d7d43eb298cea83cf8dab3aeb4c35558cf203
parent35c5dcc666082f0edf6dd559e46b98d0e7986a2e
PowerPC md_end: Don't htab_delete(NULL)

It might be possible to hit md_end before md_begin is called, don't
segfault if so.  Also, remove a useless check.

* gas/config/tc-ppc.c (insn_calloc): Remove needless overflow
check.
(ppc_md_end): Check ppc_hash before deleting.  Clear ppc_hash.
gas/config/tc-ppc.c