From c26ef20f3045ffbc798aeac7819c3fe8e6daa3d6 Mon Sep 17 00:00:00 2001 From: pierre Date: Thu, 10 Jan 2013 16:19:07 +0000 Subject: [PATCH] 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 - --- rtl/x86_64/x86_64.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rtl/x86_64/x86_64.inc b/rtl/x86_64/x86_64.inc index 7681df1429..cfa0f5dfde 100644 --- a/rtl/x86_64/x86_64.inc +++ b/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}