emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/igc 9b991a95437 2/2: ; src/comp.c (load_comp_unit): Always initi


From: Pip Cet
Subject: feature/igc 9b991a95437 2/2: ; src/comp.c (load_comp_unit): Always initialize 'data_relocs'.
Date: Sat, 1 Feb 2025 12:02:48 -0500 (EST)

branch: feature/igc
commit 9b991a9543778a67a756651407aa65ada7161d35
Author: Pip Cet <pipcet@protonmail.com>
Commit: Pip Cet <pipcet@protonmail.com>

    ; src/comp.c (load_comp_unit): Always initialize 'data_relocs'.
---
 src/comp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/comp.c b/src/comp.c
index 6a4a224fb34..f7f5f8e19b8 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -5294,8 +5294,8 @@ load_comp_unit (struct Lisp_Native_Comp_Unit *comp_u, 
bool loading_dump,
 
   /* Always set data_imp_relocs pointer in the compilation unit (in can be
      used in 'dump_do_dump_relocation').  */
-#ifdef HAVE_MPS
   comp_u->data_relocs = dynlib_sym (handle, DATA_RELOC_SYM);
+#ifdef HAVE_MPS
   comp_u->comp_unit = dynlib_sym (handle, COMP_UNIT_SYM);
   comp_u->comp_unit_root = igc_root_create_n (saved_cu, 1);
 #endif



reply via email to

[Prev in Thread] Current Thread [Next in Thread]