summaryrefslogtreecommitdiff
path: root/compiler/ncgld.pas
diff options
context:
space:
mode:
authorjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2016-08-05 07:09:16 +0000
committerjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2016-08-05 07:09:16 +0000
commitbb000d943a28fafcbe53495172cbadeca0bc495e (patch)
treeafb4a338626b1f303c931df2b40d34eb49dec9af /compiler/ncgld.pas
parent26052e62e54a91816336120bb9009f7dc7a12393 (diff)
downloadfpc-bb000d943a28fafcbe53495172cbadeca0bc495e.tar.gz
- removed default value of _typ parameter of TAsmData.(Weak)RefAsmSymbol():
it was AT_NONE, which is invalid and should never be used * explicitly pass the correct value for all calls to those methods elsewhere in the compiler git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@34250 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/ncgld.pas')
-rw-r--r--compiler/ncgld.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ncgld.pas b/compiler/ncgld.pas
index b5c98f17ed..b70383b3fe 100644
--- a/compiler/ncgld.pas
+++ b/compiler/ncgld.pas
@@ -301,7 +301,7 @@ implementation
paraloc1.init;
paramanager.getintparaloc(current_asmdata.CurrAsmList,tprocvardef(pvd),1,paraloc1);
hregister:=hlcg.getaddressregister(current_asmdata.CurrAsmList,pvd);
- reference_reset_symbol(href,current_asmdata.RefAsmSymbol('FPC_THREADVAR_RELOCATE'),0,pvd.size);
+ reference_reset_symbol(href,current_asmdata.RefAsmSymbol('FPC_THREADVAR_RELOCATE',AT_DATA),0,pvd.size);
hlcg.a_load_ref_reg(current_asmdata.CurrAsmList,pvd,pvd,href,hregister);
hlcg.a_cmp_const_reg_label(current_asmdata.CurrAsmList,pvd,OC_EQ,0,hregister,norelocatelab);
{ no, call it with the index of the threadvar as parameter }