mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 07:28:26 +02:00
Make use of "blx" instruction in fpc_ansistr_dec_ref conditional on CPUARM_HAS_BX, otherwise just use the "bl" instruction. Bug introduced in r22035. Fixes bug report 22632.
git-svn-id: trunk@22102 -
This commit is contained in:
parent
7c56a9f34d
commit
38226169a9
@ -527,7 +527,11 @@ asm
|
||||
{$endif}
|
||||
stmfd sp!, {r1, lr}
|
||||
sub r0, r1, #8
|
||||
{$ifdef CPUARM_HAS_BX}
|
||||
blx InterLockedDecrement
|
||||
{$else}
|
||||
bl InterLockedDecrement
|
||||
{$endif}
|
||||
// InterLockedDecrement is a nice guy and sets the z flag for us
|
||||
// if the reference count dropped to 0
|
||||
ldmnefd sp!, {r1, pc}
|
||||
|
Loading…
Reference in New Issue
Block a user