]> gcc.gnu.org Git - gcc.git/commit
jit: New API entrypoint: gcc_jit_context_get_last_error
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 8 Jan 2015 21:52:35 +0000 (21:52 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Thu, 8 Jan 2015 21:52:35 +0000 (21:52 +0000)
commit303e1d56c6214940a633c2b8ea7da2d81c15bd4d
tree66af508dfe03e5522c875f84f66abfeeeabbcd9a
parent204a913bda3c3228723ea13e41c9dd831c362b33
jit: New API entrypoint: gcc_jit_context_get_last_error

gcc/jit/ChangeLog:
* docs/topics/contexts.rst (Error-handling): Document new
entrypoint gcc_jit_context_get_last_error.
* docs/_build/texinfo/libgccjit.texi: Regenerate.
* jit-recording.c (gcc::jit::recording::context::context):
Initialize new fields "m_last_error_str" and
"m_owns_last_error_str".
(gcc::jit::recording::context::~context): Clean up
m_last_error_str, if needed.
(gcc::jit::recording::context::add_error_va): Update
m_last_error_str and m_owns_last_error_str, freeing the old
value if appropriate.
(gcc::jit::recording::context::get_last_error): New function.
* jit-recording.h (gcc::jit::recording::context::get_last_error):
New function.
(gcc::jit::recording::context): New fields m_last_error_str and
m_owns_last_error_str.
* libgccjit.c (gcc_jit_context_get_last_error): New function.
* libgccjit.h (gcc_jit_context_get_last_error): New declaration.
* libgccjit.map (gcc_jit_context_get_last_error): New function.

gcc/testsuite/ChangeLog:
* jit.dg/test-error-block-in-wrong-function.c (verify_code):
Verify the result of gcc_jit_context_get_last_error.
* jit.dg/test-error-null-passed-to-api.c (verify_code): Likewise.

From-SVN: r219363
gcc/jit/ChangeLog
gcc/jit/docs/_build/texinfo/libgccjit.texi
gcc/jit/docs/topics/contexts.rst
gcc/jit/jit-recording.c
gcc/jit/jit-recording.h
gcc/jit/libgccjit.c
gcc/jit/libgccjit.h
gcc/jit/libgccjit.map
gcc/testsuite/ChangeLog
gcc/testsuite/jit.dg/test-error-block-in-wrong-function.c
gcc/testsuite/jit.dg/test-error-null-passed-to-api.c
This page took 0.067892 seconds and 5 git commands to generate.