Commit 86f6dccd authored by Raymond Toy's avatar Raymond Toy
Browse files

Add comments about using clang instead of gcc on x86.

parent 0d6f2034
Loading
Loading
Loading
Loading
+21 −0
Changes for src/lisp/Config.x86_common: 21 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -45,7 +45,24 @@ ifdef FEATURE_UNICODE
CPP_DEFINE_OPTIONS += -DUNICODE
endif

# Default to using gcc
CC = gcc

# But we can use clang.
#
# However, clang seems to want to use SSE instructions in various
# places, but we DON'T want that because we need a lisp that will run
# on chips without sse.
#
# But on Mac, every machine has SSE2 so we can use SSE2.  However,
# there's some code path through GC or allocation where we aren't
# saving the FPU state so after GC or allocation, some XMM FP
# registers are corrupted.  
#
# Got that?

#CC = clang -mno-sse

LD = ld

ifeq ($(filter 2% 3%, $(shell $(CC) -dumpversion)),)
@@ -70,3 +87,7 @@ DEPEND_FLAGS =
# -ffloat-store and -fno-strict-aliasing anymore.
e_rem_pio2.o : e_rem_pio2.c
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $<

# 
gencgc.o : gencgc.c
	$(CC) -c -mno-sse $(CFLAGS) $(CPPFLAGS) $<
 No newline at end of file