aboutsummaryrefslogtreecommitdiff
path: root/gcc/jit/ChangeLog
diff options
context:
space:
mode:
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-08 21:52:35 +0000
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-08 21:52:35 +0000
commitb56bc4a2be2fb0becf97e9d0fd1d3d264f3e79fd (patch)
tree66af508dfe03e5522c875f84f66abfeeeabbcd9a /gcc/jit/ChangeLog
parent150a0f7d775af5857ea6123d4f8b8223e5c636df (diff)
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219363 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jit/ChangeLog')
-rw-r--r--gcc/jit/ChangeLog22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/jit/ChangeLog b/gcc/jit/ChangeLog
index 670f6a2c3fb..b1af4f53deb 100644
--- a/gcc/jit/ChangeLog
+++ b/gcc/jit/ChangeLog
@@ -1,5 +1,27 @@
2015-01-08 David Malcolm <dmalcolm@redhat.com>
+ * 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.
+
+2015-01-08 David Malcolm <dmalcolm@redhat.com>
+
* Make-lang.in (jit_OBJS): Add jit/jit-logging.o.
* docs/internals/index.rst (Overview of code structure): Mention
gcc_jit_context_set_logfile, and embed the example logfile.