diff options
| author | Andrea Corallo | 2019-06-24 10:05:22 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-01 11:33:45 +0100 |
| commit | 4577eeedf620a739a66e69204b40da8cdbbd77e0 (patch) | |
| tree | 1a46902f210d517d360de4b2b439eb524c86fbb9 /src/comp.c | |
| parent | fdc8de36c3b6c5c294bbf4be61f4239ac822aa11 (diff) | |
| download | emacs-4577eeedf620a739a66e69204b40da8cdbbd77e0.tar.gz emacs-4577eeedf620a739a66e69204b40da8cdbbd77e0.zip | |
better options
Diffstat (limited to 'src/comp.c')
| -rw-r--r-- | src/comp.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/comp.c b/src/comp.c index b4bcd511905..e1a7b25bb26 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -1206,9 +1206,6 @@ init_comp (int opt_level) | |||
| 1206 | logfile, | 1206 | logfile, |
| 1207 | 0, 0); | 1207 | 0, 0); |
| 1208 | gcc_jit_context_set_bool_option (comp.ctxt, | 1208 | gcc_jit_context_set_bool_option (comp.ctxt, |
| 1209 | GCC_JIT_BOOL_OPTION_DUMP_EVERYTHING, | ||
| 1210 | 1); | ||
| 1211 | gcc_jit_context_set_bool_option (comp.ctxt, | ||
| 1212 | GCC_JIT_BOOL_OPTION_KEEP_INTERMEDIATES, | 1209 | GCC_JIT_BOOL_OPTION_KEEP_INTERMEDIATES, |
| 1213 | 1); | 1210 | 1); |
| 1214 | } | 1211 | } |
| @@ -1217,6 +1214,9 @@ init_comp (int opt_level) | |||
| 1217 | gcc_jit_context_set_bool_option (comp.ctxt, | 1214 | gcc_jit_context_set_bool_option (comp.ctxt, |
| 1218 | GCC_JIT_BOOL_OPTION_DEBUGINFO, | 1215 | GCC_JIT_BOOL_OPTION_DEBUGINFO, |
| 1219 | 1); | 1216 | 1); |
| 1217 | gcc_jit_context_set_bool_option (comp.ctxt, | ||
| 1218 | GCC_JIT_BOOL_OPTION_DUMP_INITIAL_GIMPLE, | ||
| 1219 | 1); | ||
| 1220 | 1220 | ||
| 1221 | gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c"); | 1221 | gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c"); |
| 1222 | 1222 | ||
| @@ -1226,6 +1226,10 @@ init_comp (int opt_level) | |||
| 1226 | GCC_JIT_INT_OPTION_OPTIMIZATION_LEVEL, | 1226 | GCC_JIT_INT_OPTION_OPTIMIZATION_LEVEL, |
| 1227 | opt_level); | 1227 | opt_level); |
| 1228 | 1228 | ||
| 1229 | /* Do not inline within a compilation unit. */ | ||
| 1230 | gcc_jit_context_add_command_line_option (comp.ctxt, "-fno-inline"); | ||
| 1231 | |||
| 1232 | |||
| 1229 | comp.void_type = gcc_jit_context_get_type (comp.ctxt, GCC_JIT_TYPE_VOID); | 1233 | comp.void_type = gcc_jit_context_get_type (comp.ctxt, GCC_JIT_TYPE_VOID); |
| 1230 | comp.void_ptr_type = | 1234 | comp.void_ptr_type = |
| 1231 | gcc_jit_context_get_type (comp.ctxt, GCC_JIT_TYPE_VOID_PTR); | 1235 | gcc_jit_context_get_type (comp.ctxt, GCC_JIT_TYPE_VOID_PTR); |