[SVN-Commit] r978 - trunk/www/firefox-nightly/files
svn-freebsd-gecko at chruetertee.ch
svn-freebsd-gecko at chruetertee.ch
Mon Sep 3 23:19:02 UTC 2012
Author: jbeich
Date: Mon Sep 3 23:18:55 2012
New Revision: 978
Log:
resurrect gcc42 support, removed since bug 784029
Reported by: AN <andy at neu.net>
Added:
trunk/www/firefox-nightly/files/patch-bug783505
Added: trunk/www/firefox-nightly/files/patch-bug783505
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/www/firefox-nightly/files/patch-bug783505 Mon Sep 3 23:18:55 2012 (r978)
@@ -0,0 +1,30 @@
+commit b5f97ee
+Author: Rafael Ávila de Espíndola <respindola at mozilla.com>
+Date: Mon Aug 20 10:28:08 2012 -0400
+
+ Bug 783505 - OS X gcc builds failing. r=jorendorff.
+ This patch adds a workaround for
+ http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39608
+---
+ js/src/jstypedarray.cpp | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git js/src/jstypedarray.cpp js/src/jstypedarray.cpp
+index 1eaeea0..1957086 100644
+--- js/src/jstypedarray.cpp
++++ js/src/jstypedarray.cpp
+@@ -1423,8 +1423,14 @@ class TypedArrayTemplate
+ Getter(JSContext *cx, unsigned argc, Value *vp)
+ {
+ CallArgs args = CallArgsFromVp(argc, vp);
++ // FIXME: Hack to keep us building with gcc 4.2. Remove this once we
++ // drop support for gcc 4.2. See bug 783505 for the details.
++#if !defined(__clang__) && defined(__GNUC__) && __GNUC_MINOR__ <= 2
++ return CallNonGenericMethod(cx, IsThisClass, GetterImpl<ValueGetter>, args);
++#else
+ return CallNonGenericMethod<ThisTypeArray::IsThisClass,
+ ThisTypeArray::GetterImpl<ValueGetter> >(cx, args);
++#endif
+ }
+
+ // Define an accessor for a read-only property that invokes a native getter
More information about the freebsd-gecko
mailing list