[Vm-dev] [commit] r2361 - Again revert the optimization level of the cointerpreter on linux to -O1.

commits at squeakvm.org commits at squeakvm.org
Mon Feb 7 02:55:17 UTC 2011


Author: eliot
Date: 2011-02-06 18:55:17 -0800 (Sun, 06 Feb 2011)
New Revision: 2361

Modified:
   branches/Cog/platforms/unix/vm/Makefile.in
Log:
Again revert the optimization level of the cointerpreter on linux to -O1.


Modified: branches/Cog/platforms/unix/vm/Makefile.in
===================================================================
--- branches/Cog/platforms/unix/vm/Makefile.in	2011-02-07 01:59:40 UTC (rev 2360)
+++ branches/Cog/platforms/unix/vm/Makefile.in	2011-02-07 02:55:17 UTC (rev 2361)
@@ -74,6 +74,11 @@
 sqUnixHeartbeat$o : $(topdir)/platforms/unix/vm/sqUnixHeartbeat.c
 	$(COMPILE) sqUnixHeartbeat$o -O1 -fno-omit-frame-pointer -mno-rtd -mno-accumulate-outgoing-args $(topdir)/platforms/unix/vm/sqUnixHeartbeat.c
 
+# Ensure the cointerpreter is compiled with less aggressive optimization.  At
+# least with gcc 4.1.2 compiling with -O2 results in an apparently flakey VM.
+gcc3x-cointerp$o : $(srcdir)/vm/gcc3x-cointerp.c
+	$(COMPILE) gcc3x-cointerp$o -O1 -fno-omit-frame-pointer -momit-leaf-frame-pointer -mno-rtd -mno-accumulate-outgoing-args $(srcdir)/vm/gcc3x-cointerp.c
+
 # Ensure the cogit is compiled with less aggressive optimization.  The cogit
 # contains a function that does two alloca's which is miscompiled by a number of
 # optimizing compilers (at least gcc 4.0.x 4.1.x & Intel icc 10.1) under the



More information about the Vm-dev mailing list