Explorar o código

set pi_needs_got always if cs_create_pic is on

git-svn-id: trunk@21774 -
pierre %!s(int64=13) %!d(string=hai) anos
pai
achega
a892e2aa6f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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;