浏览代码

* win32 doesn't like the lcomm with two parameters either

git-svn-id: trunk@6657 -
florian 18 年之前
父节点
当前提交
bc73129bea
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      compiler/aggas.pas

+ 4 - 3
compiler/aggas.pas

@@ -609,7 +609,7 @@ implementation
                        asmwrite(#9'.lcomm'#9);
                        asmwrite(#9'.lcomm'#9);
                        asmwrite(tai_datablock(hp).sym.name);
                        asmwrite(tai_datablock(hp).sym.name);
                        asmwrite(','+tostr(tai_datablock(hp).size));
                        asmwrite(','+tostr(tai_datablock(hp).size));
-                       if not(target_info.system in [system_arm_linux]) then
+                       if not(target_info.system in [system_arm_linux,system_i386_win32]) then
                          asmwrite(','+tostr(last_align));
                          asmwrite(','+tostr(last_align));
                        asmwriteln('');
                        asmwriteln('');
                      end
                      end
@@ -625,7 +625,8 @@ implementation
                        asmwrite(#9'.comm'#9);
                        asmwrite(#9'.comm'#9);
                        asmwrite(tai_datablock(hp).sym.name);
                        asmwrite(tai_datablock(hp).sym.name);
                        asmwrite(','+tostr(tai_datablock(hp).size));
                        asmwrite(','+tostr(tai_datablock(hp).size));
-                       asmwrite(','+tostr(last_align));
+                       if not(target_info.system in [system_arm_linux,system_i386_win32]) then
+                         asmwrite(','+tostr(last_align));
                        asmwriteln('');
                        asmwriteln('');
                      end
                      end
                    else
                    else
@@ -633,7 +634,7 @@ implementation
                        asmwrite(#9'.lcomm'#9);
                        asmwrite(#9'.lcomm'#9);
                        asmwrite(tai_datablock(hp).sym.name);
                        asmwrite(tai_datablock(hp).sym.name);
                        asmwrite(','+tostr(tai_datablock(hp).size));
                        asmwrite(','+tostr(tai_datablock(hp).size));
-                       if not(target_info.system in [system_arm_linux]) then
+                       if not(target_info.system in [system_arm_linux,system_i386_win32]) then
                          asmwrite(','+tostr(last_align));
                          asmwrite(','+tostr(last_align));
                        asmwriteln('');
                        asmwriteln('');
                      end;
                      end;