From owner-freebsd-stable@FreeBSD.ORG Wed Oct 24 11:02:51 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 73204FC7; Wed, 24 Oct 2012 11:02:51 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id C2BFC8FC0A; Wed, 24 Oct 2012 11:02:50 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q9OB2bIr065380; Wed, 24 Oct 2012 14:02:37 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q9OB2PaO030735; Wed, 24 Oct 2012 14:02:25 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q9OB2PFX030734; Wed, 24 Oct 2012 14:02:25 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 24 Oct 2012 14:02:25 +0300 From: Konstantin Belousov To: Volodymyr Kostyrko Subject: Re: wine, gcc and clang with CPUTYPE Message-ID: <20121024110225.GB35915@deviant.kiev.zoral.com.ua> References: <50879F62.2010004@gmail.com> <5087BD71.9090002@FreeBSD.org> <5087C428.2020908@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/dCIfOYSJNmJ3drl" Content-Disposition: inline In-Reply-To: <5087C428.2020908@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-stable@freebsd.org, Dimitry Andric X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2012 11:02:51 -0000 --/dCIfOYSJNmJ3drl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 24, 2012 at 01:34:16PM +0300, Volodymyr Kostyrko wrote: > 24.10.2012 13:05, Dimitry Andric wrote: > >> I just have taken some time to inspect CPUTYPE support for clang. It > >> seems to me that clang generates incorrect code in some cases. > >> > >> The first failure point I discovered was inability to build gcc from > >> sources or compile something with gcc. Code produced by gcc seem to fa= il > >> whether this was gcc compiled from bootstrap or anything else: > >> > >> http://lists.freebsd.org/pipermail/freebsd-multimedia/2012-October/013= 469.html > > > > Can you attempt to figure out what the illegal instruction was, in that > > case? >=20 > How can I do that? I'm not very familiar with gdb. Load the coredump in gdb, like gdb /path/to/the/binary binary.core then, at the gdb prompt, do info registers disassemble (if the later command emited an error, do disassemble x,x+10 where x is the content of the %eip register). Post the verbatim results of the whole gdb session. --/dCIfOYSJNmJ3drl Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlCHysEACgkQC3+MBN1Mb4iSjwCfU3T2QEo1XeMVPuF1iYO/tsSQ 2lcAoIDxmkSOY2J17AJUBs7YKTvrqGok =0cvR -----END PGP SIGNATURE----- --/dCIfOYSJNmJ3drl--