Remove backup ppc struct dis_private.
authorAlan Modra <amodra@gmail.com>
Mon, 9 Dec 2019 12:27:15 +0000 (22:57 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 9 Dec 2019 22:32:05 +0000 (09:02 +1030)
commit6f0e0752309e3e3016a48db1672e3092c677020c
tree2bbb804e67b89f91c238fde3983558ecf466e096
parentf59f89789fc17166ee05491e5c430706c9b7c18e
Remove backup ppc struct dis_private.

ppc-dis.c used a global struct whenever malloc failed to provide the
eight bytes of memory necessary for struct dis_private.  Which is
quite ridiculous.  If that malloc failed there is zero chance some
other malloc won't fail too.

* ppc-dis.c (private): Delete variable.
(get_powerpc_dialect): Don't segfault on NULL info->private_data.
(powerpc_init_dialect): Don't use global private.
opcodes/ChangeLog
opcodes/ppc-dis.c
This page took 0.038442 seconds and 4 git commands to generate.