[pypy-commit] pypy release-5.x: CFLAGS can be used to overwrite -march=(z10|z196|zEC12), default is now z10
plan_rich
pypy.commits at gmail.com
Fri May 13 06:24:46 EDT 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: release-5.x
Changeset: r84419:d3481c6f3d33
Date: 2016-05-12 17:56 +0200
http://bitbucket.org/pypy/pypy/changeset/d3481c6f3d33/
Log: CFLAGS can be used to overwrite -march=(z10|z196|zEC12), default is
now z10
diff --git a/rpython/doc/arch/s390x.rst b/rpython/doc/arch/s390x.rst
--- a/rpython/doc/arch/s390x.rst
+++ b/rpython/doc/arch/s390x.rst
@@ -9,6 +9,8 @@
Currently supported ISAs:
* zEC12 (released September 2012)
+* z196 (released August 2010)
+* z10 (released February 2008)
To check if all the necessary CPU facilities are installed
on the subject machine, please run the test using a copy of the pypy
diff --git a/rpython/translator/platform/linux.py b/rpython/translator/platform/linux.py
--- a/rpython/translator/platform/linux.py
+++ b/rpython/translator/platform/linux.py
@@ -23,7 +23,15 @@
if platform.machine() == 's390x':
# force the right target arch for s390x
- cflags = ('-march=z196','-m64','-mzarch') + cflags
+ for cflag in cflags:
+ if cflag.startswith('-march='):
+ break
+ else:
+ # the default cpu architecture that is supported
+ # older versions are not supported
+ cflags += ('-march=z10',)
+ cflags += ('-m64','-mzarch')
+
def _args_for_shared(self, args):
return ['-shared'] + args
More information about the pypy-commit
mailing list