浏览代码

set got at create of cs_create_pic is used

git-svn-id: trunk@21793 -
pierre 13 年之前
父节点
当前提交
fc81979f61
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      compiler/mips/cpupi.pas

+ 6 - 1
compiler/mips/cpupi.pas

@@ -84,7 +84,12 @@ implementation
 		{ pi_needs_got is not yet set correctly 
 		  so include it always if creating PIC code }
         if (cs_create_pic in current_settings.moduleswitches) then
-          include(flags, pi_needs_got);
+          begin
+            include(flags, pi_needs_got);
+            got:=NR_GP;
+          end
+        else
+          got:=NR_NO;
       end;