<div>Tanya,</div>
<div> </div>
<div>This patch at the end of this message is needed for Cygwin and GCC 4.2.x series.</div><div><br></div><div>I also had to disable 'runtime/libprofile' by including the following in 'runtime/makefile' :-</div>

<div><br></div><div><div>    ifeq ($(OS), Cygwin)</div><div>    PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS))</div><div>    endif</div><div><br></div><div>There maybe a better fix to make it work.</div></div>


<div> </div>
<div>Aaron</div>
<div><br><br> </div>
<div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Nick Lewycky</b> <span dir="ltr"><<a href="mailto:nicholas@mxc.ca" target="_blank">nicholas@mxc.ca</a>></span><br>

Date: 2009/8/29<br>
Subject: [llvm-commits] [llvm-gcc-4.2] r80424 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp<br>To: <a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br><br><br>Author: nicholas<br>Date: Sat Aug 29 02:23:49 2009<br>


New Revision: 80424<br><br>URL: <a href="http://llvm.org/viewvc/llvm-project?rev=80424&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=80424&view=rev</a><br>Log:<br>Fix invalid conversion. Patch by Aaron Gray!<br>


<br>Modified:<br>   llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp<br><br>Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp<br>URL: <a href="http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=80424&r1=80423&r2=80424&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=80424&r1=80423&r2=80424&view=diff</a><br>


<br>==============================================================================<br>--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)<br>+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Sat Aug 29 02:23:49 2009<br>@@ -7124,7 +7124,7 @@<br>


  } else if (ElTy == Type::getInt32Ty(Context)) {<br>    assert((Len&3) == 0 &&<br>           "Length in bytes should be a multiple of element size");<br>-    const uint32_t *InStr = (const unsigned *)TREE_STRING_POINTER(exp);<br>


+    const uint32_t *InStr = (const uint32_t *)TREE_STRING_POINTER(exp);<br>    for (unsigned i = 0; i != Len/4; ++i) {<br>      // gcc has constructed the initializer elements in the target endianness,<br>      // but we're going to treat them as ordinary ints from here, with<br>


<br><br>_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>


</div><br>