On Tue, Jul 20, 2010 at 6:49 AM, Rafael Espindola <espindola at google.com> wrote:>> export PATH="$LLVMPREFIX/bin:$LLVMGCCPREFIX/bin:$PATH" >> export CC="llvm-gcc -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" >> export CXX="llvm-g++ -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" >> export RANLIB=/bin/true >> export CFLAGS="-O4 -g" >> >> then configure, make, and then hit the error. >> >> The error only happens if the CFLAGS has -g in it. > > Can you reduce the testcase a bit? It would be a lot easier to > reproduce with the ld invocation and the .o files given to it.This (Unknown constant! in bitcode writer when -g is used) is a known bug in CloneModule, because it is not cloning MDNodes appropriately. So bug point is likely to run into this while reducing test case. I do not know whether gold is cloning module at -O4 or not. - Devang
On Tue, Jul 20, 2010 at 12:39 PM, Devang Patel <devang.patel at gmail.com>wrote:> On Tue, Jul 20, 2010 at 6:49 AM, Rafael Espindola <espindola at google.com> > wrote: > >> export PATH="$LLVMPREFIX/bin:$LLVMGCCPREFIX/bin:$PATH" > >> export CC="llvm-gcc -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" > >> export CXX="llvm-g++ -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" > >> export RANLIB=/bin/true > >> export CFLAGS="-O4 -g" > >> > >> then configure, make, and then hit the error. > >> > >> The error only happens if the CFLAGS has -g in it. > > > > Can you reduce the testcase a bit? It would be a lot easier to > > reproduce with the ld invocation and the .o files given to it. > > This (Unknown constant! in bitcode writer when -g is used) is a known > bug in CloneModule, because it is not cloning MDNodes appropriately. > So bug point is likely to run into this while reducing test case. > > I do not know whether gold is cloning module at -O4 or not. > > Is this bug fixed in mainline llvm?-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100720/6f878fc2/attachment.html>
On Tue, Jul 20, 2010 at 10:39 AM, Devang Patel <devang.patel at gmail.com> wrote:> On Tue, Jul 20, 2010 at 6:49 AM, Rafael Espindola <espindola at google.com> wrote: >>> export PATH="$LLVMPREFIX/bin:$LLVMGCCPREFIX/bin:$PATH" >>> export CC="llvm-gcc -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" >>> export CXX="llvm-g++ -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" >>> export RANLIB=/bin/true >>> export CFLAGS="-O4 -g" >>> >>> then configure, make, and then hit the error. >>> >>> The error only happens if the CFLAGS has -g in it. >> >> Can you reduce the testcase a bit? It would be a lot easier to >> reproduce with the ld invocation and the .o files given to it. > > This (Unknown constant! in bitcode writer when -g is used) is a known > bug in CloneModule, because it is not cloning MDNodes appropriately.What's the link to the bug report? Are you fixing it?> So bug point is likely to run into this while reducing test case. > > I do not know whether gold is cloning module at -O4 or not. > - > Devang > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
On Wed, Jul 21, 2010 at 9:50 AM, Jeffrey Yasskin <jyasskin at google.com> wrote:>> This (Unknown constant! in bitcode writer when -g is used) is a known >> bug in CloneModule, because it is not cloning MDNodes appropriately. > > What's the link to the bug report? Are you fixing it?PR 7689. Fixed in r109117. - Devang