]> git.eshelyaron.com Git - emacs.git/commitdiff
better options
authorAndrea Corallo <andrea_corallo@yahoo.it>
Mon, 24 Jun 2019 08:05:22 +0000 (10:05 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:33:45 +0000 (11:33 +0100)
src/comp.c

index b4bcd511905c24fc7429bf916bb2861d7cb840f4..e1a7b25bb26c5a42632573ea7455863c682b1219 100644 (file)
@@ -1205,9 +1205,6 @@ init_comp (int opt_level)
       gcc_jit_context_set_logfile (comp.ctxt,
                                   logfile,
                                   0, 0);
-      gcc_jit_context_set_bool_option (comp.ctxt,
-                                      GCC_JIT_BOOL_OPTION_DUMP_EVERYTHING,
-                                      1);
       gcc_jit_context_set_bool_option (comp.ctxt,
                                       GCC_JIT_BOOL_OPTION_KEEP_INTERMEDIATES,
                                       1);
@@ -1217,6 +1214,9 @@ init_comp (int opt_level)
       gcc_jit_context_set_bool_option (comp.ctxt,
                                       GCC_JIT_BOOL_OPTION_DEBUGINFO,
                                       1);
+      gcc_jit_context_set_bool_option (comp.ctxt,
+                                      GCC_JIT_BOOL_OPTION_DUMP_INITIAL_GIMPLE,
+                                      1);
 
       gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c");
 
@@ -1226,6 +1226,10 @@ init_comp (int opt_level)
                                  GCC_JIT_INT_OPTION_OPTIMIZATION_LEVEL,
                                  opt_level);
 
+  /* Do not inline within a compilation unit.  */
+  gcc_jit_context_add_command_line_option (comp.ctxt, "-fno-inline");
+
+
   comp.void_type = gcc_jit_context_get_type (comp.ctxt, GCC_JIT_TYPE_VOID);
   comp.void_ptr_type =
     gcc_jit_context_get_type (comp.ctxt, GCC_JIT_TYPE_VOID_PTR);