소스 검색

* if we load a got depends only if one is needed, not if PIC is generated as this could be also caused by tls support

git-svn-id: trunk@43055 -
florian 6 년 전
부모
커밋
bd1d6f335d
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      compiler/i386/cgcpu.pas

+ 2 - 3
compiler/i386/cgcpu.pas

@@ -538,9 +538,8 @@ unit cgcpu;
         tmpreg: TRegister;
       begin
         { allocate PIC register }
-        if (cs_create_pic in current_settings.moduleswitches) and
-           (tf_pic_uses_got in target_info.flags) and
-           (pi_needs_got in current_procinfo.flags) then
+        if (tf_pic_uses_got in target_info.flags) and
+          (pi_needs_got in current_procinfo.flags) then
           begin
             if not (target_info.system in [system_i386_darwin,system_i386_iphonesim]) then
               begin