瀏覽代碼

* disable parameter struct padding for llvm, as llvm does that it by itself
(and interprets our padding as extra parameters)

git-svn-id: trunk@32554 -

Jonas Maebe 9 年之前
父節點
當前提交
a27927e658
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/x86_64/cpupara.pas

+ 2 - 1
compiler/x86_64/cpupara.pas

@@ -425,6 +425,7 @@ unit cpupara;
               exit(0);
               exit(0);
           end;
           end;
 
 
+{$ifndef llvm}
           { FIXME: in case a record contains empty padding space, e.g. a
           { FIXME: in case a record contains empty padding space, e.g. a
             "single" field followed by a "double", then we have a problem
             "single" field followed by a "double", then we have a problem
             because the cgpara helpers cannot figure out that they should
             because the cgpara helpers cannot figure out that they should
@@ -460,7 +461,7 @@ unit cpupara;
                   classes[1].def:=carraydef.getreusable_no_free(s32floattype,2);
                   classes[1].def:=carraydef.getreusable_no_free(s32floattype,2);
                 end;
                 end;
             end;
             end;
-
+{$endif not llvm}
           result:=words;
           result:=words;
       end;
       end;