Improvements to documentation of gcc_jit_context_release
commit97e241d3014d77e0fb21a5a6a08c9f00f8d37779
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Dec 2014 18:53:44 +0000 (1 18:53 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Dec 2014 18:53:44 +0000 (1 18:53 +0000)
tree56446588235a20b6aa0e37b8d938ae3c78c7421e
parentbdb742d0ce261a50cd51dbfb2a1adae61178748c
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218245 138bc75d-0d04-0410-961f-82ee72b054a4
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