瀏覽代碼

* don't perform call/jmp into push/jmp in case we're generating
pic, as that optimization is invalid in that case

git-svn-id: trunk@10655 -

Jonas Maebe 17 年之前
父節點
當前提交
a3b877247c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/i386/popt386.pas

+ 1 - 0
compiler/i386/popt386.pas

@@ -2046,6 +2046,7 @@ begin
             case taicpu(p).opcode Of
             case taicpu(p).opcode Of
               A_CALL:
               A_CALL:
                 if (current_settings.optimizecputype < cpu_Pentium2) and
                 if (current_settings.optimizecputype < cpu_Pentium2) and
+                   not(cs_create_pic in current_settings.moduleswitches) and
                    GetNextInstruction(p, hp1) and
                    GetNextInstruction(p, hp1) and
                    (hp1.typ = ait_instruction) and
                    (hp1.typ = ait_instruction) and
                    (taicpu(hp1).opcode = A_JMP) and
                    (taicpu(hp1).opcode = A_JMP) and