From owner-svn-src-all@FreeBSD.ORG Sat Jul 28 18:01:45 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 41BFF1065673; Sat, 28 Jul 2012 18:01:45 +0000 (UTC) (envelope-from rdivacky@vlakno.cz) Received: from vlakno.cz (lev.vlakno.cz [46.28.110.116]) by mx1.freebsd.org (Postfix) with ESMTP id ED2DA8FC19; Sat, 28 Jul 2012 18:01:44 +0000 (UTC) Received: by vlakno.cz (Postfix, from userid 1002) id DD0B87F3A0C; Sat, 28 Jul 2012 20:01:37 +0200 (CEST) Date: Sat, 28 Jul 2012 20:01:37 +0200 From: Roman Divacky To: Dimitry Andric Message-ID: <20120728180137.GA55575@freebsd.org> References: <201207281250.q6SCoQfS027517@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201207281250.q6SCoQfS027517@svn.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r238863 - head/contrib/llvm/tools/clang/lib/Driver X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jul 2012 18:01:45 -0000 It would be great to stay in sync with upstream. http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?r1=160103&r2=160231 On Sat, Jul 28, 2012 at 12:50:26PM +0000, Dimitry Andric wrote: > Author: dim > Date: Sat Jul 28 12:50:25 2012 > New Revision: 238863 > URL: http://svn.freebsd.org/changeset/base/238863 > > Log: > Similar to r238472, let clang pass --enable-new-dtags to the linker > invocation by default. Also make sure --hash-style=both is passed for > the same arches as gcc, e.g. arm, sparc and x86. > > X-MFC-with: r238472 > > Modified: > head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp > > Modified: head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp > ============================================================================== > --- head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp Sat Jul 28 11:28:00 2012 (r238862) > +++ head/contrib/llvm/tools/clang/lib/Driver/Tools.cpp Sat Jul 28 12:50:25 2012 (r238863) > @@ -4761,8 +4761,10 @@ void freebsd::Link::ConstructJob(Compila > CmdArgs.push_back("/libexec/ld-elf.so.1"); > } > llvm::Triple::ArchType Arch = getToolChain().getArch(); > - if (Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64) > + if (Arch == llvm::Triple::arm || Arch == llvm::Triple::sparc || > + Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64) > CmdArgs.push_back("--hash-style=both"); > + CmdArgs.push_back("--enable-new-dtags"); > } > > // When building 32-bit code on FreeBSD/amd64, we have to explicitly