Skip to content

Commit

Permalink
flambda-backend: Minor fixes for runtime4/
Browse files Browse the repository at this point in the history
  • Loading branch information
mshinwell committed Nov 2, 2023
1 parent 80059c6 commit b09ffe3
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,6 @@ runtime_COMMON_C_SOURCES = \
signals \
simd \
skiplist \
stacks \
startup_aux \
str \
sys \
Expand All @@ -665,6 +664,7 @@ runtime_BYTECODE_ONLY_C_SOURCES = \
interp \
roots_byt \
signals_byt \
stacks \
startup_byt
runtime_BYTECODE_C_SOURCES = \
$(runtime_COMMON_C_SOURCES:%=runtime4/%.c) \
Expand Down
4 changes: 2 additions & 2 deletions Makefile.build_config.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ COMPUTE_DEPS=@compute_deps@

# Build-system flags to use to compile C files
OC_CFLAGS=@oc_cflags@
OC_CPPFLAGS=-I$(ROOTDIR)/runtime @oc_cppflags@
OC_CPPFLAGS=-I$(ROOTDIR)/runtime4 @oc_cppflags@

# The following variable defines flags to be passed to the C preprocessor
# when compiling C files to be linked with native code. This includes
Expand Down Expand Up @@ -148,7 +148,7 @@ OC_NATIVE_LINKFLAGS = -g
LN = @ln@

# Platform-dependent assembler files to use to build the runtime
runtime_ASM_OBJECTS = $(addprefix runtime/,@runtime_asm_objects@)
runtime_ASM_OBJECTS = $(addprefix runtime4/,@runtime_asm_objects@)

# Platform-dependent module for ocamlyacc
ocamlyacc_WSTR_MODULE = @ocamlyacc_wstr_module@
2 changes: 1 addition & 1 deletion runtime4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ ifeq "$(TOOLCHAIN)" "msvc"
ASMFLAGS=
endif

ASPPFLAGS = -DSYS_$(SYSTEM) -I$(ROOTDIR)/runtime
ASPPFLAGS = -DSYS_$(SYSTEM) -I$(ROOTDIR)/runtime4
ifeq "$(UNIX_OR_WIN32)" "unix"
ASPPFLAGS += -DMODEL_$(MODEL)
endif
Expand Down
2 changes: 1 addition & 1 deletion runtime4/arm64.S
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
.equ domain_field_caml_##name, domain_curr_field ; \
.set domain_curr_field, domain_curr_field + 1
#endif
#include "../runtime/caml/domain_state.tbl"
#include "../runtime4/caml/domain_state.tbl"
#undef DOMAIN_STATE

#define Caml_state(var) [DOMAIN_STATE_PTR, 8*domain_field_caml_##var]
Expand Down
2 changes: 1 addition & 1 deletion runtime4/i386.S
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
#define DOMAIN_STATE(c_type, name) \
.equ domain_field_caml_##name, domain_curr_field ; \
.set domain_curr_field, domain_curr_field + 1
#include "../runtime/caml/domain_state.tbl"
#include "../runtime4/caml/domain_state.tbl"
#undef DOMAIN_STATE

#define CAML_STATE(var,reg) 8*domain_field_caml_##var(reg)
Expand Down
2 changes: 1 addition & 1 deletion runtime4/power.S
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
#define DOMAIN_STATE(c_type, name) \
.equ domain_field_caml_##name, domain_curr_field ; \
.set domain_curr_field, domain_curr_field + 1
#include "../runtime/caml/domain_state.tbl"
#include "../runtime4/caml/domain_state.tbl"
#undef DOMAIN_STATE

#define Caml_state(var) 8*domain_field_caml_##var(DOMAIN_STATE_PTR)
Expand Down
2 changes: 1 addition & 1 deletion runtime4/riscv.S
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#define DOMAIN_STATE(c_type, name) \
.equ domain_field_caml_##name, domain_curr_field ; \
.set domain_curr_field, domain_curr_field + 1
#include "../runtime/caml/domain_state.tbl"
#include "../runtime4/caml/domain_state.tbl"
#undef DOMAIN_STATE

#define Caml_state(var) (8*domain_field_caml_##var)(DOMAIN_STATE_PTR)
Expand Down
2 changes: 1 addition & 1 deletion runtime4/s390x.S
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define DOMAIN_STATE(c_type, name) \
.equ domain_field_caml_##name, domain_curr_field ; \
.set domain_curr_field, domain_curr_field + 1
#include "../runtime/caml/domain_state.tbl"
#include "../runtime4/caml/domain_state.tbl"
#undef DOMAIN_STATE

#define Caml_state(var) 8*domain_field_caml_##var(%r10)
Expand Down
2 changes: 1 addition & 1 deletion stdlib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ CAMLOPT=$(OCAMLRUN) $(OPTCOMPILER)
CAMLDEP=$(BOOT_OCAMLC) -depend
DEPFLAGS=-slash

OC_CPPFLAGS += -I$(ROOTDIR)/runtime
OC_CPPFLAGS += -I$(ROOTDIR)/runtime4

include StdlibModules

Expand Down

0 comments on commit b09ffe3

Please sign in to comment.