<br><br><div class="gmail_quote">On Tue, Jul 20, 2010 at 12:39 PM, Devang Patel <span dir="ltr"><<a href="mailto:devang.patel@gmail.com">devang.patel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Tue, Jul 20, 2010 at 6:49 AM, Rafael Espindola <<a href="mailto:espindola@google.com">espindola@google.com</a>> wrote:<br>
</div><div class="im">>> export PATH="$LLVMPREFIX/bin:$LLVMGCCPREFIX/bin:$PATH"<br>
>> export CC="llvm-gcc -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm"<br>
>> export CXX="llvm-g++ -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm"<br>
>> export RANLIB=/bin/true<br>
>> export CFLAGS="-O4 -g"<br>
>><br>
>> then configure, make, and then hit the error.<br>
>><br>
>> The error only happens if the CFLAGS has -g in it.<br>
><br>
> Can you reduce the testcase a bit? It would be a lot easier to<br>
> reproduce with the ld invocation and the .o files given to it.<br>
<br>
</div>This (Unknown constant! in bitcode writer when -g is used) is a known<br>
bug in CloneModule, because it is not cloning MDNodes appropriately.<br>
So bug point is likely to run into this while reducing test case.<br>
<br>
I do not know whether gold is cloning module at -O4 or not.<br>
<font color="#888888"><br></font></blockquote><div>Is this bug fixed in mainline llvm? <br></div></div><br>