Bläddra i källkod

* i386: Do not request GOT for every function call. GOT is requested only for external calls in thlcgcpu.a_call_name(). Local calls are always PC relative.

git-svn-id: trunk@41464 -
yury 6 år sedan
förälder
incheckning
a04e4971fc
1 ändrade filer med 1 tillägg och 4 borttagningar
  1. 1 4
      compiler/x86/cgx86.pas

+ 1 - 4
compiler/x86/cgx86.pas

@@ -902,10 +902,7 @@ unit cgx86;
                { darwin's assembler doesn't want @PLT after call symbols }
                not(target_info.system in [system_x86_64_darwin,system_i386_iphonesim,system_x86_64_iphonesim]) then
               begin
-{$ifdef i386}
-                include(current_procinfo.flags,pi_needs_got);
-{$endif i386}
-                r.refaddr:=addr_pic
+                r.refaddr:=addr_pic;
               end
             else
               r.refaddr:=addr_full;