aboutsummaryrefslogtreecommitdiffstats
path: root/src/comp.c
diff options
context:
space:
mode:
authorGerd Möllmann2024-05-09 10:58:12 +0200
committerGerd Möllmann2024-05-09 11:23:38 +0200
commite59fc12d9c24422dca7b7790ff692bea1658d3b6 (patch)
tree9d4874ccebfa32aaf39d7d0b95679875805ca513 /src/comp.c
parent567cd38a72f1d3145d19a92b4661b0b527e484b7 (diff)
downloademacs-e59fc12d9c24422dca7b7790ff692bea1658d3b6.tar.gz
emacs-e59fc12d9c24422dca7b7790ff692bea1658d3b6.zip
Register dumped CUs with igc
Diffstat (limited to 'src/comp.c')
-rw-r--r--src/comp.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/comp.c b/src/comp.c
index 1cde13f5ec0..7f62fc7ba86 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -21,6 +21,9 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
21#include <config.h> 21#include <config.h>
22 22
23#include "lisp.h" 23#include "lisp.h"
24#include "igc.h"
25#include "comp.h"
26#include "pdumper.h"
24 27
25#ifdef HAVE_NATIVE_COMP 28#ifdef HAVE_NATIVE_COMP
26 29
@@ -5152,8 +5155,12 @@ eln_load_path_final_clean_up (void)
5152static void 5155static void
5153register_native_comp_unit (Lisp_Object comp_u) 5156register_native_comp_unit (Lisp_Object comp_u)
5154{ 5157{
5155 Fputhash ( 5158 Fputhash (XNATIVE_COMP_UNIT (comp_u)->file, comp_u,
5156 XNATIVE_COMP_UNIT (comp_u)->file, comp_u, Vcomp_loaded_comp_units_h); 5159 Vcomp_loaded_comp_units_h);
5160# ifdef HAVE_MPS
5161 if (pdumper_object_p (XNATIVE_COMP_UNIT (comp_u)))
5162 igc_register_cu (comp_u);
5163#endif
5157} 5164}
5158 5165
5159 5166