Browse Source

set pi_needs_got always if cs_create_pic is on

git-svn-id: trunk@21774 -
pierre 13 years ago
parent
commit
a892e2aa6f
1 changed files with 4 additions and 0 deletions
  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;