diff options
author | Andrea Corallo <akrl@sdf.org> | 2020-06-18 23:14:06 +0200 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-06-22 00:15:36 +0200 |
commit | 89b6f56de011fa45934800a60bf631fc99ef2a4c (patch) | |
tree | fe708659180f3584f2eabfbd3ecb5fed843d3a30 /src/comp.c | |
parent | cfb871add49096f38c5a8ff0882a7e111943ee52 (diff) | |
download | emacs-89b6f56de011fa45934800a60bf631fc99ef2a4c.tar.gz emacs-89b6f56de011fa45934800a60bf631fc99ef2a4c.tar.bz2 emacs-89b6f56de011fa45934800a60bf631fc99ef2a4c.zip |
* src/comp.c (Fcomp__compile_ctxt_to_file): Confine gcc optim level in [0, 3].
Diffstat (limited to 'src/comp.c')
-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, gcc_jit_context_set_int_option (comp.ctxt, GCC_JIT_INT_OPTION_OPTIMIZATION_LEVEL, - COMP_SPEED); + COMP_SPEED < 0 ? 0 + : (COMP_SPEED > 3 ? 3 : COMP_SPEED)); comp.d_default_idx = CALL1I (comp-data-container-idx, CALL1I (comp-ctxt-d-default, Vcomp_ctxt)); comp.d_impure_idx = |