+2015-01-26 David Malcolm <dmalcolm@redhat.com>
+
+ * docs/topics/compilation.rst (gcc_jit_result_get_code): Fix typo.
+ * docs/topics/contexts.rst (gcc_jit_context_get_last_error): The
+ error buffer is only valid until the next call to the context.
+ * docs/_build/texinfo/libgccjit.texi: Regenerate.
+ * libgccjit.h (gcc_jit_context_get_first_error): Reword the
+ comment to omit mention of compiling.
+ (gcc_jit_context_get_last_error): The error buffer is only valid
+ until the next call to the context.
+
2015-01-26 David Malcolm <dmalcolm@redhat.com>
PR jit/64708
@copying
@quotation
-libgccjit 5.0.0 (experimental 20150120), January 19, 2015
+libgccjit 5.0.0 (experimental 20150126), January 26, 2015
David Malcolm
Returns the last error message that occurred on the context.
-The returned string is valid for the rest of the lifetime of the
-context.
-
If no errors occurred, this will be NULL.
+
+If non-NULL, the returned string is only guaranteed to be valid until
+the next call to libgccjit relating to this context.
@end deffn
@node Debugging,Options<2>,Error-handling<2>,Compilation contexts
A @cite{gcc_jit_result} encapsulates the result of compiling a context
in-memory, and the lifetimes of any machine code functions or globals
-that are within the resuilt.
+that are within the result.
@end deffn
@geindex gcc_jit_result_get_code (C function)
A `gcc_jit_result` encapsulates the result of compiling a context
in-memory, and the lifetimes of any machine code functions or globals
- that are within the resuilt.
+ that are within the result.
.. function:: void *\
gcc_jit_result_get_code (gcc_jit_result *result,\
Returns the last error message that occurred on the context.
- The returned string is valid for the rest of the lifetime of the
- context.
-
If no errors occurred, this will be NULL.
+ If non-NULL, the returned string is only guaranteed to be valid until
+ the next call to libgccjit relating to this context.
+
Debugging
---------
int flags,
int verbosity);
-/* To be called after a compile, this gives the first error message
+/* To be called after any API call, this gives the first error message
that occurred on the context.
The returned string is valid for the rest of the lifetime of the
extern const char *
gcc_jit_context_get_first_error (gcc_jit_context *ctxt);
-/* To be called after a compile, this gives the last error message
+/* To be called after any API call, this gives the last error message
that occurred on the context.
- The returned string is valid for the rest of the lifetime of the
- context.
+ If no errors occurred, this will be NULL.
- If no errors occurred, this will be NULL. */
+ If non-NULL, the returned string is only guaranteed to be valid until
+ the next call to libgccjit relating to this context. */
extern const char *
gcc_jit_context_get_last_error (gcc_jit_context *ctxt);