From owner-svn-src-projects@FreeBSD.ORG Tue Oct 26 15:03:28 2010 Return-Path: Delivered-To: svn-src-projects@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACE881065672 for ; Tue, 26 Oct 2010 15:03:28 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (trout.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id 821208FC12 for ; Tue, 26 Oct 2010 15:03:28 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id E6778582CD; Tue, 26 Oct 2010 09:33:37 -0500 (CDT) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (trout.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10030) with ESMTP id jMewKNti9Lm0; Tue, 26 Oct 2010 09:33:37 -0500 (CDT) Received: from comporellon.tachypleus.net (unknown [76.210.66.181]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 868E3582CA; Tue, 26 Oct 2010 09:33:37 -0500 (CDT) Message-ID: <4CC6E6C0.5060500@freebsd.org> Date: Tue, 26 Oct 2010 09:33:36 -0500 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.14) Gecko/20101021 Thunderbird/3.0.9 MIME-Version: 1.0 To: Roman Divacky References: <201010252149.o9PLnx0T078199@svn.freebsd.org> <20101026101122.GA92250@freebsd.org> In-Reply-To: <20101026101122.GA92250@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-projects@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r214360 - projects/binutils-2.17/contrib/binutils/bfd X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2010 15:03:28 -0000 On 10/26/10 05:11, Roman Divacky wrote: > On Mon, Oct 25, 2010 at 09:49:59PM +0000, Nathan Whitehorn wrote: > >> Author: nwhitehorn >> Date: Mon Oct 25 21:49:59 2010 >> New Revision: 214360 >> URL: http://svn.freebsd.org/changeset/base/214360 >> >> Log: >> Fix a manifestation of GCC bug 16625 that caused ld>= 2.17 to fail on >> 64-bit PowerPC when linking multiple C++ files referencing the same >> method, defined in a common header, when that method had a switch >> statement with more than 4 cases. This change fixes compilation of LLVM >> tblgen on 64-bit PPC with binutils 2.17. >> > was this manifested when using clang too? > No, clang does not seem to emit the .got relocation into a linkonce section that triggered the bug. You may also be interested to know that the clang I am able to build once this patch is applied produces working binaries on 64-bit PowerPC, though there are serious code gen problems (in clang, not LLVM) that prevent it from building even trivial bits of world like ls with optimization above -O0. -Nathan