aboutsummaryrefslogtreecommitdiffstats
path: root/src/comp.c
diff options
context:
space:
mode:
authorAndrea Corallo2019-11-17 19:25:21 +0100
committerAndrea Corallo2020-01-01 11:38:07 +0100
commit41e5c9400cd9eeeecff2262907c09c3b10a5cde7 (patch)
tree05a242c9f676cf3e860dca63fa6f3cb81c834f37 /src/comp.c
parent3850be836ec7223c895901dd21f2a4e429314b94 (diff)
downloademacs-41e5c9400cd9eeeecff2262907c09c3b10a5cde7.tar.gz
emacs-41e5c9400cd9eeeecff2262907c09c3b10a5cde7.zip
require advice when compiling or loading
Diffstat (limited to 'src/comp.c')
-rw-r--r--src/comp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/comp.c b/src/comp.c
index ad669a5dafb..251ba242d43 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -3052,6 +3052,8 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file,
3052{ 3052{
3053 CHECK_STRING (ctxtname); 3053 CHECK_STRING (ctxtname);
3054 3054
3055 Frequire (Qadvice, Qnil, Qnil);
3056
3055 gcc_jit_context_set_int_option (comp.ctxt, 3057 gcc_jit_context_set_int_option (comp.ctxt,
3056 GCC_JIT_INT_OPTION_OPTIMIZATION_LEVEL, 3058 GCC_JIT_INT_OPTION_OPTIMIZATION_LEVEL,
3057 SPEED); 3059 SPEED);
@@ -3327,6 +3329,8 @@ DEFUN ("native-elisp-load", Fnative_elisp_load, Snative_elisp_load, 1, 1, 0,
3327{ 3329{
3328 CHECK_STRING (file); 3330 CHECK_STRING (file);
3329 3331
3332 Frequire (Qadvice, Qnil, Qnil);
3333
3330 Vnative_load_history = Fcons (file, Vnative_load_history); 3334 Vnative_load_history = Fcons (file, Vnative_load_history);
3331 3335
3332 dynlib_handle_ptr handle = dynlib_open (SSDATA (file)); 3336 dynlib_handle_ptr handle = dynlib_open (SSDATA (file));
@@ -3395,6 +3399,7 @@ syms_of_comp (void)
3395 DEFSYM (Qcomp_unit_load_failed, "comp-unit-load-failed"); 3399 DEFSYM (Qcomp_unit_load_failed, "comp-unit-load-failed");
3396 /* Others. */ 3400 /* Others. */
3397 DEFSYM (Qfixnum, "fixnum"); 3401 DEFSYM (Qfixnum, "fixnum");
3402 DEFSYM (Qadvice, "advice");
3398 3403
3399 defsubr (&Scomp__init_ctxt); 3404 defsubr (&Scomp__init_ctxt);
3400 defsubr (&Scomp__release_ctxt); 3405 defsubr (&Scomp__release_ctxt);