浏览代码

* 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 -
svenbarth 13 年之前
父节点
当前提交
def357287e
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      compiler/pdecvar.pas

+ 4 - 2
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;