Skip to content

Commit

Permalink
FPC_REQUIRES_PROPER_ALIGNMENT, for andgineer#251
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Aug 2, 2021
1 parent 49a36db commit d35ef73
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/regexpr.pas
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,8 @@ implementation
gkSubCall
);

{$undef FPC_REQUIRES_PROPER_ALIGNMENT}

const
REOpSz = SizeOf(TREOp) div SizeOf(REChar);
// size of OP_ command in REChars
Expand Down
36 changes: 35 additions & 1 deletion test/test_fpc.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<UseAppBundle Value="False"/>
<ResourceType Value="res"/>
</General>
<BuildModes Count="3">
<BuildModes Count="4">
<Item1 Name="Default" Default="True"/>
<Item2 Name="Unicode">
<CompilerOptions>
Expand Down Expand Up @@ -76,6 +76,40 @@
</Other>
</CompilerOptions>
</Item3>
<Item4 Name="aarch64">
<CompilerOptions>
<Version Value="11"/>
<Target>
<Filename Value="test_fpc"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
<OtherUnitFiles Value="../src"/>
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<Parsing>
<SyntaxOptions>
<IncludeAssertionCode Value="True"/>
</SyntaxOptions>
</Parsing>
<CodeGeneration>
<SmartLinkUnit Value="True"/>
<Checks>
<RangeChecks Value="True"/>
<OverflowChecks Value="True"/>
</Checks>
<TargetCPU Value="aarch64"/>
<TargetOS Value="linux"/>
</CodeGeneration>
<Linking>
<Debugging>
<DebugInfoType Value="dsDwarf2Set"/>
<UseExternalDbgSyms Value="True"/>
</Debugging>
<LinkSmart Value="True"/>
</Linking>
</CompilerOptions>
</Item4>
</BuildModes>
<PublishOptions>
<Version Value="2"/>
Expand Down

0 comments on commit d35ef73

Please sign in to comment.