* 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 -
This commit is contained in:
svenbarth 2012-05-09 12:02:41 +00:00
parent db955f842f
commit def357287e

View File

@ -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;