<div class="gmail_quote">2010/1/10 Aaron Gray <span dir="ltr"><<a href="mailto:aaronngray.lists@googlemail.com">aaronngray.lists@googlemail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote">2010/1/10 Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>></span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Aaron,<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks, okay heres the results :-<br>
<br>
LLVM type size doesn't match GCC type size!<br>
<br>
<real_type 0x7ff80b40 long double sizes-gimplified XF size <integer_cst 0x7ff010e0 type <integer_type 0x7ff80060 bit_size_type> constant invariant 96><br>
unit size <integer_cst 0x7ff01100 type <integer_type 0x7ff80000 unsigned int> constant invariant 12><br>
align 32 symtab 0 alias set -1 precision 80<br>
pointer_to_this <pointer_type 0x7ff80c60>><br>
</blockquote>
<br></div>
as I thought, it's a problem with long double. GCC thinks it is 12 bytes<br>
long, LLVM presumably thinks it is 16 bytes long [in reality long double<br>
is 10 bytes long, but here sizes include alignment, and different OS's<br>
choose different alignments for it].<br>
<br>
Does the following fix it for you?<br>
<br>
Index: X86Subtarget.h<br>
===================================================================<br>
--- X86Subtarget.h (revision 93111)<br>
+++ X86Subtarget.h (working copy)<br>
@@ -169,7 +169,7 @@<br>
p = "e-p:64:64-s:64-f64:64:64-i64:64:64-f80:128:128-n8:16:32:64";<br>
else if (isTargetDarwin())<br>
p = "e-p:32:32-f64:32:64-i64:32:64-f80:128:128-n8:16:32";<br>
- else if (isTargetCygMing() || isTargetWindows())<br>
+ else if (isTargetWindows())<br>
p = "e-p:32:32-f64:64:64-i64:64:64-f80:128:128-n8:16:32";<br>
else<br>
p = "e-p:32:32-f64:32:64-i64:32:64-f80:32:32-n8:16:32";<br>
</blockquote></div></div></div><br><div>Yep ! Thanks a lot Duncan, obviously not doing my job properly.</div><div><br></div><div><a href="http://llvm.org/viewvc/llvm-project?view=rev&revision=91745" target="_blank">http://llvm.org/viewvc/llvm-project?view=rev&revision=91745</a></div>
<div><b><br></b></div><div>"Bump alignment requirements for windows targets to achieve compartibility with vcpp.
Based on patch by Michael Beck!"</div><div><br></div><div>Looks like there is an issue to resolve here. As Cygwin will never be VC++ compatible its probably not a good idea to change Cygwin's DataLayout as well as Ming's.</div>
</blockquote><div><br></div><div>Now, I am getting another regression in stage 2 configure :-</div><div><br></div><div> "<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">checking whether the C compiler works... configure: error: cannot run C compiled programs."</span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">This one is strange, I have had it before but cannot remember what the cause is as it was along time ago. Its odd as xgcc was used to compile libgcc, and prev-gcc/xgcc compiles and executes a test c program, yet stage 2's configure is failing.</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br>
</span></font></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; border-collapse: collapse; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Aaron</span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br>
</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br>
</span></font></div><div> </div></div>