From def357287efbd9e2e847d5c89c5b291208be84d0 Mon Sep 17 00:00:00 2001 From: svenbarth Date: Wed, 9 May 2012 12:02:41 +0000 Subject: [PATCH] * revert revision 21251 for pdecvar.pas: not generating the bss-data for the static symbol for a generic breaks linking with debug info enabled; I'll need to find a better solution to avoid unneeded use of space (luckily it wasn't needed to fix any bug ^^) git-svn-id: trunk@21264 - --- compiler/pdecvar.pas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/pdecvar.pas b/compiler/pdecvar.pas index f5a435bb4f..5aeb1b7fa3 100644 --- a/compiler/pdecvar.pas +++ b/compiler/pdecvar.pas @@ -1773,8 +1773,10 @@ implementation fieldvs:=tfieldvarsym(sc[i]); fieldvs.visibility:=visibility; hstaticvs:=make_field_static(recst,fieldvs); - if not parse_generic then - cnodeutils.insertbssdata(hstaticvs); + { for generics it would be better to disable the following, + but simply disabling it in that case breaks linking with + debug info } + cnodeutils.insertbssdata(hstaticvs); if vd_final in options then hstaticvs.varspez:=vs_final; end;