Browse Source

Set FPC_USE_INTRINSICS after _USES clause for i386 and x86_64

Pierre Muller 1 day ago
parent
commit
cc1966bfb1
5 changed files with 37 additions and 20 deletions
  1. 7 4
      rtl/amicommon/classes.pp
  2. 7 4
      rtl/embedded/classes.pp
  3. 7 4
      rtl/unix/classes.pp
  4. 9 4
      rtl/win32/classes.pp
  5. 7 4
      rtl/win64/classes.pp

+ 7 - 4
rtl/amicommon/classes.pp

@@ -29,10 +29,6 @@
 {$if defined(CPURISCV32) or defined(CPURISCV64)}
 {$if defined(CPURISCV32) or defined(CPURISCV64)}
    {$define FPC_USE_INTRINSICS}
    {$define FPC_USE_INTRINSICS}
 {$endif}
 {$endif}
-{ Also set FPC_USE_INTRINSICS for i386 and x86_64 }
-{$if defined(CPURISCV32) or defined(CPURISCV64)}
-   {$define FPC_USE_INTRINSICS}
-{$endif}
 {$endif}
 {$endif}
 {$endif}
 {$endif}
 
 
@@ -73,6 +69,13 @@ uses
   typinfo;
   typinfo;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
 
 
+{ Also set FPC_USE_INTRINSICS for i386 and x86_64,
+  but only after _USES clause as there
+  is not intinsics unit for those CPUs }
+{$if defined(CPUI386) or defined(CPUX86_64)}
+   {$define FPC_USE_INTRINSICS}
+{$endif}
+
 {$i classesh.inc}
 {$i classesh.inc}
 
 
 
 

+ 7 - 4
rtl/embedded/classes.pp

@@ -29,10 +29,6 @@
 {$if defined(CPURISCV32) or defined(CPURISCV64)}
 {$if defined(CPURISCV32) or defined(CPURISCV64)}
    {$define FPC_USE_INTRINSICS}
    {$define FPC_USE_INTRINSICS}
 {$endif}
 {$endif}
-{ Also set FPC_USE_INTRINSICS for i386 and x86_64 }
-{$if defined(CPURISCV32) or defined(CPURISCV64)}
-   {$define FPC_USE_INTRINSICS}
-{$endif}
 {$endif}
 {$endif}
 {$endif}
 {$endif}
 
 
@@ -70,6 +66,13 @@ uses
   typinfo;
   typinfo;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
 
 
+{ Also set FPC_USE_INTRINSICS for i386 and x86_64,
+  but only after _USES clause as there
+  is not intinsics unit for those CPUs }
+{$if defined(CPUI386) or defined(CPUX86_64)}
+   {$define FPC_USE_INTRINSICS}
+{$endif}
+
 {$i classesh.inc}
 {$i classesh.inc}
 
 
 
 

+ 7 - 4
rtl/unix/classes.pp

@@ -29,10 +29,6 @@
 {$if defined(CPURISCV32) or defined(CPURISCV64)}
 {$if defined(CPURISCV32) or defined(CPURISCV64)}
    {$define FPC_USE_INTRINSICS}
    {$define FPC_USE_INTRINSICS}
 {$endif}
 {$endif}
-{ Also set FPC_USE_INTRINSICS for i386 and x86_64 }
-{$if defined(CPURISCV32) or defined(CPURISCV64)}
-   {$define FPC_USE_INTRINSICS}
-{$endif}
 {$endif}
 {$endif}
 {$endif}
 {$endif}
 { determine the type of the resource/form file }
 { determine the type of the resource/form file }
@@ -73,6 +69,13 @@ uses
   sortbase;
   sortbase;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
 
 
+{ Also set FPC_USE_INTRINSICS for i386 and x86_64,
+  but only after _USES clause as there
+  is not intinsics unit for those CPUs }
+{$if defined(CPUI386) or defined(CPUX86_64)}
+   {$define FPC_USE_INTRINSICS}
+{$endif}
+
 {$i classesh.inc}
 {$i classesh.inc}
 
 
 implementation
 implementation

+ 9 - 4
rtl/win32/classes.pp

@@ -29,10 +29,6 @@
 {$if defined(CPURISCV32) or defined(CPURISCV64)}
 {$if defined(CPURISCV32) or defined(CPURISCV64)}
    {$define FPC_USE_INTRINSICS}
    {$define FPC_USE_INTRINSICS}
 {$endif}
 {$endif}
-{ Also set FPC_USE_INTRINSICS for i386 and x86_64 }
-{$if defined(CPURISCV32) or defined(CPURISCV64)}
-   {$define FPC_USE_INTRINSICS}
-{$endif}
 {$endif}
 {$endif}
 {$endif}
 {$endif}
 
 
@@ -75,6 +71,15 @@ uses
   windows;
   windows;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
 
 
+{ Also set FPC_USE_INTRINSICS for i386 and x86_64,
+  but only after _USES clause as there
+  is not intinsics unit for those CPUs }
+{$if defined(CPUI386) or defined(CPUX86_64)}
+   {$define FPC_USE_INTRINSICS}
+{$endif}
+
+{$i classesh.inc}
+
 type
 type
   TWndMethod = procedure(var msg : TMessage) of object;
   TWndMethod = procedure(var msg : TMessage) of object;
 
 

+ 7 - 4
rtl/win64/classes.pp

@@ -29,10 +29,6 @@
 {$if defined(CPURISCV32) or defined(CPURISCV64)}
 {$if defined(CPURISCV32) or defined(CPURISCV64)}
    {$define FPC_USE_INTRINSICS}
    {$define FPC_USE_INTRINSICS}
 {$endif}
 {$endif}
-{ Also set FPC_USE_INTRINSICS for i386 and x86_64 }
-{$if defined(CPURISCV32) or defined(CPURISCV64)}
-   {$define FPC_USE_INTRINSICS}
-{$endif}
 {$endif}
 {$endif}
 {$endif}
 {$endif}
 
 
@@ -75,6 +71,13 @@ uses
   windows;
   windows;
 {$ENDIF FPC_DOTTEDUNITS}
 {$ENDIF FPC_DOTTEDUNITS}
 
 
+{ Also set FPC_USE_INTRINSICS for i386 and x86_64,
+  but only after _USES clause as there
+  is not intinsics unit for those CPUs }
+{$if defined(CPUI386) or defined(CPUX86_64)}
+   {$define FPC_USE_INTRINSICS}
+{$endif}
+
 type
 type
   TWndMethod = procedure(var msg : TMessage) of object;
   TWndMethod = procedure(var msg : TMessage) of object;