summaryrefslogtreecommitdiff
path: root/compiler/ncgld.pas
diff options
context:
space:
mode:
authorsvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2019-11-21 21:44:36 +0000
committersvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2019-11-21 21:44:36 +0000
commit236e1d7749ec4c0cb15567fd7091a5e507436e25 (patch)
treeb694df4f69f573d2188e29394f7b0d4b0d68f331 /compiler/ncgld.pas
parentcd322738f6bb485ca8cd84cd06b5a121068fdaa5 (diff)
downloadfpc-236e1d7749ec4c0cb15567fd7091a5e507436e25.tar.gz
* correctly check for the system unit
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@43540 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/ncgld.pas')
-rw-r--r--compiler/ncgld.pas17
1 files changed, 8 insertions, 9 deletions
diff --git a/compiler/ncgld.pas b/compiler/ncgld.pas
index ffd8dfdcf6..cf6ec014a7 100644
--- a/compiler/ncgld.pas
+++ b/compiler/ncgld.pas
@@ -307,15 +307,14 @@ implementation
internalerror(2012120901);
{ FPC_THREADVAR_RELOCATE is nil? }
- issystemunit:=not current_module.is_unit or
- (
- assigned(current_module.globalsymtable) and
- (current_module.globalsymtable=systemunit)
- ) or
- (
- not assigned(current_module.globalsymtable) and
- (current_module.localsymtable=systemunit)
- );
+ issystemunit:=(
+ assigned(current_module.globalsymtable) and
+ (current_module.globalsymtable=systemunit)
+ ) or
+ (
+ not assigned(current_module.globalsymtable) and
+ (current_module.localsymtable=systemunit)
+ );
indirect:=(tf_supports_packages in target_info.flags) and
(target_info.system in systems_indirect_var_imports) and
(cs_imported_data in localswitches) and