[pypy-commit] pypy default: Windows bug fix. Shows up as the JIT complaining that it is

arigo noreply at buildbot.pypy.org
Thu Aug 11 22:37:46 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r46440:40a36ea9ae0d
Date: 2011-08-11 22:38 +0200
http://bitbucket.org/pypy/pypy/changeset/40a36ea9ae0d/

Log:	Windows bug fix. Shows up as the JIT complaining that it is missing
	liveness. Quite indirect :-(

diff --git a/pypy/translator/platform/windows.py b/pypy/translator/platform/windows.py
--- a/pypy/translator/platform/windows.py
+++ b/pypy/translator/platform/windows.py
@@ -231,6 +231,9 @@
             linkflags = self._args_for_shared(linkflags) + [
                 '/EXPORT:$(PYPY_MAIN_FUNCTION)']
         linkflags += self._exportsymbols_link_flags(eci, relto=path)
+        # Make sure different functions end up at different addresses!
+        # This is required for the JIT.
+        linkflags.append('/opt:noicf')
 
         if shared:
             so_name = exe_name.new(purebasename='lib' + exe_name.purebasename,


More information about the pypy-commit mailing list