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
This commit is contained in:
Rafael Ávila de Espíndola 2012-08-20 10:28:08 -04:00
parent 37bc3e58f2
commit 5ba3a19a46

View File

@ -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(__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