Explorar el Código

+ cs_opt_consts for sparc64

florian hace 1 año
padre
commit
1fa83a91ab
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 2 2
      compiler/optcse.pas
  2. 1 1
      compiler/sparc64/cpuinfo.pas

+ 2 - 2
compiler/optcse.pas

@@ -608,9 +608,9 @@ unit optcse;
         Result:=(n.nodetype=loadn) and (tloadnode(n).symtableentry.typ=staticvarsym)
           and ((vo_is_thread_var in tstaticvarsym(tloadnode(n).symtableentry).varoptions) or
             (cs_create_pic in current_settings.moduleswitches)
-{$if defined(aarch64) or defined(sparc)}
+{$if defined(aarch64) or defined(sparc) or defined(sparc64)}
             or (not(tabstractvarsym(tloadnode(n).symtableentry).is_regvar(false)))
-{$endif defined(aarch64) or defined(sparc)}
+{$endif defined(aarch64) or defined(sparc) or defined(sparc64)}
            );
       end;
 

+ 1 - 1
compiler/sparc64/cpuinfo.pas

@@ -103,7 +103,7 @@ Const
 
    level1optimizerswitches = genericlevel1optimizerswitches;
    level2optimizerswitches = genericlevel2optimizerswitches + level1optimizerswitches + 
-     [{$ifndef llvm}cs_opt_regvar,{$endif}cs_opt_tailrecursion,cs_opt_nodecse];
+     [{$ifndef llvm}cs_opt_regvar,{$endif}cs_opt_tailrecursion,cs_opt_nodecse,cs_opt_consts];
    level3optimizerswitches = genericlevel3optimizerswitches + level2optimizerswitches;
    level4optimizerswitches = genericlevel4optimizerswitches + level3optimizerswitches + [];