Skip to content

Commit

Permalink
flambda-backend: Delete x86 architecture check (#2381)
Browse files Browse the repository at this point in the history
* delete

* fix build
  • Loading branch information
TheNumbat authored Apr 2, 2024
1 parent 1ef8d46 commit 5343e09
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 576 deletions.
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,6 @@ runtime4_COMMON_C_SOURCES = \
interp \
ints \
io \
isa \
lexing \
main \
major_gc \
Expand Down Expand Up @@ -674,8 +673,7 @@ runtime4_NATIVE_ONLY_C_SOURCES = \
fail_nat \
roots_nat \
startup_nat \
signals_nat \
isa
signals_nat

# Runtime system source files (v5)

Expand Down Expand Up @@ -704,7 +702,6 @@ runtime_COMMON_C_SOURCES = \
intern \
ints \
io \
isa \
lexing \
lf_skiplist \
main \
Expand Down Expand Up @@ -747,8 +744,7 @@ runtime_NATIVE_ONLY_C_SOURCES = \
fail_nat \
frame_descriptors \
startup_nat \
signals_nat \
isa
signals_nat

# The runtime system

Expand Down
1 change: 0 additions & 1 deletion runtime/caml/dune
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
(interp.h as caml/interp.h)
(intext.h as caml/intext.h)
(io.h as caml/io.h)
(isa.h as caml/isa.h)
(lf_skiplist.h as caml/lf_skiplist.h)
(m.h as caml/m.h)
(major_gc.h as caml/major_gc.h)
Expand Down
111 changes: 0 additions & 111 deletions runtime/caml/isa.h

This file was deleted.

1 change: 0 additions & 1 deletion runtime/caml/mlvalues.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include "config.h"
#include "misc.h"
#include "isa.h"

#ifdef __cplusplus
extern "C" {
Expand Down
165 changes: 0 additions & 165 deletions runtime/isa.c

This file was deleted.

2 changes: 0 additions & 2 deletions runtime/startup_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
and native code. */

#include <stdio.h>
#include "caml/isa.h"
#include "caml/backtrace.h"
#include "caml/memory.h"
#include "caml/callback.h"
Expand Down Expand Up @@ -115,7 +114,6 @@ void caml_parse_ocamlrunparam(void)
case 'v': scanmult (opt, (uintnat *)&caml_verb_gc); break;
case 'V': scanmult (opt, &params.verify_heap); break;
case 'W': scanmult (opt, &caml_runtime_warnings); break;
case 'X': scanmult (opt, &caml_skip_arch_extension_check); break;
case ',': continue;
}
while (*opt != '\0'){
Expand Down
4 changes: 0 additions & 4 deletions runtime/startup_nat.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include "caml/stack.h"
#include "caml/startup_aux.h"
#include "caml/sys.h"
#include "caml/isa.h"

extern int caml_parser_trace;
extern char caml_system__code_begin, caml_system__code_end;
Expand Down Expand Up @@ -94,9 +93,6 @@ value caml_startup_common(char_os **argv, int pooling)
/* Determine options */
caml_parse_ocamlrunparam();

// CR mslater: re-enable architecture check
// caml_assert_arch_extensions();

#ifdef DEBUG
// Silenced in flambda-backend to make it easier to run tests that
// check program output.
Expand Down
4 changes: 2 additions & 2 deletions runtime4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ BYTECODE_C_SOURCES := $(addsuffix .c, \
signals_byt printexc backtrace_byt backtrace compare ints eventlog prng \
floats simd str array io extern intern hash sys meta parsing gc_ctrl md5 obj \
lexing callback debugger weak compact finalise custom dynlink \
afl $(UNIX_OR_WIN32) bigarray main memprof domain isa \
afl $(UNIX_OR_WIN32) bigarray main memprof domain \
skiplist codefrag)

NATIVE_C_SOURCES := $(addsuffix .c, \
Expand All @@ -34,7 +34,7 @@ NATIVE_C_SOURCES := $(addsuffix .c, \
floats simd str array io extern intern hash sys parsing gc_ctrl eventlog prng md5 obj \
lexing $(UNIX_OR_WIN32) printexc callback weak compact finalise custom \
globroots backtrace_nat backtrace dynlink_nat debugger meta \
dynlink clambda_checks afl bigarray isa \
dynlink clambda_checks afl bigarray \
memprof domain skiplist codefrag)

# Header files generated by configure
Expand Down
1 change: 0 additions & 1 deletion runtime4/caml/dune
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
(interp.h as caml/interp.h)
(intext.h as caml/intext.h)
(io.h as caml/io.h)
(isa.h as caml/isa.h)
(jumptbl.h as caml/jumptbl.h)
(m.h as caml/m.h)
(major_gc.h as caml/major_gc.h)
Expand Down
Loading

0 comments on commit 5343e09

Please sign in to comment.