From owner-freebsd-toolchain@FreeBSD.ORG Mon Sep 15 18:01:15 2014 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EA82C43F; Mon, 15 Sep 2014 18:01:15 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "tensor.andric.com", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A1381954; Mon, 15 Sep 2014 18:01:15 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::7c26:cd69:97e3:de28] (unknown [IPv6:2001:7b8:3a7:0:7c26:cd69:97e3:de28]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id A6336B803; Mon, 15 Sep 2014 20:01:02 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_7A3CA41C-290C-40CC-B023-7C84A7B0DB39"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: clang makes segfaulting code with -march=core2 on i386 From: Dimitry Andric In-Reply-To: Date: Mon, 15 Sep 2014 20:00:51 +0200 Message-Id: <59D2D3D8-CE24-4785-8E39-6A07AE1B266D@FreeBSD.org> References: <54130AD0.8090103@freebsd.org> <54133E1E.9030105@freebsd.org> <54135B24.5040905@freebsd.org> <54135D0B.7060701@freebsd.org> <6FDF432B-8245-4BC7-952B-DFFEEA106D6F@FreeBSD.org> <5414865A.6030101@freebsd.org> <54149286.80608@freebsd.org> To: Andrey Chernov X-Mailer: Apple Mail (2.1878.6) Cc: toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2014 18:01:16 -0000 --Apple-Mail=_7A3CA41C-290C-40CC-B023-7C84A7B0DB39 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=koi8-r On 14 Sep 2014, at 19:27, Dimitry Andric wrote: ... > In any case, I have now narrowed it down to gcc/tree.c, which is not a > very small file, and which is changed very often upstream, sometimes > almost daily. > > So I will see if I can reproduce it with gcc trunk first, and if that > turns out to be good, I will bisect to find the commit that fixes it. > > If trunk is also not good, the rabbit hole goes a bit deeper... And deeper it goes: gcc trunk does not crash, *unless* I change the file gcc/DEV-PHASE to contain the string "prerelease" instead of the default "experimental". Then gcc trunk crashes in an identical fashion to the gcc 4.8 branch, or gcc 4.8.2 release! Anybody have an idea what kind of magic in gcc is changed, when this DEV-PHASE file is altered? Some debug code or internal assertion checking might be turned on or off? -Dimitry --Apple-Mail=_7A3CA41C-290C-40CC-B023-7C84A7B0DB39 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlQXKVwACgkQsF6jCi4glqOxUgCghdgMZC0c6fHVR7z6udw79FL1 1B0AniS4Q0zkZubKN44Vtvzgw0G/R23Q =hDrm -----END PGP SIGNATURE----- --Apple-Mail=_7A3CA41C-290C-40CC-B023-7C84A7B0DB39--