Bug 1057134 - Remove std::_Debug_message linking hack that's no longer needed. r=dmajor.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 08 Jan 2015 21:59:43 -0800
changeset 248687 4d6c57214b1d619e73e2b3cb6517199767dfaffa
parent 248686 ee220d48eab7cfb878c9b70e73371c7ba46fd40a
child 248688 5dd6ef47090841c82e6f3d37ea071306acf37b79
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdmajor
bugs1057134
milestone37.0a1
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
Bug 1057134 - Remove std::_Debug_message linking hack that's no longer needed. r=dmajor.
mfbt/Atomics.h
--- a/mfbt/Atomics.h
+++ b/mfbt/Atomics.h
@@ -38,23 +38,16 @@
     * libc++ <atomic> is only functional with clang.
     */
 #  if MOZ_USING_LIBSTDCXX && MOZ_LIBSTDCXX_VERSION_AT_LEAST(4, 7, 0)
 #    define MOZ_HAVE_CXX11_ATOMICS
 #  elif MOZ_USING_LIBCXX && defined(__clang__)
 #    define MOZ_HAVE_CXX11_ATOMICS
 #  endif
 #elif defined(_MSC_VER)
-#  if defined(DEBUG)
-     /*
-      * Provide our own failure code since we're having trouble linking to
-      * std::_Debug_message (bug 982310).
-      */
-#    define _INVALID_MEMORY_ORDER MOZ_CRASH("Invalid memory order")
-#  endif
 #  define MOZ_HAVE_CXX11_ATOMICS
 #endif
 
 namespace mozilla {
 
 /**
  * An enum of memory ordering possibilities for atomics.
  *