Browse Source

* removed accidentally committed global disable of assembler int_str
* fixed compilation of int_str on darwin/pic
* disabled int_str for darwin because it crashes

git-svn-id: trunk@9785 -

Jonas Maebe 17 years ago
parent
commit
8c45c66e13
1 changed files with 3 additions and 4 deletions
  1. 3 4
      rtl/i386/i386.inc

+ 3 - 4
rtl/i386/i386.inc

@@ -1095,8 +1095,8 @@ end;
 {****************************************************************************
                                  Str()
 ****************************************************************************}
-{$ifdef disabled}
 
+{$ifndef darwin}
 {$define FPC_SYSTEM_HAS_INT_STR_LONGWORD}
 {$define FPC_SYSTEM_HAS_INT_STR_LONGINT}
 
@@ -1146,7 +1146,7 @@ str_int_shortcut:
 .Lpic:
   pop  %ebx
   {$ifdef darwin}
-  movl digits-.LPIC(%ebx),%ebx
+  movl digits-.Lpic(%ebx),%ebx
   {$else}
   addl $_GLOBAL_OFFSET_TABLE_,%ebx
   movl digits@GOT(%ebx),%ebx
@@ -1198,8 +1198,7 @@ str_int_shortcut:
   popl %edi
   popl %esi
 end;
-
-{$endif disabled}
+{$endif not darwin}
 
 {****************************************************************************
                                Bounds Check