bin/187103: clang 3.4 miscompiles nsAppRunner.cpp from firefox firefox-27.0.1, 1 in i386
Dimitry Andric
dim at FreeBSD.org
Fri Feb 28 17:00:01 UTC 2014
The following reply was made to PR bin/187103; it has been noted by GNATS.
From: Dimitry Andric <dim at FreeBSD.org>
To: bug-followup at FreeBSD.org,
truckman at 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--
More information about the freebsd-bugs
mailing list