[pypy-svn] pypy jit-longlong: Enable withsmalllong by default on 32-bit platforms.

arigo commits-noreply at bitbucket.org
Fri Jan 14 16:17:28 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: jit-longlong
Changeset: r40680:49edff43f3d6
Date: 2011-01-14 16:17 +0100
http://bitbucket.org/pypy/pypy/changeset/49edff43f3d6/

Log:	Enable withsmalllong by default on 32-bit platforms.

diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -4,6 +4,7 @@
 from pypy.config.config import OptionDescription, BoolOption, IntOption, ArbitraryOption
 from pypy.config.config import ChoiceOption, StrOption, to_optparse, Config
 from pypy.config.config import ConflictConfigError
+from pypy.config.translationoption import IS_64_BITS
 
 modulepath = py.path.local(__file__).dirpath().dirpath().join("module")
 all_modules = [p.basename for p in modulepath.listdir()
@@ -199,7 +200,9 @@
         BoolOption("withsmallint", "use tagged integers",
                    default=False,
                    requires=[("objspace.std.withprebuiltint", False),
-                             ("translation.taggedpointers", True)]),
+                             ("translation.taggedpointers", True),
+                             ("objspace.std.withsmalllong", False)]),
+                             #  ^^^ because of missing delegate_xx2yy
 
         BoolOption("withprebuiltint", "prebuild commonly used int objects",
                    default=False),
@@ -211,9 +214,7 @@
                   default=100, cmdline="--prebuiltintto"),
 
         BoolOption("withsmalllong", "use a version of 'long' in a C long long",
-                   default=False,
-                   requires=[("objspace.std.withsmallint", False),]),
-                             # because of missing delegate_xx2yy
+                   default=not IS_64_BITS),
 
         BoolOption("withstrjoin", "use strings optimized for addition",
                    default=False),


More information about the Pypy-commit mailing list