[pypy-commit] pypy default: Hack for "make"ing asmgcc programs in debug mode: this helps on linux32

arigo pypy.commits at gmail.com
Tue Mar 29 13:13:56 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r83426:424023029f67
Date: 2016-03-29 19:13 +0200
http://bitbucket.org/pypy/pypy/changeset/424023029f67/

Log:	Hack for "make"ing asmgcc programs in debug mode: this helps on
	linux32

diff --git a/rpython/translator/c/genc.py b/rpython/translator/c/genc.py
--- a/rpython/translator/c/genc.py
+++ b/rpython/translator/c/genc.py
@@ -414,10 +414,12 @@
         if self.config.translation.gcrootfinder == 'asmgcc':
             if self.translator.platform.name == 'msvc':
                 raise Exception("msvc no longer supports asmgcc")
+            _extra = ''
             if self.config.translation.shared:
-                mk.definition('DEBUGFLAGS', '-O2 -fomit-frame-pointer -g -fPIC')
-            else:
-                mk.definition('DEBUGFLAGS', '-O2 -fomit-frame-pointer -g')
+                _extra = ' -fPIC'
+            _extra += ' -fdisable-tree-fnsplit'   # seems to help
+            mk.definition('DEBUGFLAGS',
+                '-O2 -fomit-frame-pointer -g'+ _extra)
 
             if self.config.translation.shared:
                 mk.definition('PYPY_MAIN_FUNCTION', "pypy_main_startup")


More information about the pypy-commit mailing list