This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[jit] Fix accidental removal of GCC_JIT_BOOL_OPTION_DUMP_GENERATED_CODE


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]