Improvements to documentation of gcc_jit_context_release
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 1 Dec 2014 18:53:44 +0000 (18:53 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 1 Dec 2014 18:53:44 +0000 (18:53 +0000)
commit81ba15f10524cc46bf2afbe4fc07f783315c6d94
tree56446588235a20b6aa0e37b8d938ae3c78c7421e
parentad1f2178c1843170c80c027f62594dba3c600d69
Improvements to documentation of gcc_jit_context_release

gcc/jit/ChangeLog:
* docs/examples/tut02-square.c (main): Release the context
earlier, to show that this is possible.  Update error-handling
to avoid a double-release of the context, and to avoid
releasing a NULL result.
* docs/intro/tutorial02.rst: Discuss gcc_jit_context_release.
* docs/topics/functions.rst (GCC_JIT_FUNCTION_EXPORTED): Emphasize
* docs/topics/results.rst (gcc_jit_result): Mention that this
controls the lifetimes of machine code functions.
(gcc_jit_result_get_code): Spell out the requirements for this
to succeed, and the lifetime of the result.
(gcc_jit_result_release): Mention that this invalidates any code
that was obtained from the result.
* docs/_build/texinfo/libgccjit.texi: Regenerate.

From-SVN: r218245
gcc/jit/ChangeLog
gcc/jit/docs/_build/texinfo/libgccjit.texi
gcc/jit/docs/examples/tut02-square.c
gcc/jit/docs/intro/tutorial02.rst
gcc/jit/docs/topics/functions.rst
gcc/jit/docs/topics/results.rst