Преглед изворни кода

* Interface wrappers must be global when linking smart, Mantis #19462. Other targets already have this condition in place.

git-svn-id: trunk@17631 -
sergei пре 14 година
родитељ
комит
9608c4eabe
3 измењених фајлова са 3 додато и 3 уклоњено
  1. 1 1
      compiler/mips/cgcpu.pas
  2. 1 1
      compiler/sparc/cgcpu.pas
  3. 1 1
      compiler/x86_64/cgcpu.pas

+ 1 - 1
compiler/mips/cgcpu.pas

@@ -1667,7 +1667,7 @@ begin
     Internalerror(200109191);
 
   make_global := False;
-  if (not current_module.is_unit) or
+  if (not current_module.is_unit) or create_smartlink or
     (procdef.owner.defowner.owner.symtabletype = globalsymtable) then
     make_global := True;
 

+ 1 - 1
compiler/sparc/cgcpu.pas

@@ -1363,7 +1363,7 @@ implementation
           Internalerror(200109191);
 
         make_global:=false;
-        if (not current_module.is_unit) or
+        if (not current_module.is_unit) or create_smartlink or
            (procdef.owner.defowner.owner.symtabletype=globalsymtable) then
           make_global:=true;
 

+ 1 - 1
compiler/x86_64/cgcpu.pas

@@ -161,7 +161,7 @@ unit cgcpu;
           Internalerror(200109191);
 
         make_global:=false;
-        if (not current_module.is_unit) or
+        if (not current_module.is_unit) or create_smartlink or
            (procdef.owner.defowner.owner.symtabletype=globalsymtable) then
           make_global:=true;