Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Dec 2015 17:23:20 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r291771 - head/contrib/llvm/patches
Message-ID:  <201512041723.tB4HNKpr003597@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Fri Dec  4 17:23:19 2015
New Revision: 291771
URL: https://svnweb.freebsd.org/changeset/base/291771

Log:
  Add clang patch corresponding to r291701.

Added:
  head/contrib/llvm/patches/patch-10-clang-cc1as-dwarf2.diff

Added: head/contrib/llvm/patches/patch-10-clang-cc1as-dwarf2.diff
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/contrib/llvm/patches/patch-10-clang-cc1as-dwarf2.diff	Fri Dec  4 17:23:19 2015	(r291771)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512041723.tB4HNKpr003597>