mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 02:27:56 +02:00
- 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:
parent
a2017b2327
commit
2e9c6f35ae
@ -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
|
||||
|
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user