aboutsummaryrefslogtreecommitdiff
path: root/gcc/jit
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@gcc.gnu.org>2014-12-09 19:03:19 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-12-09 19:03:19 +0000
commit82e0c914997afeaa6be4e3d9c42446b505c7043b (patch)
tree9b8bae9433d1a245038c23b59168c7bfe1e7ee17 /gcc/jit
parent38771e4e1fdacfbdac5a14e50fcc0538577b1bdb (diff)
downloadgcc-82e0c914997afeaa6be4e3d9c42446b505c7043b.zip
gcc-82e0c914997afeaa6be4e3d9c42446b505c7043b.tar.gz
gcc-82e0c914997afeaa6be4e3d9c42446b505c7043b.tar.bz2
Fix bogus ChangeLog entry from r218521
In r218521 I erroneously added the entries meant for gcc/jit/ChangeLog to gcc/ChangeLog instead. Move them to the correct ChangeLog file. Sorry for the noise. From-SVN: r218529
Diffstat (limited to 'gcc/jit')
-rw-r--r--gcc/jit/ChangeLog42
1 files changed, 42 insertions, 0 deletions
diff --git a/gcc/jit/ChangeLog b/gcc/jit/ChangeLog
index 6acd50b..d69571d 100644
--- a/gcc/jit/ChangeLog
+++ b/gcc/jit/ChangeLog
@@ -25,6 +25,48 @@
* jit-playback.h (gcc::jit::playback::context::dlopen_built_dso):
New function.
+2014-12-09 David Malcolm <dmalcolm@redhat.com>
+
+ PR jit/64166
+ * docs/topics/contexts.rst (Debugging): Add description of
+ gcc_jit_context_enable_dump.
+ * docs/_build/texinfo/libgccjit.texi: Regenerate.
+ * jit-playback.c: Include context.h.
+ (class auto_argvec): New class.
+ (auto_argvec::~auto_argvec): New function.
+ (gcc::jit::playback::context::compile): Convert fake_args to be
+ an auto_argvec, so that it can contain dynamically-allocated
+ strings. Construct a vec of all requested dumps, and pass it to
+ make_fake_args. Extract requested dumps between the calls to
+ toplev::main and toplev::finalize.
+ (gcc::jit::playback::context::make_fake_args): Convert param
+ "argvec" to be a vec <char *>, and gain a "requested_dumps"
+ param. Convert to dynamically-allocated arg strings by converting
+ ADD_ARG to take a copy of the arg, and add ADD_ARG_TAKE_OWNERSHIP
+ for args that are already a copy. Add args for all requested dumps.
+ (gcc::jit::playback::context::extract_any_requested_dumps): New
+ function.
+ (gcc::jit::playback::context::read_dump_file): New function.
+ * jit-playback.h (gcc::jit::playback::context::make_fake_args):
+ Convert param "argvec" to be a vec <char *>, and gain a
+ "requested_dumps" param.
+ (gcc::jit::playback::context::extract_any_requested_dumps): New
+ function.
+ (gcc::jit::playback::context::read_dump_file): New function.
+ * jit-recording.c (gcc::jit::recording::context::enable_dump): New
+ function.
+ (gcc::jit::recording::context::get_all_requested_dumps): New
+ function.
+ * jit-recording.h (gcc::jit::recording::requested_dump): New
+ struct.
+ (gcc::jit::recording::context::enable_dump): New function.
+ (gcc::jit::recording::context::get_all_requested_dumps): New
+ function.
+ (gcc::jit::recording::context::m_requested_dumps): New field.
+ * libgccjit.c (gcc_jit_context_enable_dump): New API entrypoint.
+ * libgccjit.h (gcc_jit_context_enable_dump): New API entrypoint.
+ * libgccjit.map (gcc_jit_context_enable_dump): New API entrypoint.
+
2014-12-08 David Malcolm <dmalcolm@redhat.com>
* libgccjit++.h: Indent the forward declarations of the classes to