From owner-freebsd-bugs@FreeBSD.ORG Fri Feb 28 17:00:01 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 901472CF for ; Fri, 28 Feb 2014 17:00:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 633941FE2 for ; Fri, 28 Feb 2014 17:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1SH01F3011226 for ; Fri, 28 Feb 2014 17:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1SH01H1011225; Fri, 28 Feb 2014 17:00:01 GMT (envelope-from gnats) Date: Fri, 28 Feb 2014 17:00:01 GMT Message-Id: <201402281700.s1SH01H1011225@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Dimitry Andric Subject: Re: bin/187103: clang 3.4 miscompiles nsAppRunner.cpp from firefox firefox-27.0.1, 1 in i386 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Dimitry Andric List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Feb 2014 17:00:01 -0000 The following reply was made to PR bin/187103; it has been noted by GNATS. From: Dimitry Andric To: bug-followup@FreeBSD.org, truckman@FreeBSD.org Cc: Subject: Re: bin/187103: clang 3.4 miscompiles nsAppRunner.cpp from firefox firefox-27.0.1,1 in i386 Date: Fri, 28 Feb 2014 17:58:08 +0100 --Apple-Mail=_55082F3A-EBAC-4B51-B255-4D80565AFD60 Content-Type: multipart/mixed; boundary="Apple-Mail=_B9859571-DEEA-44DA-A2D5-60B54111B1DB" --Apple-Mail=_B9859571-DEEA-44DA-A2D5-60B54111B1DB Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii 123456789012345678901234567890123456789012345678901234567890123456789012 It is indeed a clang bug, which only occurs on i386, due to the ((regparm (3), stdcall)) attributes used for certain xpcom functions on that architecture. It has been reported upstream as http://llvm.org/PR19007 . For now, please drop the attached patch in /usr/ports/www/firefox/files, which disables use of those attributes. -Dimitry --Apple-Mail=_B9859571-DEEA-44DA-A2D5-60B54111B1DB Content-Disposition: attachment; filename=patch-xpcom_base_nscore.h Content-Type: application/octet-stream; name="patch-xpcom_base_nscore.h" Content-Transfer-Encoding: 7bit --- xpcom/base/nscore.h.orig 2014-02-12 22:29:26.000000000 +0100 +++ xpcom/base/nscore.h 2014-02-28 17:22:25.000000000 +0100 @@ -111,7 +111,7 @@ * NS_HIDDEN_(int) NS_FASTCALL func2(char *foo); */ -#if defined(__i386__) && defined(__GNUC__) && !defined(XP_OS2) +#if defined(__i386__) && defined(__GNUC__) && !defined(XP_OS2) && !defined(__clang__) #define NS_FASTCALL __attribute__ ((regparm (3), stdcall)) #define NS_CONSTRUCTOR_FASTCALL __attribute__ ((regparm (3), stdcall)) #elif defined(XP_WIN) && !defined(_WIN64) --Apple-Mail=_B9859571-DEEA-44DA-A2D5-60B54111B1DB Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_B9859571-DEEA-44DA-A2D5-60B54111B1DB-- --Apple-Mail=_55082F3A-EBAC-4B51-B255-4D80565AFD60 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) iEYEARECAAYFAlMQwCoACgkQsF6jCi4glqP7+ACfWlQw6sLO+yHvZ0lEDw584w8e ypgAn2wLFdajC0s6QO+6+q7z3rZh5wJm =dAll -----END PGP SIGNATURE----- --Apple-Mail=_55082F3A-EBAC-4B51-B255-4D80565AFD60--