summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/patches/patch-08-clang-cc1as-dwarf2.diff
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-29 19:56:26 +0000
committerngie <ngie@FreeBSD.org>2015-12-29 19:56:26 +0000
commit48b72481dba08c5185c1dd6a70b82b326be43d6b (patch)
treebfa4f047c73b138c59732a37297737fa1ffd3e91 /contrib/llvm/patches/patch-08-clang-cc1as-dwarf2.diff
parentf8c5cd12c37a92500da3f42f1d25bae9cc70e30a (diff)
parentc0ae58548ada98f553239a091b8764ea9e1b474b (diff)
downloadFreeBSD-src-48b72481dba08c5185c1dd6a70b82b326be43d6b.zip
FreeBSD-src-48b72481dba08c5185c1dd6a70b82b326be43d6b.tar.gz
MFhead @ r292618
Diffstat (limited to 'contrib/llvm/patches/patch-08-clang-cc1as-dwarf2.diff')
-rw-r--r--contrib/llvm/patches/patch-08-clang-cc1as-dwarf2.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/llvm/patches/patch-08-clang-cc1as-dwarf2.diff b/contrib/llvm/patches/patch-08-clang-cc1as-dwarf2.diff
new file mode 100644
index 0000000..eb00168
--- /dev/null
+++ b/contrib/llvm/patches/patch-08-clang-cc1as-dwarf2.diff
@@ -0,0 +1,21 @@
+In assembler mode, clang defaulted to DWARF3, if only -g was specified.
+Change this to DWARF2, in the simplest way possible. (Upstream, this
+was fixed in clang trunk r250173, but this was done along with a lot of
+shuffling around of debug option handling, so it cannot be applied
+as-is.)
+
+Introduced here: https://svnweb.freebsd.org/changeset/base/291701
+
+Index: tools/clang/tools/driver/cc1as_main.cpp
+===================================================================
+--- tools/clang/tools/driver/cc1as_main.cpp
++++ tools/clang/tools/driver/cc1as_main.cpp
+@@ -141,7 +141,7 @@ struct AssemblerInvocation {
+ RelaxAll = 0;
+ NoExecStack = 0;
+ FatalWarnings = 0;
+- DwarfVersion = 3;
++ DwarfVersion = 2;
+ }
+
+ static bool CreateFromArgs(AssemblerInvocation &Res,
OpenPOWER on IntegriCloud