[llvm-commits] [patch] Add an option for not using dwarf's .loc directive

Rafael Espíndola rafael.espindola at gmail.com
Thu Nov 18 17:35:05 PST 2010


> If you make a choice between clang vs. llvm-gcc then we will trade llvm-gcc-powerpc-darwin9 buildbot failures with llvm-gcc-x86-darwin10-gdb-testsuite build bot failures! Obviously, I care more about darwin10-gdb-testsuite results.
>
> I suggest, for now while you make progress, you can entirely disable debug info for powerpc by updating following line in PPCMCAsmInfo.cpp
>         SupportsDebugInformation= true; // Debug information.
>  This will make all buildbots green (I do not know of any powerpc buildbot focusing on debug info).

I have attached a new version of the patches. This time no patch is
necessary for clang.

This still uses the llvm-gcc/clang distinction. I am just finishing a
llvm-gcc bootstrap and will run the gdb testsuite with and without
this patch.

So, the only affected targets are ppc or all darwin 9 systems? In any
case, all that is needed to get llvm-gcc on some system to use .loc is
to change:

TheTarget->setMCUseLoc(false);

with

TheTarget->setMCUseLoc(LLLVM_USE_DWARF_LOC);

and define that macro in the gcc/config directory.

Sounds like a reasonable way to do it?

> -
> Devang

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-gcc.patch
Type: text/x-patch
Size: 476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101118/7f7050df/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm.patch
Type: text/x-patch
Size: 18958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101118/7f7050df/attachment-0001.bin>


More information about the llvm-commits mailing list