浏览代码

* support g_call_system_proc() inside the system unit for routines whose
implementation hasn't been parsed yet

git-svn-id: branches/jvmbackend@18876 -

Jonas Maebe 14 年之前
父节点
当前提交
9fb06fcb8f
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      compiler/hlcgobj.pas

+ 3 - 0
compiler/hlcgobj.pas

@@ -2922,6 +2922,9 @@ implementation
       pd: tprocdef;
     begin
       srsym:=tsym(systemunit.find(procname));
+      if not assigned(srsym) and
+         (cs_compilesystem in current_settings.moduleswitches) then
+        srsym:=tsym(systemunit.Find(upper(procname)));
       if not assigned(srsym) or
          (srsym.typ<>procsym) then
         Message1(cg_f_unknown_compilerproc,procname);