From dec0a953140e54374912b31557f881153a2a08f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Mon, 20 Aug 2012 10:36:30 -0400 Subject: [PATCH] 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 a/js/src/jstypedarray.cpp b/js/src/jstypedarray.cpp index 1eaeea0569bf..19570866cc7a 100644 --- a/js/src/jstypedarray.cpp +++ b/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(__GNUC__) && __GNUC_MINOR__ <= 2 + return CallNonGenericMethod(cx, IsThisClass, GetterImpl, args); +#else return CallNonGenericMethod >(cx, args); +#endif } // Define an accessor for a read-only property that invokes a native getter