Prechádzať zdrojové kódy

* When optimization is off always load unused parentfp to a local location to be debugger friendly.

git-svn-id: trunk@46514 -
yury 5 rokov pred
rodič
commit
75e5afd45b
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      compiler/ncgutil.pas

+ 2 - 1
compiler/ncgutil.pas

@@ -865,7 +865,8 @@ implementation
                     end
                     end
                   { Unused parameters need to be kept in the original location
                   { Unused parameters need to be kept in the original location
                     to prevent allocation of registers/resources for them. }
                     to prevent allocation of registers/resources for them. }
-                  else if not tparavarsym(vs).is_used then
+                  else if not tparavarsym(vs).is_used and
+                    (cs_opt_unused_para in current_settings.optimizerswitches) then
                     begin
                     begin
                       tparavarsym(vs).paraloc[calleeside].get_location(vs.initialloc);
                       tparavarsym(vs).paraloc[calleeside].get_location(vs.initialloc);
                     end
                     end