[pypy-commit] pypy default: Actually, ud2 is unreachable, not ignored.

arigo noreply at buildbot.pypy.org
Thu May 1 17:29:02 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r71138:95d8506f3861
Date: 2014-05-01 17:28 +0200
http://bitbucket.org/pypy/pypy/changeset/95d8506f3861/

Log:	Actually, ud2 is unreachable, not ignored.

diff --git a/rpython/translator/c/gcc/trackgcroot.py b/rpython/translator/c/gcc/trackgcroot.py
--- a/rpython/translator/c/gcc/trackgcroot.py
+++ b/rpython/translator/c/gcc/trackgcroot.py
@@ -522,8 +522,6 @@
         'movnt', 'mfence', 'lfence', 'sfence',
         # bit manipulations
         'bextr',
-        # invalid instruction
-        'ud2',
     ])
 
     # a partial list is hopefully good enough for now; it's all to support
@@ -695,6 +693,9 @@
             return self.visit_ret(line)
         return []
 
+    def visit_ud2(self, line):
+        return InsnStop("ud2")    # unreachable instruction
+
     def visit_jmp(self, line):
         tablelabels = []
         match = self.r_jmp_switch.match(line)


More information about the pypy-commit mailing list