Commit dc44ee3a by David Malcolm Committed by David Malcolm

Fix gcc_jit_context_get_last_error docs

gcc/jit/ChangeLog:
	* 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.
	* 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.

From-SVN: r220145
parent 48e4f473
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
* config-lang.in (compilers): Drop "libgccjit.so".
......
......@@ -19,7 +19,7 @@
@copying
@quotation
libgccjit 5.0.0 (experimental 20150120), January 19, 2015
libgccjit 5.0.0 (experimental 20150126), January 26, 2015
David Malcolm
......@@ -5049,10 +5049,10 @@ occurred on the context, so that you can embed this in an exception:
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
......@@ -7509,7 +7509,7 @@ with it.
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)
......
......@@ -45,7 +45,7 @@ In-memory compilation
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,\
......
......@@ -146,11 +146,11 @@ occurred on the context, so that you can embed this in an exception:
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
---------
......
......@@ -305,7 +305,7 @@ gcc_jit_context_set_logfile (gcc_jit_context *ctxt,
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
......@@ -315,13 +315,13 @@ gcc_jit_context_set_logfile (gcc_jit_context *ctxt,
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment