mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-11 18:30:45 +01:00
+ cs_opt_consts for sparc
This commit is contained in:
parent
9b1861a104
commit
5e00358f13
@ -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)}
|
||||
{$if defined(aarch64) or defined(sparc)}
|
||||
or (not(tabstractvarsym(tloadnode(n).symtableentry).is_regvar(false)))
|
||||
{$endif defined(aarch64)}
|
||||
{$endif defined(aarch64) or defined(sparc)}
|
||||
);
|
||||
end;
|
||||
|
||||
|
||||
@ -107,7 +107,7 @@ Const
|
||||
|
||||
level1optimizerswitches = genericlevel1optimizerswitches;
|
||||
level2optimizerswitches = genericlevel2optimizerswitches + level1optimizerswitches +
|
||||
[cs_opt_regvar,cs_opt_tailrecursion,cs_opt_nodecse];
|
||||
[cs_opt_regvar,cs_opt_tailrecursion,cs_opt_nodecse,cs_opt_consts];
|
||||
level3optimizerswitches = genericlevel3optimizerswitches + level2optimizerswitches;
|
||||
level4optimizerswitches = genericlevel4optimizerswitches + level3optimizerswitches + [];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user