瀏覽代碼

* MIPS: Fixed code generation for PIC calls to local functions. Uncovered by r32803, before that the buggy branch was never taken because all functions were global.

git-svn-id: trunk@32844 -
sergei 10 年之前
父節點
當前提交
5456960d54
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/mips/cgcpu.pas

+ 1 - 0
compiler/mips/cgcpu.pas

@@ -362,6 +362,7 @@ begin
   if (sym.bind=AB_LOCAL) then
     begin
       href.refaddr:=addr_low;
+      href.base:=NR_NO;
       list.concat(taicpu.op_reg_ref(A_ADDIU,NR_PIC_FUNC,href));
     end;
   list.concat(taicpu.op_reg(A_JALR,NR_PIC_FUNC));