Author: Matti Picus <[email protected]>
Branch:
Changeset: r96605:ad8eb33a762d
Date: 2019-05-12 18:12 -0700
http://bitbucket.org/pypy/pypy/changeset/ad8eb33a762d/
Log: actually test before committing
diff --git a/rpython/translator/c/gc.py b/rpython/translator/c/gc.py
--- a/rpython/translator/c/gc.py
+++ b/rpython/translator/c/gc.py
@@ -450,7 +450,7 @@
# XXX hard-code the field name here
gcpol_ss = '%s->gcd_inst_root_stack_top' % funcgen.expr(c_gcdata)
#
- yield ('typedef struct { void %s; } pypy_ss_t;'
+ yield ('typedef struct { char %s; } pypy_ss_t;'
% ', '.join(['*s%d' % i for i in range(numcolors)]))
funcgen.gcpol_ss = gcpol_ss
@@ -461,15 +461,15 @@
raise Exception("gc_pop_roots should be removed by postprocess_graph")
def OP_GC_ENTER_ROOTS_FRAME(self, funcgen, op):
- return '(char *)(%s) += sizeof(pypy_ss_t);' % (funcgen.gcpol_ss,)
+ return '(%s) += sizeof(pypy_ss_t);' % (funcgen.gcpol_ss,)
def OP_GC_LEAVE_ROOTS_FRAME(self, funcgen, op):
- return '(char *)(%s) -= sizeof(pypy_ss_t);' % (funcgen.gcpol_ss,)
+ return '(%s) -= sizeof(pypy_ss_t);' % (funcgen.gcpol_ss,)
def OP_GC_SAVE_ROOT(self, funcgen, op):
num = op.args[0].value
exprvalue = funcgen.expr(op.args[1])
- return '((pypy_ss_t *)%s)[-1].s%d = (void *)%s;' % (
+ return '((pypy_ss_t *)%s)[-1].s%d = (char *)%s;' % (
funcgen.gcpol_ss, num, exprvalue)
def OP_GC_RESTORE_ROOT(self, funcgen, op):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit