Explorar o código

* 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 %!s(int64=14) %!d(string=hai) anos
pai
achega
9fb06fcb8f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      compiler/hlcgobj.pas

+ 3 - 0
compiler/hlcgobj.pas

@@ -2922,6 +2922,9 @@ implementation
       pd: tprocdef;
       pd: tprocdef;
     begin
     begin
       srsym:=tsym(systemunit.find(procname));
       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
       if not assigned(srsym) or
          (srsym.typ<>procsym) then
          (srsym.typ<>procsym) then
         Message1(cg_f_unknown_compilerproc,procname);
         Message1(cg_f_unknown_compilerproc,procname);