From 1046c995a83f12f3f04388d967b5cc40f7693e7f Mon Sep 17 00:00:00 2001 From: Jonas Maebe <jonas@freepascal.org> Date: Thu, 7 Jan 2016 22:05:28 +0000 Subject: [PATCH] * ttai_typedconstbuilder.finalize_asmlist(): fixed handling of non-local symbols that aren't AB_GLOBAL (e.g. AB_PRIVATE_EXTERN) git-svn-id: trunk@32878 - --- compiler/aasmcnst.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/aasmcnst.pas b/compiler/aasmcnst.pas index 6f52c6355a..90ccfb04e9 100644 --- a/compiler/aasmcnst.pas +++ b/compiler/aasmcnst.pas @@ -935,10 +935,10 @@ implementation end; if not(tcalo_is_lab in options) then - if sym.bind=AB_GLOBAL then - prelist.concat(tai_symbol.Create_Global(sym,0)) - else + if sym.bind=AB_LOCAL then prelist.concat(tai_symbol.Create(sym,0)) + else + prelist.concat(tai_symbol.Create_Global(sym,0)) else prelist.concat(tai_label.Create(tasmlabel(sym))); { insert the symbol information before the data }