diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-12-01 17:40:03 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-12-01 17:40:03 +0000 |
commit | 52b9468f1575b87e490cc3fdcff4c51f25fb49c1 (patch) | |
tree | f16b19ca2feb631733943e067ce5d2a3f52f9b23 /gcc/combine.c | |
parent | 33b625ed6060fea016d99cf268cc68287a93ca0c (diff) | |
download | gcc-52b9468f1575b87e490cc3fdcff4c51f25fb49c1.zip gcc-52b9468f1575b87e490cc3fdcff4c51f25fb49c1.tar.gz gcc-52b9468f1575b87e490cc3fdcff4c51f25fb49c1.tar.bz2 |
PR jit/63854: Fix leaks in toyvm.c
gcc/jit/ChangeLog:
PR jit/63854
* docs/examples/tut04-toyvm/toyvm.c
(toyvm_compiled_function): New typedef.
(toyvm_compiled_func) Rename to...
(toyvm_compiled_code) ...this.
(struct toyvm_compiled_function): New struct.
(toyvm_function_compile): Return a toyvm_compiled_function *
rather than a toyvm_compiled_func, so that the caller can fully
clean things up. Free "funcname".
(test_script): Update for change to toyvm_function_compile.
Clean up the toyvm_compiled_function.
(main): Likewise.
(docs/intro/tutorial04.rst): Update to reflect the above changes,
and to better spell out the lifetime of the compiled code.
From-SVN: r218234
Diffstat (limited to 'gcc/combine.c')
0 files changed, 0 insertions, 0 deletions