This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[jit] Show source locations (if any) in gimple dump
- From: David Malcolm <dmalcolm at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, jit at gcc dot gnu dot org
- Cc: David Malcolm <dmalcolm at redhat dot com>
- Date: Mon, 21 Oct 2013 14:31:10 -0400
- Subject: [jit] Show source locations (if any) in gimple dump
- Authentication-results: sourceware.org; auth=none
Committed to dmalcolm/jit:
gcc/jit/
* internal-api.c (gcc::jit::context::postprocess): Show source
line numbers (if any) in gimple dump.
---
gcc/jit/ChangeLog.jit | 5 +++++
gcc/jit/internal-api.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gcc/jit/ChangeLog.jit b/gcc/jit/ChangeLog.jit
index df08834..adf273b 100644
--- a/gcc/jit/ChangeLog.jit
+++ b/gcc/jit/ChangeLog.jit
@@ -1,5 +1,10 @@
2013-10-21 David Malcolm <dmalcolm@redhat.com>
+ * internal-api.c (gcc::jit::context::postprocess): Show source
+ line numbers (if any) in gimple dump.
+
+2013-10-21 David Malcolm <dmalcolm@redhat.com>
+
* libgccjit.c (gcc_jit_function_new_local): Use a more clear
error message for the case where someone tries to add a local
to a function imported from elsewhere.
diff --git a/gcc/jit/internal-api.c b/gcc/jit/internal-api.c
index 8f84e14..8bb6741 100644
--- a/gcc/jit/internal-api.c
+++ b/gcc/jit/internal-api.c
@@ -864,7 +864,7 @@ postprocess ()
current_function_decl = m_inner_fndecl;
if (m_ctxt->get_bool_option (GCC_JIT_BOOL_OPTION_DUMP_INITIAL_GIMPLE))
- dump_function_to_file (m_inner_fndecl, stderr, TDF_VOPS|TDF_MEMSYMS);
+ dump_function_to_file (m_inner_fndecl, stderr, TDF_VOPS|TDF_MEMSYMS|TDF_LINENO);
//debug_tree (m_inner_fndecl);
//printf("about to add to cgraph\n");
--
1.7.11.7