- disable -Ooregvar for the LLVM-based x86-64 code generator, as it causes

internalerrors there and fixing it doesn't make sense since LLVM will take
    care of that anywaya

git-svn-id: trunk@35058 -
This commit is contained in:
Jonas Maebe 2016-12-04 11:15:12 +00:00
parent a2017b2327
commit 2e9c6f35ae
2 changed files with 6 additions and 2 deletions

View File

@ -137,6 +137,10 @@ implementation
end;
if found then
begin
{$ifdef llvm}
{ -Ooregvar is not supported, llvm will take care of that }
if opt<>cs_opt_regvar then
{$endif llvm}
if doset then
include(a,opt)
else

View File

@ -138,12 +138,12 @@ Const
genericlevel3optimizerswitches-
{ no need to write info about those }
[cs_opt_level1,cs_opt_level2,cs_opt_level3]+
[cs_opt_regvar,cs_opt_loopunroll,cs_opt_stackframe,cs_userbp,
[{$ifndef llvm}cs_opt_regvar,{$endif}cs_opt_loopunroll,cs_opt_stackframe,cs_userbp,
cs_opt_tailrecursion,cs_opt_nodecse,cs_opt_reorder_fields,cs_opt_fastmath];
level1optimizerswitches = genericlevel1optimizerswitches;
level2optimizerswitches = genericlevel2optimizerswitches + level1optimizerswitches +
[cs_opt_regvar,cs_opt_stackframe,cs_opt_tailrecursion,cs_opt_nodecse];
[{$ifndef llvm}cs_opt_regvar,{$endif}cs_opt_stackframe,cs_opt_tailrecursion,cs_opt_nodecse];
level3optimizerswitches = genericlevel3optimizerswitches + level2optimizerswitches + [{,cs_opt_loopunroll}];
level4optimizerswitches = genericlevel4optimizerswitches + level3optimizerswitches + [cs_userbp];