From: yangguo@chromium.org Date: Tue, 8 Jan 2013 15:32:40 +0000 (+0000) Subject: Only enable MinGW-w64 pow() workaround if needed X-Git-Tag: upstream/4.7.83~15334 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a06a29c1361d827d7a75a3ffd2ffc52eef8cb94;p=platform%2Fupstream%2Fv8.git Only enable MinGW-w64 pow() workaround if needed The pow() workaround is no longer needed in the latest version of MinGW-w64. Contributed by net147@gmail.com BUGS= TEST=mjsunit/math-pow,mjsunit/math-sqrt Review URL: https://chromiumcodereview.appspot.com/11748033 Patch from Jonathan Liu . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13334 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/assembler.cc b/src/assembler.cc index 8fc8c9e77..e28497431 100644 --- a/src/assembler.cc +++ b/src/assembler.cc @@ -1403,7 +1403,8 @@ double power_double_int(double x, int y) { double power_double_double(double x, double y) { -#ifdef __MINGW64_VERSION_MAJOR +#if defined(__MINGW64_VERSION_MAJOR) && \ + (!defined(__MINGW64_VERSION_RC) || __MINGW64_VERSION_RC < 1) // MinGW64 has a custom implementation for pow. This handles certain // special cases that are different. if ((x == 0.0 || isinf(x)) && isfinite(y)) {