From owner-freebsd-current@FreeBSD.ORG Thu Jan 10 23:39:48 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A3ECB19F; Thu, 10 Jan 2013 23:39:48 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 66E5A90; Thu, 10 Jan 2013 23:39:48 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:3cf0:ddba:2f37:eb56] (unknown [IPv6:2001:7b8:3a7:0:3cf0:ddba:2f37:eb56]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 294A05C37; Fri, 11 Jan 2013 00:39:46 +0100 (CET) Message-ID: <50EF5140.60407@FreeBSD.org> Date: Fri, 11 Jan 2013 00:39:44 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20121128 Thunderbird/18.0 MIME-Version: 1.0 To: Stefan Farfeleder Subject: Re: clang 3.2 RC2 miscompiles libgcc? References: <20121227150724.GA1431@mole.fafoe.narf.at> <50DC65F5.6060004@freebsd.org> <50E0BD66.4070609@FreeBSD.org> <20130102135950.GA1464@mole.fafoe.narf.at> <20130104154940.GD1430@mole.fafoe.narf.at> <20130106141708.GA1418@mole.fafoe.narf.at> <50E9916F.3040500@FreeBSD.org> <20130106160331.GB1418@mole.fafoe.narf.at> <50EB5868.2050509@FreeBSD.org> <20130108085826.GA1422@mole.fafoe.narf.at> In-Reply-To: <20130108085826.GA1422@mole.fafoe.narf.at> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, David Chisnall , Nathan Whitehorn X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2013 23:39:48 -0000 On 2013-01-08 09:58, Stefan Farfeleder wrote: > On Tue, Jan 08, 2013 at 12:21:12AM +0100, Dimitry Andric wrote: ... >> After a lot of splitting up of unwind-dw2.c, I arrived at _Unwind_Resume >> which when compiled by clang caused the crashes, but when compiled by >> gcc ran OK. > your patch seems to work just fine. No crashes whatsoever so far. Thank > you. I have committed a slighly cleaned-up version of this hack in r245272, so until this is fixed by upstream, everybody will at least have a correctly functioning libgcc on amd64. Since this issue can potentially also occur on stable/9, I will MFC the fix too, after a few days timeout.