Commits

Armin Rigo  committed 8463b9c

Bah? Another version of gcc 4.8 writes "rep; ret" instead of "rep ret".

  • Participants
  • Parent commits f2e960f

Comments (0)

Files changed (1)

File rpython/translator/c/gcc/trackgcroot.py

                 continue
             self.currentlineno = lineno
             insn = []
+            if line.startswith('\trep;'):
+                line = '\t'+line[5:].lstrip()
             match = self.r_insn.match(line)
 
             if self.r_bottom_marker.match(line):
         return InsnRet(self.CALLEE_SAVE_REGISTERS)
 
     def visit_rep(self, line):
-        # 'rep ret': bad reasons for this bogus 'rep' here
+        # 'rep ret' or 'rep; ret': bad reasons for this bogus 'rep' here
         if line.split()[:2] == ['rep', 'ret']:
             return self.visit_ret(line)
         return []