Browse Source

* fixed assembler version of fpc_AnsiStr_Decr_Ref (based on remark
from Martin Schreiber)

git-svn-id: trunk@2856 -

Jonas Maebe 19 years ago
parent
commit
83b1c3736a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      rtl/i386/i386.inc

+ 2 - 2
rtl/i386/i386.inc

@@ -984,7 +984,7 @@ end;
 ****************************************************************************}
 ****************************************************************************}
 
 
 
 
-{ do a thread save inc/dec }
+{ do a thread-safe inc/dec }
 {$define FPC_SYSTEM_HAS_DECLOCKED_LONGINT}
 {$define FPC_SYSTEM_HAS_DECLOCKED_LONGINT}
 function cpudeclocked(var l : longint) : boolean;assembler;nostackframe;
 function cpudeclocked(var l : longint) : boolean;assembler;nostackframe;
 
 
@@ -1093,7 +1093,7 @@ asm
 .Lj3610:
 .Lj3610:
         movl    %edx,%eax
         movl    %edx,%eax
         call    cpudeclocked
         call    cpudeclocked
-        movb    %al,%al
+        testb   %al,%al
         je      .Lj3605
         je      .Lj3605
 .Lj3620:
 .Lj3620:
         movl    (%esp),%eax
         movl    (%esp),%eax