浏览代码

set pi_needs_got always if cs_create_pic is on

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

+ 4 - 0
compiler/mips/cpupi.pas

@@ -81,6 +81,10 @@ implementation
         { for testing }
         needs_frame_pointer := true;//false;
         computed_local_size:=-1;
+		{ 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);
       end;