Jelajahi Sumber

Use OLDBINUTILS conditional to disable assembler code unsupported by older GNU assmebler for x86_64.inc as in cpu.pp to allow use for openbsd for instance

git-svn-id: trunk@23355 -
pierre 12 tahun lalu
induk
melakukan
c26ef20f30
1 mengubah file dengan 9 tambahan dan 1 penghapusan
  1. 9 1
      rtl/x86_64/x86_64.inc

+ 9 - 1
rtl/x86_64/x86_64.inc

@@ -62,7 +62,15 @@ end;
 // multiple issues with its old GNU assembler (Mantis #19188).
 // Even after fixing them, it can be enabled only for the trunk version,
 // otherwise bootstrapping won't be possible.
-{$ifndef freebsd}
+// Modifed to use oldbinutils as in cpu.pp source, to allow easier use for other targets.
+{$ifdef freebsd}
+  {$ifndef overridebinutils}
+    {$define oldbinutils}
+  {$endif}
+{$endif freebsd}
+
+{$ifndef oldbinutils}
+
 
 {$ifndef FPC_SYSTEM_HAS_MOVE}
 {$define FPC_SYSTEM_HAS_MOVE}