<p dir="ltr"><br>
On Oct 8, 2015 7:19 AM, "Douglas Katzman via cfe-commits" <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:<br>
><br>
> Author: dougk<br>
> Date: Thu Oct  8 09:18:02 2015<br>
> New Revision: 249692<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=249692&view=rev">http://llvm.org/viewvc/llvm-project?rev=249692&view=rev</a><br>
> Log:<br>
> [Myriad]: default the Dwarf version to 2</p>
<p dir="ltr">Just out of curiosity, what are the particular platform/tool issues that lead to this limitation?</p>
<p dir="ltr">><br>
> Modified:<br>
>     cfe/trunk/lib/Driver/ToolChains.h<br>
>     cfe/trunk/test/Driver/myriad-toolchain.c<br>
><br>
> Modified: cfe/trunk/lib/Driver/ToolChains.h<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.h?rev=249692&r1=249691&r2=249692&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.h?rev=249692&r1=249691&r2=249692&view=diff</a><br>
> ==============================================================================<br>
> --- cfe/trunk/lib/Driver/ToolChains.h (original)<br>
> +++ cfe/trunk/lib/Driver/ToolChains.h Thu Oct  8 09:18:02 2015<br>
> @@ -981,6 +981,7 @@ public:<br>
>    Tool *SelectTool(const JobAction &JA) const override;<br>
>    void getCompilerSupportDir(std::string &Dir) const;<br>
>    void getBuiltinLibDir(std::string &Dir) const;<br>
> +  unsigned GetDefaultDwarfVersion() const override { return 2; }<br>
><br>
>  protected:<br>
>    Tool *buildLinker() const override;<br>
><br>
> Modified: cfe/trunk/test/Driver/myriad-toolchain.c<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/myriad-toolchain.c?rev=249692&r1=249691&r2=249692&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/myriad-toolchain.c?rev=249692&r1=249691&r2=249692&view=diff</a><br>
> ==============================================================================<br>
> --- cfe/trunk/test/Driver/myriad-toolchain.c (original)<br>
> +++ cfe/trunk/test/Driver/myriad-toolchain.c Thu Oct  8 09:18:02 2015<br>
> @@ -57,3 +57,6 @@<br>
>  // RUN: %clang -target sparc-myriad -### -nostdlib %s 2>&1 | FileCheck %s --check-prefix=NOSTDLIB<br>
>  //<br>
>  // NOSTDLIB-NOT: "-lc"<br>
> +<br>
> +// RUN: %clang -### -c -g %s -target sparc-myriad 2>&1 | FileCheck -check-prefix=G_SPARC %s<br>
> +// G_SPARC: "-debug-info-kind=limited" "-dwarf-version=2"<br>
><br>
><br>
> _______________________________________________<br>
> cfe-commits mailing list<br>
> <a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</p>