Author: William ML Leslie <[email protected]>
Branch: real-mode-translator-driver
Changeset: r89845:0c50e082bdd7
Date: 2017-01-31 03:24 +1100
http://bitbucket.org/pypy/pypy/changeset/0c50e082bdd7/
Log: backendopt should run before stackcheckinsertion if it has not been
disabled.
Also, fix logging when there is nothing left to do.
diff --git a/rpython/translator/driver.py b/rpython/translator/driver.py
--- a/rpython/translator/driver.py
+++ b/rpython/translator/driver.py
@@ -108,7 +108,8 @@
def stackcheckinsertion_lltype(self):
self.rtype_lltype()
- if 'backendopt_lltype' in self.extra_goals:
+ disabled = self.backend_select_goals(self._disabled)
+ if 'backendopt_lltype' not in disabled:
self.backendopt_lltype()
return self.run_task(self.task_stackcheckinsertion_lltype,
'stackcheckinsertion_lltype')
@@ -213,7 +214,7 @@
backend, ts = self.get_backend_and_type_system()
goals = set(self.backend_select_goals(goals + self.extra_goals))
if not goals:
- self.log('Nothing to do.')
+ self.log.info('Nothing to do.')
self.extra_goals += goals
# run C goals first to catch missing boehm.
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit