[MLton-commit] r5865

Matthew Fluet fluet at mlton.org
Mon Aug 13 16:22:54 PDT 2007


Drop '-mtune=opteron' and '-mcpu=opteron' flags to gcc on amd64 (when
compiling runtime and when invoking gcc from mlton).

Unify '-m32 -mcpu=v8 -Wa,-xarch=v8plusa' flags to gcc on sparc (when
compiling runtime and when invoking gcc from mlton).  This drops the
'-mcpu=ultrasparc' flag (which was passed via '-target-cc-opt
solaris'), which appears to be incompatible with '-mcpu=v8', according
to the gcc documentation.


----------------------------------------------------------------------

U   mlton/trunk/bin/mlton-script
U   mlton/trunk/runtime/Makefile

----------------------------------------------------------------------

Modified: mlton/trunk/bin/mlton-script
===================================================================
--- mlton/trunk/bin/mlton-script	2007-08-13 22:49:54 UTC (rev 5864)
+++ mlton/trunk/bin/mlton-script	2007-08-13 23:22:53 UTC (rev 5865)
@@ -84,16 +84,14 @@
         -cc-opt '-fno-strict-aliasing -fomit-frame-pointer -w'   \
         -link-opt '-lgdtoa -lm -lgmp'                            \
         -mlb-path-map "$lib/mlb-path-map"                        \
-        -target-as-opt amd64 '-m64 -mtune=opteron'               \
-        -target-cc-opt amd64 '-m64 -mtune=opteron'               \
+        -target-as-opt amd64 '-m64'                              \
+        -target-cc-opt amd64 '-m64'                              \
         -target-cc-opt darwin                                    \
                 '-I/opt/local/include -I/sw/include'             \
         -target-cc-opt freebsd '-I/usr/local/include'            \
         -target-cc-opt netbsd '-I/usr/pkg/include'               \
         -target-cc-opt openbsd '-I/usr/local/include'            \
-        -target-cc-opt solaris                                   \
-                '-Wa,-xarch=v8plusa -mcpu=ultrasparc'            \
-        -target-cc-opt sparc '-mcpu=v8 -m32'                     \
+        -target-cc-opt sparc '-m32 -mcpu=v8 -Wa,-xarch=v8plusa'  \
         -target-cc-opt x86                                       \
                 '-fno-strength-reduce
                 -fschedule-insns

Modified: mlton/trunk/runtime/Makefile
===================================================================
--- mlton/trunk/runtime/Makefile	2007-08-13 22:49:54 UTC (rev 5864)
+++ mlton/trunk/runtime/Makefile	2007-08-13 23:22:53 UTC (rev 5865)
@@ -31,12 +31,6 @@
 
 ifeq ($(TARGET_ARCH), amd64)
 FLAGS += -m64
-ifeq ($(findstring $(GCC_MAJOR_VERSION), 3),$(GCC_MAJOR_VERSION))
-OPTFLAGS += -mcpu=opteron
-endif
-ifeq ($(findstring $(GCC_MAJOR_VERSION), 4),$(GCC_MAJOR_VERSION))
-OPTFLAGS += -mtune=opteron
-endif
 ifeq ($(findstring $(GCC_VERSION), 3.4 4.0 4.1),$(GCC_VERSION))
 GCOPTFLAGS += --param inline-unit-growth=75 --param max-inline-insns-single=1000
 endif




More information about the MLton-commit mailing list