From owner-svn-src-head@freebsd.org Fri Dec 4 17:23:21 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 31259A419EB; Fri, 4 Dec 2015 17:23:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F053E1770; Fri, 4 Dec 2015 17:23:20 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tB4HNKHF003598; Fri, 4 Dec 2015 17:23:20 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tB4HNKpr003597; Fri, 4 Dec 2015 17:23:20 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201512041723.tB4HNKpr003597@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Fri, 4 Dec 2015 17:23:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r291771 - head/contrib/llvm/patches X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Dec 2015 17:23:21 -0000 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,