Browse Source

* fixed bug introduced in revision 1.6

Jonas Maebe 20 years ago
parent
commit
28ea4a8fd4
1 changed files with 7 additions and 4 deletions
  1. 7 4
      compiler/powerpc/nppcld.pas

+ 7 - 4
compiler/powerpc/nppcld.pas

@@ -92,9 +92,9 @@ unit nppcld;
         case target_info.system of
         case target_info.system of
           system_powerpc_darwin:
           system_powerpc_darwin:
             begin
             begin
-              if (vo_is_dll_var in tglobalvarsym(symtableentry).varoptions) and
-                 (tglobalvarsym(symtableentry).owner.symtabletype in [staticsymtable,globalsymtable]) and
-                 not(tglobalvarsym(symtableentry).owner.iscurrentunit) then
+              if (vo_is_dll_var in tglobalvarsym(symtableentry).varoptions) or
+                 ((tglobalvarsym(symtableentry).owner.symtabletype in [staticsymtable,globalsymtable]) and
+                  not(tglobalvarsym(symtableentry).owner.iscurrentunit)) then
                 begin
                 begin
                   l:=objectlibrary.getasmsymbol('L'+tglobalvarsym(symtableentry).mangledname+'$non_lazy_ptr');
                   l:=objectlibrary.getasmsymbol('L'+tglobalvarsym(symtableentry).mangledname+'$non_lazy_ptr');
                   if not(assigned(l)) then
                   if not(assigned(l)) then
@@ -125,7 +125,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.7  2005-01-20 17:47:01  peter
+  Revision 1.8  2005-01-24 18:13:46  jonas
+    * fixed bug introduced in revision 1.6
+
+  Revision 1.7  2005/01/20 17:47:01  peter
     * remove copy_value_on_stack and a_param_copy_ref
     * remove copy_value_on_stack and a_param_copy_ref
 
 
   Revision 1.6  2005/01/19 22:19:41  peter
   Revision 1.6  2005/01/19 22:19:41  peter