Backout 73fcb9fa303d
authorWes Kocher <wkocher@mozilla.com>
Mon, 12 Jan 2015 14:46:01 -0800
changeset 223439 42cd4e7cbd145fc3e7a88ec6de9aa1a1cb7aae51
parent 223438 1c331251a037759d3d0b85a69ff6d215e1bb45d5
child 223440 50deb480e8774c4630101f1ee9c39a7be4403416
push id28095
push usercbook@mozilla.com
push dateTue, 13 Jan 2015 13:24:48 +0000
treeherdermozilla-central@a5700bec72e1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone38.0a1
backs out73fcb9fa303df13dbd99891648e54aa677a259e5
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backout 73fcb9fa303d
mfbt/Assertions.h
--- a/mfbt/Assertions.h
+++ b/mfbt/Assertions.h
@@ -297,18 +297,23 @@ MOZ_ReportCrash(const char* aStr, const 
  */
 
 /*
  * Implement MOZ_VALIDATE_ASSERT_CONDITION_TYPE, which is used to guard against
  * accidentally passing something unintended in lieu of an assertion condition.
  */
 
 #ifdef __cplusplus
-#  if defined(__clang__) || defined(__GNUC__)
+#  if defined(__clang__)
 #    define MOZ_SUPPORT_ASSERT_CONDITION_TYPE_VALIDATION
+#  elif defined(__GNUC__)
+//   B2G GCC 4.4 has insufficient decltype support.
+#    if MOZ_GCC_VERSION_AT_LEAST(4, 5, 0)
+#      define MOZ_SUPPORT_ASSERT_CONDITION_TYPE_VALIDATION
+#    endif
 #  elif defined(_MSC_VER)
 //   Disabled for now because of insufficient decltype support. Bug 1004028.
 #  endif
 #endif
 
 #ifdef MOZ_SUPPORT_ASSERT_CONDITION_TYPE_VALIDATION
 #  include "mozilla/TypeTraits.h"
 namespace mozilla {