diff options
| author | Andrea Corallo | 2020-06-18 23:14:06 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-06-22 00:15:36 +0200 |
| commit | 89b6f56de011fa45934800a60bf631fc99ef2a4c (patch) | |
| tree | fe708659180f3584f2eabfbd3ecb5fed843d3a30 | |
| parent | cfb871add49096f38c5a8ff0882a7e111943ee52 (diff) | |
| download | emacs-89b6f56de011fa45934800a60bf631fc99ef2a4c.tar.gz emacs-89b6f56de011fa45934800a60bf631fc99ef2a4c.zip | |
* src/comp.c (Fcomp__compile_ctxt_to_file): Confine gcc optim level in [0, 3].
| -rw-r--r-- | src/comp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp.c b/src/comp.c index 82a092ad356..7547a40019d 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -4032,7 +4032,8 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file, | |||
| 4032 | 4032 | ||
| 4033 | gcc_jit_context_set_int_option (comp.ctxt, | 4033 | gcc_jit_context_set_int_option (comp.ctxt, |
| 4034 | GCC_JIT_INT_OPTION_OPTIMIZATION_LEVEL, | 4034 | GCC_JIT_INT_OPTION_OPTIMIZATION_LEVEL, |
| 4035 | COMP_SPEED); | 4035 | COMP_SPEED < 0 ? 0 |
| 4036 | : (COMP_SPEED > 3 ? 3 : COMP_SPEED)); | ||
| 4036 | comp.d_default_idx = | 4037 | comp.d_default_idx = |
| 4037 | CALL1I (comp-data-container-idx, CALL1I (comp-ctxt-d-default, Vcomp_ctxt)); | 4038 | CALL1I (comp-data-container-idx, CALL1I (comp-ctxt-d-default, Vcomp_ctxt)); |
| 4038 | comp.d_impure_idx = | 4039 | comp.d_impure_idx = |