This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[jit] Fix accidental removal of GCC_JIT_BOOL_OPTION_DUMP_GENERATED_CODE
- From: David Malcolm <dmalcolm at redhat dot com>
- To: jit at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Cc: David Malcolm <dmalcolm at redhat dot com>
- Date: Mon, 27 Jan 2014 16:06:08 -0500
- Subject: [jit] Fix accidental removal of GCC_JIT_BOOL_OPTION_DUMP_GENERATED_CODE
- Authentication-results: sourceware.org; auth=none
Committed to dmalcolm/jit:
gcc/jit/
* internal-api.c (gcc::jit::playback::context::compile): Removal
of the code-creation callback (96b218c9a1d5f39fb649e02c0e77586b180e8516)
accidentally removed the implementation of
GCC_JIT_BOOL_OPTION_DUMP_GENERATED_CODE; reinstate it.
---
gcc/jit/ChangeLog.jit | 7 +++++++
gcc/jit/internal-api.c | 3 +++
2 files changed, 10 insertions(+)
diff --git a/gcc/jit/ChangeLog.jit b/gcc/jit/ChangeLog.jit
index 3e8d2d3..5e5f89f 100644
--- a/gcc/jit/ChangeLog.jit
+++ b/gcc/jit/ChangeLog.jit
@@ -1,5 +1,12 @@
2014-01-27 David Malcolm <dmalcolm@redhat.com>
+ * internal-api.c (gcc::jit::playback::context::compile): Removal
+ of the code-creation callback (96b218c9a1d5f39fb649e02c0e77586b180e8516)
+ accidentally removed the implementation of
+ GCC_JIT_BOOL_OPTION_DUMP_GENERATED_CODE; reinstate it.
+
+2014-01-27 David Malcolm <dmalcolm@redhat.com>
+
* libgccjit.h (enum gcc_jit_binary_op): Remove
GCC_JIT_BINARY_OP_FLOATING_DIVIDE, which I accidentally added
as part of a880c0d9c642730550f39d328f29a1d9935cb07e.
diff --git a/gcc/jit/internal-api.c b/gcc/jit/internal-api.c
index cf9195d0..09b4415 100644
--- a/gcc/jit/internal-api.c
+++ b/gcc/jit/internal-api.c
@@ -2216,6 +2216,9 @@ compile ()
return NULL;
}
+ if (get_bool_option (GCC_JIT_BOOL_OPTION_DUMP_GENERATED_CODE))
+ dump_generated_code ();
+
timevar_push (TV_ASSEMBLE);
/* Gross hacks follow:
--
1.7.11.7