pypy: added patch to fix build with gcc 4.9.2

This commit is contained in:
Georges Dubus 2015-01-14 16:02:01 +01:00
parent 5b70a64286
commit c2f8791e83
2 changed files with 22 additions and 1 deletions

View File

@ -30,6 +30,8 @@ let
LD_LIBRARY_PATH = stdenv.lib.concatStringsSep ":" (map (p: "${p}/lib") LD_LIBRARY_PATH = stdenv.lib.concatStringsSep ":" (map (p: "${p}/lib")
(stdenv.lib.filter (x : x.outPath != stdenv.cc.libc.outPath or "") buildInputs)); (stdenv.lib.filter (x : x.outPath != stdenv.cc.libc.outPath or "") buildInputs));
patches = [ ./fix-gcc-4-9-2.patch ];
preConfigure = '' preConfigure = ''
substituteInPlace Makefile \ substituteInPlace Makefile \
--replace "-Ojit" "-Ojit --batch" \ --replace "-Ojit" "-Ojit --batch" \

View File

@ -0,0 +1,19 @@
--- a/rpython/translator/c/gcc/trackgcroot.py
+++ b/rpython/translator/c/gcc/trackgcroot.py
@@ -590,7 +590,7 @@
# The various cmov* operations
for name in '''
- e ne g ge l le a ae b be p np s ns o no
+ e ne g ge l le a ae b be nb p np s ns o no
'''.split():
locals()['visit_cmov' + name] = binary_insn
locals()['visit_cmov' + name + 'l'] = binary_insn
@@ -837,6 +837,7 @@
visit_jb = conditional_jump
visit_jbe = conditional_jump
visit_jp = conditional_jump
+ visit_jnb = conditional_jump
visit_jnp = conditional_jump
visit_js = conditional_jump
visit_jns = conditional_jump