Skip to content

Commit 635a5ea

Browse files
authored
flambda-backend: Ports runtime of #154 (Add -mbranches-within-32B to major GC compilation) (#2055)
1 parent 0263edc commit 635a5ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,11 @@ $(RUNTIME_DIR)/%.npic.$(O): OC_CFLAGS += $(OC_NATIVE_CFLAGS) $(SHAREDLIB_CFLAGS)
10121012
$(RUNTIME_DIR)/%.npic.$(O): OC_CPPFLAGS += $(OC_NATIVE_CPPFLAGS)
10131013
$(DEPDIR)/$(RUNTIME_DIR)/%.npic.$(D): OC_CPPFLAGS += $(OC_NATIVE_CPPFLAGS)
10141014

1015+
# The major GC performs better with this flag on Intel processors
1016+
# This is a workaround for an Intel CPU bug:
1017+
# https://www.intel.co.uk/content/www/uk/en/support/articles/000055650/processors.html
1018+
$(RUNTIME_DIR)/major_gc.$(O): OC_CFLAGS += $(INTEL_JCC_BUG_CFLAGS)
1019+
10151020
## Compilation of runtime C files
10161021

10171022
# The COMPILE_C_FILE macro below receives as argument the pattern

0 commit comments

Comments
 (0)